Class Reference for E1039 Core & Analysis Software
UtilTrigger.h
Go to the documentation of this file.
1 #ifndef _UTIL_TRIGGER__H_
2 #define _UTIL_TRIGGER__H_
3 //#include <vector>
4 class SQHitVector;
5 
6 namespace UtilTrigger {
7  class TrigRoadset;
8  int Hodo2Road(const int h1, const int h2, const int h3, const int h4, const int tb);
9  void Road2Hodo(const int road, int& h1, int& h2, int& h3, int& h4, int& tb);
10  int FlipRoadLeftRight(const int road);
11  int FlipRoadTopBottom(const int road);
12  int ExtractRoadID(const SQHitVector* vec);
13  void FindFiredRoads(const SQHitVector* vec, const TrigRoadset* rs, const bool in_time, std::vector<int>* pos_top, std::vector<int>* pos_bot, std::vector<int>* neg_top, std::vector<int>* neg_bot);
14 
15 }; // namespace UtilTrigger
16 
17 #endif /* _UTIL_TRIGGER__H_ */
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32
Definition: rs_Reader.h:9
int FlipRoadLeftRight(const int road)
Flip the given road ID in the left-right direction.
Definition: UtilTrigger.cc:36
void Road2Hodo(const int road, int &h1, int &h2, int &h3, int &h4, int &tb)
Convert a roadset ID to a set of hodo IDs.
Definition: UtilTrigger.cc:21
void FindFiredRoads(const SQHitVector *vec, const TrigRoadset *rs, const bool in_time, std::vector< int > *pos_top, std::vector< int > *pos_bot, std::vector< int > *neg_top, std::vector< int > *neg_bot)
Find all fired roads enabled in rs, by taking all hit combinations from vec.
Definition: UtilTrigger.cc:101
int Hodo2Road(const int h1, const int h2, const int h3, const int h4, const int tb)
Convert a set of hodo IDs to a roadset ID.
Definition: UtilTrigger.cc:13
int FlipRoadTopBottom(const int road)
Flip the given road ID in the top-bottom direction.
Definition: UtilTrigger.cc:48
int ExtractRoadID(const SQHitVector *vec)
Find a unique road in the given list of SQHits.
Definition: UtilTrigger.cc:62