1 #ifndef _TRIGGERANALYZER_H
2 #define _TRIGGERANALYZER_H
43 bool init(std::string fileName,
double cut_td = 0.,
double cut_gun = 1E8);
50 bool acceptEvent(
int nHits,
int detectorIDs[],
int elementIDs[]);
54 void trimEvent(
SRawEvent* rawEvent, std::list<Hit>& hitlist,
bool USE_TRIGGER_HIT,
bool USE_HIT);
57 std::map<int, TriggerRoad>&
getRoadsAll(
int charge) {
return roads[(-charge+1)/2]; }
58 std::map<int, TriggerRoad>&
getRoadsEnabled(
int charge) {
return roads_enabled[(-charge+1)/2]; }
59 std::map<int, TriggerRoad>&
getRoadsDisabled(
int charge) {
return roads_disabled[(-charge+1)/2]; }
60 std::list<TriggerRoad>&
getRoadsFound(
int charge) {
return roads_found[(-charge+1)/2]; }
72 bool buildData(
int nHits,
int detectorIDs[],
int elementIDs[]);
78 void print(
int charge) { roads_temp.clear();
printTree(root[(-charge+1)/2]); }
79 void clear(
int charge) { roads_temp.clear();
clearTree(root[(-charge+1)/2]); }
95 std::map<int, TriggerRoad> roads[2];
96 std::map<int, TriggerRoad> roads_enabled[2];
97 std::map<int, TriggerRoad> roads_disabled[2];
103 std::list<Trigger> triggers;
112 std::list<TriggerRoad> roads_found[2];
115 std::list<int> roads_temp;
118 std::vector<int> detectorIDs_trigger;
std::vector< std::set< int > > DataMatrix
User interface class about the geometry of detector planes.
std::list< SQTNode * > children
void search(SQTNode *root, DataMatrix &data, int level, int charge)
bool buildData(int nHits, int detectorIDs[], int elementIDs[])
void printData(DataMatrix &data)
std::list< TriggerRoad > & getRoadsFound(int charge)
void printTree(SQTNode *root)
std::map< int, TriggerRoad > & getRoadsDisabled(int charge)
void trimEvent(SRawEvent *rawEvent, std::list< Hit > &hitlist, bool USE_TRIGGER_HIT, bool USE_HIT)
void clearTree(SQTNode *root)
std::map< int, TriggerRoad > & getRoadsEnabled(int charge)
bool acceptEvent(TriggerRoad &p_road, TriggerRoad &m_road)
std::map< int, TriggerRoad > & getRoadsAll(int charge)