LDMX Software
HcalVetoResult.h
Go to the documentation of this file.
1
8#ifndef HCAL_EVENT_HCALVETORESULT_H_
9#define HCAL_EVENT_HCALVETORESULT_H_
10
11//----------//
12// ROOT //
13//----------//
14#include "TObject.h" //For ClassDef
15
16//----------//
17// LDMX //
18//----------//
19#include "Hcal/Event/HcalHit.h"
20
21namespace ldmx {
22
24 public:
26 HcalVetoResult() = default;
27
29 virtual ~HcalVetoResult() = default;
30
32 void Clear();
33
35 void Print() const;
36
38 bool passesVeto() const { return passes_veto_; };
39
42
44 float getTotalPE() const { return total_PE_; }
45
47 float getNumValidHits() const { return num_valid_hits_; }
48
54 void setVetoResult(const bool& passes_veto = true) {
55 passes_veto_ = passes_veto;
56 }
57
63 void setMaxPEHit(const ldmx::HcalHit max_PE_hit) { max_PE_hit_ = max_PE_hit; }
64
70 void setTotalPE(const float total_PE) { total_PE_ = total_PE; }
71
77 void setNumValidHits(const float num_valid_hits) {
78 num_valid_hits_ = num_valid_hits;
79 }
80
81 private:
84
85 // Total number of PE
86 float total_PE_{0.0};
87
88 // Number of hits above threshold
89 int num_valid_hits_{0};
90
92 bool passes_veto_{false};
93
94 ClassDef(HcalVetoResult, 3);
95
96}; // HcalVetoResult
97} // namespace ldmx
98
99#endif // HCAL_EVENT_HCALVETORESULT_H_
Class that stores Stores reconstructed hit information from the HCAL.
Stores reconstructed hit information from the HCAL.
Definition HcalHit.h:24
ldmx::HcalHit max_PE_hit_
Reference to max PE hit.
float getNumValidHits() const
void setVetoResult(const bool &passes_veto=true)
Sets whether the Hcal veto was passed or not.
void Print() const
Print out the object.
bool passesVeto() const
Checks if the event passes the Hcal veto.
void setTotalPE(const float total_PE)
Set the total number of PE.
virtual ~HcalVetoResult()=default
Destructor.
void setNumValidHits(const float num_valid_hits)
Set the number of valid hits.
bool passes_veto_
Flag indicating whether the event passes the Hcal veto.
ldmx::HcalHit getMaxPEHit() const
void setMaxPEHit(const ldmx::HcalHit max_PE_hit)
Set the maximum PE hit.
float getTotalPE() const
void Clear()
Reset the object.
HcalVetoResult()=default
Constructor.