CbmRoot
Loading...
Searching...
No Matches
LmvmTask Class Reference

#include <LmvmTask.h>

Inheritance diagram for LmvmTask:
[legend]
Collaboration diagram for LmvmTask:
[legend]

Public Member Functions

 LmvmTask ()
 
virtual ~LmvmTask ()
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *option)
 
template<typename T >
T * InitOrFatal (const std::string &name)
 
void PairSource (const LmvmCand &candP, const LmvmCand &candM, ELmvmAnaStep step, const LmvmKinePar &parRec)
 
void FillPairHists (const LmvmCand &candP, const LmvmCand &candM, const LmvmKinePar &parMc, const LmvmKinePar &parRec, ELmvmAnaStep step)
 
void FillMomHists (const CbmMCTrack *mct, const LmvmCand *cand, ELmvmSrc src, ELmvmAnaStep step)
 
void TrackSource (const LmvmCand &cand, ELmvmAnaStep step, int pdg)
 
void BgPairPdg (const LmvmCand &candP, const LmvmCand &candM, ELmvmAnaStep step)
 
void DoMcTrack ()
 
void DoMcPair ()
 
void FillRichRingNofHits ()
 
bool IsMcTrackAccepted (int mcTrackInd)
 
void RichPmtXY ()
 
void FillTopologyCands ()
 
void FillCands ()
 
void AssignMcToCands (std::vector< LmvmCand > &cands)
 
void AssignMcToTopologyCands (std::vector< LmvmCand > &topoCands)
 
void DifferenceSignalAndBg (const LmvmCand &cand)
 
void InitHists ()
 
double MinvScale (double minv)
 
void AnalyseCandidates ()
 
void AnalyseGlobalTracks ()
 
void CheckMismatches (const CbmGlobalTrack *gTrack, int pdg, bool isElectron, const std::string &ptcl, double weight)
 
void BetaMom (const CbmMCTrack *mct, const CbmGlobalTrack *gTrack, const std::string &ptcl)
 
void CheckTofIdentification (const CbmGlobalTrack *gTrack, const std::string &pidString, double mom, double m2, int pdg, bool isTofEl)
 
void PidVsMom (const CbmGlobalTrack *gTrack, int iGTrack, int pdg, double mom)
 
void CheckGammaConvAndPi0 ()
 
void CheckClosestMvdHit (int mvdStationNum, const std::string &hist, const std::string &histQa)
 
void CheckTopologyCut (ELmvmTopologyCut cut, const std::string &name)
 
void CalculateNofTopologyPairs (const std::string &name, ELmvmSrc src)
 
void MvdCutMcDistance ()
 
void CombinatorialPairs ()
 
void FillCandPidValues (const CbmMCTrack *mcTrack, const LmvmCand &cand, ELmvmAnaStep step)
 
void CheckTofId (const CbmMCTrack *mcTrack, const LmvmCand &cand, ELmvmAnaStep step, int pdg)
 
bool IsInTofPile (double mom, double m2)
 
std::string GetPidString (const CbmMCTrack *mct, const LmvmCand *cand)
 
std::string GetPidString (double vertexMag, int pdg)
 
bool IsInAllDets (const CbmGlobalTrack *gTrack)
 
bool IsPrimary (double vertexMag)
 
virtual void Finish ()
 
 ClassDef (LmvmTask, 1)
 
void SetUseMvd (bool use)
 
void SetWeight (double w)
 
void SetEnergyAndPlutoParticle (const std::string &energy, const std::string &particle)
 
void SetPionMisidLevel (double level)
 

Private Member Functions

 LmvmTask (const LmvmTask &)
 
LmvmTaskoperator= (const LmvmTask &)
 

Private Attributes

FairMCEventHeader * fMCEventHeader = nullptr
 
TClonesArray * fMCTracks = nullptr
 
TClonesArray * fRichRings = nullptr
 
TClonesArray * fRichProj = nullptr
 
TClonesArray * fRichPoints = nullptr
 
TClonesArray * fRichRingMatches = nullptr
 
