// loop over events
for (Int_t i=nFirst;i<nLast;i++) {
- fReader->FillMomentumArray(i);
+ fReader->FillMomentumArray();
fLeading->FindLeading(fReader);
fReader->GetGenJets(fGenJets);
}
-Bool_t AliJetFinder::ProcessEvent(Long64_t entry)
+Bool_t AliJetFinder::ProcessEvent()
{
//
// Process one event
//
- Int_t debug = fReader->GetReaderHeader()->GetDebug();
- if (debug > 0) printf("<<<<< Processing Event %5d >>>>> \n", (Int_t) entry);
-
- Bool_t ok = fReader->FillMomentumArray(entry);
+ Bool_t ok = fReader->FillMomentumArray();
if (!ok) return kFALSE;
// Leading particles
void AliJetFinder::AddJet(AliAODJet p)
{
-// Add new jet to the list
+ // Add new jet to the list
new ((*fAODjets)[fNAODjets++]) AliAODJet(p);
}
// Connect to the AOD
fAODjets = aod->GetJets();
}
+
+void AliJetFinder::ConnectAODNonStd(AliAODEvent* aod,const char *bname)
+{
+
+ fAODjets = dynamic_cast<TClonesArray*>(aod->FindListObject(bname));
+ // how is this is reset? Cleared?
+}