1 #ifndef _UTIL_TRIGGER__H_
2 #define _UTIL_TRIGGER__H_
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);
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);
An SQ interface class to hold a list of SQHit objects.
int FlipRoadLeftRight(const int road)
Flip the given road ID in the left-right direction.
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.
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.
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.
int FlipRoadTopBottom(const int road)
Flip the given road ID in the top-bottom direction.
int ExtractRoadID(const SQHitVector *vec)
Find a unique road in the given list of SQHits.