TClonesArray * fRichHits = nullptr
 
TClonesArray * fGlobalTracks = nullptr
 
TClonesArray * fStsTracks = nullptr
 
TClonesArray * fStsTrackMatches = nullptr
 
TClonesArray * fStsHits = nullptr
 
TClonesArray * fMvdHits = nullptr
 
TClonesArray * fMvdPoints = nullptr
 
TClonesArray * fMvdHitMatches = nullptr
 
TClonesArray * fTrdTracks = nullptr
 
TClonesArray * fTrdHits = nullptr
 
TClonesArray * fTrdTrackMatches = nullptr
 
TClonesArray * fTofHits = nullptr
 
TClonesArray * fTofHitsMatches = nullptr
 
TClonesArray * fTofPoints = nullptr
 
TClonesArray * fTofTracks = nullptr
 
CbmVertexfPrimVertex = nullptr
 
CbmKFVertex fKFVertex
 
bool fUseMvd = false
 
std::vector< LmvmCandfCands
 
std::vector< LmvmCandfCandsTotal
 
std::vector< LmvmCandfSTCands
 
std::vector< LmvmCandfTTCands
 
std::vector< LmvmCandfRTCands
 
double fW = 0.
 
double fPionMisidLevel = -1.
 
int fEventNumber = 0
 
LmvmCuts fCuts
 
LmvmHist fH
 
std::map< int, int > fNofHitsInRingMap
 
double fZ = -44.
 
std::string fParticle = ""
 

Detailed Description

Definition at line 33 of file LmvmTask.h.

Constructor & Destructor Documentation

◆ LmvmTask() [1/2]

LmvmTask::LmvmTask ( )

Definition at line 55 of file LmvmTask.cxx.

◆ ~LmvmTask()

LmvmTask::~LmvmTask ( )
virtual

Definition at line 58 of file LmvmTask.cxx.

◆ LmvmTask() [2/2]

LmvmTask::LmvmTask ( const LmvmTask & )
private

Member Function Documentation

◆ AnalyseCandidates()

◆ AnalyseGlobalTracks()

◆ AssignMcToCands()

◆ AssignMcToTopologyCands()

void LmvmTask::AssignMcToTopologyCands ( std::vector< LmvmCand > & topoCands)

◆ BetaMom()

void LmvmTask::BetaMom ( const CbmMCTrack * mct,
const CbmGlobalTrack * gTrack,
const std::string & ptcl )

◆ BgPairPdg()

void LmvmTask::BgPairPdg ( const LmvmCand & candP,
const LmvmCand & candM,
ELmvmAnaStep step )

Definition at line 1386 of file LmvmTask.cxx.

References fH, LmvmHist::FillH2(), LmvmCand::fMcPdg, and LmvmCand::IsMcSignal().

Referenced by FillPairHists().

◆ CalculateNofTopologyPairs()

◆ CheckClosestMvdHit()

◆ CheckGammaConvAndPi0()

void LmvmTask::CheckGammaConvAndPi0 ( )

◆ CheckMismatches()

◆ CheckTofId()

◆ CheckTofIdentification()

◆ CheckTopologyCut()

void LmvmTask::CheckTopologyCut ( ELmvmTopologyCut cut,
const std::string & name )

◆ ClassDef()

LmvmTask::ClassDef ( LmvmTask ,
1  )

◆ CombinatorialPairs()

void LmvmTask::CombinatorialPairs ( )

◆ DifferenceSignalAndBg()

◆ DoMcPair()

◆ DoMcTrack()

◆ Exec()

◆ FillCandPidValues()

void LmvmTask::FillCandPidValues ( const CbmMCTrack * mcTrack,
const LmvmCand & cand,
ELmvmAnaStep step )

◆ FillCands()

void LmvmTask::FillCands ( )

Definition at line 977 of file LmvmTask.cxx.

