Class Reference for E1039 Core & Analysis Software
TriggerAnalyzer Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/reco/ktracker/TriggerAnalyzer.h>

Public Member Functions

 TriggerAnalyzer ()
 
 ~TriggerAnalyzer ()
 
bool init (std::string fileName, double cut_td=0., double cut_gun=1E8)
 
bool init ()
 
void makeRoadPairs ()
 
bool acceptEvent (TriggerRoad &p_road, TriggerRoad &m_road)
 
bool acceptEvent (int nHits, int detectorIDs[], int elementIDs[])
 
bool acceptEvent (SRawEvent *rawEvent, bool USE_TRIGGER_HIT, bool USE_HIT)
 
void trimEvent (SRawEvent *rawEvent, std::list< Hit > &hitlist, bool USE_TRIGGER_HIT, bool USE_HIT)
 
std::map< int, TriggerRoad > & getRoadsAll (int charge)
 
std::map< int, TriggerRoad > & getRoadsEnabled (int charge)
 
std::map< int, TriggerRoad > & getRoadsDisabled (int charge)
 
std::list< TriggerRoad > & getRoadsFound (int charge)
 
int getNRoadsPosTop ()
 
int getNRoadsPosBot ()
 
int getNRoadsNegTop ()
 
int getNRoadsNegBot ()
 
void buildTriggerTree ()
 
bool buildData (int nHits, int detectorIDs[], int elementIDs[])
 
void search (SQTNode *root, DataMatrix &data, int level, int charge)
 
void print (int charge)
 
void clear (int charge)
 
void printTree (SQTNode *root)
 
void clearTree (SQTNode *root)
 
void printRoadFound ()
 
void printData (DataMatrix &data)
 
void outputEnabled ()
 

Detailed Description

Definition at line 36 of file TriggerAnalyzer.h.

Constructor & Destructor Documentation

◆ TriggerAnalyzer()

TriggerAnalyzer::TriggerAnalyzer ( )

Definition at line 27 of file TriggerAnalyzer.cxx.

References GeomSvc::getDetectorIDs(), and GeomSvc::instance().

+ Here is the call graph for this function:

◆ ~TriggerAnalyzer()

TriggerAnalyzer::~TriggerAnalyzer ( )

Definition at line 44 of file TriggerAnalyzer.cxx.

References clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ acceptEvent() [1/3]

bool TriggerAnalyzer::acceptEvent ( int  nHits,
int  detectorIDs[],
int  elementIDs[] 
)

Definition at line 312 of file TriggerAnalyzer.cxx.

References buildData(), and search().

+ Here is the call graph for this function:

◆ acceptEvent() [2/3]

bool TriggerAnalyzer::acceptEvent ( SRawEvent rawEvent,
bool  USE_TRIGGER_HIT,
bool  USE_HIT 
)

Definition at line 276 of file TriggerAnalyzer.cxx.

References acceptEvent(), SRawEvent::getAllHits(), SRawEvent::getTriggerHits(), nChamberPlanes, and nHodoPlanes.

+ Here is the call graph for this function:

◆ acceptEvent() [3/3]

bool TriggerAnalyzer::acceptEvent ( TriggerRoad p_road,
TriggerRoad m_road 
)

Definition at line 222 of file TriggerAnalyzer.cxx.

References TriggerRoad::getRoadID().

Referenced by acceptEvent(), and trimEvent().

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

◆ buildData()

bool TriggerAnalyzer::buildData ( int  nHits,
int  detectorIDs[],
int  elementIDs[] 
)

Definition at line 230 of file TriggerAnalyzer.cxx.

References GeomSvc::getDetectorName(), and GeomSvc::instance().

Referenced by acceptEvent().

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

◆ buildTriggerTree()

void TriggerAnalyzer::buildTriggerTree ( )

Definition at line 431 of file TriggerAnalyzer.cxx.

References SQTNode::add(), and SQTNode::children.

Referenced by EventReducer::EventReducer().

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

◆ clear()

void TriggerAnalyzer::clear ( int  charge)
inline

Definition at line 79 of file TriggerAnalyzer.h.

References clearTree().

Referenced by ~TriggerAnalyzer().

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

◆ clearTree()

void TriggerAnalyzer::clearTree ( SQTNode root)

Definition at line 415 of file TriggerAnalyzer.cxx.

References SQTNode::children.

Referenced by clear(), and printTree().

+ Here is the caller graph for this function:

◆ getNRoadsNegBot()

int TriggerAnalyzer::getNRoadsNegBot ( )
inline

Definition at line 66 of file TriggerAnalyzer.h.

Referenced by trimEvent().

+ Here is the caller graph for this function:

