LDMX Software
ldmx::EcalVetoResult Class Reference

Public Member Functions

 EcalVetoResult ()=default
 Constructor.
 
virtual ~EcalVetoResult ()
 Destructor.
 
void setVariables (int n_readout_hits, int deepest_layer_hit, int n_hits_in_photon_territory, float summed_det, float summed_tight_iso, float max_cell_dep, float shower_rms, float x_std, float y_std, float avg_layer_hit, float std_layer_hit, float ecal_back_energy, float ep_ang, float ep_ang_at_target, float ep_sep, float ep_dot, float ep_dot_at_target, std::vector< float > electron_containment_energy, std::vector< float > photon_containment_energy, std::vector< float > outside_containment_energy, std::vector< int > outside_containment_n_hits, std::vector< float > outside_containment_x_std, std::vector< float > outside_containment_y_std, std::vector< float > energy_seg, std::vector< float > x_mean_seg, std::vector< float > y_mean_seg, std::vector< float > x_std_seg, std::vector< float > y_std_seg, std::vector< float > layer_mean_seg, std::vector< float > layer_std_seg, std::vector< std::vector< float > > e_cont_energy, std::vector< std::vector< float > > e_cont_x_mean, std::vector< std::vector< float > > e_cont_y_mean, std::vector< std::vector< float > > g_cont_energy, std::vector< std::vector< int > > g_cont_n_hits, std::vector< std::vector< float > > g_cont_x_mean, std::vector< std::vector< float > > g_cont_y_mean, std::vector< std::vector< float > > o_cont_energy, std::vector< std::vector< int > > o_cont_n_hits, std::vector< std::vector< float > > o_cont_x_mean, std::vector< std::vector< float > > o_cont_y_mean, std::vector< std::vector< float > > o_cont_x_std, std::vector< std::vector< float > > o_cont_y_std, std::vector< std::vector< float > > o_cont_layer_mean, std::vector< std::vector< float > > o_cont_layer_std, std::vector< float > ecal_layer_edep_readout, std::array< float, 3 > recoil_p, std::array< float, 3 > recoil_pos)
 Set the sim particle and 'is findable' flag.
 
void clear ()
 Reset the object.
 
bool passesVeto () const
 Checks if the event passes the Ecal veto.
 
float getDisc () const
 
bool getFiducial () const
 
int getDeepestLayerHit () const
 
bool getTrackingFiducial () const
 
int getNReadoutHits () const
 
float getSummedDet () const
 
float getSummedTightIso () const
 
float getMaxCellDep () const
 
float getShowerRMS () const
 
float getXStd () const
 
float getYStd () const
 
float getAvgLayerHit () const
 
float getStdLayerHit () const
 
float getEcalBackEnergy () const
 
int getNHitsInPhotonTerritory () const
 
float getEPAng () const
 
float getEPAngAtTarget () const
 
float getEPSep () const
 
float getEPDot () const
 
float getEPDotAtTarget () const
 
const std::vector< float > & getElectronContainmentEnergy () const
 
const std::vector< float > & getPhotonContainmentEnergy () const
 
const std::vector< float > & getOutsideContainmentEnergy () const
 
const std::vector< int > & getOutsideContainmentNHits () const
 
const std::vector< float > & getOutsideContainmentXStd () const
 
const std::vector< float > & getOutsideContainmentYStd () const
 
const std::vector< float > & getEcalLayerEdepReadout () const
 
const std::vector< float > & getEnergySeg () const
 
const std::vector< float > & getXMeanSeg () const
 
const std::vector< float > & getYMeanSeg () const
 
const std::vector< float > & getXStdSeg () const
 
const std::vector< float > & getYStdSeg () const
 
const std::vector< float > & getLayerMeanSeg () const
 
const std::vector< float > & getLayerStdSeg () const
 
const std::vector< std::vector< float > > & getEleContEnergy () const
 
const std::vector< std::vector< float > > & getEleContXMean () const
 
const std::vector< std::vector< float > > & getEleContYMean () const
 
const std::vector< std::vector< float > > & getPhContEnergy () const
 
const std::vector< std::vector< int > > & getPhContNHits () const
 
const std::vector< std::vector< float > > & getPhContXMean () const
 
const std::vector< std::vector< float > > & getPhContYMean () const
 
const std::vector< std::vector< float > > & getOutContEnergy () const
 
const std::vector< std::vector< int > > & getOutContNHits () const
 
const std::vector< std::vector< float > > & getOutContXMean () const
 
const std::vector< std::vector< float > > & getOutContYMean () const
 
const std::vector< std::vector< float > > & getOutContXStd () const
 
const std::vector< std::vector< float > > & getOutContYStd () const
 
const std::vector< std::vector< float > > & getOutContLayerMean () const
 
const std::vector< std::vector< float > > & getOutContLayerStd () const
 
void setVetoResult (bool passes_veto)
 
void setDiscValue (float disc_value)
 
void setFiducial (bool fiducial)
 
void setTrackingFiducial (bool tracking_fiducial)
 
const std::vector< float > getRecoilMomentum () const
 Return the momentum of the recoil at the Ecal face.
 
float getRecoilX () const
 Return the x position of the recoil at the Ecal face.
 
