BmnRoot
Loading...
Searching...
No Matches
BmnTof1HitProducerIdeal Class Reference

#include <BmnTof1HitProducerIdeal.h>

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

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)
 
 ClassDef (BmnTof1HitProducerIdeal, 1)
 
 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)
 
 ClassDef (BmnTof1HitProducerIdeal, 1)
 
- Public Member Functions inherited from BmnTask
 BmnTask ()
 
 BmnTask (const char *name, Int_t iVerbose=1)
 
virtual ~BmnTask ()
 Destroy the BmnTask object.
 
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 
 BmnTask (const BmnTask &)=delete
 
BmnTaskoperator= (const BmnTask &)=delete
 
 ClassDef (BmnTask, 1)
 
 BmnTask ()
 
 BmnTask (const char *name, Int_t iVerbose=1)
 
virtual ~BmnTask ()
 Destroy the BmnTask object.
 
virtual void OnlineWrite (const std::unique_ptr< TTree > &resultTree)
 Write task resul to tree.
 
 BmnTask (const BmnTask &)=delete
 
BmnTaskoperator= (const BmnTask &)=delete
 
 ClassDef (BmnTask, 1)
 

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 ()
 
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
 
BmnTrigInfoDstaExpTrigInfo
 <— 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() [1/2]

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.

◆ ~BmnTof1HitProducerIdeal() [1/2]

BmnTof1HitProducerIdeal::~BmnTof1HitProducerIdeal ( )
virtual

Definition at line 28 of file BmnTof1HitProducerIdeal.cxx.

◆ BmnTof1HitProducerIdeal() [2/2]

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

◆ ~BmnTof1HitProducerIdeal() [2/2]

virtual BmnTof1HitProducerIdeal::~BmnTof1HitProducerIdeal ( )
virtual

Member Function Documentation

◆ AddHit() [1/2]

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

◆ AddHit() [2/2]

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

◆ ClassDef() [1/2]

BmnTof1HitProducerIdeal::ClassDef ( BmnTof1HitProducerIdeal  ,
 
)

◆ ClassDef() [2/2]

BmnTof1HitProducerIdeal::ClassDef ( BmnTof1HitProducerIdeal  ,
 
)

◆ CompressHits() [1/2]

Int_t BmnTof1HitProducerIdeal::CompressHits ( )
protected

Definition at line 176 of file BmnTof1HitProducerIdeal.cxx.

References aTofHits.

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

◆ CompressHits() [2/2]

Int_t BmnTof1HitProducerIdeal::CompressHits ( )
protected

◆ Dump() [1/2]

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

Definition at line 182 of file BmnTof1HitProducerIdeal.cxx.

References aMcPoints, and aTofHits.

◆ Dump() [2/2]

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

◆ Exec() [1/2]

void BmnTof1HitProducerIdeal::Exec ( Option_t *  option)
virtual

◆ Exec() [2/2]

virtual void BmnTof1HitProducerIdeal::Exec ( Option_t *  option)
virtual

Reimplemented in BmnTof1HitProducer, and BmnTof1HitProducer.

◆ Finish() [1/2]

void BmnTof1HitProducerIdeal::Finish ( )
virtual

Reimplemented in BmnTof1HitProducer, and BmnTof1HitProducer.

Definition at line 105 of file BmnTof1HitProducerIdeal.cxx.

◆ Finish() [2/2]

virtual void BmnTof1HitProducerIdeal::Finish ( )
virtual

Reimplemented in BmnTof1HitProducer, and BmnTof1HitProducer.

◆ Init() [1/2]

InitStatus BmnTof1HitProducerIdeal::Init ( )
virtual

Reimplemented in BmnTof1HitProducer, and BmnTof1HitProducer.

Definition at line 30 of file BmnTof1HitProducerIdeal.cxx.

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

◆ Init() [2/2]

virtual InitStatus BmnTof1HitProducerIdeal::Init ( )
virtual

Reimplemented in BmnTof1HitProducer, and BmnTof1HitProducer.

◆ MergeHitsOnStrip() [1/2]

Int_t BmnTof1HitProducerIdeal::MergeHitsOnStrip ( void  )
protected

Definition at line 107 of file BmnTof1HitProducerIdeal.cxx.

References aTofHits, and fDoTest.

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

◆ MergeHitsOnStrip() [2/2]

Int_t BmnTof1HitProducerIdeal::MergeHitsOnStrip ( )
protected

◆ SetOnlyPrimary() [1/2]

void BmnTof1HitProducerIdeal::SetOnlyPrimary ( Bool_t  opt)
inline

Definition at line 58 of file BmnTof1HitProducerIdeal.h.

References fOnlyPrimary.

◆ SetOnlyPrimary() [2/2]

void BmnTof1HitProducerIdeal::SetOnlyPrimary ( Bool_t  opt)
inline

Definition at line 58 of file BmnTof1HitProducerIdeal.h.

References fOnlyPrimary.

◆ SetTestFlnm() [1/2]

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

Definition at line 60 of file BmnTof1HitProducerIdeal.h.

References fTestFlnm.

◆ SetTestFlnm() [2/2]

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

<— MC input

Definition at line 20 of file BmnTof1HitProducerIdeal.h.

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

◆ aExpDigitsT0

TClonesArray * BmnTof1HitProducerIdeal::aExpDigitsT0
protected

<— Exp input

Definition at line 21 of file BmnTof1HitProducerIdeal.h.

Referenced by BmnTof1HitProducer::Init().

◆ aExpDigitsT0_2

TClonesArray * BmnTof1HitProducerIdeal::aExpDigitsT0_2
protected

<— Exp input

Definition at line 22 of file BmnTof1HitProducerIdeal.h.

Referenced by BmnTof1HitProducer::Init().

◆ aExpTrigInfo

BmnTrigInfoDst * BmnTof1HitProducerIdeal::aExpTrigInfo
protected

<— Exp input for run8 SRC

Definition at line 23 of file BmnTof1HitProducerIdeal.h.

Referenced by BmnTof1HitProducer::Init().

◆ aMcPoints

TClonesArray * BmnTof1HitProducerIdeal::aMcPoints
protected

◆ aMcTracks

TClonesArray * BmnTof1HitProducerIdeal::aMcTracks
protected

<— MC input

Definition at line 19 of file BmnTof1HitProducerIdeal.h.

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

◆ aTofCont

TClonesArray * BmnTof1HitProducerIdeal::aTofCont
protected

—> output

Definition at line 25 of file BmnTof1HitProducerIdeal.h.

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

◆ aTofHits

TClonesArray * BmnTof1HitProducerIdeal::aTofHits
protected

◆ fDoMergeHits

Bool_t BmnTof1HitProducerIdeal::fDoMergeHits
protected

Definition at line 31 of file BmnTof1HitProducerIdeal.h.

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

◆ fDoTest

◆ fileCont

TFile * BmnTof1HitProducerIdeal::fileCont
protected

—> output

Definition at line 27 of file BmnTof1HitProducerIdeal.h.

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

◆ fOnlyPrimary

Bool_t BmnTof1HitProducerIdeal::fOnlyPrimary
protected

Definition at line 33 of file BmnTof1HitProducerIdeal.h.

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

◆ fTestFlnm

TString BmnTof1HitProducerIdeal::fTestFlnm
protected

◆ fUseMCData

Bool_t BmnTof1HitProducerIdeal::fUseMCData
protected

◆ treeCont

TTree * BmnTof1HitProducerIdeal::treeCont
protected

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