LDMX Software
ldmx::EcalVetoResult Class Reference

Public Member Functions

 EcalVetoResult ()
 Constructor.
 
virtual ~EcalVetoResult ()
 Destructor.
 
void setVariables (int nReadoutHits, int deepestLayerHit, float summedDet, float summedTightIso, float maxCellDep, float showerRMS, float xStd, float yStd, float avgLayerHit, float stdLayerHit, float ecalBackEnergy, int nStraightTracks, int nLinregTracks, int firstNearPhLayer, int nNearPhHits, int photonTerritoryHits, float epAng, float epAngAtTarget, float epSep, float epDot, float epDotAtTarget, std::vector< float > electronContainmentEnergy, std::vector< float > photonContainmentEnergy, std::vector< float > outsideContainmentEnergy, std::vector< int > outsideContainmentNHits, std::vector< float > outsideContainmentXStd, std::vector< float > outsideContainmentYStd, std::vector< float > energySeg, std::vector< float > xMeanSeg, std::vector< float > yMeanSeg, std::vector< float > xStdSeg, std::vector< float > yStdSeg, std::vector< float > layerMeanSeg, std::vector< float > layerStdSeg, std::vector< std::vector< float > > eContEnergy, std::vector< std::vector< float > > eContXMean, std::vector< std::vector< float > > eContYMean, std::vector< std::vector< float > > gContEnergy, std::vector< std::vector< int > > gContNHits, std::vector< std::vector< float > > gContXMean, std::vector< std::vector< float > > gContYMean, std::vector< std::vector< float > > oContEnergy, std::vector< std::vector< int > > oContNHits, std::vector< std::vector< float > > oContXMean, std::vector< std::vector< float > > oContYMean, std::vector< std::vector< float > > oContXStd, std::vector< std::vector< float > > oContYStd, std::vector< std::vector< float > > oContLayerMean, std::vector< std::vector< float > > oContLayerStd, std::vector< float > EcalLayerEdepReadout, std::array< float, 3 > recoilP, std::array< float, 3 > recoilPos)
 Set the sim particle and 'is findable' flag.
 
void Clear ()
 Reset the object.
 
void Print () const
 Print 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
 
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 passesVeto)
 
void setDiscValue (float discValue)
 
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.
 
int getNStraightTracks () const
 Number of straight tracks found.
 
int getNLinRegTracks () const
 Number of linear-regression tracks found.
 
int getFirstNearPhLayer () const
 
int getNNearPhHits () const
 
int getPhotonTerritoryHits () const
 
float getEPAng () const
 
float getEPAngAtTarget () const
 
float getEPSep () const
 
float getEPDot () const
 
float getEPDotAtTarget () const
 

Private Member Functions

 ClassDef (EcalVetoResult, 9)
 

Private Attributes

bool passesVeto_ {false}
 Flag indicating whether the event is vetoed by the Ecal.
 
int nReadoutHits_ {0}
 
int deepestLayerHit_ {0}
 
float summedDet_ {0}
 
float summedTightIso_ {0}
 
float maxCellDep_ {0}
 
float showerRMS_ {0}
 
float xStd_ {0}
 
float yStd_ {0}
 
float avgLayerHit_ {0}
 
float stdLayerHit_ {0}
 
float ecalBackEnergy_ {0}
 
int nStraightTracks_ {0}
 Number of "straight" tracks found in the event.
 
int nLinregTracks_ {0}
 Number of "linreg" tracks found in the event.
 
int firstNearPhLayer_ {0}
 Earliest ECal layer in which a hit is found near the projected photon trajectory.
 
int nNearPhHits_ {0}
 Number of hits near the photon trajectory.
 
int photonTerritoryHits_ {0}
 Number of hits in the photon territory.
 
float epAng_ {0}
 Angular separation between the projected photon and electron trajectories as projected at the ECAL.
 
float epAngAtTarget_ {0}
 Angular separation between the projected photon and electron trajectories as projected at the target.
 
