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

#include <BmnEventSelector.h>

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

Public Member Functions

 BmnEventSelector ()
 
 ~BmnEventSelector ()
 
void SetRunId (int runId)
 
void SetOutputFileName (const char *name)
 
void SetInputFileName (const char *name)
 
virtual InitStatus Init ()
 
void InitHistograms ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
virtual void SetParContainers ()
 
void Calculate ()
 
BmnEventClass::id Classify ()
 
int GetClosestHitIndex (std::vector< double > hitTimes, float refTime)
 
virtual void Finish ()
 
void WriteBC1hitInfo (bool write=true)
 
void FillCalibrationHists (bool fill=true)
 
void FillPerformanceHists (bool fill=true)
 
 BmnEventSelector ()
 
 ~BmnEventSelector ()
 
void SetRunId (int runId)
 
void SetOutputFileName (const char *name)
 
void SetInputFileName (const char *name)
 
virtual InitStatus Init ()
 
void InitHistograms ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
virtual void SetParContainers ()
 
void Calculate ()
 
BmnEventClass::id Classify ()
 
int GetClosestHitIndex (std::vector< double > hitTimes, float refTime)
 
virtual void Finish ()
 
void WriteBC1hitInfo (bool write=true)
 
void FillCalibrationHists (bool fill=true)
 
void FillPerformanceHists (bool fill=true)
 

Detailed Description

Definition at line 115 of file BmnEventSelector.h.

Constructor & Destructor Documentation

◆ BmnEventSelector() [1/2]

BmnEventSelector::BmnEventSelector ( )

Default constructor

Definition at line 21 of file BmnEventSelector.cxx.

◆ ~BmnEventSelector() [1/2]

BmnEventSelector::~BmnEventSelector ( )

Constructor with parameters (Optional) Destructor

Definition at line 28 of file BmnEventSelector.cxx.

◆ BmnEventSelector() [2/2]

BmnEventSelector::BmnEventSelector ( )

Default constructor

◆ ~BmnEventSelector() [2/2]

BmnEventSelector::~BmnEventSelector ( )

Constructor with parameters (Optional) Destructor

Member Function Documentation

◆ Calculate() [1/2]

void BmnEventSelector::Calculate ( )

Definition at line 410 of file BmnEventSelector.cxx.

References BmnEventClass::kNull, and BmnTrigWaveDigit::TdcVector().

Referenced by Exec().

◆ Calculate() [2/2]

void BmnEventSelector::Calculate ( )

◆ Classify() [1/2]

BmnEventClass::id BmnEventSelector::Classify ( )

Definition at line 447 of file BmnEventSelector.cxx.

References GetClosestHitIndex(), and i.

Referenced by Exec().

◆ Classify() [2/2]

BmnEventClass::id BmnEventSelector::Classify ( )

◆ Exec() [1/2]

void BmnEventSelector::Exec ( Option_t *  opt)
virtual

Executed for each event.

Definition at line 660 of file BmnEventSelector.cxx.

References Calculate(), Classify(), BmnEventHeader::GetInputSignalsAR(), BmnEventClass::kNull, and BmnEventClass::kUndef.

◆ Exec() [2/2]

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

Executed for each event.

◆ FillCalibrationHists() [1/2]

void BmnEventSelector::FillCalibrationHists ( bool  fill = true)
inline

Definition at line 154 of file BmnEventSelector.h.

◆ FillCalibrationHists() [2/2]

void BmnEventSelector::FillCalibrationHists ( bool  fill = true)
inline

Definition at line 154 of file BmnEventSelector.h.

◆ FillPerformanceHists() [1/2]

void BmnEventSelector::FillPerformanceHists ( bool  fill = true)
inline

Definition at line 155 of file BmnEventSelector.h.

◆ FillPerformanceHists() [2/2]

void BmnEventSelector::FillPerformanceHists ( bool  fill = true)
inline

Definition at line 155 of file BmnEventSelector.h.

◆ Finish() [1/2]

void BmnEventSelector::Finish ( )
virtual

Finish task called at the end of the run

Definition at line 702 of file BmnEventSelector.cxx.

◆ Finish() [2/2]

virtual void BmnEventSelector::Finish ( )
virtual

Finish task called at the end of the run

◆ GetClosestHitIndex() [1/2]

int BmnEventSelector::GetClosestHitIndex ( std::vector< double >  hitTimes,
float  refTime 
)

Definition at line 312 of file BmnEventSelector.cxx.

References fabs(), i, and min().

Referenced by Classify().

◆ GetClosestHitIndex() [2/2]

int BmnEventSelector::GetClosestHitIndex ( std::vector< double >  hitTimes,
float  refTime 
)

◆ Init() [1/2]

InitStatus BmnEventSelector::Init ( )
virtual

Initiliazation of task at the beginning of a run

Definition at line 87 of file BmnEventSelector.cxx.

References InitHistograms().

◆ Init() [2/2]

virtual InitStatus BmnEventSelector::Init ( )
virtual

Initiliazation of task at the beginning of a run

◆ InitHistograms() [1/2]

void BmnEventSelector::InitHistograms ( )

Definition at line 202 of file BmnEventSelector.cxx.

References i, BmnEventClass::kNclasses, and BmnEventClass::names.

Referenced by Init().

◆ InitHistograms() [2/2]

void BmnEventSelector::InitHistograms ( )

◆ ReInit() [1/2]

InitStatus BmnEventSelector::ReInit ( )
virtual

ReInitiliazation of task when the runID changes

Definition at line 306 of file BmnEventSelector.cxx.

◆ ReInit() [2/2]

virtual InitStatus BmnEventSelector::ReInit ( )
virtual

ReInitiliazation of task when the runID changes

◆ SetInputFileName() [1/2]

void BmnEventSelector::SetInputFileName ( const char *  name)
inline

Definition at line 129 of file BmnEventSelector.h.

Referenced by run_reco_bmn().

◆ SetInputFileName() [2/2]

void BmnEventSelector::SetInputFileName ( const char *  name)
inline

Definition at line 129 of file BmnEventSelector.h.

◆ SetOutputFileName() [1/2]

void BmnEventSelector::SetOutputFileName ( const char *  name)
inline

Definition at line 128 of file BmnEventSelector.h.

◆ SetOutputFileName() [2/2]

void BmnEventSelector::SetOutputFileName ( const char *  name)
inline

Definition at line 128 of file BmnEventSelector.h.

◆ SetParContainers() [1/2]

void BmnEventSelector::SetParContainers ( )
virtual

Load the parameter container from the runtime database

Definition at line 34 of file BmnEventSelector.cxx.

◆ SetParContainers() [2/2]

virtual void BmnEventSelector::SetParContainers ( )
virtual

Load the parameter container from the runtime database

◆ SetRunId() [1/2]

void BmnEventSelector::SetRunId ( int  runId)
inline

Definition at line 127 of file BmnEventSelector.h.

Referenced by run_reco_bmn().

◆ SetRunId() [2/2]

void BmnEventSelector::SetRunId ( int  runId)
inline

Definition at line 127 of file BmnEventSelector.h.

◆ WriteBC1hitInfo() [1/2]

void BmnEventSelector::WriteBC1hitInfo ( bool  write = true)
inline

Definition at line 153 of file BmnEventSelector.h.

◆ WriteBC1hitInfo() [2/2]

void BmnEventSelector::WriteBC1hitInfo ( bool  write = true)
inline

Definition at line 153 of file BmnEventSelector.h.


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