12 #if !defined(__CINT__) || defined(__MAKECINT__) 15 #include <Riostream.h> 16 #include <TClonesArray.h> 17 #include <TGeoManager.h> 39 cout<<
"Can not instatiate the Run Loader"<<endl;
46 TGeoManager::Import(
"geometry.root");
57 if (geom == 0) cout<<
"Did not get geometry from EMCALLoader"<<endl;
65 cout<<
"Number of events "<<maxevent<<endl;
69 TClonesArray *hits = 0;
71 for (Int_t iEvent=0; iEvent<maxevent; iEvent++)
86 cout <<
" ======> Event " << iEvent << endl;
91 TTree *treeH = emcalLoader->
TreeH();
94 printf(
"TreeH not available!\n");
99 Int_t nTrack = treeH->GetEntries();
100 TBranch * branchH = treeH->GetBranch(
"EMCAL");
101 branchH->SetAddress(&hits);
103 for (Int_t iTrack = 0; iTrack < nTrack; iTrack++)
105 branchH->GetEntry(iTrack);
108 Int_t nHit = hits->GetEntriesFast();
109 for(Int_t ihit = 0; ihit < nHit;ihit++)
115 cout<<
"Hit pointer 0x0"<<endl;
123 cout<<
"Hit ID "<<
id<<
" ELoss "<<elos;
132 iIphi, iIeta,iphi,ieta);
136 cout<<
"; SModule "<<iSupMod<<
"; Cell Eta "<<ieta<<
"; Cell Phi "<<iphi<<endl;
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
static const TString & GetDefaultEventFolderName()
AliLoader * GetDetectorLoader(const char *detname)
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")
void GetCellPhiEtaIndexInSModule(Int_t nSupMod, Int_t nModule, Int_t nIphi, Int_t nIeta, Int_t &iphi, Int_t &ieta) const
Bool_t GetCellIndex(Int_t absId, Int_t &nSupMod, Int_t &nModule, Int_t &nIphi, Int_t &nIeta) const
virtual AliEMCALGeometry * GetGeometry() const
Int_t GetNumberOfEvents()
Base Class for EMCAL description.
Int_t GetEvent(Int_t evno)
Int_t LoadHits(Option_t *detectors="all", Option_t *opt="READ")
AliDetector * GetDetector(const char *name) const
Float_t GetEnergy(void) const
Float_t GetTime(void) const
EMCal geometry, singleton.
AliRun * GetAliRun() const