BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFHCalReconstructor Class Reference

Class for BmnFHCalEvent reconstruction (creation) from BmnFHCalDigi {Data} or BmnFHCalDigit {Sim}. More...

#include <BmnFHCalReconstructor.h>

Inheritance diagram for BmnFHCalReconstructor:
Collaboration diagram for BmnFHCalReconstructor:

Public Member Functions

 BmnFHCalReconstructor (bool isExp, bool isGlobalCoordinates)
 ~BmnFHCalReconstructor ()
virtual InitStatus Init ()
void ParseGeometry ()
void SetRecoCutsFile (TString reco_cuts_file)
void ParseCuts ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 BmnFHCalReconstructor (bool isExp, bool isGlobalCoordinates)
 ~BmnFHCalReconstructor ()
virtual InitStatus Init ()
void ParseGeometry ()
void SetRecoCutsFile (TString reco_cuts_file)
void ParseCuts ()
virtual void Exec (Option_t *opt)
virtual void Finish ()
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
Public Member Functions inherited from BmnTask
 BmnTask ()
 Default constructor.
 BmnTask (const char *name, Int_t iVerbose=1)
 Standard constructor.
virtual ~BmnTask ()
 Destroy the BmnTask object.
 BmnTask (const BmnTask &)=delete
BmnTask & operator= (const BmnTask &)=delete
 BmnTask ()
 Default constructor.
 BmnTask (const char *name, Int_t iVerbose=1)
 Standard constructor.
virtual ~BmnTask ()
 Destroy the BmnTask object.
 BmnTask (const BmnTask &)=delete
BmnTask & operator= (const BmnTask &)=delete

Private Member Functions

std::vector< TObject * > GetSelectedDigiVector (TString formulaString)
void MatchMCTracks ()
std::vector< TObject * > GetSelectedDigiVector (TString formulaString)
void MatchMCTracks ()

Private Attributes

FairRootManager * fpFairRootMgr = nullptr
TClonesArray * fArrayOfDigits = nullptr
TClonesArray * fArrayOfPoints = nullptr
std::vector< TObject * > fSelectedDigiVector
BmnFHCalEvent * fBmnFHCalEvent = nullptr
TString fRecoCutsFile
TString fSelectionString = "(1)"
bool fIsExp
bool fIsGlobal
bool fDoMatchMC = false
float fworkTime

Detailed Description

Version
1.0

Definition at line 29 of file BmnFHCalReconstructor.h.

Constructor & Destructor Documentation

◆ BmnFHCalReconstructor() [1/2]

BmnFHCalReconstructor::BmnFHCalReconstructor ( bool isExp,
bool isGlobalCoordinates )

Definition at line 15 of file BmnFHCalReconstructor.cxx.

References fDoMatchMC, fIsExp, and fIsGlobal.

Referenced by MatchMCTracks().

Here is the caller graph for this function:

◆ ~BmnFHCalReconstructor() [1/2]

BmnFHCalReconstructor::~BmnFHCalReconstructor ( )

Definition at line 30 of file BmnFHCalReconstructor.cxx.

References fBmnFHCalEvent.

◆ BmnFHCalReconstructor() [2/2]

BmnFHCalReconstructor::BmnFHCalReconstructor ( bool isExp,
bool isGlobalCoordinates )

◆ ~BmnFHCalReconstructor() [2/2]

BmnFHCalReconstructor::~BmnFHCalReconstructor ( )

Member Function Documentation

◆ Exec() [1/2]

void BmnFHCalReconstructor::Exec ( Option_t * opt)
virtual

Definition at line 140 of file BmnFHCalReconstructor.cxx.

References fBmnFHCalEvent, fDoMatchMC, fIsExp, fSelectionString, fworkTime, BmnFHCalDigit::GetModuleId(), BmnFHCalDigit::GetSectionId(), GetSelectedDigiVector(), BmnAbstractDigit::GetSignal(), MatchMCTracks(), TStopwatch::RealTime(), TStopwatch::Start(), and TStopwatch::Stop().

Here is the call graph for this function:

◆ Exec() [2/2]

virtual void BmnFHCalReconstructor::Exec ( Option_t * opt)
virtual

◆ Finish() [1/2]

void BmnFHCalReconstructor::Finish ( )
virtual

Definition at line 254 of file BmnFHCalReconstructor.cxx.

References fworkTime.

◆ Finish() [2/2]

virtual void BmnFHCalReconstructor::Finish ( )
virtual

◆ GetSelectedDigiVector() [1/2]

std::vector< TObject * > BmnFHCalReconstructor::GetSelectedDigiVector ( TString formulaString)
private

Definition at line 172 of file BmnFHCalReconstructor.cxx.

References TTree::Branch(), TString::Data(), TObject::Delete(), TTree::Delete(), TTreeFormula::EvalInstance(), fArrayOfDigits, TTree::Fill(), fIsExp, fRecoCutsFile, fSelectedDigiVector, TTree::GetEntries(), TTree::GetEntry(), TTreeFormula::GetNdata(), ROOT::v5::TFormula::GetNdim(), i, and TTree::SetBranchAddress().

Referenced by Exec().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSelectedDigiVector() [2/2]

std::vector< TObject * > BmnFHCalReconstructor::GetSelectedDigiVector ( TString formulaString)
private

◆ Init() [1/2]

InitStatus BmnFHCalReconstructor::Init ( )
virtual

Definition at line 36 of file BmnFHCalReconstructor.cxx.

