**************************************************************************/
/* $Id: $ */
-/* History of cvs commits:
- *
- * $Log$
- *
- *
- */
-
//_________________________________________________________________________
// Class for reading data (ESDs) in order to do prompt gamma
// or other particle identification and correlations
}//Pt and Fidutial cut passed.
}// track status
}// track loop
- if(fDebug > 1) printf("FillInputCTS():: aod entries %d\n", fAODCTS->GetEntries());
+ if(fDebug > 1) printf("FillInputCTS():: aod entries %d\n", fAODCTS->GetEntriesFast());
}
//____________________________________________________________________________
Float_t pos[3] ;
// Double_t * pid = new Double_t[AliPID::kSPECIESN];
- for (Int_t iclus = 0; iclus < caloClusters->GetEntries(); iclus++) {
+ for (Int_t iclus = 0; iclus < caloClusters->GetEntriesFast(); iclus++) {
AliESDCaloCluster * clus = (AliESDCaloCluster *) caloClusters->At(iclus) ;
TLorentzVector momentum ;
clus->GetMomentum(momentum, v);
}//Pt and Fidutial cut passed.
}//esd cluster loop
- if(fDebug > 1) printf("FillInputEMCAL():: aod entries %d\n", fAODEMCAL->GetEntries());
+ if(fDebug > 1) printf("FillInputEMCAL():: aod entries %d\n", fAODEMCAL->GetEntriesFast());
}
Float_t pos[3] ;
Double_t * pid = new Double_t[AliPID::kSPECIESN];
- for (Int_t iclus = 0; iclus < caloClusters->GetEntries(); iclus++) {
+ for (Int_t iclus = 0; iclus < caloClusters->GetEntriesFast(); iclus++) {
AliESDCaloCluster * clus = (AliESDCaloCluster *) caloClusters->At(iclus) ;
TLorentzVector momentum ;
clus->GetMomentum(momentum, v);
}//Pt and Fidutial cut passed.
}//esd cluster loop
- if(fDebug > 1) printf("FillInputPHOS():: aod entries %d\n", fAODPHOS->GetEntries());
+ if(fDebug > 1) printf("FillInputPHOS():: aod entries %d\n", fAODPHOS->GetEntriesFast());
}
//____________________________________________________________________________
void AliCaloTrackESDReader::SetInputEvent(TObject* esd, TObject* aod, TObject* mc) {
// Connect the data pointers
+
+ if(strcmp(esd->GetName(),"AliESDEvent"))
+ AliFatal(Form("Wrong reader, here only ESDs. Input name: %s != AliESDEvent \n",esd->GetName()));
+
SetESD((AliESDEvent*) esd);
SetAOD ((AliAODEvent*) aod);
SetMC((AliMCEvent*) mc);
+
}