float getRecoilY () const
 Return the y position of the recoil at the Ecal face.
 

Private Member Functions

 ClassDef (EcalVetoResult, 13)
 

Private Attributes

bool passes_veto_ {false}
 Flag indicating whether the event is vetoed by the Ecal.
 
int n_readout_hits_ {0}
 
int deepest_layer_hit_ {0}
 
float summed_det_ {0}
 
float summed_tight_iso_ {0}
 
float max_cell_dep_ {0}
 
float shower_rms_ {0}
 
float x_std_ {0}
 
float y_std_ {0}
 
float avg_layer_hit_ {0}
 
float std_layer_hit_ {0}
 
float ecal_back_energy_ {0}
 
std::vector< float > electron_containment_energy_
 
std::vector< float > photon_containment_energy_
 
std::vector< float > outside_containment_energy_
 
std::vector< int > outside_containment_n_hits_
 
std::vector< float > outside_containment_x_std_
 
std::vector< float > outside_containment_y_std_
 
std::vector< float > energy_seg_
 
std::vector< float > x_mean_seg_
 
std::vector< float > y_mean_seg_
 
std::vector< float > x_std_seg_
 
std::vector< float > y_std_seg_
 
std::vector< float > layer_mean_seg_
 
std::vector< float > layer_std_seg_
 
std::vector< std::vector< float > > e_cont_energy_
 
std::vector< std::vector< float > > e_cont_x_mean_
 
std::vector< std::vector< float > > e_cont_y_mean_
 
std::vector< std::vector< float > > g_cont_energy_
 
std::vector< std::vector< int > > g_cont_n_hits_
 
std::vector< std::vector< float > > g_cont_x_mean_
 
std::vector< std::vector< float > > g_cont_y_mean_
 
std::vector< std::vector< float > > o_cont_energy_
 
std::vector< std::vector< int > > o_cont_n_hits_
 
std::vector< std::vector< float > > o_cont_x_mean_
 
std::vector< std::vector< float > > o_cont_y_mean_
 
std::vector< std::vector< float > > o_cont_x_std_
 
std::vector< std::vector< float > > o_cont_y_std_
 
std::vector< std::vector< float > > o_cont_layer_mean_
 
std::vector< std::vector< float > > o_cont_layer_std_
 
float disc_value_ {0}
 discriminator value from the BDT
 
bool fiducial_ {false}
 is the recoil electron fiducial in ECAL?
 
bool tracking_fiducial_ {false}
 is the recoil electron fiducial in Tracker?
 
float recoil_px_ {-9999}
 px of recoil electron at the Ecal face.
 
float recoil_py_ {-9999}
 py of recoil electron at the Ecal face.
 
float recoil_pz_ {-9999}
 pz of recoil electron at the Ecal face.
 
float recoil_x_ {-9999}
 x-position of recoil electron at the Ecal face.
 
float recoil_y_ {-9999}
 y-position of recoil electron at the Ecal face.
 
int n_hits_in_photon_territory_ {0}
 Number of hits outside of the electron roc in the Ecal or if the electron trajectory is missing, all the hits in the Ecal.
 
float ep_ang_ {0}
 Angular separation between the projected photon and electron trajectories as projected at the ECAL.
 
float ep_ang_at_target_ {0}
 Angular separation between the projected photon and electron trajectories as projected at the target.
 
float ep_sep_ {0}
 Distance between the projected photon and electron trajectories at the ECal face.
 
float ep_dot_ {0}
 Dot product of the photon and electron momenta unit vectors as at ECAL.
 
float ep_dot_at_target_ {0}
 Dot product of the photon and electron momenta unit vectors as at Target.
 
std::vector< float > ecal_layer_edep_readout_
 

Friends

std::ostream & operator<< (std::ostream &o, const EcalVetoResult &d)
 Print the object.
 

Detailed Description

Definition at line 25 of file EcalVetoResult.h.

Constructor & Destructor Documentation

◆ ~EcalVetoResult()

ldmx::EcalVetoResult::~EcalVetoResult ( )
virtual

Destructor.

Definition at line 7 of file EcalVetoResult.cxx.

7{ clear(); }
void clear()
Reset the object.

References clear().

Member Function Documentation

◆ clear()

void ldmx::EcalVetoResult::clear ( )

Reset the object.

Definition at line 9 of file EcalVetoResult.cxx.