float epSep_ {0}
 Distance between the projected photon and electron trajectories at the ECal face.
 
float epDot_ {0}
 Dot product of the photon and electron momenta unit vectors as at ECAL.
 
float epDotAtTarget_ {0}
 Dot product of the photon and electron momenta unit vectors as at Target.
 
std::vector< float > electronContainmentEnergy_
 
std::vector< float > photonContainmentEnergy_
 
std::vector< float > outsideContainmentEnergy_
 
std::vector< int > outsideContainmentNHits_
 
std::vector< float > outsideContainmentXStd_
 
std::vector< float > outsideContainmentYStd_
 
std::vector< float > energySeg_
 
std::vector< float > xMeanSeg_
 
std::vector< float > yMeanSeg_
 
std::vector< float > xStdSeg_
 
std::vector< float > yStdSeg_
 
std::vector< float > layerMeanSeg_
 
std::vector< float > layerStdSeg_
 
std::vector< std::vector< float > > eContEnergy_
 
std::vector< std::vector< float > > eContXMean_
 
std::vector< std::vector< float > > eContYMean_
 
std::vector< std::vector< float > > gContEnergy_
 
std::vector< std::vector< int > > gContNHits_
 
std::vector< std::vector< float > > gContXMean_
 
std::vector< std::vector< float > > gContYMean_
 
std::vector< std::vector< float > > oContEnergy_
 
std::vector< std::vector< int > > oContNHits_
 
std::vector< std::vector< float > > oContXMean_
 
std::vector< std::vector< float > > oContYMean_
 
std::vector< std::vector< float > > oContXStd_
 
std::vector< std::vector< float > > oContYStd_
 
std::vector< std::vector< float > > oContLayerMean_
 
std::vector< std::vector< float > > oContLayerStd_
 
