BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTof1HitProducerIdeal Class Reference

#include <BmnTof1HitProducerIdeal.h>

Inheritance diagram for BmnTof1HitProducerIdeal:
Collaboration diagram for BmnTof1HitProducerIdeal:

Public Member Functions

 BmnTof1HitProducerIdeal (const char *name="TOF1 Ideal HitProducer", Bool_t useMCdata=true, Int_t verbose=1, Bool_t DoTest=false, Bool_t DoMergeHits=false)
virtual ~BmnTof1HitProducerIdeal ()
virtual InitStatus Init ()
virtual void Exec (Option_t *option)
virtual void Finish ()
void SetOnlyPrimary (Bool_t opt)
void Dump (const char *comment=nullptr, std::ostream &out=std::cout) const
void SetTestFlnm (const char *flnm)
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.
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 BmnTask (const BmnTask &)=delete
BmnTask & operator= (const BmnTask &)=delete

Protected Member Functions

void AddHit (Int_t detUID, const TVector3 &posHit, const TVector3 &posHitErr, Int_t pointIndex, Int_t trackIndex, Double_t time, Int_t Idd)
Int_t CompressHits ()
Int_t MergeHitsOnStrip ()

Protected Attributes

TClonesArray * aMcPoints
TClonesArray * aMcTracks
 <— MC input
TClonesArray * aExpDigits
 <— MC input
TClonesArray * aExpDigitsT0
 <— Exp input
TClonesArray * aExpDigitsT0_2
 <— Exp input
BmnTrigInfoDst * aExpTrigInfo
 <— Exp input for run8 SRC
TClonesArray * aTofHits
 <— The T0 time is stored in 'BmnTrigInfo.' branch in Run9
TClonesArray * aTofCont
 ---> output
TFile * fileCont
 ---> output
TTree * treeCont
Bool_t fDoTest
Bool_t fDoMergeHits
Bool_t fUseMCData
Bool_t fOnlyPrimary
TString fTestFlnm

Detailed Description

Definition at line 15 of file BmnTof1HitProducerIdeal.h.

Constructor & Destructor Documentation

◆ BmnTof1HitProducerIdeal()

BmnTof1HitProducerIdeal::BmnTof1HitProducerIdeal ( const char * name = "TOF1 Ideal HitProducer",
Bool_t useMCdata = true,
Int_t verbose = 1,
Bool_t DoTest = false,
Bool_t DoMergeHits = false )

Definition at line 11 of file BmnTof1HitProducerIdeal.cxx.

References BmnTask::BmnTask(), aExpDigits, aMcPoints, aMcTracks, aTofHits, fDoMergeHits, fDoTest, fOnlyPrimary, fTestFlnm, fUseMCData, and merge().

Referenced by BmnTof1HitProducer::BmnTof1HitProducer().

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

◆ ~BmnTof1HitProducerIdeal()

BmnTof1HitProducerIdeal::~BmnTof1HitProducerIdeal ( )
virtual

Definition at line 28 of file BmnTof1HitProducerIdeal.cxx.

Member Function Documentation

◆ AddHit()

void BmnTof1HitProducerIdeal::AddHit ( Int_t detUID,
const TVector3 & posHit,
const TVector3 & posHitErr,
Int_t pointIndex,
Int_t trackIndex,
Double_t time,
Int_t Idd = kTOF1 )
protected

Definition at line 153 of file BmnTof1HitProducerIdeal.cxx.

References aTofHits, BmnTOF1Point::GetModule(), BmnTOF1Point::GetStrip(), kTOF1, BmnHit::SetDetId(), BmnHit::SetModule(), and BmnHit::SetStation().

Referenced by BmnTof1HitProducer::Exec(), and Exec().

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

◆ CompressHits()

Int_t BmnTof1HitProducerIdeal::CompressHits ( )
protected

Definition at line 176 of file BmnTof1HitProducerIdeal.cxx.