9 {
10 passes_veto_ = false;
11
12 n_readout_hits_ = 0;
13 summed_det_ = 0;
14 summed_tight_iso_ = 0;
15 max_cell_dep_ = 0;
16 shower_rms_ = 0;
17 x_std_ = 0;
18 y_std_ = 0;
19 avg_layer_hit_ = 0;
20 std_layer_hit_ = 0;
21 deepest_layer_hit_ = 0;
22 ecal_back_energy_ = 0;
24 ep_ang_ = 0;
26 ep_sep_ = 0;
27 ep_dot_ = 0;
29
30 electron_containment_energy_.clear();
31 photon_containment_energy_.clear();
32 outside_containment_energy_.clear();
33 outside_containment_n_hits_.clear();
34 outside_containment_x_std_.clear();
35 outside_containment_y_std_.clear();
36
37 energy_seg_.clear();
38 x_mean_seg_.clear();
39 y_mean_seg_.clear();
40 x_std_seg_.clear();
41 y_std_seg_.clear();
42 layer_mean_seg_.clear();
43 layer_std_seg_.clear();
44
45 e_cont_energy_.clear();
46 e_cont_x_mean_.clear();
47 e_cont_y_mean_.clear();
48 g_cont_energy_.clear();
49 g_cont_n_hits_.clear();
50 g_cont_x_mean_.clear();
51 g_cont_y_mean_.clear();
52 o_cont_energy_.clear();
53 o_cont_n_hits_.clear();
54 o_cont_x_mean_.clear();
55 o_cont_y_mean_.clear();
56 o_cont_x_std_.clear();
57 o_cont_y_std_.clear();
58 o_cont_layer_mean_.clear();
59 o_cont_layer_std_.clear();
60
61 disc_value_ = 0;
62
63 recoil_px_ = -9999;
64 recoil_py_ = -9999;
65 recoil_pz_ = -9999;
66 recoil_x_ = -9999;
67 recoil_y_ = -9999;
68
69 ecal_layer_edep_readout_.clear();
70}
float disc_value_
discriminator value from the BDT
float ep_sep_
Distance between the projected photon and electron trajectories at the ECal face.
float ep_ang_
Angular separation between the projected photon and electron trajectories as projected at the ECAL.
float recoil_y_
y-position of recoil electron at the Ecal face.
float recoil_x_
x-position of recoil electron at the Ecal face.
float ep_dot_at_target_
Dot product of the photon and electron momenta unit vectors as at Target.
float recoil_pz_
pz of recoil electron at the Ecal face.
bool passes_veto_
Flag indicating whether the event is vetoed by the Ecal.
float recoil_px_
px of recoil electron at the Ecal face.
float recoil_py_
py of recoil electron at the Ecal face.
float ep_dot_
Dot product of the photon and electron momenta unit vectors as at ECAL.
float ep_ang_at_target_
Angular separation between the projected photon and electron trajectories as projected at the target.
int n_hits_in_photon_territory_
Number of hits outside of the electron roc in the Ecal or if the electron trajectory is missing,...

References disc_value_, ep_ang_, ep_ang_at_target_, ep_dot_, ep_dot_at_target_, ep_sep_, n_hits_in_photon_territory_, passes_veto_, recoil_px_, recoil_py_, recoil_pz_, recoil_x_, and recoil_y_.

Referenced by ~EcalVetoResult().

◆ getAvgLayerHit()

float ldmx::EcalVetoResult::getAvgLayerHit ( ) const
inline

Definition at line 107 of file EcalVetoResult.h.

107{ return avg_layer_hit_; }

◆ getDeepestLayerHit()

int ldmx::EcalVetoResult::getDeepestLayerHit ( ) const
inline

Definition at line 88 of file EcalVetoResult.h.

88{ return deepest_layer_hit_; }

◆ getDisc()

float ldmx::EcalVetoResult::getDisc ( ) const
inline

Definition at line 84 of file EcalVetoResult.h.

84{ return disc_value_; }

◆ getEcalBackEnergy()

float ldmx::EcalVetoResult::getEcalBackEnergy ( ) const
inline

Definition at line 111 of file EcalVetoResult.h.

111{ return ecal_back_energy_; }

◆ getEcalLayerEdepReadout()

const std::vector< float > & ldmx::EcalVetoResult::getEcalLayerEdepReadout ( ) const
inline

Definition at line 149 of file EcalVetoResult.h.

149 {
150 return ecal_layer_edep_readout_;
151 }

◆ getEleContEnergy()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getEleContEnergy ( ) const
inline

Definition at line 167 of file EcalVetoResult.h.

167 {
168 return e_cont_energy_;
169 }

◆ getEleContXMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getEleContXMean ( ) const
inline

Definition at line 171 of file EcalVetoResult.h.

171 {
172 return e_cont_x_mean_;
173 }

◆ getEleContYMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getEleContYMean ( ) const
inline

Definition at line 175 of file EcalVetoResult.h.

175 {
176 return e_cont_y_mean_;
177 }

◆ getElectronContainmentEnergy()

const std::vector< float > & ldmx::EcalVetoResult::getElectronContainmentEnergy ( ) const
inline

Definition at line 125 of file EcalVetoResult.h.

125 {
126 return electron_containment_energy_;
127 }

◆ getEnergySeg()

const std::vector< float > & ldmx::EcalVetoResult::getEnergySeg ( ) const
inline

Definition at line 153 of file EcalVetoResult.h.

153{ return energy_seg_; }

◆ getEPAng()

float ldmx::EcalVetoResult::getEPAng ( ) const
inline

Definition at line 115 of file EcalVetoResult.h.

115{ return ep_ang_; }

◆ getEPAngAtTarget()

float ldmx::EcalVetoResult::getEPAngAtTarget ( ) const
inline

Definition at line 117 of file EcalVetoResult.h.

117{ return ep_ang_at_target_; }

◆ getEPDot()

float ldmx::EcalVetoResult::getEPDot ( ) const
inline

Definition at line 121 of file EcalVetoResult.h.

121{ return ep_dot_; }