◆ getNRoadsNegTop()

int TriggerAnalyzer::getNRoadsNegTop ( )
inline

Definition at line 65 of file TriggerAnalyzer.h.

Referenced by trimEvent().

+ Here is the caller graph for this function:

◆ getNRoadsPosBot()

int TriggerAnalyzer::getNRoadsPosBot ( )
inline

Definition at line 64 of file TriggerAnalyzer.h.

Referenced by trimEvent().

+ Here is the caller graph for this function:

◆ getNRoadsPosTop()

int TriggerAnalyzer::getNRoadsPosTop ( )
inline

Definition at line 63 of file TriggerAnalyzer.h.

Referenced by trimEvent().

+ Here is the caller graph for this function:

◆ getRoadsAll()

std::map<int, TriggerRoad>& TriggerAnalyzer::getRoadsAll ( int  charge)
inline

Definition at line 57 of file TriggerAnalyzer.h.

◆ getRoadsDisabled()

std::map<int, TriggerRoad>& TriggerAnalyzer::getRoadsDisabled ( int  charge)
inline

Definition at line 59 of file TriggerAnalyzer.h.

◆ getRoadsEnabled()

std::map<int, TriggerRoad>& TriggerAnalyzer::getRoadsEnabled ( int  charge)
inline

Definition at line 58 of file TriggerAnalyzer.h.

◆ getRoadsFound()

std::list<TriggerRoad>& TriggerAnalyzer::getRoadsFound ( int  charge)
inline

Definition at line 60 of file TriggerAnalyzer.h.

◆ init() [1/2]

bool TriggerAnalyzer::init ( )

Definition at line 50 of file TriggerAnalyzer.cxx.

References TriggerRoad::addElement(), PHFlag::get_CharFlag(), TriggerRoad::getRoadID(), TriggerRoad::groupID, recoConsts::instance(), makeRoadPairs(), and TriggerRoad::roadID.

+ Here is the call graph for this function:

◆ init() [2/2]

bool TriggerAnalyzer::init ( std::string  fileName,
double  cut_td = 0.,
double  cut_gun = 1E8 
)

Definition at line 125 of file TriggerAnalyzer.cxx.

References TriggerRoad::clear(), TriggerRoad::getRoadID(), TriggerRoad::isValid(), and makeRoadPairs().

Referenced by EventReducer::EventReducer().

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

◆ makeRoadPairs()

void TriggerAnalyzer::makeRoadPairs ( )

Definition at line 199 of file TriggerAnalyzer.cxx.

Referenced by init().

+ Here is the caller graph for this function:

◆ outputEnabled()

void TriggerAnalyzer::outputEnabled ( )

Definition at line 492 of file TriggerAnalyzer.cxx.

◆ print()

void TriggerAnalyzer::print ( int  charge)
inline

Definition at line 78 of file TriggerAnalyzer.h.

References printTree().

+ Here is the call graph for this function:

◆ printData()

void TriggerAnalyzer::printData ( DataMatrix data)

Definition at line 479 of file TriggerAnalyzer.cxx.

◆ printRoadFound()

void TriggerAnalyzer::printRoadFound ( )

Definition at line 469 of file TriggerAnalyzer.cxx.

Referenced by printTree().

+ Here is the caller graph for this function:

◆ printTree()

void TriggerAnalyzer::printTree ( SQTNode root)

Definition at line 395 of file TriggerAnalyzer.cxx.

References SQTNode::children, clearTree(), printRoadFound(), and SQTNode::uniqueID.

Referenced by print().

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

◆ search()

void TriggerAnalyzer::search ( SQTNode root,
DataMatrix data,
int  level,
int  charge 
)

Definition at line 374 of file TriggerAnalyzer.cxx.

References SQTNode::children, TriggerRoad::getRoadID(), and SQTNode::uniqueID.

Referenced by acceptEvent().

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

◆ trimEvent()

void TriggerAnalyzer::trimEvent ( SRawEvent rawEvent,
std::list< Hit > &  hitlist,
bool  USE_TRIGGER_HIT,
bool  USE_HIT 
)

Definition at line 532 of file TriggerAnalyzer.cxx.

References acceptEvent(), Hit::detectorID, Hit::driftDistance, Hit::elementID, GeomSvc::getMeasurement(), getNRoadsNegBot(), getNRoadsNegTop(), getNRoadsPosBot(), getNRoadsPosTop(), Hit::index, Hit::pos, Hit::setInTime(), SRawEvent::setNRoads(), SRawEvent::setTriggerEmu(), Hit::setTriggerMask(), and Hit::tdcTime.

Referenced by EventReducer::reduceEvent().

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

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