References AssignMcToCands(), AssignMcToTopologyCands(), LmvmUtils::CalculateAndSetTrackParams(), fCands, LmvmCand::fChi2Prim, LmvmCand::fChi2Rich, LmvmCand::fChi2Trd, fCuts, LmvmCand::fEventNumber, fEventNumber, fGlobalTracks, LmvmCand::fGTrackInd, LmvmCand::fIsChi2Prim, LmvmCand::fIsElectron, LmvmCand::fIsMvd1Cut, LmvmCand::fIsMvd2Cut, LmvmCand::fIsPtCut, fKFVertex, LmvmCand::fLength, fMCTracks, LmvmCand::fMomentum, LmvmCuts::fMomentumCut, fPionMisidLevel, LmvmCand::fRichInd, fRichProj, fRichRings, LmvmCand::fStsInd, LmvmCand::fStsMcTrackId, fStsTrackMatches, fStsTracks, LmvmCand::fTime, LmvmCand::fTofDist, fTofHits, LmvmCand::fTofInd, LmvmCand::fTofTrackInd, fTofTracks, LmvmCand::fTrdInd, LmvmCand::fTrdLikeEl, LmvmCand::fTrdLikePi, fTrdTracks, fTTCands, fUseMvd, CbmRichRing::GetChi2(), CbmTrack::GetChiSq(), CbmTofTrack::GetDistance(), CbmLink::GetIndex(), CbmGlobalTrack::GetLength(), CbmMatch::GetMatchedLink(), CbmRichRing::GetNDF(), CbmTrack::GetNDF(), CbmMatch::GetNofLinks(), CbmMCTrack::GetPdgCode(), CbmTrdTrack::GetPidLikeEL(), CbmTrdTrack::GetPidLikePI(), CbmGlobalTrack::GetRichRingIndex(), CbmGlobalTrack::GetStsTrackIndex(), CbmHit::GetTime(), CbmGlobalTrack::GetTofHitIndex(), CbmGlobalTrack::GetTrdTrackIndex(), LmvmCuts::IsChi2PrimaryOk(), LmvmUtils::IsElectron(), LmvmUtils::IsElectronMc(), LmvmCuts::IsPtCutOk(), LmvmUtils::IsRichElectron(), LmvmUtils::IsTofElectron(), LmvmUtils::IsTrdElectron(), and richProj.

Referenced by Exec().

◆ FillMomHists()

◆ FillPairHists()

◆ FillRichRingNofHits()

void LmvmTask::FillRichRingNofHits ( )

Definition at line 348 of file LmvmTask.cxx.

References fMCTracks, fNofHitsInRingMap, fRichHits, fRichPoints, CbmMCTrack::GetMotherId(), and CbmHit::GetRefId().

Referenced by Exec().

◆ FillTopologyCands()

◆ Finish()

void LmvmTask::Finish ( )
virtual

Definition at line 1964 of file LmvmTask.cxx.

References CombinatorialPairs(), fH, and LmvmHist::WriteToFile().

◆ GetPidString() [1/2]

string LmvmTask::GetPidString ( const CbmMCTrack * mct,
const LmvmCand * cand )

◆ GetPidString() [2/2]

string LmvmTask::GetPidString ( double vertexMag,
int pdg )

Definition at line 1483 of file LmvmTask.cxx.

References LmvmHist::fGTrackNames, fH, and IsPrimary().

◆ Init()

◆ InitHists()

◆ InitOrFatal()

template<typename T >
T * LmvmTask::InitOrFatal ( const std::string & name)
inline

Definition at line 57 of file LmvmTask.h.

Referenced by Init().

◆ IsInAllDets()

◆ IsInTofPile()

bool LmvmTask::IsInTofPile ( double mom,
double m2 )

Definition at line 653 of file LmvmTask.cxx.

Referenced by CheckTofIdentification().

◆ IsMcTrackAccepted()

bool LmvmTask::IsMcTrackAccepted ( int mcTrackInd)

Definition at line 511 of file LmvmTask.cxx.

References fMCTracks, fNofHitsInRingMap, CbmMCTrack::GetNPoints(), kMvd, kSts, kTof, and kTrd.

Referenced by DoMcPair(), and DoMcTrack().