References fArrayOfDigits, fArrayOfPoints, fBmnFHCalEvent, fDoMatchMC, fIsExp, fpFairRootMgr, fworkTime, and ParseGeometry().

Here is the call graph for this function:

◆ Init() [2/2]

virtual InitStatus BmnFHCalReconstructor::Init ( )
virtual

◆ MatchMCTracks() [1/2]

void BmnFHCalReconstructor::MatchMCTracks ( )
private

Definition at line 212 of file BmnFHCalReconstructor.cxx.

References fArrayOfPoints, fBmnFHCalEvent, and fpFairRootMgr.

Referenced by Exec().

Here is the caller graph for this function:

◆ MatchMCTracks() [2/2]

void BmnFHCalReconstructor::MatchMCTracks ( )
private

References BmnFHCalReconstructor(), fDoMatchMC, fIsExp, fIsGlobal, fRecoCutsFile, fSelectionString, and fworkTime.

Here is the call graph for this function:

◆ OnlineWrite() [1/2]

void BmnFHCalReconstructor::OnlineWrite ( const std::unique_ptr< TTree > & resultTree)
virtual
Parameters
resultTree

Reimplemented from BmnTask.

Definition at line 245 of file BmnFHCalReconstructor.cxx.

References fBmnFHCalEvent.

◆ OnlineWrite() [2/2]

virtual void BmnFHCalReconstructor::OnlineWrite ( const std::unique_ptr< TTree > & resultTree)
virtual
Parameters
resultTree

Reimplemented from BmnTask.

References fArrayOfDigits, fArrayOfPoints, and fpFairRootMgr.

◆ ParseCuts() [1/2]

void BmnFHCalReconstructor::ParseCuts ( )

Definition at line 73 of file BmnFHCalReconstructor.cxx.

References fIsExp, fRecoCutsFile, and fSelectionString.

Referenced by SetRecoCutsFile().

Here is the caller graph for this function:

◆ ParseCuts() [2/2]

void BmnFHCalReconstructor::ParseCuts ( )

◆ ParseGeometry() [1/2]

void BmnFHCalReconstructor::ParseGeometry ( )

Definition at line 111 of file BmnFHCalReconstructor.cxx.

References fBmnFHCalEvent, fIsGlobal, BmnFHCalGeo::GetMaxModuleId(), BmnFHCalAddress::GetModuleId(), BmnFHCalAddress::GetModuleType(), BmnGeoTemplate< Derived >::GetPositionMap(), BmnFHCalAddress::GetSectionId(), and BmnGeoTemplate< Derived >::ReadGeometryFromGeoManager().

Referenced by Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseGeometry() [2/2]

void BmnFHCalReconstructor::ParseGeometry ( )

◆ SetRecoCutsFile() [1/2]

void BmnFHCalReconstructor::SetRecoCutsFile ( TString reco_cuts_file)

Definition at line 23 of file BmnFHCalReconstructor.cxx.

References fRecoCutsFile, and ParseCuts().

Referenced by run_reco_bmn(), run_reco_bmn(), run_reco_bmn(), and run_reco_bmn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetRecoCutsFile() [2/2]

void BmnFHCalReconstructor::SetRecoCutsFile ( TString reco_cuts_file)

Member Data Documentation

◆ fArrayOfDigits

TClonesArray * BmnFHCalReconstructor::fArrayOfDigits = nullptr
private

Definition at line 46 of file BmnFHCalReconstructor.h.

Referenced by GetSelectedDigiVector(), Init(), and OnlineWrite().

◆ fArrayOfPoints

TClonesArray * BmnFHCalReconstructor::fArrayOfPoints = nullptr
private

Definition at line 47 of file BmnFHCalReconstructor.h.

Referenced by Init(), MatchMCTracks(), and OnlineWrite().

◆ fBmnFHCalEvent

BmnFHCalEvent * BmnFHCalReconstructor::fBmnFHCalEvent = nullptr
private

◆ fDoMatchMC

bool BmnFHCalReconstructor::fDoMatchMC = false
private

Definition at line 57 of file BmnFHCalReconstructor.h.

Referenced by BmnFHCalReconstructor(), Exec(), Init(), and MatchMCTracks().

◆ fIsExp

bool BmnFHCalReconstructor::fIsExp
private

◆ fIsGlobal

bool BmnFHCalReconstructor::fIsGlobal
private

Definition at line 56 of file BmnFHCalReconstructor.h.

Referenced by BmnFHCalReconstructor(), MatchMCTracks(), and ParseGeometry().

◆ fpFairRootMgr

FairRootManager * BmnFHCalReconstructor::fpFairRootMgr = nullptr
private

Definition at line 45 of file BmnFHCalReconstructor.h.

Referenced by Init(), MatchMCTracks(), and OnlineWrite().

◆ fRecoCutsFile

TString BmnFHCalReconstructor::fRecoCutsFile
private

◆ fSelectedDigiVector

std::vector< TObject * > BmnFHCalReconstructor::fSelectedDigiVector
private

Definition at line 49 of file BmnFHCalReconstructor.h.

Referenced by GetSelectedDigiVector().

◆ fSelectionString

TString BmnFHCalReconstructor::fSelectionString = "(1)"
private

Definition at line 54 of file BmnFHCalReconstructor.h.

Referenced by Exec(), MatchMCTracks(), and ParseCuts().

◆ fworkTime

float BmnFHCalReconstructor::fworkTime
private

Definition at line 59 of file BmnFHCalReconstructor.h.

Referenced by Exec(), Finish(), Init(), and MatchMCTracks().


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