CbmRoot
DataTreeCbmInterface Class Reference

#include <DataTreeCbmInterface.h>

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

Public Member Functions

 DataTreeCbmInterface ()
 
 ~DataTreeCbmInterface ()
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *opt)
 
virtual void Finish ()
 
void SetOutputFile (const TString filename)
 
void LoadGeo (const TString &geoFile)
 
void SetKFParticleFinderTOF (const CbmKFParticleFinder *finder)
 
void SetKFParticleFinderMC (const CbmKFParticleFinder *finder)
 

Private Member Functions

void InitInput ()
 
void InitOutput ()
 
void InitOutputTree ()
 
void InitDataTreeEvent ()
 
void ClearEvent ()
 
void ReadEvent ()
 
void ReadPSD ()
 
void ReadTracks ()
 
void LinkSTS ()
 
void ReadTOF ()
 
void ReadMC ()
 
int GetMCTrackMatch (const int idx)
 
void ReadV0 (const int UseMCpid=0)
 
void ReadPsdPrimaryParticles ()
 

Private Attributes

TString fOutputFileName {""}
 
TFile * fTreeFile {nullptr}
 
TTree * fDataTree {nullptr}
 
CbmVertexfPrimVtx {nullptr}
 
FairMCEventHeader * fHeader {nullptr}
 
CbmDigiManagerfDigiMan {nullptr}
 
TClonesArray * flistPSDhit {nullptr}
 
TClonesArray * flistMCtrack {nullptr}
 
TClonesArray * flistSTSRECOtrack {nullptr}
 
TClonesArray * flistSTStrackMATCH {nullptr}
 
TClonesArray * fGlobalTrackArray {nullptr}
 
TClonesArray * fTofHitArray {nullptr}
 
TClonesArray * fTofHitMatchArray {nullptr}
 
TClonesArray * fPsdPointArray {nullptr}
 
DataTreeEvent * fDTEvent {nullptr}
 
int fPsdModules {0}
 
TVector3 fPsdPosition
 
std::map< int, TVector3 > fPsdModulePositions
 
std::vector< int > fMCTrackIDs
 
std::vector< int > fTrackIDs
 
const CbmKFParticleFinderfFinderTOF {nullptr}
 
const CbmKFParticleFinderfFinderMC {nullptr}
 

Detailed Description

Definition at line 37 of file DataTreeCbmInterface.h.

Constructor & Destructor Documentation

◆ DataTreeCbmInterface()

DataTreeCbmInterface::DataTreeCbmInterface ( )

Definition at line 52 of file DataTreeCbmInterface.cxx.

References fDTEvent.

◆ ~DataTreeCbmInterface()

DataTreeCbmInterface::~DataTreeCbmInterface ( )

Definition at line 56 of file DataTreeCbmInterface.cxx.

Member Function Documentation

◆ ClearEvent()

void DataTreeCbmInterface::ClearEvent ( )
private

Definition at line 176 of file DataTreeCbmInterface.cxx.

References fDTEvent, fMCTrackIDs, and fTrackIDs.

Referenced by Exec().

◆ Exec()

void DataTreeCbmInterface::Exec ( Option_t *  opt)
virtual

◆ Finish()

void DataTreeCbmInterface::Finish ( )
virtual

Definition at line 698 of file DataTreeCbmInterface.cxx.

References fDataTree, and fTreeFile.

◆ GetMCTrackMatch()

int DataTreeCbmInterface::GetMCTrackMatch ( const int  idx)
private

Definition at line 279 of file DataTreeCbmInterface.cxx.

References fDTEvent, and i.

◆ Init()

InitStatus DataTreeCbmInterface::Init ( )
virtual

Definition at line 61 of file DataTreeCbmInterface.cxx.

References InitInput(), and InitOutput().

◆ InitDataTreeEvent()

void DataTreeCbmInterface::InitDataTreeEvent ( )
private

Definition at line 145 of file DataTreeCbmInterface.cxx.

References fDTEvent, fPsdModules, and i.

Referenced by Exec().

◆ InitInput()

◆ InitOutput()

void DataTreeCbmInterface::InitOutput ( )
private

Definition at line 142 of file DataTreeCbmInterface.cxx.

References InitOutputTree().

Referenced by Init().

◆ InitOutputTree()

void DataTreeCbmInterface::InitOutputTree ( )
private

Definition at line 151 of file DataTreeCbmInterface.cxx.

References fDataTree, fDTEvent, fOutputFileName, and fTreeFile.

Referenced by InitOutput().

◆ LinkSTS()

void DataTreeCbmInterface::LinkSTS ( )
private

Definition at line 504 of file DataTreeCbmInterface.cxx.

References fDTEvent, fMCTrackIDs, and i.

◆ LoadGeo()

void DataTreeCbmInterface::LoadGeo ( const TString &  geoFile)

Definition at line 68 of file DataTreeCbmInterface.cxx.

References fPsdModulePositions, fPsdModules, fPsdPosition, i, x, and y.

◆ ReadEvent()

void DataTreeCbmInterface::ReadEvent ( )
private

◆ ReadMC()

void DataTreeCbmInterface::ReadMC ( )
private

Definition at line 286 of file DataTreeCbmInterface.cxx.

References fDTEvent, flistMCtrack, fMCTrackIDs, and i.

Referenced by Exec().

◆ ReadPSD()

void DataTreeCbmInterface::ReadPSD ( )
private

◆ ReadPsdPrimaryParticles()

void DataTreeCbmInterface::ReadPsdPrimaryParticles ( )
private

◆ ReadTOF()

◆ ReadTracks()

void DataTreeCbmInterface::ReadTracks ( )
private

◆ ReadV0()

