AliPhysics  781d0c7 (781d0c7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskDmesonJetsDetectorResponse Class Reference

Analysis task used to build a detector response for D meson jets. More...

#include <AliAnalysisTaskDmesonJetsDetectorResponse.h>

Inheritance diagram for AliAnalysisTaskDmesonJetsDetectorResponse:

Classes

class  AliD0MatchInfoSummary
 Lightweight class that encapsulates matching between reconstructed and generated D0 mesons. More...
 
class  AliDmesonMatchInfoSummary
 Lightweight class that encapsulates matching between reconstructed and generated D mesons. More...
 
class  AliDStarMatchInfoSummary
 Lightweight class that encapsulates matching between reconstructed and generated D* mesons. More...
 
class  ResponseEngine
 Analysis engine to produce detector response matrix in the D meson jet analysis. More...
 

Public Member Functions

 AliAnalysisTaskDmesonJetsDetectorResponse ()
 This is the default constructor, used for ROOT I/O purposes. More...
 
 AliAnalysisTaskDmesonJetsDetectorResponse (const char *name, Int_t nOutputTrees=2)
 
virtual ~AliAnalysisTaskDmesonJetsDetectorResponse ()
 
void SetFindRecoJetsForLostDMesons (Bool_t b)
 
virtual void UserCreateOutputObjects ()
 Creates the output containers. More...
 
virtual void ExecOnce ()
 
virtual Bool_t Run ()
 
virtual Bool_t FillHistograms ()
 
- Public Member Functions inherited from AliAnalysisTaskDmesonJets
 AliAnalysisTaskDmesonJets ()
 This is the default constructor, used for ROOT I/O purposes. More...
 
 AliAnalysisTaskDmesonJets (const char *name, Int_t nOutputTrees=2)
 
virtual ~AliAnalysisTaskDmesonJets ()
 This is the standard destructor. More...
 
AnalysisEngineAddAnalysisEngine (ECandidateType_t type, EMCMode_t bkgMode, EJetType_t jettype, Double_t jetradius, TString cutfname="")
 
AnalysisEngineAddAnalysisEngine (ECandidateType_t type, EMCMode_t bkgMode, const AliHFJetDefinition &jetDef, TString cutfname="")
 
std::list< AnalysisEngine >
::iterator 
FindAnalysisEngine (const AnalysisEngine &eng)
 
void SetShowPositionD (Bool_t b=kTRUE)
 
void SetShowInvMass (Bool_t b=kTRUE)
 
void SetShow2ProngInvMass (Bool_t b=kTRUE)
 
void SetShowSoftPionPt (Bool_t b=kTRUE)
 
void SetShowDeltaR (Bool_t b=kTRUE)
 
void SetShowDeltaEta (Bool_t b=kTRUE)
 
void SetShowDeltaPhi (Bool_t b=kTRUE)
 
void SetShowPositionJet (Bool_t b=kTRUE)
 
void SetShowJetConstituents (Bool_t b=kTRUE)
 
void SetApplyKinematicCuts (Bool_t b)
 
void SetOutputType (EOutputType_t b)
 
- Public Member Functions inherited from AliAnalysisTaskEmcalLight
 AliAnalysisTaskEmcalLight ()
 
 AliAnalysisTaskEmcalLight (const char *name, Bool_t histo=kFALSE)
 
virtual ~AliAnalysisTaskEmcalLight ()
 
AliParticleContainerAddParticleContainer (const char *n)
 
AliTrackContainerAddTrackContainer (const char *n)
 
AliMCParticleContainerAddMCParticleContainer (const char *n)
 
AliClusterContainerAddClusterContainer (const char *n)
 
void AdoptParticleContainer (AliParticleContainer *cont)
 
void AdoptTrackContainer (AliTrackContainer *cont)
 
void AdoptMCParticleContainer (AliMCParticleContainer *cont)
 
void AdoptClusterContainer (AliClusterContainer *cont)
 
AliParticleContainerGetParticleContainer (Int_t i=0) const
 
AliParticleContainerGetParticleContainer (const char *name) const
 
AliClusterContainerGetClusterContainer (Int_t i=0) const
 
AliClusterContainerGetClusterContainer (const char *name) const
 
AliMCParticleContainerGetMCParticleContainer (Int_t i=0) const
 
AliMCParticleContainerGetMCParticleContainer (const char *name) const
 
AliTrackContainerGetTrackContainer (Int_t i=0) const
 
AliTrackContainerGetTrackContainer (const char *name) const
 
void RemoveParticleContainer (Int_t i=0)
 
void RemoveClusterContainer (Int_t i=0)
 
void SetCaloCellsName (const char *n)
 
void SetCaloTriggerPatchInfoName (const char *n)
 
void SetCaloTriggersName (const char *n)
 
void SetCentralityEstimator (const char *c)
 
void SetIsPythia (Bool_t i)
 
void SetForceBeamType (EBeamType_t f)
 
void SetUseNewCentralityEstimation (Bool_t b)
 
void SetMakeGeneralHistograms (Bool_t g)
 
void SetNeedEmcalGeom (Bool_t n)
 
void SetNCentBins (Int_t n)
 
void SetTriggerSelectionBitMap (UInt_t t)
 
void SetCentRange (Double_t min, Double_t max)
 
void SetVzRange (Double_t min, Double_t max)
 
void SetZvertexDiffValue (Double_t cut)
 
void SetMinPtTrack (Double_t min)
 
void SetMinNTrack (Int_t min)
 
void SetMinPtTrackInEmcal (Double_t min)
 
void SetPtHardBin (Int_t pt)
 
void AddAcceptedTriggerClass (const char *trigClass)
 
void AddRejectedTriggerClass (const char *trigClass)
 
void ClearAcceptedTriggerClasses ()
 
void ClearRejectedTriggerClasses ()
 

Protected Member Functions

virtual void SetOutputTypeInternal (EOutputType_t b)
 
Int_t PostDataFromResponseEngine (const ResponseEngine &eng)
 
- Protected Member Functions inherited from AliAnalysisTaskDmesonJets
AliRDHFCutsLoadDMesonCutsFromFile (TString cutfname, TString cutsname)
 
Int_t PostDataFromAnalysisEngine (const AnalysisEngine &eng)
 
- Protected Member Functions inherited from AliAnalysisTaskEmcalLight
void SetRejectionReasonLabels (TAxis *axis)
 
void AddObjectToEvent (TObject *obj, Bool_t attempt=kFALSE)
 
TClonesArray * GetArrayFromEvent (const char *name, const char *clname=0)
 
EBeamType_t GetBeamType ()
 
Bool_t PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard)
 
