ROOT logo
AliRoot » PWGHF » VERTEXINGHF » CHARMFLOW » AliAnalysisTaskSEHFv2

class AliAnalysisTaskSEHFv2: public AliAnalysisTaskSE


 AliAnalysisTaskSEHFv2 gives the needed tools for the D
 mesons v2 analysis with event plane method
 Authors: Chiara Bianchin, cbianchi@pd.infn.it,
 Robert Grajcarek, grajcarek@physi.uni-heidelberg.de
 Giacomo Ortona, ortona@to.infn.it
 Carlos Eugenio Perez Lara, carlos.eugenio.perez.lara@cern.ch


Function Members (Methods)

public:
AliAnalysisTaskSEHFv2()
AliAnalysisTaskSEHFv2(const char* name, AliRDHFCuts* rdCuts, Int_t decaychannel)
virtual~AliAnalysisTaskSEHFv2()
virtual voidTTask::Abort()MENU
voidTObject::AbstractMethod(const char* method) const
virtual voidTTask::Add(TTask* task)
virtual voidAliAnalysisTaskSE::AddAODBranch(const char* cname, void* addobj, const char* fname = "")
virtual AliAODEvent*AliAnalysisTaskSE::AODEvent() const
virtual voidTObject::AppendPad(Option_t* option = "")
Bool_tAliAnalysisTask::AreSlotsConnected()
virtual voidTTask::Browse(TBrowser* b)
Bool_tAliAnalysisTask::CheckCircularDeps()
voidAliAnalysisTask::CheckNotify(Bool_t init = kFALSE)
virtual Bool_tAliAnalysisTask::CheckOwnership() const
virtual Bool_tAliAnalysisTask::CheckPostData() const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTTask::CleanTasks()
virtual voidTTask::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
Bool_tAliAnalysisTask::ConnectInput(Int_t islot, AliAnalysisDataContainer* cont)
virtual voidAliAnalysisTaskSE::ConnectInputData(Option_t* option = "")
Bool_tAliAnalysisTask::ConnectOutput(Int_t islot, AliAnalysisDataContainer* cont)
virtual voidTTask::Continue()MENU
virtual voidTNamed::Copy(TObject& named) const
virtual voidAliAnalysisTaskSE::CreateOutputObjects()
virtual const char*AliAnalysisTaskSE::CurrentFileName()
virtual Int_tAliAnalysisTaskSE::DebugLevel() const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual Long64_tAliAnalysisTaskSE::Entry() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual AliESDfriend*AliAnalysisTaskSE::ESDfriend() const
virtual const AliEventTag*AliAnalysisTaskSE::EventTag() const
virtual voidAliAnalysisTaskSE::Exec(Option_t* option)
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTTask::ExecuteTask(Option_t* option = "0")MENU
virtual voidTTask::ExecuteTasks(Option_t* option)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidAliAnalysisTask::FinishTaskOutput()
AliHFAfterBurner*GetAfterBurner() const
voidAliAnalysisTask::GetBranches(const char* type, TString& result) const
Int_tTTask::GetBreakin() const
Int_tTTask::GetBreakout() const
virtual UInt_tAliAnalysisTaskSE::GetCollisionCandidates() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetEventPlaneMethod() const
Float_tGetEventPlanesCompatibility() const
virtual const char*TObject::GetIconName() const
TObject*AliAnalysisTask::GetInputData(Int_t islot) const
AliAnalysisDataSlot*AliAnalysisTask::GetInputSlot(Int_t islot) const
TClass*AliAnalysisTask::GetInputType(Int_t islot) const
TList*TTask::GetListOfTasks() const
Float_tGetLowerMassLimit() const
virtual const char*TNamed::GetName() const
Int_tAliAnalysisTask::GetNinputs() const
Int_tGetNMassBins() const
Int_tAliAnalysisTask::GetNoutputs() const
Int_tGetNTPCSubEvents() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObject*AliAnalysisTask::GetOutputData(Int_t islot) const
AliAnalysisDataSlot*AliAnalysisTask::GetOutputSlot(Int_t islot) const
TClass*AliAnalysisTask::GetOutputType(Int_t islot) const
Float_tGetPhi0Pi(Float_t phi)
TObject*AliAnalysisTask::GetPublishedData() const
virtual TList*AliAnalysisTaskSE::GetQAHistos() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Float_tGetUpperMassLimit() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
Bool_tAliAnalysisTask::HasBranches() const
Bool_tAliAnalysisTask::HasExecuted() const
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidAliAnalysisTaskSE::Init()
virtual AliVEvent*AliAnalysisTaskSE::InputEvent() const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tTTask::IsActive() const
Bool_tAliAnalysisTask::IsChecked() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tAliAnalysisTaskSE::IsEventInBinZero()
virtual Bool_tTTask::IsFolder() const
Bool_tAliAnalysisTask::IsInitialized() const
Bool_tTObject::IsOnHeap() const
Bool_tAliAnalysisTask::IsOutputReady(Int_t islot) const
Bool_tAliAnalysisTask::IsPostEventLoop() const
Bool_tAliAnalysisTask::IsReady() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tAliAnalysisTaskSE::IsStandardAOD() const
Bool_tAliAnalysisTask::IsUsed() const
Bool_tAliAnalysisTask::IsZombie() const
voidAliAnalysisTaskSE::LoadBranches() const
virtual voidLocalInit()
virtual voidTTask::ls(Option_t* option = "*") constMENU
voidTObject::MayNotUse(const char* method) const
virtual AliMCEvent*AliAnalysisTaskSE::MCEvent() const
virtual Bool_tAliAnalysisTaskSE::Notify()
virtual Bool_tAliAnalysisTask::NotifyBinChange()
virtual voidAliAnalysisTaskSE::NotifyRun()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual TTree*AliAnalysisTaskSE::OutputTree() const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
voidAliAnalysisTask::PrintContainers(Option_t* option = "all", Int_t indent = 0) const
virtual voidAliAnalysisTask::PrintTask(Option_t* option = "all", Int_t indent = 0) const
Bool_tAliAnalysisTask::ProducersTouched() const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidAliAnalysisTask::Reset()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual voidAliAnalysisTaskSE::SelectCollisionCandidates(UInt_t offlineTriggerMask = AliVEvent::kMB)
voidSet2TPCEPSubEvents()
voidSet3TPCEPSubEvents()
voidTTask::SetActive(Bool_t active = kTRUE)TOGGLE
voidSetAfterBurner(AliHFAfterBurner* ab)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidAliAnalysisTask::SetBranches(const char* names)
voidTTask::SetBreakin(Int_t breakin = 1)TOGGLE
voidTTask::SetBreakout(Int_t breakout = 1)TOGGLE
voidSetCentralityBinWidthPerMil(Int_t w)
voidAliAnalysisTask::SetChecked(Bool_t flag = kTRUE)
virtual voidAliAnalysisTaskSE::SetDebugLevel(Int_t level)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEtaGapFeatureForEventplaneFromTracks(Bool_t etaGap)
voidSetEventPlaneMethod(Int_t epmethod)
voidSetEventPlanesCompatibility(Float_t comp)
voidSetMassLimits(Float_t range, Int_t pdg)
voidSetMassLimits(Float_t lowlimit, Float_t uplimit)
voidSetMaxCentrality(Int_t maxcentr)
voidSetMinCentrality(Int_t mincentr)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidSetNMassBins(Int_t nbins)
voidSetNTPCSubEvents(Int_t nsub)
static voidTObject::SetObjectStat(Bool_t stat)
voidAliAnalysisTask::SetPostEventLoop(Bool_t flag = kTRUE)
voidSetReadMC(Bool_t readMC = kTRUE)
virtual voidTNamed::SetTitle(const char* title = "")MENU
voidSetTPCEP()
voidSetTPCEPOnly()
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUseAfterBurner(Bool_t ab)
voidAliAnalysisTask::SetUsed(Bool_t flag = kTRUE)
voidSetV0EventPlaneOrder(Int_t n)
voidSetVZEROAEP()
voidSetVZEROCEP()
voidSetVZEROEP()
voidAliAnalysisTask::SetZombie(Bool_t flag = kTRUE)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTerminate(Option_t* option)
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidUserCreateOutputObjects()
virtual voidUserExec(Option_t* option)
virtual voidAliAnalysisTaskSE::UserExecMix(Option_t*)
virtual Bool_tAliAnalysisTaskSE::UserNotify()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidAliAnalysisTaskSE::ConnectMultiHandler()
voidAliAnalysisTask::DefineInput(Int_t islot, TClass* type)
voidAliAnalysisTask::DefineOutput(Int_t islot, TClass* type)
voidAliAnalysisTaskSE::DisconnectMultiHandler()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidAliAnalysisTask::EnableBranch(Int_t islot, const char* bname) const
char*AliAnalysisTask::GetBranchAddress(Int_t islot, const char* branch) const
voidTObject::MakeZombie()
TFile*AliAnalysisTask::OpenFile(Int_t iout, Option_t* option = "RECREATE") const
Bool_tAliAnalysisTask::PostData(Int_t iout, TObject* data, Option_t* option = "")
Bool_tAliAnalysisTask::SetBranchAddress(Int_t islot, const char* branch, void* address) const
private:
AliAnalysisTaskSEHFv2(const AliAnalysisTaskSEHFv2& source)
voidCalculateInvMasses(AliAODRecoDecayHF* d, Float_t*& masses, Int_t& nmasses)
voidFillD02p(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
voidFillDplus(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
voidFillDstar(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
Float_tGetEventPlaneForCandidate(AliAODRecoDecayHF* d, const TVector2* q, AliEventplane* pl, const TVector2* qsub1, const TVector2* qsub2)
AliAnalysisTaskSEHFv2&operator=(const AliAnalysisTaskSEHFv2& source)

Data Members

public:
enum DecChannel { kDplustoKpipi
kD0toKpi
kDstartoKpipi
};
enum EventPlaneMeth { kTPC
kTPCVZERO
kVZERO
kVZEROA
kVZEROC
};
enum AliAnalysisTask::EAnalysisTaskFlags { kTaskUsed
kTaskZombie
kTaskChecked
kTaskPostEventLoop
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tTTask::fActivetrue if task is active
TStringAliAnalysisTask::fBranchNamesList of input branches that need to be loaded for this task
Int_tTTask::fBreakin=1 if a break point set at task extry
Int_tTTask::fBreakout=1 if a break point set at task exit
Int_tAliAnalysisTaskSE::fCurrentRunNumber! Current run number
Int_tAliAnalysisTaskSE::fDebugDebug flag
AliESDfriend*AliAnalysisTaskSE::fESDfriend! ESD friend
Int_tAliAnalysisTaskSE::fEntryCurrent entry in the chain
Bool_tTTask::fHasExecutedTrue if task has executed
TList*AliAnalysisTaskSE::fHistosQA! Output histos for QA
Bool_tAliAnalysisTask::fInitializedTrue if Init() was called
AliVEvent*AliAnalysisTaskSE::fInputEvent! VEvent Input
AliInputEventHandler*AliAnalysisTaskSE::fInputHandler! Input Handler
TObjArray*AliAnalysisTask::fInputsArray of input slots
AliMCEvent*AliAnalysisTaskSE::fMCEvent! MC
AliInputEventHandler*AliAnalysisTaskSE::fMCEventHandler! pointer to MCEventHandler
AliMultiInputEventHandler*AliAnalysisTaskSE::fMultiInputHandler! pointer to multihandler
TStringTNamed::fNameobject identifier
Int_tAliAnalysisTask::fNinputsNumber of inputs
Int_tAliAnalysisTask::fNoutputsNumber of outputs
UInt_tAliAnalysisTaskSE::fOfflineTriggerMaskTask processes collision candidates only
TStringTTask::fOptionOption specified in ExecuteTask
AliAODEvent*AliAnalysisTaskSE::fOutputAOD! AOD out
Bool_t*AliAnalysisTask::fOutputReady[fNoutputs] Flags for output readyness
TObjArray*AliAnalysisTask::fOutputsArray of output slots
TObject*AliAnalysisTask::fPublishedData! published data
Bool_tAliAnalysisTask::fReadyFlag if the task is ready
TList*TTask::fTasksList of Tasks
TStringTNamed::fTitleobject title
TTree*AliAnalysisTaskSE::fTreeAAOD output Tree
static TClonesArray*AliAnalysisTaskSE::fgAODCaloClusters! CaloClusters for replication
static TClonesArray*AliAnalysisTaskSE::fgAODDimuons! Dimuons replication
static AliAODCaloTrigger*AliAnalysisTaskSE::fgAODEMCALTrigger! Emcal Trigger for replication
static AliAODCaloCells*AliAnalysisTaskSE::fgAODEmcalCells! Emcal Cell replication
static TClonesArray*AliAnalysisTaskSE::fgAODFMDClusters! FMDClusters for replication
static AliAODHeader*AliAnalysisTaskSE::fgAODHeader! Header for replication
static TClonesArray*AliAnalysisTaskSE::fgAODHmpidRings! HMPID replication
static TClonesArray*AliAnalysisTaskSE::fgAODJets! Jets for replication
static TClonesArray*AliAnalysisTaskSE::fgAODMCParticles! MC Particles for replicatio
static AliAODCaloTrigger*AliAnalysisTaskSE::fgAODPHOSTrigger! Phos Trigger for replication
static TClonesArray*AliAnalysisTaskSE::fgAODPMDClusters! PMDClusters for replication
static AliAODCaloCells*AliAnalysisTaskSE::fgAODPhosCells! Phos Cell replication
static AliAODTracklets*AliAnalysisTaskSE::fgAODTracklets! Tracklets for replication
static TClonesArray*AliAnalysisTaskSE::fgAODTracks! Tracks for replication
static TClonesArray*AliAnalysisTaskSE::fgAODV0s! V0s for replication
static AliAODVZERO*AliAnalysisTaskSE::fgAODVZERO! VZERO for replication
static TClonesArray*AliAnalysisTaskSE::fgAODVertices! Vertices for replication
static TTask*TTask::fgBeginTaskpointer to task initiator
static TTask*TTask::fgBreakPointpointer to current break point
static AliTOFHeader*AliAnalysisTaskSE::fgTOFHeader! TOFHeader for replication
private:
AliHFAfterBurner*fAfterBurnerAfterburner options
Int_tfCentBinSizePerMilwidth of centrality bins
Int_tfDecChanneldecay channel identifier
Bool_tfEtaGapEta gap feature for Eventplane from tracks; be careful that you do the correct settings in AddTaskEventPlane.C !!!!
Int_tfEventPlaneMethflag to select EP method
Float_tfEventPlanesCompMaximum distance between TPC/VZERO event planes
Float_tfLowmasslimitlower inv mass limit for histos
Int_tfMaxCentrmaximum centrality
Int_tfMinCentrminimum centrality
Int_tfNMassBinsnumber of bins in the mass histograms
Int_tfNPtBinsnumber of pt bins
TList*fOutput! list send on output slot 2
AliRDHFCuts*fRDCutscut values (saved in slot 3)
Bool_tfReadMCflag for access to MC
Int_tfSubEventsSub-events definition for TPC EP
Float_tfUpmasslimitupper inv mass limit for histos
Bool_tfUseAfterBurnerenable afterburning
Int_tfV0EPorderharmonic for VZERO event plane
TH1F*fhEventsInfo! histogram send on output slot 1

Class Charts

Inheritance Chart:
TTask
AliAnalysisTask
AliAnalysisTaskSE
AliAnalysisTaskSEHFv2

Function documentation

AliAnalysisTaskSEHFv2()
 Default constructor
AliAnalysisTaskSEHFv2(const char* name, AliRDHFCuts* rdCuts, Int_t decaychannel)
 standard constructor
~AliAnalysisTaskSEHFv2()
 Destructor
void SetMassLimits(Float_t range, Int_t pdg)
 Set limits for mass spectra plots
void SetMassLimits(Float_t lowlimit, Float_t uplimit)
 Set limits for mass spectra plots
void LocalInit()
 Initialization
void UserCreateOutputObjects()
 Create the output container
void UserExec(Option_t* option)
 Execute analysis for current event:
 heavy flavor candidates association to MC truth
void CalculateInvMasses(AliAODRecoDecayHF* d, Float_t*& masses, Int_t& nmasses)
Calculates all the possible invariant masses for each candidate
NB: the implementation for each candidate is responsibility of the corresponding developer
void FillDplus(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
D+ channel
void FillD02p(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
void FillDstar(AliAODRecoDecayHF* d, TClonesArray* arrayMC, Int_t ptbin, Float_t dphi, const Float_t* masses, Int_t isSel, Int_t icentr, Double_t phiD)
D* channel
void SetEventPlaneMethod(Int_t epmethod)
void SetNTPCSubEvents(Int_t nsub)
Float_t GetPhi0Pi(Float_t phi)
 Sets the phi angle in the range 0-pi
Float_t GetEventPlaneForCandidate(AliAODRecoDecayHF* d, const TVector2* q, AliEventplane* pl, const TVector2* qsub1, const TVector2* qsub2)
 remove autocorrelations
void Terminate(Option_t* option)
 Terminate analysis

AliAnalysisTaskSEHFv2()
  enum SubEvents{kFullTPC,kPosTPC,kNegTPC,kSingleV0Side}; //Sub-events for V0 EP
void SetReadMC(Bool_t readMC = kTRUE)
{fReadMC=readMC;}
void SetNMassBins(Int_t nbins)
{fNMassBins=nbins;}
void SetV0EventPlaneOrder(Int_t n)
void SetMinCentrality(Int_t mincentr)
{fMinCentr=mincentr;}
void SetMaxCentrality(Int_t maxcentr)
{fMaxCentr=maxcentr;}
void SetUseAfterBurner(Bool_t ab)
void SetAfterBurner(AliHFAfterBurner* ab)
void SetEtaGapFeatureForEventplaneFromTracks(Bool_t etaGap)
{fEtaGap = etaGap;}
void SetCentralityBinWidthPerMil(Int_t w)
void Set2TPCEPSubEvents()
void Set3TPCEPSubEvents()
void SetTPCEPOnly()
void SetVZEROEP()
void SetVZEROAEP()
void SetVZEROCEP()
void SetTPCEP()
void SetEventPlanesCompatibility(Float_t comp)
void SetSubEvents(Int_t subev){if(subev>=kFullTPC&&subev<=kSingleV0Side)fSubEvents=subev;}
Int_t GetEventPlaneMethod() const
{return fEventPlaneMeth;}
Int_t GetNTPCSubEvents() const
{return fSubEvents;}
Float_t GetEventPlanesCompatibility() const
Float_t GetUpperMassLimit() const
{return fUpmasslimit;}
Float_t GetLowerMassLimit() const
{return fLowmasslimit;}
Int_t GetNMassBins() const
Float_t GetPhi02Pi(Float_t phi);
{return fNMassBins;}
AliHFAfterBurner * GetAfterBurner() const
{return fAfterBurner;}
AliAnalysisTaskSEHFv2& operator=(const AliAnalysisTaskSEHFv2& source)