1 #ifndef DPTriggerAnalyzer_H
2 #define DPTriggerAnalyzer_H
25 void addTrElement(
int uniqueID) { uniqueTrIDs.push_back(uniqueID); }
78 std::vector<int> uniqueTrIDs;
98 return _road_set_file_name;
102 _road_set_file_name = roadSetFileName;
114 void searchMatrix(MatrixNode* node,
int level,
int index);
120 std::list<DPTriggerRoad>&
getRoadsFound(
int index) {
return roads_found[index]; }
131 std::string _road_set_file_name;
136 typedef std::vector<std::set<int> > TrHitPattern;
141 MatrixNode* matrix[2];
142 std::map<TString, DPTriggerRoad> roads[2];
146 std::list<DPTriggerRoad> roads_found[2];
friend std::ostream & operator<<(std::ostream &os, const DPTriggerRoad &road)
printer
bool operator<(const DPTriggerRoad &elem) const
void printHitPattern()
Helper functions to print various things.
void setBkgRate(double rate)
int Init(PHCompositeNode *topNode)
void buildTriggerMatrix()
Build the trigger matrix by the input roads list.
void add(MatrixNode *child)
add a child
int End(PHCompositeNode *topNode)
Called at the end of all processing.
int InitRun(PHCompositeNode *topNode)
const std::string & get_road_set_file_name() const
bool operator==(const DPTriggerRoad &elem) const
comparison
DPTriggerAnalyzer(const std::string &name="DPTriggerAnalyzer")
int getTrElementID(unsigned int i) const
int getRoadID() const
Other gets.
void searchMatrix(MatrixNode *node, int level, int index)
Test the trigger pattern.
void setSigWeight(double weight)
void flipTB()
flip the LR or TB
void deleteMatrix(MatrixNode *node)
Tree deletion.
void addTrElement(int uniqueID)
add one hit into the road
void set_road_set_file_name(const std::string &roadSetFileName)
int process_event(PHCompositeNode *topNode)
std::list< MatrixNode * > children
virtual ~DPTriggerAnalyzer()
int getTB()
Get the sign of LR or TB.
int getTrID(unsigned int i) const
void addTrElement(int detectorID, int elementID)
double getBkgRate() const
An SQ interface class to hold a list of SQHit objects.
An SQ interface class to hold one event header.
std::list< DPTriggerRoad > & getRoadsFound(int index)
Helper function to retrieve the found road list.
An SQ interface class to hold the run-level info.
double getSigWeight() const
void set_nim_mode(const NimMode nim1, const NimMode nim2)
void setPxMin(double pxmin)
void setRoadID(int id)
Sets.
int getTrDetectorID(unsigned int i) const