Bool_t IsTrackInEmcalAcceptance (AliVParticle *part, Double_t edges=0.9) const
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
Bool_t UserNotify ()
 
virtual Bool_t FillGeneralHistograms ()
 
virtual Bool_t IsEventSelected ()
 
virtual Bool_t RetrieveEventObjects ()
 

Protected Attributes

Bool_t fFindRecoJetsForLostDMesons
 If switched on, looks for reconstructed jets even when the D meson was lost. More...
 
std::map< ECandidateType_t,
ResponseEngine
fResponseEngines
 ! Response engines More...
 
- Protected Attributes inherited from AliAnalysisTaskDmesonJets
std::list< AnalysisEnginefAnalysisEngines
 Array of analysis parameters. More...
 
UInt_t fEnabledAxis
 Use bit defined in EAxis_t to enable axis in the THnSparse. More...
 
EOutputType_t fOutputType
 Output type: none, TTree or THnSparse. More...
 
THistManager fHistManager
 Histogram manager. More...
 
Bool_t fApplyKinematicCuts
 Apply jet kinematic cuts. More...
 
Int_t fNOutputTrees
 Maximum number of output trees. More...
 
AliAODEventfAodEvent
 ! AOD event More...
 
AliFJWrapperfFastJetWrapper
 ! Fastjet wrapper More...
 