float discValue_ {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 recoilPx_ {-9999}
 px of recoil electron at the Ecal face.
 
float recoilPy_ {-9999}
 py of recoil electron at the Ecal face.
 
float recoilPz_ {-9999}
 py of recoil electron at the Ecal face.
 
float recoilX_ {-9999}
 x position of recoil electron at the Ecal face.
 
float recoilY_ {-9999}
 y position of recoil electron at the Ecal face.
 
std::vector< float > ecalLayerEdepReadout_
 

Detailed Description

Definition at line 26 of file EcalVetoResult.h.

Constructor & Destructor Documentation

◆ EcalVetoResult()

ldmx::EcalVetoResult::EcalVetoResult ( )

Constructor.

Definition at line 7 of file EcalVetoResult.cxx.

7{}

◆ ~EcalVetoResult()

ldmx::EcalVetoResult::~EcalVetoResult ( )
virtual

Destructor.

Definition at line 9 of file EcalVetoResult.cxx.

9{ Clear(); }
void Clear()
Reset the object.

References Clear().

Member Function Documentation

◆ Clear()

void ldmx::EcalVetoResult::Clear ( )

Reset the object.

Definition at line 11 of file EcalVetoResult.cxx.

11 {
12 passesVeto_ = false;
13
14 nReadoutHits_ = 0;
15 summedDet_ = 0;
16 summedTightIso_ = 0;
17 maxCellDep_ = 0;
18 showerRMS_ = 0;
19 xStd_ = 0;
20 yStd_ = 0;
21 avgLayerHit_ = 0;
22 stdLayerHit_ = 0;
23 deepestLayerHit_ = 0;
24 ecalBackEnergy_ = 0;
25 // MIP tracking
29 nNearPhHits_ = 0;
31 epAng_ = 0;
33 epSep_ = 0;
34 epDot_ = 0;
36
37 electronContainmentEnergy_.clear();
38 photonContainmentEnergy_.clear();
39 outsideContainmentEnergy_.clear();
40 outsideContainmentNHits_.clear();
41 outsideContainmentXStd_.clear();
42 outsideContainmentYStd_.clear();
43
44 energySeg_.clear();
45 xMeanSeg_.clear();
46 yMeanSeg_.clear();
47 xStdSeg_.clear();
48 yStdSeg_.clear();
49 layerMeanSeg_.clear();
50 layerStdSeg_.clear();
51
52 eContEnergy_.clear();
53 eContXMean_.clear();
54 eContYMean_.clear();
55 gContEnergy_.clear();
56 gContNHits_.clear();
57 gContXMean_.clear();
58 gContYMean_.clear();
59 oContEnergy_.clear();
60 oContNHits_.clear();
61 oContXMean_.clear();
62 oContYMean_.clear();
63 oContXStd_.clear();
64 oContYStd_.clear();
65 oContLayerMean_.clear();
66 oContLayerStd_.clear();
67
68 discValue_ = 0;
69
70 recoilPx_ = -9999;
71 recoilPy_ = -9999;
72 recoilPz_ = -9999;
73 recoilX_ = -9999;
74 recoilY_ = -9999;
75
76 ecalLayerEdepReadout_.clear();
77}
int firstNearPhLayer_
Earliest ECal layer in which a hit is found near the projected photon trajectory.
float recoilPy_
py of recoil electron at the Ecal face.
float recoilY_
y position of recoil electron at the Ecal face.
float discValue_
discriminator value from the BDT
float epDotAtTarget_
Dot product of the photon and electron momenta unit vectors as at Target.
float epSep_
Distance between the projected photon and electron trajectories at the ECal face.
float epDot_
Dot product of the photon and electron momenta unit vectors as at ECAL.
int nNearPhHits_
Number of hits near the photon trajectory.
bool passesVeto_
Flag indicating whether the event is vetoed by the Ecal.
float recoilPx_
px of recoil electron at the Ecal face.
int nLinregTracks_
Number of "linreg" tracks found in the event.
float epAngAtTarget_
Angular separation between the projected photon and electron trajectories as projected at the target.
float epAng_
Angular separation between the projected photon and electron trajectories as projected at the ECAL.
float recoilPz_
py of recoil electron at the Ecal face.
float recoilX_
x position of recoil electron at the Ecal face.
int photonTerritoryHits_
Number of hits in the photon territory.
int nStraightTracks_
Number of "straight" tracks found in the event.

References discValue_, epAng_, epAngAtTarget_, epDot_, epDotAtTarget_, epSep_, firstNearPhLayer_, nLinregTracks_, nNearPhHits_, nStraightTracks_, passesVeto_, photonTerritoryHits_, recoilPx_, recoilPy_, recoilPz_, recoilX_, and recoilY_.

Referenced by ~EcalVetoResult().

◆ getAvgLayerHit()

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

Definition at line 110 of file EcalVetoResult.h.

110{ return avgLayerHit_; }

◆ getDeepestLayerHit()

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

Definition at line 91 of file EcalVetoResult.h.

91{ return deepestLayerHit_; }

◆ getDisc()

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

Definition at line 87 of file EcalVetoResult.h.

87{ return discValue_; }

◆ getEcalBackEnergy()

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

Definition at line 114 of file EcalVetoResult.h.

114{ return ecalBackEnergy_; }

◆ getEcalLayerEdepReadout()

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

Definition at line 140 of file EcalVetoResult.h.

140 {
141 return ecalLayerEdepReadout_;
142 }

◆ getEleContEnergy()

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

Definition at line 158 of file EcalVetoResult.h.

158 {
159 return eContEnergy_;
160 }

◆ getEleContXMean()

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

Definition at line 162 of file EcalVetoResult.h.

162 {
163 return eContXMean_;
164 }

◆ getEleContYMean()

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

Definition at line 166 of file EcalVetoResult.h.

166 {
167 return eContYMean_;
168 }

◆ getElectronContainmentEnergy()

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

Definition at line 116 of file EcalVetoResult.h.

116 {
117 return electronContainmentEnergy_;
118 }

◆ getEnergySeg()

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

Definition at line 144 of file EcalVetoResult.h.

144{ return energySeg_; }

◆ getEPAng()

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

Definition at line 247 of file EcalVetoResult.h.

247{ return epAng_; }

◆ getEPAngAtTarget()

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

Definition at line 248 of file EcalVetoResult.h.

248{ return epAngAtTarget_; }

◆ getEPDot()

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

Definition at line 250 of file EcalVetoResult.h.

250{ return epDot_; }

◆ getEPDotAtTarget()

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

Definition at line 251 of file EcalVetoResult.h.

251{ return epDotAtTarget_; }

◆ getEPSep()

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

Definition at line 249 of file EcalVetoResult.h.

249{ return epSep_; }

◆ getFiducial()

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

Definition at line 89 of file EcalVetoResult.h.

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

◆ getFirstNearPhLayer()

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

Definition at line 244 of file EcalVetoResult.h.

244{ return firstNearPhLayer_; }

◆ getLayerMeanSeg()

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

Definition at line 154 of file EcalVetoResult.h.

154{ return layerMeanSeg_; }

◆ getLayerStdSeg()

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

Definition at line 156 of file EcalVetoResult.h.

156{ return layerStdSeg_; }

◆ getMaxCellDep()

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

Definition at line 102 of file EcalVetoResult.h.

102{ return maxCellDep_; }

◆ getNLinRegTracks()

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

Number of linear-regression tracks found.

Definition at line 242 of file EcalVetoResult.h.

242{ return nLinregTracks_; }

References nLinregTracks_.

◆ getNNearPhHits()

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

Definition at line 245 of file EcalVetoResult.h.

245{ return nNearPhHits_; }

◆ getNReadoutHits()

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

Definition at line 96 of file EcalVetoResult.h.

96{ return nReadoutHits_; }

◆ getNStraightTracks()

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

Number of straight tracks found.

Definition at line 239 of file EcalVetoResult.h.

239{ return nStraightTracks_; }

References nStraightTracks_.

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

◆ getOutContEnergy()

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

Definition at line 186 of file EcalVetoResult.h.

186 {
187 return oContEnergy_;
188 }

◆ getOutContLayerMean()

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

Definition at line 210 of file EcalVetoResult.h.

210 {
211 return oContLayerMean_;
212 }

◆ getOutContLayerStd()

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

Definition at line 214 of file EcalVetoResult.h.

214 {
215 return oContLayerStd_;
216 }

◆ getOutContNHits()

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

Definition at line 190 of file EcalVetoResult.h.

190 {
191 return oContNHits_;
192 }

◆ getOutContXMean()

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

Definition at line 194 of file EcalVetoResult.h.

194 {
195 return oContXMean_;
196 }

◆ getOutContXStd()

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

Definition at line 202 of file EcalVetoResult.h.

202 {
203 return oContXStd_;
204 }

◆ getOutContYMean()

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

Definition at line 198 of file EcalVetoResult.h.

198 {
199 return oContYMean_;
200 }

◆ getOutContYStd()

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

Definition at line 206 of file EcalVetoResult.h.

206 {
207 return oContYStd_;
208 }

◆ getOutsideContainmentEnergy()

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

Definition at line 124 of file EcalVetoResult.h.

124 {
125 return outsideContainmentEnergy_;
126 }

◆ getOutsideContainmentNHits()

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

Definition at line 128 of file EcalVetoResult.h.

128 {
129 return outsideContainmentNHits_;
130 }

◆ getOutsideContainmentXStd()

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

Definition at line 132 of file EcalVetoResult.h.

132 {
133 return outsideContainmentXStd_;
134 }

◆ getOutsideContainmentYStd()

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

Definition at line 136 of file EcalVetoResult.h.

136 {
137 return outsideContainmentYStd_;
138 }

◆ getPhContEnergy()

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

Definition at line 170 of file EcalVetoResult.h.

170 {
171 return gContEnergy_;
172 }

◆ getPhContNHits()

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

Definition at line 174 of file EcalVetoResult.h.

174 {
175 return gContNHits_;
176 }

◆ getPhContXMean()

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

Definition at line 178 of file EcalVetoResult.h.

178 {
179 return gContXMean_;
180 }

◆ getPhContYMean()

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

Definition at line 182 of file EcalVetoResult.h.

182 {
183 return gContYMean_;
184 }

◆ getPhotonContainmentEnergy()

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

Definition at line 120 of file EcalVetoResult.h.

120 {
121 return photonContainmentEnergy_;
122 }

◆ getPhotonTerritoryHits()

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

Definition at line 246 of file EcalVetoResult.h.

246{ return photonTerritoryHits_; }

◆ getRecoilMomentum()

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

Return the momentum of the recoil at the Ecal face.

Definition at line 228 of file EcalVetoResult.h.

228 {
229 return {recoilPx_, recoilPy_, recoilPz_};
230 };

References recoilPx_, recoilPy_, and recoilPz_.

◆ getRecoilX()

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

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

Definition at line 233 of file EcalVetoResult.h.

233{ return recoilX_; };

References recoilX_.

◆ getRecoilY()

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

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

Definition at line 236 of file EcalVetoResult.h.

236{ return recoilY_; };

References recoilY_.

◆ getShowerRMS()

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

Definition at line 104 of file EcalVetoResult.h.

104{ return showerRMS_; }

◆ getStdLayerHit()

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

Definition at line 112 of file EcalVetoResult.h.

112{ return stdLayerHit_; }

◆ getSummedDet()

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

Definition at line 98 of file EcalVetoResult.h.

98{ return summedDet_; }

◆ getSummedTightIso()

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

Definition at line 100 of file EcalVetoResult.h.

100{ return summedTightIso_; }

◆ getTrackingFiducial()

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

Definition at line 94 of file EcalVetoResult.h.

94{ 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 146 of file EcalVetoResult.h.

146{ return xMeanSeg_; }

◆ getXStd()

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

Definition at line 106 of file EcalVetoResult.h.

106{ return xStd_; }

◆ getXStdSeg()

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

Definition at line 150 of file EcalVetoResult.h.

150{ return xStdSeg_; }

◆ getYMeanSeg()

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

Definition at line 148 of file EcalVetoResult.h.

148{ return yMeanSeg_; }

◆ getYStd()

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

Definition at line 108 of file EcalVetoResult.h.

108{ return yStd_; }

◆ getYStdSeg()

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

Definition at line 152 of file EcalVetoResult.h.

152{ return yStdSeg_; }

◆ passesVeto()

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

Checks if the event passes the Ecal veto.

Definition at line 85 of file EcalVetoResult.h.

85{ return passesVeto_; }

References passesVeto_.

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

◆ Print()

void ldmx::EcalVetoResult::Print ( ) const

Print the object.

Definition at line 186 of file EcalVetoResult.cxx.

186 {
187 std::cout << "[ EcalVetoResult ]:\n"
188 << "\t Passes veto : " << passesVeto_ << "\n"
189 << std::endl;
190}

References passesVeto_.

◆ setDiscValue()

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

Definition at line 219 of file EcalVetoResult.h.

219{ discValue_ = discValue; }

◆ setFiducial()

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

Definition at line 220 of file EcalVetoResult.h.

220{ fiducial_ = fiducial; }

◆ setTrackingFiducial()

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

Definition at line 223 of file EcalVetoResult.h.

223 {
224 tracking_fiducial_ = tracking_fiducial;
225 }

◆ setVariables()

void ldmx::EcalVetoResult::setVariables ( int nReadoutHits,
int deepestLayerHit,
float summedDet,
float summedTightIso,
float maxCellDep,
float showerRMS,
float xStd,
float yStd,
float avgLayerHit,
float stdLayerHit,
float ecalBackEnergy,
int nStraightTracks,
int nLinregTracks,
int firstNearPhLayer,
int nNearPhHits,
int photonTerritoryHits,
float epAng,
float epAngAtTarget,
float epSep,
float epDot,
float epDotAtTarget,
std::vector< float > electronContainmentEnergy,
std::vector< float > photonContainmentEnergy,
std::vector< float > outsideContainmentEnergy,
std::vector< int > outsideContainmentNHits,
std::vector< float > outsideContainmentXStd,
std::vector< float > outsideContainmentYStd,
std::vector< float > energySeg,
std::vector< float > xMeanSeg,
std::vector< float > yMeanSeg,
std::vector< float > xStdSeg,
std::vector< float > yStdSeg,
std::vector< float > layerMeanSeg,
std::vector< float > layerStdSeg,
std::vector< std::vector< float > > eContEnergy,
std::vector< std::vector< float > > eContXMean,
std::vector< std::vector< float > > eContYMean,
std::vector< std::vector< float > > gContEnergy,
std::vector< std::vector< int > > gContNHits,
std::vector< std::vector< float > > gContXMean,
std::vector< std::vector< float > > gContYMean,
std::vector< std::vector< float > > oContEnergy,
std::vector< std::vector< int > > oContNHits,
std::vector< std::vector< float > > oContXMean,
std::vector< std::vector< float > > oContYMean,
std::vector< std::vector< float > > oContXStd,
std::vector< std::vector< float > > oContYStd,
std::vector< std::vector< float > > oContLayerMean,
std::vector< std::vector< float > > oContLayerStd,
std::vector< float > EcalLayerEdepReadout,
std::array< float, 3 > recoilP,
std::array< float, 3 > recoilPos )

Set the sim particle and 'is findable' flag.

Definition at line 79 of file EcalVetoResult.cxx.

116 {
117 nReadoutHits_ = nReadoutHits;
118 summedDet_ = summedDet;
119 summedTightIso_ = summedTightIso;
120 maxCellDep_ = maxCellDep;
121 showerRMS_ = showerRMS;
122 xStd_ = xStd;
123 yStd_ = yStd;
124 avgLayerHit_ = avgLayerHit;
125 stdLayerHit_ = stdLayerHit;
126 deepestLayerHit_ = deepestLayerHit;
127 ecalBackEnergy_ = ecalBackEnergy;
128 // MIP tracking
129 nStraightTracks_ = nStraightTracks;
130 nLinregTracks_ = nLinregTracks;
131 firstNearPhLayer_ = firstNearPhLayer;
132 nNearPhHits_ = nNearPhHits;
133 photonTerritoryHits_ = photonTerritoryHits;
134 epAng_ = epAng;
135 epAngAtTarget_ = epAngAtTarget;
136 epSep_ = epSep;
137 epDot_ = epDot;
138 epDotAtTarget_ = epDotAtTarget;
139
140 electronContainmentEnergy_ = electronContainmentEnergy;
141 photonContainmentEnergy_ = photonContainmentEnergy;
142 outsideContainmentEnergy_ = outsideContainmentEnergy;
143 outsideContainmentNHits_ = outsideContainmentNHits;
144 outsideContainmentXStd_ = outsideContainmentXStd;
145 outsideContainmentYStd_ = outsideContainmentYStd;
146
147 energySeg_ = energySeg;
148 xMeanSeg_ = xMeanSeg;
149 yMeanSeg_ = yMeanSeg;
150 xStdSeg_ = xStdSeg;
151 yStdSeg_ = yStdSeg;
152 layerMeanSeg_ = layerMeanSeg;
153 layerStdSeg_ = layerStdSeg;
154
155 eContEnergy_ = eContEnergy;
156 eContXMean_ = eContXMean;
157 eContYMean_ = eContYMean;
158 gContEnergy_ = gContEnergy;
159 gContNHits_ = gContNHits;
160 gContXMean_ = gContXMean;
161 gContYMean_ = gContYMean;
162 oContEnergy_ = oContEnergy;
163 oContNHits_ = oContNHits;
164 oContXMean_ = oContXMean;
165 oContYMean_ = oContYMean;
166 oContXStd_ = oContXStd;
167 oContYStd_ = oContYStd;
168 oContLayerMean_ = oContLayerMean;
169 oContLayerStd_ = oContLayerStd;
170
171 // discvalue not set here
172
173 if (!recoilP.empty()) {
174 recoilPx_ = recoilP[0];
175 recoilPy_ = recoilP[1];
176 recoilPz_ = recoilP[2];
177 }
178 if (!recoilPos.empty()) {
179 recoilX_ = recoilPos[0];
180 recoilY_ = recoilPos[1];
181 }
182
183 ecalLayerEdepReadout_ = EcalLayerEdepReadout;
184}

References epAng_, epAngAtTarget_, epDot_, epDotAtTarget_, epSep_, firstNearPhLayer_, nLinregTracks_, nNearPhHits_, nStraightTracks_, photonTerritoryHits_, recoilPx_, recoilPy_, recoilPz_, recoilX_, and recoilY_.

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

◆ setVetoResult()

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

Definition at line 218 of file EcalVetoResult.h.

bool passesVeto() const
Checks if the event passes the Ecal veto.

Member Data Documentation

◆ avgLayerHit_

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

Definition at line 266 of file EcalVetoResult.h.

266{0};

◆ deepestLayerHit_

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

Definition at line 258 of file EcalVetoResult.h.

258{0};

◆ discValue_

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

discriminator value from the BDT

Definition at line 328 of file EcalVetoResult.h.

328{0};

Referenced by Clear().

◆ ecalBackEnergy_

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

Definition at line 268 of file EcalVetoResult.h.

268{0};

◆ ecalLayerEdepReadout_

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

Definition at line 351 of file EcalVetoResult.h.

◆ eContEnergy_

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

Definition at line 311 of file EcalVetoResult.h.

◆ eContXMean_

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

Definition at line 312 of file EcalVetoResult.h.

◆ eContYMean_

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

Definition at line 313 of file EcalVetoResult.h.

◆ electronContainmentEnergy_

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

Definition at line 296 of file EcalVetoResult.h.

◆ energySeg_

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

Definition at line 303 of file EcalVetoResult.h.

◆ epAng_

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

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

Definition at line 283 of file EcalVetoResult.h.

283{0};

Referenced by Clear(), and setVariables().

◆ epAngAtTarget_

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

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

Definition at line 286 of file EcalVetoResult.h.

286{0};

Referenced by Clear(), and setVariables().

◆ epDot_

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

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

Definition at line 292 of file EcalVetoResult.h.

292{0};

Referenced by Clear(), and setVariables().

◆ epDotAtTarget_

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

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

Definition at line 294 of file EcalVetoResult.h.

294{0};

Referenced by Clear(), and setVariables().

◆ epSep_

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

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

Definition at line 290 of file EcalVetoResult.h.

290{0};

Referenced by Clear(), and setVariables().

◆ fiducial_

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

is the recoil electron fiducial in ECAL?

Definition at line 331 of file EcalVetoResult.h.

331{false};

◆ firstNearPhLayer_

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

Earliest ECal layer in which a hit is found near the projected photon trajectory.

Definition at line 276 of file EcalVetoResult.h.

276{0};

Referenced by Clear(), and setVariables().

◆ gContEnergy_

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

Definition at line 314 of file EcalVetoResult.h.

◆ gContNHits_

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

Definition at line 315 of file EcalVetoResult.h.

◆ gContXMean_

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

Definition at line 316 of file EcalVetoResult.h.

◆ gContYMean_

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

Definition at line 317 of file EcalVetoResult.h.

◆ layerMeanSeg_

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

Definition at line 308 of file EcalVetoResult.h.

◆ layerStdSeg_

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

Definition at line 309 of file EcalVetoResult.h.

◆ maxCellDep_

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

Definition at line 262 of file EcalVetoResult.h.

262{0};

◆ nLinregTracks_

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

Number of "linreg" tracks found in the event.

Definition at line 273 of file EcalVetoResult.h.

273{0};

Referenced by Clear(), getNLinRegTracks(), and setVariables().

◆ nNearPhHits_

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

Number of hits near the photon trajectory.

Definition at line 278 of file EcalVetoResult.h.

278{0};

Referenced by Clear(), and setVariables().

◆ nReadoutHits_

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

Definition at line 257 of file EcalVetoResult.h.

257{0};

◆ nStraightTracks_

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

Number of "straight" tracks found in the event.

Definition at line 271 of file EcalVetoResult.h.

271{0};

Referenced by Clear(), getNStraightTracks(), and setVariables().

◆ oContEnergy_

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

Definition at line 318 of file EcalVetoResult.h.

◆ oContLayerMean_

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

Definition at line 324 of file EcalVetoResult.h.

◆ oContLayerStd_

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

Definition at line 325 of file EcalVetoResult.h.

◆ oContNHits_

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

Definition at line 319 of file EcalVetoResult.h.

◆ oContXMean_

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

Definition at line 320 of file EcalVetoResult.h.

◆ oContXStd_

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

Definition at line 322 of file EcalVetoResult.h.

◆ oContYMean_

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

Definition at line 321 of file EcalVetoResult.h.

◆ oContYStd_

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

Definition at line 323 of file EcalVetoResult.h.

◆ outsideContainmentEnergy_

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

Definition at line 298 of file EcalVetoResult.h.

◆ outsideContainmentNHits_

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

Definition at line 299 of file EcalVetoResult.h.

◆ outsideContainmentXStd_

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

Definition at line 300 of file EcalVetoResult.h.

◆ outsideContainmentYStd_

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

Definition at line 301 of file EcalVetoResult.h.

◆ passesVeto_

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

Flag indicating whether the event is vetoed by the Ecal.

Definition at line 255 of file EcalVetoResult.h.

255{false};

Referenced by Clear(), passesVeto(), and Print().

◆ photonContainmentEnergy_

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

Definition at line 297 of file EcalVetoResult.h.

◆ photonTerritoryHits_

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

Number of hits in the photon territory.

Definition at line 280 of file EcalVetoResult.h.

280{0};

Referenced by Clear(), and setVariables().

◆ recoilPx_

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

px of recoil electron at the Ecal face.

Definition at line 337 of file EcalVetoResult.h.

337{-9999};

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

◆ recoilPy_

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

py of recoil electron at the Ecal face.

Definition at line 340 of file EcalVetoResult.h.

340{-9999};

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

◆ recoilPz_

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

py of recoil electron at the Ecal face.

Definition at line 343 of file EcalVetoResult.h.

343{-9999};

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

◆ recoilX_

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

x position of recoil electron at the Ecal face.

Definition at line 346 of file EcalVetoResult.h.

346{-9999};

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

◆ recoilY_

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

y position of recoil electron at the Ecal face.

Definition at line 349 of file EcalVetoResult.h.

349{-9999};

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

◆ showerRMS_

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

Definition at line 263 of file EcalVetoResult.h.

263{0};

◆ stdLayerHit_

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

Definition at line 267 of file EcalVetoResult.h.

267{0};

◆ summedDet_

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

Definition at line 260 of file EcalVetoResult.h.

260{0};

◆ summedTightIso_

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

Definition at line 261 of file EcalVetoResult.h.

261{0};

◆ tracking_fiducial_

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

is the recoil electron fiducial in Tracker?

Definition at line 334 of file EcalVetoResult.h.

334{false};

◆ xMeanSeg_

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

Definition at line 304 of file EcalVetoResult.h.

◆ xStd_

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

Definition at line 264 of file EcalVetoResult.h.

264{0};

◆ xStdSeg_

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

Definition at line 306 of file EcalVetoResult.h.

◆ yMeanSeg_

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

Definition at line 305 of file EcalVetoResult.h.

◆ yStd_

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

Definition at line 265 of file EcalVetoResult.h.

265{0};

◆ yStdSeg_

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

Definition at line 307 of file EcalVetoResult.h.


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