◆ getEPDotAtTarget()

float ldmx::EcalVetoResult::getEPDotAtTarget ( ) const
inline

Definition at line 123 of file EcalVetoResult.h.

123{ return ep_dot_at_target_; }

◆ getEPSep()

float ldmx::EcalVetoResult::getEPSep ( ) const
inline

Definition at line 119 of file EcalVetoResult.h.

119{ return ep_sep_; }

◆ getFiducial()

bool ldmx::EcalVetoResult::getFiducial ( ) const
inline

Definition at line 86 of file EcalVetoResult.h.

86{ return fiducial_; }
bool fiducial_
is the recoil electron fiducial in ECAL?

◆ getLayerMeanSeg()

const std::vector< float > & ldmx::EcalVetoResult::getLayerMeanSeg ( ) const
inline

Definition at line 163 of file EcalVetoResult.h.

163{ return layer_mean_seg_; }

◆ getLayerStdSeg()

const std::vector< float > & ldmx::EcalVetoResult::getLayerStdSeg ( ) const
inline

Definition at line 165 of file EcalVetoResult.h.

165{ return layer_std_seg_; }

◆ getMaxCellDep()

float ldmx::EcalVetoResult::getMaxCellDep ( ) const
inline

Definition at line 99 of file EcalVetoResult.h.

99{ return max_cell_dep_; }

◆ getNHitsInPhotonTerritory()

int ldmx::EcalVetoResult::getNHitsInPhotonTerritory ( ) const
inline

Definition at line 113 of file EcalVetoResult.h.

◆ getNReadoutHits()

int ldmx::EcalVetoResult::getNReadoutHits ( ) const
inline

Definition at line 93 of file EcalVetoResult.h.

93{ return n_readout_hits_; }

◆ getOutContEnergy()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContEnergy ( ) const
inline

Definition at line 195 of file EcalVetoResult.h.

195 {
196 return o_cont_energy_;
197 }

◆ getOutContLayerMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContLayerMean ( ) const
inline

Definition at line 219 of file EcalVetoResult.h.

219 {
220 return o_cont_layer_mean_;
221 }

◆ getOutContLayerStd()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContLayerStd ( ) const
inline

Definition at line 223 of file EcalVetoResult.h.

223 {
224 return o_cont_layer_std_;
225 }

◆ getOutContNHits()

const std::vector< std::vector< int > > & ldmx::EcalVetoResult::getOutContNHits ( ) const
inline

Definition at line 199 of file EcalVetoResult.h.

199 {
200 return o_cont_n_hits_;
201 }

◆ getOutContXMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContXMean ( ) const
inline

Definition at line 203 of file EcalVetoResult.h.

203 {
204 return o_cont_x_mean_;
205 }

◆ getOutContXStd()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContXStd ( ) const
inline

Definition at line 211 of file EcalVetoResult.h.

211 {
212 return o_cont_x_std_;
213 }

◆ getOutContYMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContYMean ( ) const
inline

Definition at line 207 of file EcalVetoResult.h.

207 {
208 return o_cont_y_mean_;
209 }

◆ getOutContYStd()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getOutContYStd ( ) const
inline

Definition at line 215 of file EcalVetoResult.h.

215 {
216 return o_cont_y_std_;
217 }

◆ getOutsideContainmentEnergy()

const std::vector< float > & ldmx::EcalVetoResult::getOutsideContainmentEnergy ( ) const
inline

Definition at line 133 of file EcalVetoResult.h.

133 {
134 return outside_containment_energy_;
135 }

◆ getOutsideContainmentNHits()

const std::vector< int > & ldmx::EcalVetoResult::getOutsideContainmentNHits ( ) const
inline

Definition at line 137 of file EcalVetoResult.h.

137 {
138 return outside_containment_n_hits_;
139 }

◆ getOutsideContainmentXStd()

const std::vector< float > & ldmx::EcalVetoResult::getOutsideContainmentXStd ( ) const
inline

Definition at line 141 of file EcalVetoResult.h.

141 {
142 return outside_containment_x_std_;
143 }

◆ getOutsideContainmentYStd()

const std::vector< float > & ldmx::EcalVetoResult::getOutsideContainmentYStd ( ) const
inline

Definition at line 145 of file EcalVetoResult.h.

145 {
146 return outside_containment_y_std_;
147 }

◆ getPhContEnergy()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getPhContEnergy ( ) const
inline

Definition at line 179 of file EcalVetoResult.h.

179 {
180 return g_cont_energy_;
181 }

◆ getPhContNHits()

const std::vector< std::vector< int > > & ldmx::EcalVetoResult::getPhContNHits ( ) const
inline

Definition at line 183 of file EcalVetoResult.h.

183 {
184 return g_cont_n_hits_;
185 }

◆ getPhContXMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getPhContXMean ( ) const
inline

Definition at line 187 of file EcalVetoResult.h.

187 {
188 return g_cont_x_mean_;
189 }

◆ getPhContYMean()

const std::vector< std::vector< float > > & ldmx::EcalVetoResult::getPhContYMean ( ) const
inline

Definition at line 191 of file EcalVetoResult.h.

191 {
192 return g_cont_y_mean_;
193 }