- Protected Attributes inherited from AliAnalysisTaskEmcalLight
EBeamType_t fForceBeamType
 forced beam type More...
 
Bool_t fGeneralHistograms
 whether or not it should fill some general histograms More...
 
Bool_t fCreateHisto
 whether or not create histograms More...
 
Bool_t fNeedEmcalGeom
 whether or not the task needs the emcal geometry More...
 
Int_t fNcentBins
 how many centrality bins More...
 
Bool_t fUseNewCentralityEstimation
 Use new centrality estimation (for 2015 data) More...
 
Bool_t fIsPythia
 if it is a PYTHIA production More...
 
TString fCaloCellsName
 name of calo cell collection More...
 
TString fCaloTriggersName
 name of calo triggers collection More...
 
TString fCaloTriggerPatchInfoName
 trigger patch info array name More...
 
TString fCentEst
 name of the centrality estimator More...
 
TObjArray fParticleCollArray
 particle/track collection array More...
 
TObjArray fClusterCollArray
 cluster collection array More...
 
UInt_t fTriggerSelectionBitMap
 trigger selection bit map More...
 
Double_t fMinCent
 min centrality for event selection More...
 
Double_t fMaxCent
 max centrality for event selection More...
 
Double_t fMinVz
 min vertex for event selection More...
 
Double_t fMaxVz
 max vertex for event selection More...
 
Double_t fZvertexDiff
 upper limit for distance between primary and SPD vertex More...
 
Double_t fMinPtTrack
 cut on track pt in event selection More...
 
Int_t fMinNTrack
 minimum nr of tracks in event with pT>fTrackPtCut More...
 
Double_t fMinPtTrackInEmcal
 min pt track in emcal More...
 
Int_t fSelectPtHardBin
 select one pt hard bin for analysis More...
 
TObjArray fAcceptedTriggerClasses
 list of accepted trigger classes More...
 
TObjArray fRejectedTriggerClasses
 list of accepted trigger classes More...
 
Bool_t fLocalInitialized
 !whether or not the task has been already initialized More...
 
EDataType_t fDataType
 !data type (ESD or AOD) More...
 
AliEMCALGeometry * fGeom
 !emcal geometry More...
 
AliVCaloCells * fCaloCells
 !cells More...
 
AliVCaloTrigger * fCaloTriggers
 !calo triggers More...
 
TClonesArray * fTriggerPatchInfo
 !trigger patch info array More...
 
Double_t fCent
 !event centrality More...
 
Int_t fCentBin
 !event centrality bin More...
 
Double_t fEPV0
 !event plane V0 More...
 
Double_t fEPV0A
 !event plane V0A More...
 
Double_t fEPV0C
 !event plane V0C More...
 
Double_t fVertex [3]
 !event vertex More...
 
Double_t fVertexSPD [3]
 !event Svertex More...
 
Int_t fNVertCont
 !event vertex number of contributors More...
 
Int_t fNVertSPDCont
 !event SPD vertex number of contributors More...
 
ULong_t fFiredTriggerBitMap
 !bit map of fired triggers More...
 
TString fFiredTriggerClasses
 !trigger classes fired by the current event More...
 
EBeamType_t fBeamType
 !event beam type More...
 
AliGenPythiaEventHeader * fPythiaHeader
 !event Pythia header More...
 
Double_t fPtHard
 !event pt hard More...
 
Int_t fPtHardBin
 !event pt hard bin More...
 
Int_t fNTrials
 !event trials More...
 
Float_t fXsection
 !x-section from pythia header More...
 
TListfOutput
 !output list More...
 
TH1fHistEventCount
 !incoming and selected events More...
 
TH1fHistTrialsAfterSel
 !total number of trials per pt hard bin after selection More...
 
TH1fHistEventsAfterSel
 !total number of events per pt hard bin after selection More...
 
TProfile * fHistXsectionAfterSel
 !x section from pythia header More...
 
TH1fHistTrials
 !trials from pyxsec.root More...
 
