12 #if !defined(__CINT__) || defined(__MAKECINT__) 15 #include <Riostream.h> 18 #include <TParticle.h> 35 cout<<
"Can not instantiate the Run Loader"<<endl;
42 cout<<
"Number of events "<<maxevent<<endl;
45 for ( Int_t iEvent=0; iEvent<maxevent; iEvent++)
49 cout <<
" ======> Event " << iEvent <<
" "<<rl->
GetEventNumber() <<endl ;
54 cout <<
"# tracks in runloader " << sta->
GetNtrack()
55 <<
" # primaries in runloader " << sta->
GetNprimary()
59 for (Int_t iprim=0; iprim<sta->
GetNprimary() ; iprim++)
61 TParticle * primary=sta->
Particle(iprim);
63 Float_t phi = primary->Phi()*TMath::RadToDeg();
65 if ( TMath::Abs(primary->Eta()) < 0.7 &&
66 ( (phi >= 80 && phi <= 187) || (phi >= 260 && phi <= 327) ) &&
67 ( primary->GetStatusCode() == 1 || primary->GetStatusCode() == 21 ) &&
68 primary->GetPdgCode() == 22 && primary->Pt() > 3 )
72 <<
"; pdg "<<primary->GetPdgCode()
73 <<
"; status"<<primary->GetStatusCode()
74 <<
"; Energy "<<primary->Energy()
75 <<
"; pT "<<primary->Pt()
77 <<
"; Eta "<<primary->Eta()
Int_t GetEventNumber() const
static const TString & GetDefaultEventFolderName()
static AliRunLoader * Open(const char *filename="galice.root", const char *eventfoldername=AliConfig::GetDefaultEventFolderName(), Option_t *option="READ")
Int_t GetNprimary() const
virtual Int_t GetNtrack() const
Int_t GetNumberOfEvents()
Int_t GetEvent(Int_t evno)
TParticle * Particle(Int_t id, Bool_t useInEmbedding=kFALSE)
Int_t LoadKinematics(Option_t *option="READ")