Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventRFBunch_factory_CalorimeterOnly Class Reference

#include <DEventRFBunch_factory_CalorimeterOnly.h>

+ Inheritance diagram for DEventRFBunch_factory_CalorimeterOnly:

Public Member Functions

 DEventRFBunch_factory_CalorimeterOnly ()
 
 ~DEventRFBunch_factory_CalorimeterOnly ()
 
const char * Tag (void)
 

Private Member Functions

jerror_t Select_RFBunch (JEventLoop *locEventLoop, const DRFTime *locRFTime)
 
int Conduct_Vote (JEventLoop *locEventLoop, double locRFTime, vector< pair< double, const JObject * > > &locTimes, bool locUsedTracksFlag, int &locHighestNumVotes)
 
bool Find_NeutralTimes (JEventLoop *locEventLoop, vector< pair< double, const JObject * > > &locTimes)
 
int Find_BestRFBunchShifts (double locRFHitTime, const vector< pair< double, const JObject * > > &locTimes, map< int, vector< const JObject * > > &locNumBeamBucketsShiftedMap, set< int > &locBestRFBunchShifts)
 
bool Break_TieVote_BeamPhotons (vector< const DBeamPhoton * > &locBeamPhotons, double locRFTime, map< int, vector< const JObject * > > &locNumBeamBucketsShiftedMap, set< int > &locBestRFBunchShifts, int locHighestNumVotes)
 
int Break_TieVote_Neutrals (map< int, vector< const JObject * > > &locNumBeamBucketsShiftedMap, set< int > &locBestRFBunchShifts)
 
jerror_t Create_NaNRFBunch (void)
 
jerror_t init (void)
 Called once at program start. More...
 
jerror_t brun (jana::JEventLoop *locEventLoop, int32_t runnumber)
 Called everytime a new run number is detected. More...
 
jerror_t evnt (jana::JEventLoop *locEventLoop, uint64_t eventnumber)
 Called every event. More...
 
jerror_t erun (void)
 Called everytime run number changes, provided brun has been called. More...
 
jerror_t fini (void)
 Called after last event of last event source has been processed. More...
 

Private Attributes

const DParticleIDdParticleID
 
double dBeamBunchPeriod
 
DVector3 dTargetCenter
 
double dMinTrackingFOM
 
bool USE_FCAL
 
bool USE_BCAL
 
bool USE_CCAL
 

Detailed Description

Definition at line 39 of file DEventRFBunch_factory_CalorimeterOnly.h.

Constructor & Destructor Documentation

DEventRFBunch_factory_CalorimeterOnly::DEventRFBunch_factory_CalorimeterOnly ( )
inline

Definition at line 42 of file DEventRFBunch_factory_CalorimeterOnly.h.

DEventRFBunch_factory_CalorimeterOnly::~DEventRFBunch_factory_CalorimeterOnly ( )
inline

Definition at line 43 of file DEventRFBunch_factory_CalorimeterOnly.h.

Member Function Documentation

bool DEventRFBunch_factory_CalorimeterOnly::Break_TieVote_BeamPhotons ( vector< const DBeamPhoton * > &  locBeamPhotons,
double  locRFTime,
map< int, vector< const JObject * > > &  locNumBeamBucketsShiftedMap,
set< int > &  locBestRFBunchShifts,
int  locHighestNumVotes 
)
private

Definition at line 211 of file DEventRFBunch_factory_CalorimeterOnly.cc.

int DEventRFBunch_factory_CalorimeterOnly::Break_TieVote_Neutrals ( map< int, vector< const JObject * > > &  locNumBeamBucketsShiftedMap,
set< int > &  locBestRFBunchShifts 
)
private
jerror_t DEventRFBunch_factory_CalorimeterOnly::brun ( jana::JEventLoop *  locEventLoop,
int32_t  runnumber 
)
private

Called everytime a new run number is detected.