TH1fHistEvents
 !total number of events per pt hard bin More...
 
TProfile * fHistXsection
 !x section from pyxsec.root More...
 
TH1fHistPtHard
 !pt hard distribution More...
 
TH1fHistCentrality
 !event centrality distribution More...
 
TH1fHistZVertex
 !z vertex position More...
 
TH1fHistEventPlane
 !event plane distribution More...
 
TH1fHistEventRejection
 !book keep reasons for rejecting event More...
 
TH1fHistTriggerClasses
 !number of events in each trigger class More...
 

Private Member Functions

 AliAnalysisTaskDmesonJetsDetectorResponse (const AliAnalysisTaskDmesonJetsDetectorResponse &source)
 
AliAnalysisTaskDmesonJetsDetectorResponseoperator= (const AliAnalysisTaskDmesonJetsDetectorResponse &source)
 

Additional Inherited Members

- Public Types inherited from AliAnalysisTaskDmesonJets
enum  EOutputType_t { kNoOutput, kTreeOutput, kTHnOutput }
 
enum  ECandidateType_t { kD0toKpi, kDstartoKpipi, kD0toKpiLikeSign }
 
enum  EMCMode_t { kNoMC, kSignalOnly, kBackgroundOnly, kMCTruth }
 
enum  EMesonOrigin_t {
  kUnknownQuark = BIT(0), kFromDown = BIT(1), kFromUp = BIT(2), kFromStrange = BIT(3),
  kFromCharm = BIT(4), kFromBottom = BIT(5), kFromTop = BIT(6), kFromGluon = BIT(7)
}
 
enum  EMesonDecayChannel_t { kAnyDecay = 0, kUnknownDecay = BIT(0), kDecayD0toKpi = BIT(1), kDecayDStartoKpipi = BIT(2) }
 
enum  EAxis_t {
  kPositionD = BIT(0), kInvMass = BIT(1), k2ProngInvMass = BIT(2), kSoftPionPt = BIT(3),
  kDeltaR = BIT(4), kDeltaEta = BIT(5), kDeltaPhi = BIT(6), kPositionJet = BIT(7),
  kJetConstituents = BIT(8)
}
 
typedef AliJetContainer::EJetType_t EJetType_t
 
typedef AliJetContainer::EJetAlgo_t EJetAlgo_t
 
typedef
AliJetContainer::ERecoScheme_t 
ERecoScheme_t
 
- Public Types inherited from AliAnalysisTaskEmcalLight
enum  EBeamType_t { kNA = -1, kpp = 0, kAA = 1, kpA = 2 }
 Switch for the beam type. More...
 
enum  EDataType_t { kAOD = 0, kESD = 1 }
 Switch for the data type. More...
 
- Static Protected Member Functions inherited from AliAnalysisTaskDmesonJets
static const char * GetHFEventRejectionReasonLabel (UInt_t &bitmap)
 
static void CalculateMassLimits (Double_t range, Int_t pdg, Int_t nbins, Double_t &minMass, Double_t &maxMass)
 
- Static Protected Member Functions inherited from AliAnalysisTaskEmcalLight
static void GetEtaPhiDiff (const AliVTrack *t, const AliVCluster *v, Double_t &phidiff, Double_t &etadiff)
 
static Byte_t GetTrackType (const AliVTrack *t)
 
static Byte_t GetTrackType (const AliAODTrack *aodTrack, UInt_t filterBit1, UInt_t filterBit2)
 
static Double_t DeltaPhi (Double_t phia, Double_t phib, Double_t rMin=-TMath::Pi()/2, Double_t rMax=3 *TMath::Pi()/2)
 
static Double_tGenerateFixedBinArray (Int_t n, Double_t min, Double_t max)
 
static void GenerateFixedBinArray (Int_t n, Double_t min, Double_t max, Double_t *array)
 
static Double_t GetParallelFraction (AliVParticle *part1, AliVParticle *part2)
 
static Double_t GetParallelFraction (const TVector3 &vect1, AliVParticle *part2)
 
