LDMX Software
TrigMip.h
1#ifndef TRIGGER_EVENT_TRIGMIP_H
2#define TRIGGER_EVENT_TRIGMIP_H
3#include <Rtypes.h>
4
5namespace trigger {
6
11class TrigMip {
12 public:
13 TrigMip() = default;
14
15 virtual ~TrigMip() = default;
16
17 bool operator<(const TrigMip& h) const { return length_ < h.length_; }
18
19 void setStartLayer(int startLayer) { start_layer_ = startLayer; }
20 void setEndLayer(int endLayer) { end_layer_ = endLayer; }
21 void setNHits(int nHits) { n_hits_ = nHits; }
22 void setNHoles(int nHoles) { n_holes_ = nHoles; }
23 void setLength(int length) { length_ = length; }
24 void setSumEinIsolationRegion(float sum) { sum_e_in_isolation_region_ = sum; }
25
26 int startLayer() const { return start_layer_; }
27 int endLayer() const { return end_layer_; }
28 int nHits() const { return n_hits_; }
29 int nHoles() const { return n_holes_; }
30 int length() const { return length_; }
31 float sumEinIsolationRegion() const { return sum_e_in_isolation_region_; }
32
33 void clear();
34
35 private:
36 // first draft based on hcal
37 int start_layer_{0};
38 int end_layer_{0};
39 int n_hits_{0};
40 int n_holes_{0};
41 int length_{0};
42 float sum_e_in_isolation_region_{0.0f};
43
46};
47} // namespace trigger
48
49#endif // TRIGGER_EVENT_TRIGMIP_H
Class for clusters built from trigger calo hits.
Definition TrigMip.h:11
ClassDef(TrigMip, 1)
ROOT Dictionary class definition macro.