Definition at line 34 of file DEventRFBunch_factory_CalorimeterOnly.cc.

References DApplication::GetDGeometry(), and DGeometry::GetTargetZ().

int DEventRFBunch_factory_CalorimeterOnly::Conduct_Vote ( JEventLoop *  locEventLoop,
double  locRFTime,
vector< pair< double, const JObject * > > &  locTimes,
bool  locUsedTracksFlag,
int &  locHighestNumVotes 
)
private

Definition at line 103 of file DEventRFBunch_factory_CalorimeterOnly.cc.

jerror_t DEventRFBunch_factory_CalorimeterOnly::Create_NaNRFBunch ( void  )
private
jerror_t DEventRFBunch_factory_CalorimeterOnly::erun ( void  )
private

Called everytime run number changes, provided brun has been called.

Definition at line 308 of file DEventRFBunch_factory_CalorimeterOnly.cc.

jerror_t DEventRFBunch_factory_CalorimeterOnly::evnt ( jana::JEventLoop *  locEventLoop,
uint64_t  eventnumber 
)
private

Called every event.

Definition at line 55 of file DEventRFBunch_factory_CalorimeterOnly.cc.

int DEventRFBunch_factory_CalorimeterOnly::Find_BestRFBunchShifts ( double  locRFHitTime,
const vector< pair< double, const JObject * > > &  locTimes,
map< int, vector< const JObject * > > &  locNumBeamBucketsShiftedMap,
set< int > &  locBestRFBunchShifts 
)
private

Definition at line 184 of file DEventRFBunch_factory_CalorimeterOnly.cc.

bool DEventRFBunch_factory_CalorimeterOnly::Find_NeutralTimes ( JEventLoop *  locEventLoop,
vector< pair< double, const JObject * > > &  locTimes 
)
private

Definition at line 124 of file DEventRFBunch_factory_CalorimeterOnly.cc.

References x, and y.

jerror_t DEventRFBunch_factory_CalorimeterOnly::fini ( void  )
private

Called after last event of last event source has been processed.

Definition at line 316 of file DEventRFBunch_factory_CalorimeterOnly.cc.

jerror_t DEventRFBunch_factory_CalorimeterOnly::init ( void  )
private

Called once at program start.

Definition at line 16 of file DEventRFBunch_factory_CalorimeterOnly.cc.

jerror_t DEventRFBunch_factory_CalorimeterOnly::Select_RFBunch ( JEventLoop *  locEventLoop,
const DRFTime locRFTime 
)
private
const char* DEventRFBunch_factory_CalorimeterOnly::Tag ( void  )
inline

Definition at line 44 of file DEventRFBunch_factory_CalorimeterOnly.h.

Member Data Documentation

double DEventRFBunch_factory_CalorimeterOnly::dBeamBunchPeriod
private

Definition at line 67 of file DEventRFBunch_factory_CalorimeterOnly.h.

double DEventRFBunch_factory_CalorimeterOnly::dMinTrackingFOM
private

Definition at line 70 of file DEventRFBunch_factory_CalorimeterOnly.h.

const DParticleID* DEventRFBunch_factory_CalorimeterOnly::dParticleID
private

Definition at line 65 of file DEventRFBunch_factory_CalorimeterOnly.h.

DVector3 DEventRFBunch_factory_CalorimeterOnly::dTargetCenter
private

Definition at line 68 of file DEventRFBunch_factory_CalorimeterOnly.h.

bool DEventRFBunch_factory_CalorimeterOnly::USE_BCAL
private

Definition at line 73 of file DEventRFBunch_factory_CalorimeterOnly.h.

bool DEventRFBunch_factory_CalorimeterOnly::USE_CCAL
private

Definition at line 74 of file DEventRFBunch_factory_CalorimeterOnly.h.

bool DEventRFBunch_factory_CalorimeterOnly::USE_FCAL
private

Definition at line 72 of file DEventRFBunch_factory_CalorimeterOnly.h.


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