X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=JETAN%2FAliFastJetFinder.cxx;fp=JETAN%2FAliFastJetFinder.cxx;h=6e05228c647180eb18ab2ddb958a70f2552d4944;hb=287697fc85da371afd9b6392d05f247ab889cfb8;hp=16ee13efb02a229caaa24f18dcb9748c947bd1e7;hpb=e501585f74c2f123d339e18f06a98d475e88d810;p=u%2Fmrichter%2FAliRoot.git diff --git a/JETAN/AliFastJetFinder.cxx b/JETAN/AliFastJetFinder.cxx index 16ee13efb02..6e05228c647 100644 --- a/JETAN/AliFastJetFinder.cxx +++ b/JETAN/AliFastJetFinder.cxx @@ -66,8 +66,8 @@ ClassImp(AliFastJetFinder) AliFastJetFinder::AliFastJetFinder(): AliJetFinder(), - fInputFJ(0), - fJetBkg(0) + fInputFJ(new AliFastJetInput()), + fJetBkg(new AliJetBkg()) { // Constructor } @@ -77,6 +77,8 @@ AliFastJetFinder::AliFastJetFinder(): AliFastJetFinder::~AliFastJetFinder() { // destructor + delete fInputFJ; fInputFJ = 0; + delete fJetBkg; fJetBkg = 0; } //______________________________________________________________________________ @@ -403,6 +405,41 @@ void AliFastJetFinder::InitTask(TChain *tree) } + +Bool_t AliFastJetFinder::ProcessEvent() +{ + // + // Process one event + // from meomntum array + + Bool_t ok = fReader->FillMomentumArray(); + + if (!ok) return kFALSE; + fInputFJ->SetHeader(fHeader); + fInputFJ->SetReader(fReader); + fInputFJ->FillInput(); + // Jets + FindJets(); + + fJetBkg->SetHeader(fHeader); + fJetBkg->SetReader(fReader); + /* + fJetBkg->SetFastJetInput(fInputFJ); + Double_t bkg1=fJetBkg->BkgFastJet(); + Double_t bkg2=fJetBkg->BkgChargedFastJet(); + Double_t bkg3=fJetBkg->BkgFastJetCone(fAODjets); + Double_t bkg4=fJetBkg->BkgRemoveJetLeading(fAODjets); + + fAODEvBkg->SetBackground(0,bkg1); + fAODEvBkg->SetBackground(1,bkg2); + fAODEvBkg->SetBackground(2,bkg3); + fAODEvBkg->SetBackground(3,bkg4); + */ + Reset(); + return kTRUE; + +} + Bool_t AliFastJetFinder::ProcessEvent2() { //