#include "AliESDEvent.h"
#include "AliESDfriend.h"
-
ClassImp(AliESDHandler)
//______________________________________________________________________________
fesdf(NULL),
fTreeEF(NULL),
fFileEF(NULL),
- fFileName("AliESDfriends_v2.root")
+ fFileName("AliESDfriends_v1.root"),
+ fIsEventSelectedForFriends(kFALSE)
{
+
// default constructor
}
fesdf(NULL),
fTreeEF(NULL),
fFileEF(NULL),
- fFileName("AliESDfriends_v2.root")
+ fFileName("AliESDfriends_v1.root"),
+ fIsEventSelectedForFriends(kFALSE)
{
// constructor with name and title
// proof
// Merging via files. Need to access analysis manager via interpreter.
gROOT->ProcessLine(Form("AliAnalysisManager::GetAnalysisManager()->OpenProofFile(\"%s\", \"RECREATE\");", fFileName.Data()));
- gROOT->ProcessLine(Form("AliAnalysisManager::GetAnalysisManager()->GetCommonOutputContainer()->SetFile((TFile*)0x%lx);", gFile));
+ gROOT->ProcessLine(Form("AliAnalysisManager::GetAnalysisManager()->GetCommonOutputContainer()->SetFile((TFile*)0x%p);", gFile));
fFileEF = gFile;
} else {
// local and grid
FillTree();
// resetting
- fesdf->~AliESDfriend();
+ if (fesdf) fesdf->~AliESDfriend();
new(fesdf) AliESDfriend();
return kTRUE;
}
//
// Fill the ESD Tree
//
-
- AliDebug(2,Form("number of friend tracks = %d\n",fesdf->GetNumberOfTracks()));
-
+ if (fIsEventSelectedForFriends){
+ AliDebug(2,Form("number of friend tracks = %d\n",fesdf->GetNumberOfTracks()));
+ }
+ else {
+ fesdf->SetSkipBit(kTRUE);
+ }
+ AliDebug(2,Form("friend = %p",fesdf));
fFileEF->cd();
fTreeEF->Fill();
}
-