13 #if !defined(__CINT__) || defined(__MAKECINT__) 19 #include <TClonesArray.h> 20 #include <Riostream.h> 38 TH1F* hE =
new TH1F(
"hEmcalHits",
"Hits energy distribution in EMCAL", 100, 0., 10.) ;
40 TH1I* hM =
new TH1I(
"hEmcalHitsMul",
"Hits multiplicity distribution in EMCAL", 500, 0., 10000) ;
43 TH1I * dA =
new TH1I(
"hEmcalDigits",
"Digits amplitude distribution in EMCAL", 500, 0, 5000) ;
45 TH1I * dM =
new TH1I(
"hEmcalDigitsMul",
"Digits multiplicity distribution in EMCAL", 500, 0, 1000) ;
48 TH1F * sE =
new TH1F(
"hEmcalSDigits",
"SDigits energy distribution in EMCAL", 200, 0, 1000) ;
50 TH1I * sM =
new TH1I(
"hEmcalSDigitsMul",
"SDigits multiplicity distribution in EMCAL", 500, 0, 1000) ;
53 TH1F * cE =
new TH1F(
"hEmcalRecPoints",
"RecPoints energy distribution in EMCAL", 100, 0, 20) ;
55 TH1I * cM =
new TH1I(
"hEmcalRecPointsMul",
"RecPoints multiplicity distribution in EMCAL", 500, 0, 1000) ;
60 cout<<
"Can not instatiate the Run Loader"<<endl;
81 TClonesArray *hits = 0;
83 TClonesArray *sdigits = emcalLoader->
SDigits();
85 TClonesArray *digits = emcalLoader->
Digits();
96 TTree *treeH = emcalLoader->
TreeH();
100 Int_t nTrack = treeH->GetEntries();
101 TBranch * branchH = treeH->GetBranch(
"EMCAL");
102 branchH->SetAddress(&hits);
105 for (Int_t iTrack = 0; iTrack < nTrack; iTrack++)
107 branchH->GetEntry(iTrack);
108 Int_t nHit = hits->GetEntriesFast();
109 for(Int_t ihit = 0; ihit< nHit;ihit++)
116 cout<<
"Hit Info "<<hit->
GetId()<<
" ELoss "<<hit->
GetEnergy()<<endl;
128 sM->Fill(sdigits->GetEntries());
129 for(Int_t isdig = 0; isdig< sdigits->GetEntries();isdig++)
140 else printf(
"No Sdigits available\n");
147 dM->Fill(digits->GetEntries());
148 for(Int_t idig = 0; idig< digits->GetEntries();idig++)
158 else printf(
"No digits available\n");
161 TTree *treeR = emcalLoader->
TreeR();
162 TBranch * branchR = treeR->GetBranch(
"EMCALECARP");
163 branchR->SetAddress(&clusters);
164 branchR->GetEntry(0);
168 cM->Fill(clusters->GetEntries());
169 for(Int_t iclu = 0; iclu< clusters->GetEntries();iclu++)
179 else printf(
"No recpoints available\n");
251 TCanvas *chits =
new TCanvas(
"chits",
"Hits",20,20,800,400);
258 TCanvas *cdig =
new TCanvas(
"cdig",
"Digits",20,40,800,400);
266 TCanvas *csdig =
new TCanvas(
"csdig",
"SDigits",20,60,800,400);
273 TCanvas *cclu =
new TCanvas(
"cclu",
"Clusters",20,60,800,400);
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
static const TString & GetDefaultEventFolderName()
Int_t LoadSDigits(Option_t *detectors="all", Option_t *opt="READ")
Int_t LoadDigits(Option_t *detectors="all", Option_t *opt="READ")
AliLoader * GetDetectorLoader(const char *detname)
virtual Float_t GetEnergy() const
Give access to hits, digits, recpoints arrays and OCDB.
static AliRunLoader * Open(const char *filename="galice.root", const char *eventfoldername=AliConfig::GetDefaultEventFolderName(), Option_t *option="READ")
Int_t LoadRecPoints(Option_t *detectors="all", Option_t *opt="READ")
Int_t GetEvent(Int_t evno)
Int_t LoadHits(Option_t *detectors="all", Option_t *opt="READ")
Float_t GetEnergy(void) const
Float_t GetAmplitude() const