References aTofHits.

Referenced by BmnTof1HitProducer::Exec(), and Exec().

Here is the caller graph for this function:

◆ Dump()

void BmnTof1HitProducerIdeal::Dump ( const char * comment = nullptr,
std::ostream & out = std::cout ) const

Definition at line 182 of file BmnTof1HitProducerIdeal.cxx.

References aMcPoints, aTofHits, TIterator::Next(), TVector3::X(), TVector3::Y(), and TVector3::Z().

Here is the call graph for this function:

◆ Exec()

void BmnTof1HitProducerIdeal::Exec ( Option_t * option)
virtual

Reimplemented in BmnTof1HitProducer.

Definition at line 68 of file BmnTof1HitProducerIdeal.cxx.

References AddHit(), aMcPoints, aTofHits, CompressHits(), fDoMergeHits, fUseMCData, kTOF1, and MergeHitsOnStrip().

Here is the call graph for this function:

◆ Finish()

void BmnTof1HitProducerIdeal::Finish ( )
virtual

Reimplemented in BmnTof1HitProducer.

Definition at line 105 of file BmnTof1HitProducerIdeal.cxx.

◆ Init()

InitStatus BmnTof1HitProducerIdeal::Init ( )
virtual

Reimplemented in BmnTof1HitProducer.

Definition at line 30 of file BmnTof1HitProducerIdeal.cxx.

References aExpDigits, aMcPoints, aMcTracks, aTofHits, and fUseMCData.

◆ MergeHitsOnStrip()

Int_t BmnTof1HitProducerIdeal::MergeHitsOnStrip ( void )
protected

Definition at line 107 of file BmnTof1HitProducerIdeal.cxx.

References aTofHits, and fDoTest.

Referenced by BmnTof1HitProducer::Exec(), and Exec().

Here is the caller graph for this function:

◆ SetOnlyPrimary()

void BmnTof1HitProducerIdeal::SetOnlyPrimary ( Bool_t opt)
inline

Definition at line 58 of file BmnTof1HitProducerIdeal.h.

References fOnlyPrimary.

◆ SetTestFlnm()

void BmnTof1HitProducerIdeal::SetTestFlnm ( const char * flnm)
inline

Definition at line 60 of file BmnTof1HitProducerIdeal.h.

References fTestFlnm.

Member Data Documentation

◆ aExpDigits

TClonesArray* BmnTof1HitProducerIdeal::aExpDigits
protected

◆ aExpDigitsT0

TClonesArray* BmnTof1HitProducerIdeal::aExpDigitsT0
protected

◆ aExpDigitsT0_2

TClonesArray* BmnTof1HitProducerIdeal::aExpDigitsT0_2
protected

◆ aExpTrigInfo

BmnTrigInfoDst* BmnTof1HitProducerIdeal::aExpTrigInfo
protected

◆ aMcPoints

TClonesArray* BmnTof1HitProducerIdeal::aMcPoints
protected

◆ aMcTracks

TClonesArray* BmnTof1HitProducerIdeal::aMcTracks
protected

◆ aTofCont

TClonesArray* BmnTof1HitProducerIdeal::aTofCont
protected

Definition at line 25 of file BmnTof1HitProducerIdeal.h.

Referenced by BmnTof1HitProducer::Exec(), and BmnTof1HitProducer::Init().

◆ aTofHits

◆ fDoMergeHits

Bool_t BmnTof1HitProducerIdeal::fDoMergeHits
protected

◆ fDoTest

◆ fileCont

TFile* BmnTof1HitProducerIdeal::fileCont
protected

◆ fOnlyPrimary

Bool_t BmnTof1HitProducerIdeal::fOnlyPrimary
protected

◆ fTestFlnm

TString BmnTof1HitProducerIdeal::fTestFlnm
protected

◆ fUseMCData

◆ treeCont

TTree* BmnTof1HitProducerIdeal::treeCont
protected

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