void DataTreeCbmInterface::ReadV0 ( const int  UseMCpid = 0)
private

Definition at line 614 of file DataTreeCbmInterface.cxx.

References fDTEvent, fFinderMC, fFinderTOF, CbmKFParticleFinder::GetTopoReconstructor(), and i.

Referenced by Exec().

◆ SetKFParticleFinderMC()

void DataTreeCbmInterface::SetKFParticleFinderMC ( const CbmKFParticleFinder finder)
inline

Definition at line 54 of file DataTreeCbmInterface.h.

References fFinderMC.

◆ SetKFParticleFinderTOF()

void DataTreeCbmInterface::SetKFParticleFinderTOF ( const CbmKFParticleFinder finder)
inline

Definition at line 51 of file DataTreeCbmInterface.h.

References fFinderTOF.

◆ SetOutputFile()

void DataTreeCbmInterface::SetOutputFile ( const TString  filename)
inline

Definition at line 47 of file DataTreeCbmInterface.h.

References fOutputFileName.

Member Data Documentation

◆ fDataTree

TTree* DataTreeCbmInterface::fDataTree {nullptr}
private

Definition at line 76 of file DataTreeCbmInterface.h.

Referenced by Exec(), Finish(), and InitOutputTree().

◆ fDigiMan

CbmDigiManager* DataTreeCbmInterface::fDigiMan {nullptr}
private

Definition at line 80 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadPSD().

◆ fDTEvent

DataTreeEvent* DataTreeCbmInterface::fDTEvent {nullptr}
private

◆ fFinderMC

const CbmKFParticleFinder* DataTreeCbmInterface::fFinderMC {nullptr}
private

Definition at line 101 of file DataTreeCbmInterface.h.

Referenced by ReadV0(), and SetKFParticleFinderMC().

◆ fFinderTOF

const CbmKFParticleFinder* DataTreeCbmInterface::fFinderTOF {nullptr}
private

Definition at line 100 of file DataTreeCbmInterface.h.

Referenced by ReadV0(), and SetKFParticleFinderTOF().

◆ fGlobalTrackArray

TClonesArray* DataTreeCbmInterface::fGlobalTrackArray {nullptr}
private

Definition at line 85 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadTOF().

◆ fHeader

FairMCEventHeader* DataTreeCbmInterface::fHeader {nullptr}
private

Definition at line 79 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadEvent().

◆ flistMCtrack

TClonesArray* DataTreeCbmInterface::flistMCtrack {nullptr}
private

Definition at line 82 of file DataTreeCbmInterface.h.

Referenced by InitInput(), ReadMC(), and ReadPsdPrimaryParticles().

◆ flistPSDhit

TClonesArray* DataTreeCbmInterface::flistPSDhit {nullptr}
private

Definition at line 81 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadPSD().

◆ flistSTSRECOtrack

TClonesArray* DataTreeCbmInterface::flistSTSRECOtrack {nullptr}
private

Definition at line 83 of file DataTreeCbmInterface.h.

Referenced by InitInput(), ReadTOF(), and ReadTracks().

◆ flistSTStrackMATCH

TClonesArray* DataTreeCbmInterface::flistSTStrackMATCH {nullptr}
private

Definition at line 84 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadTracks().

◆ fMCTrackIDs

std::vector<int> DataTreeCbmInterface::fMCTrackIDs
private

Definition at line 97 of file DataTreeCbmInterface.h.

Referenced by ClearEvent(), LinkSTS(), and ReadMC().

◆ fOutputFileName

TString DataTreeCbmInterface::fOutputFileName {""}
private

Definition at line 74 of file DataTreeCbmInterface.h.

Referenced by InitOutputTree(), and SetOutputFile().

◆ fPrimVtx

CbmVertex* DataTreeCbmInterface::fPrimVtx {nullptr}
private

Definition at line 78 of file DataTreeCbmInterface.h.

Referenced by InitInput(), ReadEvent(), and ReadTracks().

◆ fPsdModulePositions

std::map<int, TVector3> DataTreeCbmInterface::fPsdModulePositions
private

Definition at line 94 of file DataTreeCbmInterface.h.

Referenced by LoadGeo(), and ReadPSD().

◆ fPsdModules

int DataTreeCbmInterface::fPsdModules {0}
private

Definition at line 92 of file DataTreeCbmInterface.h.

Referenced by Exec(), InitDataTreeEvent(), LoadGeo(), ReadEvent(), and ReadPSD().

◆ fPsdPointArray

TClonesArray* DataTreeCbmInterface::fPsdPointArray {nullptr}
private

Definition at line 88 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadPsdPrimaryParticles().

◆ fPsdPosition

TVector3 DataTreeCbmInterface::fPsdPosition
private

Definition at line 93 of file DataTreeCbmInterface.h.

Referenced by LoadGeo(), and ReadPSD().

◆ fTofHitArray

TClonesArray* DataTreeCbmInterface::fTofHitArray {nullptr}
private

Definition at line 86 of file DataTreeCbmInterface.h.

Referenced by InitInput(), and ReadTOF().

◆ fTofHitMatchArray

TClonesArray* DataTreeCbmInterface::fTofHitMatchArray {nullptr}
private

Definition at line 87 of file DataTreeCbmInterface.h.

Referenced by InitInput().

◆ fTrackIDs

std::vector<int> DataTreeCbmInterface::fTrackIDs
private

Definition at line 98 of file DataTreeCbmInterface.h.

Referenced by ClearEvent(), and ReadTracks().

◆ fTreeFile

TFile* DataTreeCbmInterface::fTreeFile {nullptr}
private

Definition at line 75 of file DataTreeCbmInterface.h.

Referenced by Finish(), and InitOutputTree().


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