69 :GammaRayTelDetector(0),histo2DMode(
"strip")
84 delete G4AnalysisManager::Instance();
167 int N = Nstrip*Ntile;
174 man->
CreateH1(
"1",
"Edep in the last X plane (keV)", 100, 50, 200);
177 man->
CreateH1(
"2",
"Hits dist in TKR X planes",Nplane, 0, Nplane-1);
186 man->
CreateH2(
"1",
"Tracker Hits XZ (strip,plane)",
188 2*Nplane, 0, Nplane-1);
192 man->
CreateH2(
"1",
"Tracker Hits XZ (x,z) in mm",
193 int(sizexy/5), -sizexy/2, sizexy/2,
194 int(sizez/5), -sizez/2, sizez/2);
200 man->
CreateH2(
"2",
"Tracker Hits YZ (strip,plane)",
202 2*Nplane, 0, Nplane-1);
206 man->
CreateH2(
"2",
"Tracker Hits YZ (x,z) in mm",
207 int(sizexy/5), -sizexy/2, sizexy/2,
208 int(sizez/5), -sizez/2, sizez/2);
void setNtuple(float E, float p, float x, float y, float z)
G4bool SetFirstHistoId(G4int firstId)
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
static GammaRayTelAnalysis * getInstance()
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
void InsertPositionXZ(double x, double z)
G4double GetTKRSizeXY() const
G4int CreateNtuple(const G4String &name, const G4String &title)
G4int GetNbOfTKRLayers() const
G4bool OpenFile(const G4String &fileName="")
G4GLOB_DLL std::ostream G4cout
const GammaRayTelDetectorConstruction * GammaRayTelDetector
G4bool FillNtupleDColumn(G4int id, G4double value)
void InsertPositionYZ(double y, double z)
void EndOfEvent(G4int flag)
static G4RunManager * GetRunManager()
virtual ~GammaRayTelAnalysis()
void InsertHits(int nplane)
G4int GetNbOfTKRTiles() const
G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
GammaRayTelAnalysisMessenger * analysisMessenger
const G4double x[NPOINTSGL]
G4double GetTKRSizeZ() const
G4int GetNbOfTKRStrips() const
G4int CreateNtupleDColumn(const G4String &name)
static GammaRayTelAnalysis * instance
void InsertEnergy(double en)
G4int CreateH2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")