Class Reference for E1039 Core & Analysis Software
|
#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 () |
Definition at line 36 of file TriggerAnalyzer.h.
TriggerAnalyzer::TriggerAnalyzer | ( | ) |
Definition at line 27 of file TriggerAnalyzer.cxx.
References GeomSvc::getDetectorIDs(), and GeomSvc::instance().
TriggerAnalyzer::~TriggerAnalyzer | ( | ) |
Definition at line 44 of file TriggerAnalyzer.cxx.
References clear().
bool TriggerAnalyzer::acceptEvent | ( | int | nHits, |
int | detectorIDs[], | ||
int | elementIDs[] | ||
) |
Definition at line 312 of file TriggerAnalyzer.cxx.
References buildData(), and search().
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.
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().
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().
void TriggerAnalyzer::buildTriggerTree | ( | ) |
Definition at line 431 of file TriggerAnalyzer.cxx.
References SQTNode::add(), and SQTNode::children.
Referenced by EventReducer::EventReducer().
|
inline |
Definition at line 79 of file TriggerAnalyzer.h.
References clearTree().
Referenced by ~TriggerAnalyzer().
void TriggerAnalyzer::clearTree | ( | SQTNode * | root | ) |
Definition at line 415 of file TriggerAnalyzer.cxx.
References SQTNode::children.
Referenced by clear(), and printTree().
|
inline |
Definition at line 66 of file TriggerAnalyzer.h.
Referenced by trimEvent().
|
inline |
Definition at line 65 of file TriggerAnalyzer.h.
Referenced by trimEvent().
|
inline |
Definition at line 64 of file TriggerAnalyzer.h.
Referenced by trimEvent().
|
inline |
Definition at line 63 of file TriggerAnalyzer.h.
Referenced by trimEvent().
|
inline |
Definition at line 57 of file TriggerAnalyzer.h.
|
inline |
Definition at line 59 of file TriggerAnalyzer.h.
|
inline |
Definition at line 58 of file TriggerAnalyzer.h.
|
inline |
Definition at line 60 of file TriggerAnalyzer.h.
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.
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().
void TriggerAnalyzer::makeRoadPairs | ( | ) |
Definition at line 199 of file TriggerAnalyzer.cxx.
Referenced by init().
void TriggerAnalyzer::outputEnabled | ( | ) |
Definition at line 492 of file TriggerAnalyzer.cxx.
|
inline |
Definition at line 78 of file TriggerAnalyzer.h.
References printTree().
void TriggerAnalyzer::printData | ( | DataMatrix & | data | ) |
Definition at line 479 of file TriggerAnalyzer.cxx.
void TriggerAnalyzer::printRoadFound | ( | ) |
Definition at line 469 of file TriggerAnalyzer.cxx.
Referenced by 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().
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().
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().