◆ getPhotonContainmentEnergy()

const std::vector< float > & ldmx::EcalVetoResult::getPhotonContainmentEnergy ( ) const
inline

Definition at line 129 of file EcalVetoResult.h.

129 {
130 return photon_containment_energy_;
131 }

◆ getRecoilMomentum()

const std::vector< float > ldmx::EcalVetoResult::getRecoilMomentum ( ) const
inline

Return the momentum of the recoil at the Ecal face.

Definition at line 237 of file EcalVetoResult.h.

237 {
239 };

References recoil_px_, recoil_py_, and recoil_pz_.

◆ getRecoilX()

float ldmx::EcalVetoResult::getRecoilX ( ) const
inline

Return the x position of the recoil at the Ecal face.

Definition at line 242 of file EcalVetoResult.h.

242{ return recoil_x_; };

References recoil_x_.

◆ getRecoilY()

float ldmx::EcalVetoResult::getRecoilY ( ) const
inline

Return the y position of the recoil at the Ecal face.

Definition at line 245 of file EcalVetoResult.h.

245{ return recoil_y_; };

References recoil_y_.

◆ getShowerRMS()

float ldmx::EcalVetoResult::getShowerRMS ( ) const
inline

Definition at line 101 of file EcalVetoResult.h.

101{ return shower_rms_; }

◆ getStdLayerHit()

float ldmx::EcalVetoResult::getStdLayerHit ( ) const
inline

Definition at line 109 of file EcalVetoResult.h.

109{ return std_layer_hit_; }

◆ getSummedDet()

float ldmx::EcalVetoResult::getSummedDet ( ) const
inline

Definition at line 95 of file EcalVetoResult.h.

95{ return summed_det_; }

◆ getSummedTightIso()

float ldmx::EcalVetoResult::getSummedTightIso ( ) const
inline

Definition at line 97 of file EcalVetoResult.h.

97{ return summed_tight_iso_; }

◆ getTrackingFiducial()

bool ldmx::EcalVetoResult::getTrackingFiducial ( ) const
inline

Definition at line 91 of file EcalVetoResult.h.

91{ return tracking_fiducial_; }
bool tracking_fiducial_
is the recoil electron fiducial in Tracker?

◆ getXMeanSeg()

const std::vector< float > & ldmx::EcalVetoResult::getXMeanSeg ( ) const
inline

Definition at line 155 of file EcalVetoResult.h.

155{ return x_mean_seg_; }

◆ getXStd()

float ldmx::EcalVetoResult::getXStd ( ) const
inline

Definition at line 103 of file EcalVetoResult.h.

103{ return x_std_; }

◆ getXStdSeg()

const std::vector< float > & ldmx::EcalVetoResult::getXStdSeg ( ) const
inline

Definition at line 159 of file EcalVetoResult.h.

159{ return x_std_seg_; }

◆ getYMeanSeg()

const std::vector< float > & ldmx::EcalVetoResult::getYMeanSeg ( ) const
inline

Definition at line 157 of file EcalVetoResult.h.

157{ return y_mean_seg_; }

◆ getYStd()

float ldmx::EcalVetoResult::getYStd ( ) const
inline

Definition at line 105 of file EcalVetoResult.h.

105{ return y_std_; }

◆ getYStdSeg()

const std::vector< float > & ldmx::EcalVetoResult::getYStdSeg ( ) const
inline

Definition at line 161 of file EcalVetoResult.h.

161{ return y_std_seg_; }

◆ passesVeto()

bool ldmx::EcalVetoResult::passesVeto ( ) const
inline

Checks if the event passes the Ecal veto.

Definition at line 82 of file EcalVetoResult.h.

82{ return passes_veto_; }

References passes_veto_.

Referenced by ecal::EcalPnetVetoProcessor::produce(), and ecal::EcalVetoProcessor::produce().

◆ setDiscValue()

void ldmx::EcalVetoResult::setDiscValue ( float disc_value)
inline

Definition at line 228 of file EcalVetoResult.h.

228{ disc_value_ = disc_value; }

◆ setFiducial()

void ldmx::EcalVetoResult::setFiducial ( bool fiducial)
inline

Definition at line 229 of file EcalVetoResult.h.

229{ fiducial_ = fiducial; }

◆ setTrackingFiducial()

void ldmx::EcalVetoResult::setTrackingFiducial ( bool tracking_fiducial)
inline

Definition at line 232 of file EcalVetoResult.h.

232 {
233 tracking_fiducial_ = tracking_fiducial;
234 }

◆ setVariables()

