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_tracking_hits, 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 getNTrackingHits () 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, 12)
 

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_tracking_hits_ {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 26 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.
int n_tracking_hits_
Number of hits outside of the electron roc in the Ecal or if the electron trajectory is missing,...
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.

References disc_value_, ep_ang_, ep_ang_at_target_, ep_dot_, ep_dot_at_target_, ep_sep_, n_tracking_hits_, 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 108 of file EcalVetoResult.h.

108{ return avg_layer_hit_; }

◆ getDeepestLayerHit()

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

Definition at line 89 of file EcalVetoResult.h.

89{ return deepest_layer_hit_; }

◆ getDisc()

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

Definition at line 85 of file EcalVetoResult.h.

85{ return disc_value_; }

◆ getEcalBackEnergy()

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

Definition at line 112 of file EcalVetoResult.h.

112{ return ecal_back_energy_; }

◆ getEcalLayerEdepReadout()

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

Definition at line 150 of file EcalVetoResult.h.

150 {
151 return ecal_layer_edep_readout_;
152 }

◆ getEleContEnergy()

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

Definition at line 168 of file EcalVetoResult.h.

168 {
169 return e_cont_energy_;
170 }

◆ getEleContXMean()

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

Definition at line 172 of file EcalVetoResult.h.

172 {
173 return e_cont_x_mean_;
174 }

◆ getEleContYMean()

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

Definition at line 176 of file EcalVetoResult.h.

176 {
177 return e_cont_y_mean_;
178 }

◆ getElectronContainmentEnergy()

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

Definition at line 126 of file EcalVetoResult.h.

126 {
127 return electron_containment_energy_;
128 }

◆ getEnergySeg()

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

Definition at line 154 of file EcalVetoResult.h.

154{ return energy_seg_; }

◆ getEPAng()

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

Definition at line 116 of file EcalVetoResult.h.

116{ return ep_ang_; }

◆ getEPAngAtTarget()

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

Definition at line 118 of file EcalVetoResult.h.

118{ return ep_ang_at_target_; }

◆ getEPDot()

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

Definition at line 122 of file EcalVetoResult.h.

122{ return ep_dot_; }

◆ getEPDotAtTarget()

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

Definition at line 124 of file EcalVetoResult.h.

124{ return ep_dot_at_target_; }

◆ getEPSep()

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

Definition at line 120 of file EcalVetoResult.h.

120{ return ep_sep_; }

◆ getFiducial()

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

Definition at line 87 of file EcalVetoResult.h.

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

◆ getLayerMeanSeg()

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

Definition at line 164 of file EcalVetoResult.h.

164{ return layer_mean_seg_; }

◆ getLayerStdSeg()

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

Definition at line 166 of file EcalVetoResult.h.

166{ return layer_std_seg_; }

◆ getMaxCellDep()

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

Definition at line 100 of file EcalVetoResult.h.

100{ return max_cell_dep_; }

◆ getNReadoutHits()

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

Definition at line 94 of file EcalVetoResult.h.

94{ return n_readout_hits_; }

◆ getNTrackingHits()

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

Definition at line 114 of file EcalVetoResult.h.

114{ return n_tracking_hits_; }

◆ getOutContEnergy()

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

Definition at line 196 of file EcalVetoResult.h.

196 {
197 return o_cont_energy_;
198 }

◆ getOutContLayerMean()

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

Definition at line 220 of file EcalVetoResult.h.

220 {
221 return o_cont_layer_mean_;
222 }

◆ getOutContLayerStd()

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

Definition at line 224 of file EcalVetoResult.h.

224 {
225 return o_cont_layer_std_;
226 }

◆ getOutContNHits()

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

Definition at line 200 of file EcalVetoResult.h.

200 {
201 return o_cont_n_hits_;
202 }

◆ getOutContXMean()

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

Definition at line 204 of file EcalVetoResult.h.

204 {
205 return o_cont_x_mean_;
206 }

◆ getOutContXStd()

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

Definition at line 212 of file EcalVetoResult.h.

212 {
213 return o_cont_x_std_;
214 }

◆ getOutContYMean()

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

Definition at line 208 of file EcalVetoResult.h.

208 {
209 return o_cont_y_mean_;
210 }

◆ getOutContYStd()

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

Definition at line 216 of file EcalVetoResult.h.

216 {
217 return o_cont_y_std_;
218 }

◆ getOutsideContainmentEnergy()

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

Definition at line 134 of file EcalVetoResult.h.

134 {
135 return outside_containment_energy_;
136 }

◆ getOutsideContainmentNHits()

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

Definition at line 138 of file EcalVetoResult.h.

138 {
139 return outside_containment_n_hits_;
140 }

◆ getOutsideContainmentXStd()

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

Definition at line 142 of file EcalVetoResult.h.

142 {
143 return outside_containment_x_std_;
144 }

◆ getOutsideContainmentYStd()

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

Definition at line 146 of file EcalVetoResult.h.

146 {
147 return outside_containment_y_std_;
148 }

◆ getPhContEnergy()

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

Definition at line 180 of file EcalVetoResult.h.

180 {
181 return g_cont_energy_;
182 }

◆ getPhContNHits()

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

Definition at line 184 of file EcalVetoResult.h.

184 {
185 return g_cont_n_hits_;
186 }

◆ getPhContXMean()

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

Definition at line 188 of file EcalVetoResult.h.

188 {
189 return g_cont_x_mean_;
190 }

◆ getPhContYMean()

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

Definition at line 192 of file EcalVetoResult.h.

192 {
193 return g_cont_y_mean_;
194 }

◆ getPhotonContainmentEnergy()

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

Definition at line 130 of file EcalVetoResult.h.

130 {
131 return photon_containment_energy_;
132 }

◆ getRecoilMomentum()

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

Return the momentum of the recoil at the Ecal face.

Definition at line 238 of file EcalVetoResult.h.

238 {
240 };

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 243 of file EcalVetoResult.h.

243{ 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 246 of file EcalVetoResult.h.

246{ return recoil_y_; };

References recoil_y_.

◆ getShowerRMS()

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

Definition at line 102 of file EcalVetoResult.h.

102{ return shower_rms_; }

◆ getStdLayerHit()

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

Definition at line 110 of file EcalVetoResult.h.

110{ return std_layer_hit_; }

◆ getSummedDet()

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

Definition at line 96 of file EcalVetoResult.h.

96{ return summed_det_; }

◆ getSummedTightIso()

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

Definition at line 98 of file EcalVetoResult.h.

98{ return summed_tight_iso_; }

◆ getTrackingFiducial()

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

Definition at line 92 of file EcalVetoResult.h.

92{ 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 156 of file EcalVetoResult.h.

156{ return x_mean_seg_; }

◆ getXStd()

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

Definition at line 104 of file EcalVetoResult.h.

104{ return x_std_; }

◆ getXStdSeg()

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

Definition at line 160 of file EcalVetoResult.h.

160{ return x_std_seg_; }

◆ getYMeanSeg()

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

Definition at line 158 of file EcalVetoResult.h.

158{ return y_mean_seg_; }

◆ getYStd()

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

Definition at line 106 of file EcalVetoResult.h.

106{ return y_std_; }

◆ getYStdSeg()

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

Definition at line 162 of file EcalVetoResult.h.

162{ return y_std_seg_; }

◆ passesVeto()

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

Checks if the event passes the Ecal veto.

Definition at line 83 of file EcalVetoResult.h.

83{ 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 229 of file EcalVetoResult.h.

229{ disc_value_ = disc_value; }

◆ setFiducial()

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

Definition at line 230 of file EcalVetoResult.h.

230{ fiducial_ = fiducial; }

◆ setTrackingFiducial()

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

Definition at line 233 of file EcalVetoResult.h.

233 {
234 tracking_fiducial_ = tracking_fiducial;
235 }

◆ setVariables()

void ldmx::EcalVetoResult::setVariables ( int n_readout_hits,
int deepest_layer_hit,
int n_tracking_hits,
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_tracking_hits_ = n_tracking_hits;
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_tracking_hits_, 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 228 of file EcalVetoResult.h.

228{ 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 261 of file EcalVetoResult.h.

261{0};

◆ deepest_layer_hit_

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

Definition at line 253 of file EcalVetoResult.h.

253{0};

◆ disc_value_

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

discriminator value from the BDT

Definition at line 297 of file EcalVetoResult.h.

297{0};

Referenced by clear().

◆ e_cont_energy_

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

Definition at line 280 of file EcalVetoResult.h.

◆ e_cont_x_mean_

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

Definition at line 281 of file EcalVetoResult.h.

◆ e_cont_y_mean_

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

Definition at line 282 of file EcalVetoResult.h.

◆ ecal_back_energy_

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

Definition at line 263 of file EcalVetoResult.h.

263{0};

◆ ecal_layer_edep_readout_

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

Definition at line 338 of file EcalVetoResult.h.

◆ electron_containment_energy_

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

Definition at line 265 of file EcalVetoResult.h.

◆ energy_seg_

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

Definition at line 272 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 325 of file EcalVetoResult.h.

325{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 328 of file EcalVetoResult.h.

328{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 334 of file EcalVetoResult.h.

334{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 336 of file EcalVetoResult.h.

336{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 332 of file EcalVetoResult.h.

332{0};

Referenced by clear(), and setVariables().

◆ fiducial_

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

is the recoil electron fiducial in ECAL?

Definition at line 300 of file EcalVetoResult.h.

300{false};

◆ g_cont_energy_

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

Definition at line 283 of file EcalVetoResult.h.

◆ g_cont_n_hits_

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

Definition at line 284 of file EcalVetoResult.h.

◆ g_cont_x_mean_

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

Definition at line 285 of file EcalVetoResult.h.

◆ g_cont_y_mean_

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

Definition at line 286 of file EcalVetoResult.h.

◆ layer_mean_seg_

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

Definition at line 277 of file EcalVetoResult.h.

◆ layer_std_seg_

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

Definition at line 278 of file EcalVetoResult.h.

◆ max_cell_dep_

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

Definition at line 257 of file EcalVetoResult.h.

257{0};

◆ n_readout_hits_

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

Definition at line 252 of file EcalVetoResult.h.

252{0};

◆ n_tracking_hits_

int ldmx::EcalVetoResult::n_tracking_hits_ {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 322 of file EcalVetoResult.h.

322{0};

Referenced by clear(), and setVariables().

◆ o_cont_energy_

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

Definition at line 287 of file EcalVetoResult.h.

◆ o_cont_layer_mean_

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

Definition at line 293 of file EcalVetoResult.h.

◆ o_cont_layer_std_

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

Definition at line 294 of file EcalVetoResult.h.

◆ o_cont_n_hits_

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

Definition at line 288 of file EcalVetoResult.h.

◆ o_cont_x_mean_

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

Definition at line 289 of file EcalVetoResult.h.

◆ o_cont_x_std_

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

Definition at line 291 of file EcalVetoResult.h.

◆ o_cont_y_mean_

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

Definition at line 290 of file EcalVetoResult.h.

◆ o_cont_y_std_

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

Definition at line 292 of file EcalVetoResult.h.

◆ outside_containment_energy_

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

Definition at line 267 of file EcalVetoResult.h.

◆ outside_containment_n_hits_

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

Definition at line 268 of file EcalVetoResult.h.

◆ outside_containment_x_std_

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

Definition at line 269 of file EcalVetoResult.h.

◆ outside_containment_y_std_

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

Definition at line 270 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 250 of file EcalVetoResult.h.

250{false};

Referenced by clear(), and passesVeto().

◆ photon_containment_energy_

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

Definition at line 266 of file EcalVetoResult.h.

◆ recoil_px_

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

px of recoil electron at the Ecal face.

Definition at line 306 of file EcalVetoResult.h.

306{-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 309 of file EcalVetoResult.h.

309{-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 312 of file EcalVetoResult.h.

312{-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 315 of file EcalVetoResult.h.

315{-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 318 of file EcalVetoResult.h.

318{-9999};

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

◆ shower_rms_

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

Definition at line 258 of file EcalVetoResult.h.

258{0};

◆ std_layer_hit_

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

Definition at line 262 of file EcalVetoResult.h.

262{0};

◆ summed_det_

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

Definition at line 255 of file EcalVetoResult.h.

255{0};

◆ summed_tight_iso_

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

Definition at line 256 of file EcalVetoResult.h.

256{0};

◆ tracking_fiducial_

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

is the recoil electron fiducial in Tracker?

Definition at line 303 of file EcalVetoResult.h.

303{false};

◆ x_mean_seg_

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

Definition at line 273 of file EcalVetoResult.h.

◆ x_std_

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

Definition at line 259 of file EcalVetoResult.h.

259{0};

◆ x_std_seg_

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

Definition at line 275 of file EcalVetoResult.h.

◆ y_mean_seg_

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

Definition at line 274 of file EcalVetoResult.h.

◆ y_std_

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

Definition at line 260 of file EcalVetoResult.h.

260{0};

◆ y_std_seg_

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

Definition at line 276 of file EcalVetoResult.h.


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