- Static Protected Attributes inherited from AliAnalysisTaskEmcalLight
static Double_t fgkEMCalDCalPhiDivide = 4.
 phi value used to distinguish between DCal and EMCal More...
 

Detailed Description

Analysis task used to build a detector response for D meson jets.

This task derives from AliAnalysisTaskDmesonJets. Most of the analysis is performed there. This task only takes care of matching detector level D meson jets with generator level. The matching is done using the method MatchToMC of AliAODRecoDecayHF2Prong.

The main output is stored in a THnSparse histogram or in a TTree.

Author
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University
Date
June 9, 2016

Definition at line 34 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonJetsDetectorResponse::AliAnalysisTaskDmesonJetsDetectorResponse ( )

This is the default constructor, used for ROOT I/O purposes.

Definition at line 326 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

AliAnalysisTaskDmesonJetsDetectorResponse::AliAnalysisTaskDmesonJetsDetectorResponse ( const char *  name,
Int_t  nOutputTrees = 2 
)

This is the standard named constructor.

Parameters
nameName of the task

Definition at line 337 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

virtual AliAnalysisTaskDmesonJetsDetectorResponse::~AliAnalysisTaskDmesonJetsDetectorResponse ( )
inlinevirtual

Definition at line 167 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliAnalysisTaskDmesonJetsDetectorResponse::AliAnalysisTaskDmesonJetsDetectorResponse ( const AliAnalysisTaskDmesonJetsDetectorResponse source)
private

Member Function Documentation

void AliAnalysisTaskDmesonJetsDetectorResponse::ExecOnce ( )
virtual

Does some specific initializations for the analysis engines, then calls the base class ExecOnce() method.

Reimplemented from AliAnalysisTaskDmesonJets.

Definition at line 389 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::FillHistograms ( )
virtual

Fill the histograms.

Returns
Always kTRUE

Reimplemented from AliAnalysisTaskDmesonJets.

Definition at line 405 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

AliAnalysisTaskDmesonJetsDetectorResponse& AliAnalysisTaskDmesonJetsDetectorResponse::operator= ( const AliAnalysisTaskDmesonJetsDetectorResponse source)
private
Int_t AliAnalysisTaskDmesonJetsDetectorResponse::PostDataFromResponseEngine ( const ResponseEngine eng)
protected

Post the tree of an response engine in the data slot (if the tree exists and the data slot has been assigned)

Parameters
engConstant reference to a response engine
Returns
-1 if unsuccessful, an integer number corresponding to the data slot if successful

Definition at line 438 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Referenced by FillHistograms(), and UserCreateOutputObjects().

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::Run ( )
virtual

Run the analysis

Returns
kTRUE on success

Reimplemented from AliAnalysisTaskDmesonJets.

Definition at line 397 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

void AliAnalysisTaskDmesonJetsDetectorResponse::SetFindRecoJetsForLostDMesons ( Bool_t  b)
inline

Definition at line 169 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

void AliAnalysisTaskDmesonJetsDetectorResponse::SetOutputTypeInternal ( EOutputType_t  b)
protectedvirtual

This method overrides the base class method and forbids changing the output type

Parameters
bOutput type (none, tree, thn)

Reimplemented from AliAnalysisTaskDmesonJets.

Definition at line 423 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

void AliAnalysisTaskDmesonJetsDetectorResponse::UserCreateOutputObjects ( )
virtual

Creates the output containers.

Reimplemented from AliAnalysisTaskDmesonJets.

Definition at line 346 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Member Data Documentation

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::fFindRecoJetsForLostDMesons
protected

If switched on, looks for reconstructed jets even when the D meson was lost.

Definition at line 182 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by FillHistograms(), and SetFindRecoJetsForLostDMesons().

std::map<ECandidateType_t, ResponseEngine> AliAnalysisTaskDmesonJetsDetectorResponse::fResponseEngines
protected

! Response engines

Definition at line 183 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by FillHistograms(), and UserCreateOutputObjects().


The documentation for this class was generated from the following files: