46 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Starting Init of HypGe Gamma Ana" << endl;
49 FairRootManager* ioman = FairRootManager::Instance();
51 cout <<
"-E- PndEmcHitProducer::Init: "
52 <<
"RootManager not instantiated!" << endl;
57 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Getting FairRootManager finished" << endl;
60 fMcTr = (TClonesArray*) ioman->GetObject(
"MCTrack");
62 fHypGe = (TClonesArray*) ioman->GetObject(
"HypGePoint");
66 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Getting input arrays finished" << endl;
69 fName = ioman->GetInFile()->GetName();
72 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Full input file name with path: " <<
fName << endl;
73 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Chopping first " <<
fName.Last(
'/')+1 <<
" chars"<< endl;
77 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"File name: " <<
fName<< endl;
80 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"File name extraction finished" << endl;
84 fgeom = (TGeoManager*)gROOT->FindObject(
"FAIRGeom");
86 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Found GeoManager" << endl;
90 hNHits =
new TH1D(
"hNHits",
"Polar angle of primary neutrons interacting with the crystals",180, 90,180);
91 hNHits->SetXTitle(
"#Theta [#circ]");
92 hNHits->SetYTitle(
"Counts / 0.5 #circ");
95 hCrystalHit =
new TH1D(
"hCrystalHit",
"Hits per Crystal",2,0,2);
98 hCrystalHit->GetXaxis()->SetBinLabel(1,
"Crystal 30 cm");
99 hCrystalHit->GetXaxis()->SetBinLabel(2,
"Crystal 90 cm");
102 hNeutronOrigin =
new TH1D(
"hNeutronOrigin",
"Origin of Neutrons",5,0,5);
112 hCrystalOrigin =
new TH2D(
"hCrystalOrigin",
"Crystal -Neutron Origin - Correlation",2,0,2,5,0,5);
124 hNeutronEkin =
new TH1D(
"hNeutronEkin",
"E_{kin} of neutrons;E_{kin} of neutrons [MeV]; Counts", 200,0,20);
127 hNeutronEkinOrigin =
new TH2D(
"hNeutronEkinOrigin",
"E_{kin} -Neutron Origin - Correlation;E_{kin} of neutrons [MeV]; Neutron Origin",200,0,20,5,0,5);
136 hNeutronEnergyLoss =
new TH1D(
"hNeutronEnergyLoss",
"Energy loss of neutrons inside a crystal;Energy loss of neutrons [MeV]; Counts", 2000,0,2);
141 hAllParticlesGe =
new TH1D(
"hAllParticlesGe",
"Particles interaction in the crystals;PDG Code of particle; Counts", 2e4,-1e4,1e4);
143 hAllParticlesCrystal1 =
new TH1D(
"hAllParticlesCrystal1",
"Particles interaction in the first crystal (30 cm);PDG Code of particle; Counts", 5000,-2500,2500);
145 hAllParticlesCrystal2 =
new TH1D(
"hAllParticlesCrystal2",
"Particles interaction in the second crystal (90 cm);PDG Code of particle; Counts", 5000,-2500,2500);
147 hAllParticlesPiezo =
new TH1D(
"hAllParticlesPiezo",
"Particles interaction in the piezo;PDG Code of particle; Counts", 2e4,-1e4,1e4);
149 hAllParticlesSiPm1 =
new TH1D(
"hAllParticlesSiPm1",
"Particles interaction in the first SiPm (60 cm);PDG Code of particle; Counts", 5000,-2500,2500);
151 hAllParticlesSiPm2 =
new TH1D(
"hAllParticlesSiPm2",
"Particles interaction in the second SiPm (30 cm);PDG Code of particle; Counts", 5000,-2500,2500);
154 hEkinAllParticles =
new TH2D(
"hEkinAllParticles",
"E_{kin} - Particle - Correlation;E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
166 hEkinAllParticlesCrystal1 =
new TH2D(
"hEkinAllParticlesCrystal1",
"E_{kin} - Particle - Correlation (crystal1);E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
178 hEkinAllParticlesCrystal2 =
new TH2D(
"hEkinAllParticlesCrystal2",
"E_{kin} - Particle - Correlation (Crystal2);E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
190 hEkinAllParticlesPiezo =
new TH2D(
"hEkinAllParticlesPiezo",
"E_{kin} - Particle - Correlation (Piezo);E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
202 hEkinAllParticlesSiPm1 =
new TH2D(
"hEkinAllParticlesSiPm1",
"E_{kin} - Particle - Correlation (SiPm1);E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
214 hEkinAllParticlesSiPm2 =
new TH2D(
"hEkinAllParticlesSiPm2",
"E_{kin} - Particle - Correlation (SiPm2);E_{kin} of particles [MeV]; particle",200,0,200,9,1,10);
226 hGammaEkinOrigin =
new TH2D(
"hGammaEkinOrigin",
"E_{kin} -#gamma Origin - Correlation;E_{kin} of neutrons [MeV]; Gamma Origin",200,0,20,5,0,5);
236 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Histogram creation finished" << endl;
245 cout <<
"HypGe COSYBackgroundSim Ana:\tNumber of Events to analyze: "<<
NumberOfEvents << endl;
248 cout <<
"HypGe COSYBackgroundSim Ana:\t" <<
"Init of HypGe COSYBackgroundSim Ana finished succesfully" << endl;
TH2D * hEkinAllParticlesCrystal1
TH1D * hAllParticlesPiezo
TH2D * hEkinAllParticlesPiezo
TH2D * hEkinAllParticlesSiPm1
TH1D * hAllParticlesSiPm1
TH2D * hEkinAllParticlesCrystal2
TH2D * hNeutronEkinOrigin
TH1D * hAllParticlesCrystal2
TH2D * hEkinAllParticlesSiPm2
TH1D * hAllParticlesCrystal1
TH1D * hAllParticlesSiPm2
TH1D * hNeutronEnergyLoss