void ldmx::EcalVetoResult::setVariables ( int n_readout_hits,
int deepest_layer_hit,
int n_hits_in_photon_territory,
float summed_det,
float summed_tight_iso,
float max_cell_dep,
float shower_rms,
float x_std,
float y_std,
float avg_layer_hit,
float std_layer_hit,
float ecal_back_energy,
float ep_ang,
float ep_ang_at_target,
float ep_sep,
float ep_dot,
float ep_dot_at_target,
std::vector< float > electron_containment_energy,
std::vector< float > photon_containment_energy,
std::vector< float > outside_containment_energy,
std::vector< int > outside_containment_n_hits,
std::vector< float > outside_containment_x_std,
std::vector< float > outside_containment_y_std,
std::vector< float > energy_seg,
std::vector< float > x_mean_seg,
std::vector< float > y_mean_seg,
std::vector< float > x_std_seg,
std::vector< float > y_std_seg,
std::vector< float > layer_mean_seg,
std::vector< float > layer_std_seg,
std::vector< std::vector< float > > e_cont_energy,
std::vector< std::vector< float > > e_cont_x_mean,
std::vector< std::vector< float > > e_cont_y_mean,
std::vector< std::vector< float > > g_cont_energy,
std::vector< std::vector< int > > g_cont_n_hits,
std::vector< std::vector< float > > g_cont_x_mean,
std::vector< std::vector< float > > g_cont_y_mean,
std::vector< std::vector< float > > o_cont_energy,
std::vector< std::vector< int > > o_cont_n_hits,
std::vector< std::vector< float > > o_cont_x_mean,
std::vector< std::vector< float > > o_cont_y_mean,
std::vector< std::vector< float > > o_cont_x_std,
std::vector< std::vector< float > > o_cont_y_std,
std::vector< std::vector< float > > o_cont_layer_mean,
std::vector< std::vector< float > > o_cont_layer_std,
std::vector< float > ecal_layer_edep_readout,
std::array< float, 3 > recoil_p,
std::array< float, 3 > recoil_pos )

Set the sim particle and 'is findable' flag.

Definition at line 72 of file EcalVetoResult.cxx.

108 {
109 n_readout_hits_ = n_readout_hits;
110 summed_det_ = summed_det;
111 summed_tight_iso_ = summed_tight_iso;
112 max_cell_dep_ = max_cell_dep;
113 shower_rms_ = shower_rms;
114 x_std_ = x_std;
115 y_std_ = y_std;
116 avg_layer_hit_ = avg_layer_hit;
117 std_layer_hit_ = std_layer_hit;
118 deepest_layer_hit_ = deepest_layer_hit;
119 ecal_back_energy_ = ecal_back_energy;
120 n_hits_in_photon_territory_ = n_hits_in_photon_territory;
121 ep_ang_ = ep_ang;
122 ep_ang_at_target_ = ep_ang_at_target;
123 ep_sep_ = ep_sep;
124 ep_dot_ = ep_dot;
125 ep_dot_at_target_ = ep_dot_at_target;
126
127 electron_containment_energy_ = electron_containment_energy;
128 photon_containment_energy_ = photon_containment_energy;
129 outside_containment_energy_ = outside_containment_energy;
130 outside_containment_n_hits_ = outside_containment_n_hits;
131 outside_containment_x_std_ = outside_containment_x_std;
132 outside_containment_y_std_ = outside_containment_y_std;
133
134 energy_seg_ = energy_seg;
135 x_mean_seg_ = x_mean_seg;
136 y_mean_seg_ = y_mean_seg;
137 x_std_seg_ = x_std_seg;
138 y_std_seg_ = y_std_seg;
139 layer_mean_seg_ = layer_mean_seg;
140 layer_std_seg_ = layer_std_seg;
141
142 e_cont_energy_ = e_cont_energy;
143 e_cont_x_mean_ = e_cont_x_mean;
144 e_cont_y_mean_ = e_cont_y_mean;
145 g_cont_energy_ = g_cont_energy;
146 g_cont_n_hits_ = g_cont_n_hits;
147 g_cont_x_mean_ = g_cont_x_mean;
148 g_cont_y_mean_ = g_cont_y_mean;
149 o_cont_energy_ = o_cont_energy;
150 o_cont_n_hits_ = o_cont_n_hits;
151 o_cont_x_mean_ = o_cont_x_mean;
152 o_cont_y_mean_ = o_cont_y_mean;
153 o_cont_x_std_ = o_cont_x_std;
154 o_cont_y_std_ = o_cont_y_std;
155 o_cont_layer_mean_ = o_cont_layer_mean;
156 o_cont_layer_std_ = o_cont_layer_std;
157
158 // discvalue not set here
159
160 if (!recoil_p.empty()) {
161 recoil_px_ = recoil_p[0];
162 recoil_py_ = recoil_p[1];
163 recoil_pz_ = recoil_p[2];
164 }
165 if (!recoil_pos.empty()) {
166 recoil_x_ = recoil_pos[0];
167 recoil_y_ = recoil_pos[1];
168 }
169
170 ecal_layer_edep_readout_ = ecal_layer_edep_readout;
171}

References ep_ang_, ep_ang_at_target_, ep_dot_, ep_dot_at_target_, ep_sep_, n_hits_in_photon_territory_, recoil_px_, recoil_py_, recoil_pz_, recoil_x_, and recoil_y_.

Referenced by ecal::EcalVetoProcessor::produce().

◆ setVetoResult()

void ldmx::EcalVetoResult::setVetoResult ( bool passes_veto)
inline

Definition at line 227 of file EcalVetoResult.h.

227{ passes_veto_ = passes_veto; }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const EcalVetoResult & d )
friend

Print the object.

Definition at line 173 of file EcalVetoResult.cxx.

173 {
174 return o << "EcalVetoResult { Passes veto : " << c.passes_veto_ << " }";
175}

