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

#include <DEventRFBunch_factory.h>

+ Inheritance diagram for DEventRFBunch_factory:

Public Member Functions

 DEventRFBunch_factory ()
 
 ~DEventRFBunch_factory ()
 
bool Get_RFTimeGuess (JEventLoop *locEventLoop, double &locRFTimeGuess, double &locRFVariance, DetectorSystem_t &locTimeSource) const
 

Private Member Functions

void Select_GoodTracks (JEventLoop *locEventLoop, vector< const DTrackTimeBased * > &locSelectedTimeBasedTracks) const
 
jerror_t Select_RFBunch (JEventLoop *locEventLoop, vector< const DTrackTimeBased * > &locTrackTimeBasedVector, const DRFTime *locRFTime)
 
int Conduct_Vote (JEventLoop *locEventLoop, double locRFTime, vector< pair< double, const JObject * > > &locTimes, bool locUsedTracksFlag, int &locHighestNumVotes)
 
bool Find_TrackTimes_SCTOF (const DDetectorMatches *locDetectorMatches, const vector< const DTrackTimeBased * > &locTrackTimeBasedVector, vector< pair< double, const JObject * > > &locTimes) const
 
bool Find_TrackTimes_All (const DDetectorMatches *locDetectorMatches, const vector< const DTrackTimeBased * > &locTrackTimeBasedVector, vector< pair< double, const JObject * > > &locTimes)
 
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_Tracks (map< int, vector< const JObject * > > &locNumBeamBucketsShiftedMap, set< int > &locBestRFBunchShifts)
 
int Break_TieVote_Neutrals (map< int, vector< const JObject * > > &locNumBeamBucketsShiftedMap, set< int > &locBestRFBunchShifts)
 
jerror_t Select_RFBunch_NoRFTime (JEventLoop *locEventLoop, vector< const DTrackTimeBased * > &locTrackTimeBasedVector)
 
void Get_RFTimeGuess (vector< pair< double, const JObject * > > &locTimes, double &locRFTimeGuess, double &locRFVariance) const
 
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
 
string OVERRIDE_TAG
 

Detailed Description

Definition at line 41 of file DEventRFBunch_factory.h.

Constructor & Destructor Documentation

DEventRFBunch_factory::DEventRFBunch_factory ( )
inline

Definition at line 44 of file DEventRFBunch_factory.h.

DEventRFBunch_factory::~DEventRFBunch_factory ( )
inline

Definition at line 45 of file DEventRFBunch_factory.h.

Member Function Documentation

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

Definition at line 348 of file DEventRFBunch_factory.cc.

int DEventRFBunch_factory::Break_TieVote_Neutrals ( map< int, vector< const JObject * > > &  locNumBeamBucketsShiftedMap,
set< int > &  locBestRFBunchShifts 
)
private

Definition at line 418 of file DEventRFBunch_factory.cc.

References DBCALShower::E, and DFCALShower::getEnergy().

int DEventRFBunch_factory::Break_TieVote_Tracks ( map< int, vector< const JObject * > > &  locNumBeamBucketsShiftedMap,
set< int > &  locBestRFBunchShifts 
)
private

Definition at line 377 of file DEventRFBunch_factory.cc.

References DTrackTimeBased::chisq, and DTrackTimeBased::Ndof.

jerror_t DEventRFBunch_factory::brun ( jana::JEventLoop *  locEventLoop,
int32_t  runnumber 
)
private

Called everytime a new run number is detected.

Definition at line 29 of file DEventRFBunch_factory.cc.

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

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

Definition at line 156 of file DEventRFBunch_factory.cc.

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

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

Definition at line 553 of file DEventRFBunch_factory.cc.

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

Called every event.

Definition at line 50 of file DEventRFBunch_factory.cc.

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

Definition at line 321 of file DEventRFBunch_factory.cc.

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

Definition at line 282 of file DEventRFBunch_factory.cc.

References x, and y.

bool DEventRFBunch_factory::Find_TrackTimes_All ( const DDetectorMatches locDetectorMatches,
const vector< const DTrackTimeBased * > &  locTrackTimeBasedVector,
vector< pair< double, const JObject * > > &  locTimes 
)
private
bool DEventRFBunch_factory::Find_TrackTimes_SCTOF ( const DDetectorMatches locDetectorMatches,
const vector< const DTrackTimeBased * > &  locTrackTimeBasedVector,
vector< pair< double, const JObject * > > &  locTimes 
) const
private

Definition at line 184 of file DEventRFBunch_factory.cc.

References DKinematicData::momentum(), and DKinematicData::z().

jerror_t DEventRFBunch_factory::fini ( void  )
private

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

Definition at line 561 of file DEventRFBunch_factory.cc.

bool DEventRFBunch_factory::Get_RFTimeGuess ( JEventLoop *  locEventLoop,
double &  locRFTimeGuess,
double &  locRFVariance,
DetectorSystem_t locTimeSource 
) const

Definition at line 496 of file DEventRFBunch_factory.cc.

References SYS_NULL, and SYS_START.

void DEventRFBunch_factory::Get_RFTimeGuess ( vector< pair< double, const JObject * > > &  locTimes,
double &  locRFTimeGuess,
double &  locRFVariance 
) const
private

Definition at line 520 of file DEventRFBunch_factory.cc.

jerror_t DEventRFBunch_factory::init ( void  )
private

Called once at program start.

Definition at line 17 of file DEventRFBunch_factory.cc.

void DEventRFBunch_factory::Select_GoodTracks ( JEventLoop *  locEventLoop,
vector< const DTrackTimeBased * > &  locSelectedTimeBasedTracks 
) const
private

Definition at line 83 of file DEventRFBunch_factory.cc.

References DTrackTimeBased::FOM.

jerror_t DEventRFBunch_factory::Select_RFBunch ( JEventLoop *  locEventLoop,
vector< const DTrackTimeBased * > &  locTrackTimeBasedVector,
const DRFTime locRFTime 
)
private
jerror_t DEventRFBunch_factory::Select_RFBunch_NoRFTime ( JEventLoop *  locEventLoop,
vector< const DTrackTimeBased * > &  locTrackTimeBasedVector 
)
private

Member Data Documentation

double DEventRFBunch_factory::dBeamBunchPeriod
private

Definition at line 73 of file DEventRFBunch_factory.h.

double DEventRFBunch_factory::dMinTrackingFOM
private

Definition at line 76 of file DEventRFBunch_factory.h.

const DParticleID* DEventRFBunch_factory::dParticleID
private

Definition at line 71 of file DEventRFBunch_factory.h.

DVector3 DEventRFBunch_factory::dTargetCenter
private

Definition at line 74 of file DEventRFBunch_factory.h.

string DEventRFBunch_factory::OVERRIDE_TAG
private

Definition at line 78 of file DEventRFBunch_factory.h.


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