◆ IsPrimary()

bool LmvmTask::IsPrimary ( double vertexMag)

Definition at line 1958 of file LmvmTask.cxx.

References fZ.

Referenced by AnalyseGlobalTracks(), CheckTofId(), and GetPidString().

◆ MinvScale()

double LmvmTask::MinvScale ( double minv)

◆ MvdCutMcDistance()

◆ operator=()

LmvmTask & LmvmTask::operator= ( const LmvmTask & )
private

◆ PairSource()

◆ PidVsMom()

◆ RichPmtXY()

◆ SetEnergyAndPlutoParticle()

void LmvmTask::SetEnergyAndPlutoParticle ( const std::string & energy,
const std::string & particle )

Definition at line 1976 of file LmvmTask.cxx.

References fParticle, LmvmSimParam::GetWeight(), and SetWeight().

◆ SetPionMisidLevel()

void LmvmTask::SetPionMisidLevel ( double level)
inline

Definition at line 226 of file LmvmTask.h.

References fPionMisidLevel.

◆ SetUseMvd()

void LmvmTask::SetUseMvd ( bool use)
inline

Definition at line 223 of file LmvmTask.h.

References fUseMvd.

◆ SetWeight()

void LmvmTask::SetWeight ( double w)
inline

Definition at line 224 of file LmvmTask.h.

References fW.

Referenced by SetEnergyAndPlutoParticle().

◆ TrackSource()

Member Data Documentation

◆ fCands

◆ fCandsTotal

std::vector<LmvmCand> LmvmTask::fCandsTotal
private

Definition at line 199 of file LmvmTask.h.

Referenced by CombinatorialPairs(), and Exec().

◆ fCuts

LmvmCuts LmvmTask::fCuts
private

◆ fEventNumber

int LmvmTask::fEventNumber = 0
private

Definition at line 211 of file LmvmTask.h.

Referenced by Exec(), and FillCands().

◆ fGlobalTracks

TClonesArray* LmvmTask::fGlobalTracks = nullptr
private

Definition at line 179 of file LmvmTask.h.

Referenced by AnalyseGlobalTracks(), FillCands(), FillTopologyCands(), and Init().

◆ fH

◆ fKFVertex

CbmKFVertex LmvmTask::fKFVertex
private

Definition at line 194 of file LmvmTask.h.

Referenced by CheckMismatches(), Exec(), FillCands(), and FillTopologyCands().

◆ fMCEventHeader

FairMCEventHeader* LmvmTask::fMCEventHeader = nullptr
private

Definition at line 172 of file LmvmTask.h.

Referenced by Init().

◆ fMCTracks

◆ fMvdHitMatches

TClonesArray* LmvmTask::fMvdHitMatches = nullptr
private

Definition at line 185 of file LmvmTask.h.

Referenced by CheckClosestMvdHit(), Init(), and MvdCutMcDistance().

◆ fMvdHits

TClonesArray* LmvmTask::fMvdHits = nullptr
private

Definition at line 183 of file LmvmTask.h.

Referenced by CheckClosestMvdHit(), DifferenceSignalAndBg(), Init(), and MvdCutMcDistance().

◆ fMvdPoints

TClonesArray* LmvmTask::fMvdPoints = nullptr
private

Definition at line 184 of file LmvmTask.h.

Referenced by Init().

◆ fNofHitsInRingMap

std::map<int, int> LmvmTask::fNofHitsInRingMap
private

Definition at line 216 of file LmvmTask.h.

Referenced by DoMcTrack(), FillRichRingNofHits(), and IsMcTrackAccepted().

◆ fParticle

std::string LmvmTask::fParticle = ""
private

Definition at line 220 of file LmvmTask.h.

Referenced by MinvScale(), and SetEnergyAndPlutoParticle().

◆ fPionMisidLevel

double LmvmTask::fPionMisidLevel = -1.
private

Definition at line 209 of file LmvmTask.h.

Referenced by AssignMcToCands(), Exec(), FillCands(), and SetPionMisidLevel().

◆ fPrimVertex

CbmVertex* LmvmTask::fPrimVertex = nullptr
private

Definition at line 193 of file LmvmTask.h.

Referenced by Exec(), and Init().

◆ fRichHits

TClonesArray* LmvmTask::fRichHits = nullptr
private

Definition at line 178 of file LmvmTask.h.

Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().

◆ fRichPoints

TClonesArray* LmvmTask::fRichPoints = nullptr
private

Definition at line 176 of file LmvmTask.h.

Referenced by FillRichRingNofHits(), Init(), and RichPmtXY().

◆ fRichProj

TClonesArray* LmvmTask::fRichProj = nullptr
private

Definition at line 175 of file LmvmTask.h.

Referenced by FillCands(), and Init().

◆ fRichRingMatches

TClonesArray* LmvmTask::fRichRingMatches = nullptr
private

Definition at line 177 of file LmvmTask.h.

Referenced by AssignMcToCands(), CheckMismatches(), and Init().

◆ fRichRings

TClonesArray* LmvmTask::fRichRings = nullptr
private

Definition at line 174 of file LmvmTask.h.

Referenced by FillCands(), FillTopologyCands(), Init(), and IsInAllDets().

◆ fRTCands

std::vector<LmvmCand> LmvmTask::fRTCands
private

Definition at line 205 of file LmvmTask.h.

Referenced by CalculateNofTopologyPairs(), CheckTopologyCut(), and FillTopologyCands().

◆ fSTCands

std::vector<LmvmCand> LmvmTask::fSTCands
private

Definition at line 201 of file LmvmTask.h.

Referenced by CalculateNofTopologyPairs(), CheckTopologyCut(), and FillTopologyCands().

◆ fStsHits

TClonesArray* LmvmTask::fStsHits = nullptr
private

Definition at line 182 of file LmvmTask.h.

Referenced by Init().

◆ fStsTrackMatches

TClonesArray* LmvmTask::fStsTrackMatches = nullptr
private

◆ fStsTracks

TClonesArray* LmvmTask::fStsTracks = nullptr
private

◆ fTofHits

TClonesArray* LmvmTask::fTofHits = nullptr
private

◆ fTofHitsMatches

TClonesArray* LmvmTask::fTofHitsMatches = nullptr
private

Definition at line 190 of file LmvmTask.h.

Referenced by AssignMcToCands(), CheckMismatches(), CheckTofIdentification(), and Init().

◆ fTofPoints

TClonesArray* LmvmTask::fTofPoints = nullptr
private

Definition at line 191 of file LmvmTask.h.

Referenced by AssignMcToCands(), CheckMismatches(), CheckTofIdentification(), and Init().

◆ fTofTracks

TClonesArray* LmvmTask::fTofTracks = nullptr
private

Definition at line 192 of file LmvmTask.h.

Referenced by CheckTofIdentification(), FillCands(), and Init().

◆ fTrdHits

TClonesArray* LmvmTask::fTrdHits = nullptr
private

Definition at line 187 of file LmvmTask.h.

◆ fTrdTrackMatches

TClonesArray* LmvmTask::fTrdTrackMatches = nullptr
private

Definition at line 188 of file LmvmTask.h.

Referenced by AssignMcToCands(), CheckMismatches(), and Init().

◆ fTrdTracks

TClonesArray* LmvmTask::fTrdTracks = nullptr
private

Definition at line 186 of file LmvmTask.h.

Referenced by FillCands(), FillTopologyCands(), Init(), and IsInAllDets().

◆ fTTCands

std::vector<LmvmCand> LmvmTask::fTTCands
private

Definition at line 203 of file LmvmTask.h.

Referenced by CalculateNofTopologyPairs(), CheckTopologyCut(), and FillCands().

◆ fUseMvd

bool LmvmTask::fUseMvd = false
private

◆ fW

◆ fZ

double LmvmTask::fZ = -44.
private

Definition at line 218 of file LmvmTask.h.

Referenced by InitHists(), and IsPrimary().


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