Member Data Documentation

◆ avg_layer_hit_

float ldmx::EcalVetoResult::avg_layer_hit_ {0}
private

Definition at line 260 of file EcalVetoResult.h.

260{0};

◆ deepest_layer_hit_

int ldmx::EcalVetoResult::deepest_layer_hit_ {0}
private

Definition at line 252 of file EcalVetoResult.h.

252{0};

◆ disc_value_

float ldmx::EcalVetoResult::disc_value_ {0}
private

discriminator value from the BDT

Definition at line 296 of file EcalVetoResult.h.

296{0};

Referenced by clear().

◆ e_cont_energy_

std::vector<std::vector<float> > ldmx::EcalVetoResult::e_cont_energy_
private

Definition at line 279 of file EcalVetoResult.h.

◆ e_cont_x_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::e_cont_x_mean_
private

Definition at line 280 of file EcalVetoResult.h.

◆ e_cont_y_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::e_cont_y_mean_
private

Definition at line 281 of file EcalVetoResult.h.

◆ ecal_back_energy_

float ldmx::EcalVetoResult::ecal_back_energy_ {0}
private

Definition at line 262 of file EcalVetoResult.h.

262{0};

◆ ecal_layer_edep_readout_

std::vector<float> ldmx::EcalVetoResult::ecal_layer_edep_readout_
private

Definition at line 337 of file EcalVetoResult.h.

◆ electron_containment_energy_

std::vector<float> ldmx::EcalVetoResult::electron_containment_energy_
private

Definition at line 264 of file EcalVetoResult.h.

◆ energy_seg_

std::vector<float> ldmx::EcalVetoResult::energy_seg_
private

Definition at line 271 of file EcalVetoResult.h.

◆ ep_ang_

float ldmx::EcalVetoResult::ep_ang_ {0}
private

Angular separation between the projected photon and electron trajectories as projected at the ECAL.

Definition at line 324 of file EcalVetoResult.h.

324{0};

Referenced by clear(), and setVariables().

◆ ep_ang_at_target_

float ldmx::EcalVetoResult::ep_ang_at_target_ {0}
private

Angular separation between the projected photon and electron trajectories as projected at the target.

Definition at line 327 of file EcalVetoResult.h.

327{0};

Referenced by clear(), and setVariables().

◆ ep_dot_

float ldmx::EcalVetoResult::ep_dot_ {0}
private

Dot product of the photon and electron momenta unit vectors as at ECAL.

Definition at line 333 of file EcalVetoResult.h.

333{0};

Referenced by clear(), and setVariables().

◆ ep_dot_at_target_

float ldmx::EcalVetoResult::ep_dot_at_target_ {0}
private

Dot product of the photon and electron momenta unit vectors as at Target.

Definition at line 335 of file EcalVetoResult.h.

335{0};

Referenced by clear(), and setVariables().

◆ ep_sep_

float ldmx::EcalVetoResult::ep_sep_ {0}
private

Distance between the projected photon and electron trajectories at the ECal face.

Definition at line 331 of file EcalVetoResult.h.

331{0};

Referenced by clear(), and setVariables().

◆ fiducial_

bool ldmx::EcalVetoResult::fiducial_ {false}
private

is the recoil electron fiducial in ECAL?

Definition at line 299 of file EcalVetoResult.h.

299{false};

◆ g_cont_energy_

std::vector<std::vector<float> > ldmx::EcalVetoResult::g_cont_energy_
private

Definition at line 282 of file EcalVetoResult.h.

◆ g_cont_n_hits_

std::vector<std::vector<int> > ldmx::EcalVetoResult::g_cont_n_hits_
private

Definition at line 283 of file EcalVetoResult.h.

◆ g_cont_x_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::g_cont_x_mean_
private

Definition at line 284 of file EcalVetoResult.h.

◆ g_cont_y_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::g_cont_y_mean_
private

Definition at line 285 of file EcalVetoResult.h.

◆ layer_mean_seg_

std::vector<float> ldmx::EcalVetoResult::layer_mean_seg_
private

Definition at line 276 of file EcalVetoResult.h.

◆ layer_std_seg_

std::vector<float> ldmx::EcalVetoResult::layer_std_seg_
private

Definition at line 277 of file EcalVetoResult.h.

◆ max_cell_dep_

float ldmx::EcalVetoResult::max_cell_dep_ {0}
private

Definition at line 256 of file EcalVetoResult.h.

256{0};

◆ n_hits_in_photon_territory_

int ldmx::EcalVetoResult::n_hits_in_photon_territory_ {0}
private

Number of hits outside of the electron roc in the Ecal or if the electron trajectory is missing, all the hits in the Ecal.

Definition at line 321 of file EcalVetoResult.h.

321{0};

Referenced by clear(), and setVariables().

◆ n_readout_hits_

int ldmx::EcalVetoResult::n_readout_hits_ {0}
private

Definition at line 251 of file EcalVetoResult.h.

251{0};

◆ o_cont_energy_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_energy_
private

Definition at line 286 of file EcalVetoResult.h.

◆ o_cont_layer_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_layer_mean_
private

Definition at line 292 of file EcalVetoResult.h.

◆ o_cont_layer_std_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_layer_std_
private

