CbmRoot
|
Task for TOF QA. More...
#include <CbmLitTofQa.h>
Public Member Functions | |
CbmLitTofQa () | |
Constructor. | |
virtual | ~CbmLitTofQa () |
Destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *opt) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
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. | |
Private Types | |
typedef Bool_t(*) | LitTrackAcceptanceFunction(CbmMCDataArray *mcTracks, Int_t eventNo, Int_t index) |
Private Member Functions | |
void | ReadDataBranches () |
Reads data branches. | |
void | FillTrackCategoriesAndAcceptanceFunctions () |
Assign default track categories and track acceptance functions. | |
void | CreateHistograms () |
Creates histograms. | |
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 |
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 135 of file CbmLitTofQa.h.
CbmLitTofQa::CbmLitTofQa | ( | ) |
Constructor.
Definition at line 48 of file CbmLitTofQa.cxx.
References FillTrackCategoriesAndAcceptanceFunctions().
|
virtual |
|
private |
|
private |
Creates histograms.
Definition at line 164 of file CbmLitTofQa.cxx.
References CbmHistManager::Add(), fHM, fPRangeBins, fPRangeMax, fPRangeMin, and fTrackCategories.
Referenced by Init().
|
virtual |
Inherited from FairTask.
Definition at line 85 of file CbmLitTofQa.cxx.
References ProcessMC(), ProcessTofHits(), and ProcessTofTracks().
|
private |
Assign default track categories and track acceptance functions.
Definition at line 141 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 96 of file CbmLitTofQa.cxx.
References CbmSimulationReport::Create(), fHM, FitHistograms(), fOutputDir, and CbmHistManager::WriteToFile().
|
private |
Definition at line 386 of file CbmLitTofQa.cxx.
References fHM, and CbmHistManager::H2().
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 77 of file CbmLitTofQa.cxx.
References CreateHistograms(), fHM, and ReadDataBranches().
|
private |
|
private |
Definition at line 234 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(), and sqrt().
|
private |
Definition at line 209 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 323 of file CbmLitTofQa.cxx.
References fHM, fTofHits, fTofHitsMatches, fTofPoints, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmHit::GetTime(), CbmHit::GetZ(), and CbmHistManager::H1().
Referenced by Exec().
|
private |
Definition at line 342 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(), CbmHit::GetZ(), CbmHistManager::H1(), and sqrt().
Referenced by Exec().
|
private |
Reads data branches.
Definition at line 113 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 68 of file CbmLitTofQa.h.
References fOutputDir.
|
inline |
Set momentum range and number of bins for histograms.
Definition at line 73 of file CbmLitTofQa.h.
References fPRangeBins, fPRangeMax, fPRangeMin, max(), and min().
|
private |
Definition at line 120 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 117 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), Finish(), FitHistograms(), Init(), ProcessGlobalTracks(), ProcessTofHits(), ProcessTofTracks(), and ~CbmLitTofQa().
|
private |
Definition at line 109 of file CbmLitTofQa.h.
|
private |
Definition at line 140 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 127 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 111 of file CbmLitTofQa.h.
Referenced by Finish(), and SetOutputDir().
|
private |
Definition at line 115 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 114 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 113 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 129 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 122 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 121 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), and ReadDataBranches().
|
private |
Definition at line 123 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 125 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 124 of file CbmLitTofQa.h.
Referenced by ProcessGlobalTracks(), ProcessMC(), ProcessTofHits(), ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 126 of file CbmLitTofQa.h.
Referenced by ProcessTofTracks(), and ReadDataBranches().
|
private |
Definition at line 137 of file CbmLitTofQa.h.
Referenced by FillTrackCategoriesAndAcceptanceFunctions(), ProcessGlobalTracks(), and ProcessTofTracks().
|
private |
Definition at line 131 of file CbmLitTofQa.h.
Referenced by CreateHistograms(), FillTrackCategoriesAndAcceptanceFunctions(), ProcessGlobalTracks(), and ProcessTofTracks().