CbmRoot
|
Task for TOF QA. More...
#include <CbmLitTofQa.h>
Public Member Functions | |
CbmLitTofQa () | |
Constructor. More... | |
virtual | ~CbmLitTofQa () |
Destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *opt) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
void | SetOutputDir (const string &dir) |
void | SetPRange (Int_t bins, Int_t min, Int_t max) |
Set momentum range and number of bins for histograms. More... | |
Private Types | |
typedef Bool_t(* | LitTrackAcceptanceFunction) (CbmMCDataArray *mcTracks, Int_t eventNo, Int_t index) |
Private Member Functions | |
void | ReadDataBranches () |
Reads data branches. More... | |
void | FillTrackCategoriesAndAcceptanceFunctions () |
Assign default track categories and track acceptance functions. More... | |
void | CreateHistograms () |
Creates histograms. More... | |
void | ProcessMC (Int_t iEvent) |
void | ProcessGlobalTracks () |
void | ProcessTofHits () |
void | ProcessTofTracks () |
void | FitHistograms () |
CbmLitTofQa (const CbmLitTofQa &) | |
CbmLitTofQa & | operator= (const CbmLitTofQa &) |
Private Attributes | |
Bool_t | fIsFixedBounds |
string | fOutputDir |
Double_t | fPRangeMin |
Double_t | fPRangeMax |
Int_t | fPRangeBins |
CbmHistManager * | fHM |
TClonesArray * | fGlobalTracks |
TClonesArray * | fStsTracks |
TClonesArray * | fStsTrackMatches |
TClonesArray * | fTofHits |
CbmMCDataArray * | fTofPoints |
TClonesArray * | fTofHitsMatches |
TClonesArray * | fTofTracks |
CbmMCDataArray * | fMCTracks |
CbmVertex * | fPrimVertex |
CbmStsKFTrackFitter | fKFFitter |
vector< string > | fTrackCategories |
map< string, LitTrackAcceptanceFunction > | fTrackAcceptanceFunctions |
set< pair< Int_t, Int_t > > | fMCTrackIdForTofHits |
set< pair< Int_t, Int_t > > | fMCTrackIdForTofPoints |
|
private |
Definition at line 131 of file CbmLitTofQa.h.
CbmLitTofQa::CbmLitTofQa | ( | ) |
Constructor.
Definition at line 38 of file CbmLitTofQa.cxx.
References FillTrackCategoriesAndAcceptanceFunctions().
|
virtual |
|
private |
|
private |
Creates histograms.
Definition at line 166 of file CbmLitTofQa.cxx.
References CbmHistManager::Add(), fHM, fPRangeBins, fPRangeMax, fPRangeMin, and fTrackCategories.
Referenced by Init().
|
virtual |
Inherited from FairTask.
Definition at line 74 of file CbmLitTofQa.cxx.
References ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), and ProcessTofTracks().
|
private |
Assign default track categories and track acceptance functions.
Definition at line 128 of file CbmLitTofQa.cxx.
References CbmLitAcceptanceFunction::AllTrackAcceptanceFunction(), CbmLitAcceptanceFunction::AntiProtonTrackAcceptanceFunction(), CbmLitAcceptanceFunction::ElectronTrackAcceptanceFunction(), fTrackAcceptanceFunctions, fTrackCategories, CbmLitAcceptanceFunction::KaonMinusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::KaonPlusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::KaonTrackAcceptanceFunction(), CbmLitAcceptanceFunction::MuonTrackAcceptanceFunction(), CbmLitAcceptanceFunction::NegativeTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PionMinusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PionPlusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PionTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PositiveTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PrimaryTrackAcceptanceFunction(), CbmLitAcceptanceFunction::ProtonTrackAcceptanceFunction(), and CbmLitAcceptanceFunction::SecondaryTrackAcceptanceFunction().
Referenced by CbmLitTofQa().
|
virtual |
Inherited from FairTask.
Definition at line 84 of file CbmLitTofQa.cxx.
References CbmSimulationReport::Create(), fHM, FitHistograms(), fOutputDir, and CbmHistManager::WriteToFile().
|
private |
Definition at line 478 of file CbmLitTofQa.cxx.
References fHM, and CbmHistManager::H2().
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 66 of file CbmLitTofQa.cxx.
References CreateHistograms(), fHM, fKFFitter, CbmStsKFTrackFitter::Init(), and ReadDataBranches().
|
private |
|
private |
Definition at line 305 of file CbmLitTofQa.cxx.
References CbmKFParticleInterface::ExtrapolateTrackToPV(), fGlobalTracks, fHM, fMCTrackIdForTofHits, fMCTracks, fPrimVertex, fStsTrackMatches, fStsTracks, fTofHits, fTofHitsMatches, fTofPoints, fTrackAcceptanceFunctions, fTrackCategories, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmGlobalTrack::GetLength(), CbmMatch::GetMatchedLink(), CbmGlobalTrack::GetStsTrackIndex(), CbmHit::GetTime(), CbmGlobalTrack::GetTofHitIndex(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), min(), and sqrt().
Referenced by Exec().
|
private |
Definition at line 279 of file CbmLitTofQa.cxx.
References fMCTrackIdForTofHits, fMCTrackIdForTofPoints, fTofHits, fTofHitsMatches, fTofPoints, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), and CbmMCDataArray::Size().
Referenced by Exec().
|
private |
Definition at line 414 of file CbmLitTofQa.cxx.
References fHM, fTofHits, fTofHitsMatches, fTofPoints, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmHit::GetTime(), and CbmHistManager::H1().
Referenced by Exec().
|
private |
Definition at line 431 of file CbmLitTofQa.cxx.
References fHM, fMCTracks, fTofHits, fTofHitsMatches, fTofPoints, fTofTracks, fTrackAcceptanceFunctions, fTrackCategories, CbmMCDataArray::Get(), CbmTofTrack::GetDistance(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmTofTrack::GetTofHitIndex(), CbmTofTrack::GetTrackIndex(), CbmTofTrack::GetTrackLength(), CbmTofTrack::GetTrackParameter(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), and sqrt().
Referenced by Exec().
|
private |
Reads data branches.
Definition at line 100 of file CbmLitTofQa.cxx.
References fGlobalTracks, fMCTracks, fPrimVertex, fStsTrackMatches, fStsTracks, fTofHits, fTofHitsMatches, fTofPoints, fTofTracks, CbmMCDataManager::GetObject(), and CbmMCDataManager::InitBranch().
Referenced by Init().
|
inline |
Definition at line 63 of file CbmLitTofQa.h.
References fOutputDir.
|
inline |
Set momentum range and number of bins for histograms.
Definition at line 68 of file CbmLitTofQa.h.
References fPRangeBins, fPRangeMax, fPRangeMin, max(), and min().
|
private |
Definition at line 114 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 111 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), Finish(), FitHistograms(), Init(), ProcessGlobalTracks(), ProcessTofHits(), ProcessTofTracks(), and ~CbmLitTofQa().
|
private |
Definition at line 103 of file CbmLitTofQa.h.
|
private |
Definition at line 125 of file CbmLitTofQa.h.
Referenced by Init().
|
private |
Definition at line 139 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ProcessMC().
|
private |
Definition at line 141 of file CbmLitTofQa.h.
Referenced by ProcessMC().
|
private |
Definition at line 121 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 105 of file CbmLitTofQa.h.
Referenced by Finish(), and SetOutputDir().
|
private |
Definition at line 109 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 108 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 107 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 123 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 116 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 115 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 117 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 119 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 118 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 120 of file CbmLitTofQa.h.
Referenced by ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 135 of file CbmLitTofQa.h.
Referenced by FillTrackCategoriesAndAcceptanceFunctions(), ProcessGlobalTracks(), and ProcessTofTracks().
|
private |
Definition at line 127 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), FillTrackCategoriesAndAcceptanceFunctions(), ProcessGlobalTracks(), and ProcessTofTracks().