Definition at line 293 of file EcalVetoResult.h.

◆ o_cont_n_hits_

std::vector<std::vector<int> > ldmx::EcalVetoResult::o_cont_n_hits_
private

Definition at line 287 of file EcalVetoResult.h.

◆ o_cont_x_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_x_mean_
private

Definition at line 288 of file EcalVetoResult.h.

◆ o_cont_x_std_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_x_std_
private

Definition at line 290 of file EcalVetoResult.h.

◆ o_cont_y_mean_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_y_mean_
private

Definition at line 289 of file EcalVetoResult.h.

◆ o_cont_y_std_

std::vector<std::vector<float> > ldmx::EcalVetoResult::o_cont_y_std_
private

Definition at line 291 of file EcalVetoResult.h.

◆ outside_containment_energy_

std::vector<float> ldmx::EcalVetoResult::outside_containment_energy_
private

Definition at line 266 of file EcalVetoResult.h.

◆ outside_containment_n_hits_

std::vector<int> ldmx::EcalVetoResult::outside_containment_n_hits_
private

Definition at line 267 of file EcalVetoResult.h.

◆ outside_containment_x_std_

std::vector<float> ldmx::EcalVetoResult::outside_containment_x_std_
private

Definition at line 268 of file EcalVetoResult.h.

◆ outside_containment_y_std_

std::vector<float> ldmx::EcalVetoResult::outside_containment_y_std_
private

Definition at line 269 of file EcalVetoResult.h.

◆ passes_veto_

bool ldmx::EcalVetoResult::passes_veto_ {false}
private

Flag indicating whether the event is vetoed by the Ecal.

Definition at line 249 of file EcalVetoResult.h.

249{false};

Referenced by clear(), and passesVeto().

◆ photon_containment_energy_

std::vector<float> ldmx::EcalVetoResult::photon_containment_energy_
private

Definition at line 265 of file EcalVetoResult.h.

◆ recoil_px_

float ldmx::EcalVetoResult::recoil_px_ {-9999}
private

px of recoil electron at the Ecal face.

Definition at line 305 of file EcalVetoResult.h.

305{-9999};

Referenced by clear(), getRecoilMomentum(), and setVariables().

◆ recoil_py_

float ldmx::EcalVetoResult::recoil_py_ {-9999}
private

py of recoil electron at the Ecal face.

Definition at line 308 of file EcalVetoResult.h.

308{-9999};

Referenced by clear(), getRecoilMomentum(), and setVariables().

◆ recoil_pz_

float ldmx::EcalVetoResult::recoil_pz_ {-9999}
private

pz of recoil electron at the Ecal face.

Definition at line 311 of file EcalVetoResult.h.

311{-9999};

Referenced by clear(), getRecoilMomentum(), and setVariables().

◆ recoil_x_

float ldmx::EcalVetoResult::recoil_x_ {-9999}
private

x-position of recoil electron at the Ecal face.

Definition at line 314 of file EcalVetoResult.h.

314{-9999};

Referenced by clear(), getRecoilX(), and setVariables().

◆ recoil_y_

float ldmx::EcalVetoResult::recoil_y_ {-9999}
private

y-position of recoil electron at the Ecal face.

Definition at line 317 of file EcalVetoResult.h.

317{-9999};

Referenced by clear(), getRecoilY(), and setVariables().

◆ shower_rms_

float ldmx::EcalVetoResult::shower_rms_ {0}
private

Definition at line 257 of file EcalVetoResult.h.

257{0};

◆ std_layer_hit_

float ldmx::EcalVetoResult::std_layer_hit_ {0}
private

Definition at line 261 of file EcalVetoResult.h.

261{0};

◆ summed_det_

float ldmx::EcalVetoResult::summed_det_ {0}
private

Definition at line 254 of file EcalVetoResult.h.

254{0};

◆ summed_tight_iso_

float ldmx::EcalVetoResult::summed_tight_iso_ {0}
private

Definition at line 255 of file EcalVetoResult.h.

255{0};

◆ tracking_fiducial_

bool ldmx::EcalVetoResult::tracking_fiducial_ {false}
private

is the recoil electron fiducial in Tracker?

Definition at line 302 of file EcalVetoResult.h.

302{false};

◆ x_mean_seg_

std::vector<float> ldmx::EcalVetoResult::x_mean_seg_
private

Definition at line 272 of file EcalVetoResult.h.

◆ x_std_

float ldmx::EcalVetoResult::x_std_ {0}
private

Definition at line 258 of file EcalVetoResult.h.

258{0};

◆ x_std_seg_

std::vector<float> ldmx::EcalVetoResult::x_std_seg_
private

Definition at line 274 of file EcalVetoResult.h.

◆ y_mean_seg_

std::vector<float> ldmx::EcalVetoResult::y_mean_seg_
private

Definition at line 273 of file EcalVetoResult.h.

◆ y_std_

float ldmx::EcalVetoResult::y_std_ {0}
private

Definition at line 259 of file EcalVetoResult.h.

259{0};

◆ y_std_seg_

std::vector<float> ldmx::EcalVetoResult::y_std_seg_
private

Definition at line 275 of file EcalVetoResult.h.


The documentation for this class was generated from the following files: