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

Task for Event based vertex reconstruction. More...

#include <CbmEventVertexDca.h>

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

Public Member Functions

 CbmEventVertexDca ()=default
 
 ~CbmEventVertexDca ()=default
 
InitStatus Init ()
 
void Exec (Option_t *)
 
void FinishTask ()
 
void SetVertexFinder (std::shared_ptr< CbmDcaVertexFinder >)
 
void SetCutMap (CbmCutMap *map)
 Set the cut map for analysis.
 
void UserAlignment (const std::map< int32_t, std::vector< double > > &user_mat)
 User defined sensor translations.
 
virtual void DrawResults ()
 Virtual function to draw analysis results.
 

Protected Member Functions

void LoadSetup ()
 Load the STS setup and fill the map with XYZ boundaries for each STS setup element. It maps the first z strip for each module depending on the size of the sensor.
 
void SaveToFile ()
 It write all mapped objects to the FairRunAna sink file.
 
 ClassDef (CbmStsAnaBase, 1)
 

Protected Attributes

uint entry_ {0}
 
std::unique_ptr< TFile > fReportFile
 
std::unordered_set< int32_t > fAddressBook
 
std::map< std::string, std::unique_ptr< TGraphErrors > > fG1D
 
std::map< std::string, std::unique_ptr< TH1D > > fH1D
 
std::map< std::string, std::unique_ptr< TH2D > > fH2D
 
std::map< std::string, std::shared_ptr< TH2D > > fH2DShared
 
std::map< std::string, std::unique_ptr< TCanvas > > fCanvas
 
int nb_sts_station_ {8}
 
std::unordered_map< int32_t, std::vector< double > > fStsGeoInfo
 
std::map< int32_t, std::vector< double > > fUserAlignment
 
std::unordered_map< int32_t, int > fFirstZStrip
 
CbmCutMapfAnalysisCuts {nullptr}
 
int fRunId {-1}
 

Private Member Functions

void BookHistograms ()
 
void CheckVertex ()
 
void ProcessEvent (CbmEvent *)
 Process an Cbm events It filters event based on the provided CbmCutMap.
 
void ProcessGlobalTrack (CbmGlobalTrack *)
 Process an Global tracks It filters the tracks based on the provided CbmCutMap.
 
 ClassDef (CbmEventVertexDca, 1)
 

Private Attributes

std::shared_ptr< CbmDcaVertexFinderfVertexFinder
 
bool input_has_mc {false}
 
std::vector< CbmGlobalTrack * > fGlbTrks
 
TClonesArray * fMCTrkArray {nullptr}
 
TClonesArray * fCbmEvtArray {nullptr}
 
TClonesArray * fGlbTrkArray {nullptr}
 
TClonesArray * fStsTrkArray {nullptr}
 
TClonesArray * fRchTrkArray {nullptr}
 
TClonesArray * fMchTrkArray {nullptr}
 
TClonesArray * fTrdTrkArray {nullptr}
 
TClonesArray * fTofTrkArray {nullptr}
 
TClonesArray * fStsHitArray {nullptr}
 
TClonesArray * fStsCluArray {nullptr}
 

Detailed Description

Task for Event based vertex reconstruction.

The current approach is to average the PCA of multiple pair of tracks. Therfore the vertex found, is a primary vertex approximation.

Definition at line 35 of file CbmEventVertexDca.h.

Constructor & Destructor Documentation

◆ CbmEventVertexDca()

CbmEventVertexDca::CbmEventVertexDca ( )
default

Referenced by ClassDef().

◆ ~CbmEventVertexDca()

CbmEventVertexDca::~CbmEventVertexDca ( )
default

Member Function Documentation

◆ BookHistograms()

void CbmEventVertexDca::BookHistograms ( )
private

◆ CheckVertex()

void CbmEventVertexDca::CheckVertex ( )
private

◆ ClassDef() [1/2]

CbmEventVertexDca::ClassDef ( CbmEventVertexDca ,
1  )
private

References CbmEventVertexDca().

◆ ClassDef() [2/2]

CbmStsAnaBase::ClassDef ( CbmStsAnaBase ,
1  )
protectedinherited

References CbmStsAnaBase().

◆ DrawResults()

virtual void CbmStsAnaBase::DrawResults ( )
inlinevirtualinherited

Virtual function to draw analysis results.

Reimplemented in CbmStsTimeCal.

Definition at line 65 of file CbmStsAnaBase.h.

◆ Exec()

void CbmEventVertexDca::Exec ( Option_t * )

◆ FinishTask()

void CbmEventVertexDca::FinishTask ( )

Definition at line 157 of file CbmEventVertexDca.cxx.

References CbmStsAnaBase::SaveToFile().

◆ Init()

◆ LoadSetup()

◆ ProcessEvent()

void CbmEventVertexDca::ProcessEvent ( CbmEvent * evt)
private

Process an Cbm events It filters event based on the provided CbmCutMap.

Definition at line 227 of file CbmEventVertexDca.cxx.

References CheckVertex(), CbmStsAnaBase::fAnalysisCuts, fGlbTrkArray, CbmStsAnaBase::fH1D, CbmEvent::GetIndex(), CbmEvent::GetNofData(), kGlobalTrack, and ProcessGlobalTrack().

Referenced by Exec().

◆ ProcessGlobalTrack()

◆ SaveToFile()

void CbmStsAnaBase::SaveToFile ( )
protectedinherited

◆ SetCutMap()

void CbmStsAnaBase::SetCutMap ( CbmCutMap * map)
inherited

Set the cut map for analysis.

Parameters
cutMapPointer to the CbmCutMap object.

Definition at line 21 of file CbmStsAnaBase.cxx.

References fAnalysisCuts.

◆ SetVertexFinder()

void CbmEventVertexDca::SetVertexFinder ( std::shared_ptr< CbmDcaVertexFinder > vtx_finder)

Definition at line 354 of file CbmEventVertexDca.cxx.

References fVertexFinder.

◆ UserAlignment()

void CbmStsAnaBase::UserAlignment ( const std::map< int32_t, std::vector< double > > & user_mat)
inlineinherited

User defined sensor translations.

Parameters
user_matInput translations.

Definition at line 60 of file CbmStsAnaBase.h.

References fUserAlignment.

Member Data Documentation

◆ entry_

◆ fAddressBook

◆ fAnalysisCuts

◆ fCanvas

std::map<std::string, std::unique_ptr<TCanvas> > CbmStsAnaBase::fCanvas
protectedinherited

Definition at line 75 of file CbmStsAnaBase.h.

◆ fCbmEvtArray

TClonesArray* CbmEventVertexDca::fCbmEvtArray {nullptr}
private

Definition at line 54 of file CbmEventVertexDca.h.

Referenced by Exec(), and Init().

◆ fFirstZStrip

std::unordered_map<int32_t, int> CbmStsAnaBase::fFirstZStrip
protectedinherited

Definition at line 82 of file CbmStsAnaBase.h.

Referenced by LoadSetup().

◆ fG1D

std::map<std::string, std::unique_ptr<TGraphErrors> > CbmStsAnaBase::fG1D
protectedinherited

◆ fGlbTrkArray

TClonesArray* CbmEventVertexDca::fGlbTrkArray {nullptr}
private

Definition at line 55 of file CbmEventVertexDca.h.

Referenced by Exec(), Init(), and ProcessEvent().

◆ fGlbTrks

std::vector<CbmGlobalTrack*> CbmEventVertexDca::fGlbTrks
private

Definition at line 51 of file CbmEventVertexDca.h.

Referenced by CheckVertex(), Init(), and ProcessGlobalTrack().

◆ fH1D

◆ fH2D

◆ fH2DShared

std::map<std::string, std::shared_ptr<TH2D> > CbmStsAnaBase::fH2DShared
protectedinherited

Definition at line 74 of file CbmStsAnaBase.h.

Referenced by CbmEventVertexDca::BookHistograms(), and SaveToFile().

◆ fMchTrkArray

TClonesArray* CbmEventVertexDca::fMchTrkArray {nullptr}
private

Definition at line 58 of file CbmEventVertexDca.h.

Referenced by Init(), and ProcessGlobalTrack().

◆ fMCTrkArray

TClonesArray* CbmEventVertexDca::fMCTrkArray {nullptr}
private

Definition at line 53 of file CbmEventVertexDca.h.

Referenced by CheckVertex(), and Init().

◆ fRchTrkArray

TClonesArray* CbmEventVertexDca::fRchTrkArray {nullptr}
private

Definition at line 57 of file CbmEventVertexDca.h.

Referenced by Init(), and ProcessGlobalTrack().

◆ fReportFile

std::unique_ptr<TFile> CbmStsAnaBase::fReportFile
protectedinherited

Definition at line 69 of file CbmStsAnaBase.h.

Referenced by CbmStsTimeCal::DrawResults(), and CbmStsTimeCal::Init().

◆ fRunId

int CbmStsAnaBase::fRunId {-1}
protectedinherited

Definition at line 86 of file CbmStsAnaBase.h.

Referenced by CbmStsTimeCal::CbmStsTimeCal(), and CbmStsTimeCal::Init().

◆ fStsCluArray

TClonesArray* CbmEventVertexDca::fStsCluArray {nullptr}
private

Definition at line 62 of file CbmEventVertexDca.h.

Referenced by Init().

◆ fStsGeoInfo

◆ fStsHitArray

TClonesArray* CbmEventVertexDca::fStsHitArray {nullptr}
private

Definition at line 61 of file CbmEventVertexDca.h.

Referenced by Init().

◆ fStsTrkArray

TClonesArray* CbmEventVertexDca::fStsTrkArray {nullptr}
private

Definition at line 56 of file CbmEventVertexDca.h.

Referenced by Init(), and ProcessGlobalTrack().

◆ fTofTrkArray

TClonesArray* CbmEventVertexDca::fTofTrkArray {nullptr}
private

Definition at line 60 of file CbmEventVertexDca.h.

Referenced by Init(), and ProcessGlobalTrack().

◆ fTrdTrkArray

TClonesArray* CbmEventVertexDca::fTrdTrkArray {nullptr}
private

Definition at line 59 of file CbmEventVertexDca.h.

Referenced by Init(), and ProcessGlobalTrack().

◆ fUserAlignment

std::map<int32_t, std::vector<double> > CbmStsAnaBase::fUserAlignment
protectedinherited

Definition at line 80 of file CbmStsAnaBase.h.

Referenced by UserAlignment().

◆ fVertexFinder

std::shared_ptr<CbmDcaVertexFinder> CbmEventVertexDca::fVertexFinder
private

Definition at line 47 of file CbmEventVertexDca.h.

Referenced by BookHistograms(), CheckVertex(), and SetVertexFinder().

◆ input_has_mc

bool CbmEventVertexDca::input_has_mc {false}
private

Definition at line 49 of file CbmEventVertexDca.h.

Referenced by BookHistograms(), CheckVertex(), and Init().

◆ nb_sts_station_

int CbmStsAnaBase::nb_sts_station_ {8}
protectedinherited

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