LDMX Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 epSep, float epDot, 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::vector< double > recoilP, std::vector< float > 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
 
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)
 
const std::vector< double > getRecoilMomentum () const
 Return the momentum of the recoil at the Ecal face.
 
double getRecoilX () const
 Return the x position of the recoil at the Ecal face.
 
double 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 getEPSep () const
 
float getEPDot () const
 

Private Member Functions

 ClassDef (EcalVetoResult, 7)
 

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 (currently unused)
 
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.
 
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?
 
double recoilPx_ {-9999}
 px of recoil electron at the Ecal face.
 
double recoilPy_ {-9999}
 py of recoil electron at the Ecal face.
 
double 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 25 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;
32 epSep_ = 0;
33 epDot_ = 0;
34
35 electronContainmentEnergy_.clear();
36 photonContainmentEnergy_.clear();
37 outsideContainmentEnergy_.clear();
38 outsideContainmentNHits_.clear();
39 outsideContainmentXStd_.clear();
40 outsideContainmentYStd_.clear();
41
42 energySeg_.clear();
43 xMeanSeg_.clear();
44 yMeanSeg_.clear();
45 xStdSeg_.clear();
46 yStdSeg_.clear();
47 layerMeanSeg_.clear();
48 layerStdSeg_.clear();
49
50 eContEnergy_.clear();
51 eContXMean_.clear();
52 eContYMean_.clear();
53 gContEnergy_.clear();
54 gContNHits_.clear();
55 gContXMean_.clear();
56 gContYMean_.clear();
57 oContEnergy_.clear();
58 oContNHits_.clear();
59 oContXMean_.clear();
60 oContYMean_.clear();
61 oContXStd_.clear();
62 oContYStd_.clear();
63 oContLayerMean_.clear();
64 oContLayerStd_.clear();
65
66 discValue_ = 0;
67
68 recoilPx_ = -9999;
69 recoilPy_ = -9999;
70 recoilPz_ = -9999;
71 recoilX_ = -9999;
72 recoilY_ = -9999;
73
74 ecalLayerEdepReadout_.clear();
75}
int firstNearPhLayer_
Earliest ECal layer in which a hit is found near the projected photon trajectory.
double recoilPx_
px 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
double recoilPy_
py of recoil electron at the Ecal face.
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.
int nNearPhHits_
Number of hits near the photon trajectory.
bool passesVeto_
Flag indicating whether the event is vetoed by the Ecal.
int nLinregTracks_
Number of "linreg" tracks found in the event.
double recoilPz_
py of recoil electron at the Ecal face.
float epAng_
Angular separation between the projected photon and electron trajectories (currently unused)
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_, epDot_, 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 105 of file EcalVetoResult.h.

105{ return avgLayerHit_; }

◆ getDeepestLayerHit()

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

Definition at line 89 of file EcalVetoResult.h.

89{ return deepestLayerHit_; }

◆ getDisc()

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

Definition at line 85 of file EcalVetoResult.h.

85{ return discValue_; }

◆ getEcalBackEnergy()

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

Definition at line 109 of file EcalVetoResult.h.

109{ return ecalBackEnergy_; }

◆ getEcalLayerEdepReadout()

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

Definition at line 135 of file EcalVetoResult.h.

135 {
136 return ecalLayerEdepReadout_;
137 }

◆ getEleContEnergy()

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

Definition at line 153 of file EcalVetoResult.h.

153 {
154 return eContEnergy_;
155 }

◆ getEleContXMean()

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

Definition at line 157 of file EcalVetoResult.h.

157 {
158 return eContXMean_;
159 }

◆ getEleContYMean()

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

Definition at line 161 of file EcalVetoResult.h.

161 {
162 return eContYMean_;
163 }

◆ getElectronContainmentEnergy()

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

Definition at line 111 of file EcalVetoResult.h.

111 {
112 return electronContainmentEnergy_;
113 }

◆ getEnergySeg()

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

Definition at line 139 of file EcalVetoResult.h.

139{ return energySeg_; }

◆ getEPAng()

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

Definition at line 237 of file EcalVetoResult.h.

237{ return epAng_; }

◆ getEPDot()

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

Definition at line 239 of file EcalVetoResult.h.

239{ return epDot_; }

◆ getEPSep()

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

Definition at line 238 of file EcalVetoResult.h.

238{ return epSep_; }

◆ 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?

◆ getFirstNearPhLayer()

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

Definition at line 234 of file EcalVetoResult.h.

234{ return firstNearPhLayer_; }

◆ getLayerMeanSeg()

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

Definition at line 149 of file EcalVetoResult.h.

149{ return layerMeanSeg_; }

◆ getLayerStdSeg()

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

Definition at line 151 of file EcalVetoResult.h.

151{ return layerStdSeg_; }

◆ getMaxCellDep()

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

Definition at line 97 of file EcalVetoResult.h.

97{ return maxCellDep_; }

◆ getNLinRegTracks()

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

Number of linear-regression tracks found.

Definition at line 232 of file EcalVetoResult.h.

232{ return nLinregTracks_; }

References nLinregTracks_.

◆ getNNearPhHits()

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

Definition at line 235 of file EcalVetoResult.h.

235{ return nNearPhHits_; }

◆ getNReadoutHits()

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

Definition at line 91 of file EcalVetoResult.h.

91{ return nReadoutHits_; }

◆ getNStraightTracks()

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

Number of straight tracks found.

Definition at line 229 of file EcalVetoResult.h.

229{ return nStraightTracks_; }

References nStraightTracks_.

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

◆ getOutContEnergy()

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

Definition at line 181 of file EcalVetoResult.h.

181 {
182 return oContEnergy_;
183 }

◆ getOutContLayerMean()

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

Definition at line 205 of file EcalVetoResult.h.

205 {
206 return oContLayerMean_;
207 }

◆ getOutContLayerStd()

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

Definition at line 209 of file EcalVetoResult.h.

209 {
210 return oContLayerStd_;
211 }

◆ getOutContNHits()

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

Definition at line 185 of file EcalVetoResult.h.

185 {
186 return oContNHits_;
187 }

◆ getOutContXMean()

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

Definition at line 189 of file EcalVetoResult.h.

189 {
190 return oContXMean_;
191 }

◆ getOutContXStd()

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

Definition at line 197 of file EcalVetoResult.h.

197 {
198 return oContXStd_;
199 }

◆ getOutContYMean()

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

Definition at line 193 of file EcalVetoResult.h.

193 {
194 return oContYMean_;
195 }

◆ getOutContYStd()

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

Definition at line 201 of file EcalVetoResult.h.

201 {
202 return oContYStd_;
203 }

◆ getOutsideContainmentEnergy()

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

Definition at line 119 of file EcalVetoResult.h.

119 {
120 return outsideContainmentEnergy_;
121 }

◆ getOutsideContainmentNHits()

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

Definition at line 123 of file EcalVetoResult.h.

123 {
124 return outsideContainmentNHits_;
125 }

◆ getOutsideContainmentXStd()

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

Definition at line 127 of file EcalVetoResult.h.

127 {
128 return outsideContainmentXStd_;
129 }

◆ getOutsideContainmentYStd()

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

Definition at line 131 of file EcalVetoResult.h.

131 {
132 return outsideContainmentYStd_;
133 }

◆ getPhContEnergy()

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

Definition at line 165 of file EcalVetoResult.h.

165 {
166 return gContEnergy_;
167 }

◆ getPhContNHits()

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

Definition at line 169 of file EcalVetoResult.h.

169 {
170 return gContNHits_;
171 }

◆ getPhContXMean()

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

Definition at line 173 of file EcalVetoResult.h.

173 {
174 return gContXMean_;
175 }

◆ getPhContYMean()

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

Definition at line 177 of file EcalVetoResult.h.

177 {
178 return gContYMean_;
179 }

◆ getPhotonContainmentEnergy()

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

Definition at line 115 of file EcalVetoResult.h.

115 {
116 return photonContainmentEnergy_;
117 }

◆ getPhotonTerritoryHits()

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

Definition at line 236 of file EcalVetoResult.h.

236{ return photonTerritoryHits_; }

◆ getRecoilMomentum()

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

Return the momentum of the recoil at the Ecal face.

Definition at line 218 of file EcalVetoResult.h.

218 {
219 return {recoilPx_, recoilPy_, recoilPz_};
220 };

References recoilPx_, recoilPy_, and recoilPz_.

◆ getRecoilX()

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

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

Definition at line 223 of file EcalVetoResult.h.

223{ return recoilX_; };

References recoilX_.

◆ getRecoilY()

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

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

Definition at line 226 of file EcalVetoResult.h.

226{ return recoilY_; };

References recoilY_.

◆ getShowerRMS()

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

Definition at line 99 of file EcalVetoResult.h.

99{ return showerRMS_; }

◆ getStdLayerHit()

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

Definition at line 107 of file EcalVetoResult.h.

107{ return stdLayerHit_; }

◆ getSummedDet()

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

Definition at line 93 of file EcalVetoResult.h.

93{ return summedDet_; }

◆ getSummedTightIso()

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

Definition at line 95 of file EcalVetoResult.h.

95{ return summedTightIso_; }

◆ getXMeanSeg()

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

Definition at line 141 of file EcalVetoResult.h.

141{ return xMeanSeg_; }

◆ getXStd()

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

Definition at line 101 of file EcalVetoResult.h.

101{ return xStd_; }

◆ getXStdSeg()

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

Definition at line 145 of file EcalVetoResult.h.

145{ return xStdSeg_; }

◆ getYMeanSeg()

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

Definition at line 143 of file EcalVetoResult.h.

143{ return yMeanSeg_; }

◆ getYStd()

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

Definition at line 103 of file EcalVetoResult.h.

103{ return yStd_; }

◆ getYStdSeg()

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

Definition at line 147 of file EcalVetoResult.h.

147{ return yStdSeg_; }

◆ 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 passesVeto_; }

References passesVeto_.

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

◆ Print()

void ldmx::EcalVetoResult::Print ( ) const

Print the object.

Definition at line 180 of file EcalVetoResult.cxx.

180 {
181 std::cout << "[ EcalVetoResult ]:\n"
182 << "\t Passes veto : " << passesVeto_ << "\n"
183 << std::endl;
184}

References passesVeto_.

◆ setDiscValue()

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

Definition at line 214 of file EcalVetoResult.h.

214{ discValue_ = discValue; }

◆ setFiducial()

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

Definition at line 215 of file EcalVetoResult.h.

215{ fiducial_ = fiducial; }

◆ 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  epSep,
float  epDot,
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::vector< double >  recoilP,
std::vector< float >  recoilPos 
)

Set the sim particle and 'is findable' flag.

Definition at line 77 of file EcalVetoResult.cxx.

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

References epAng_, epDot_, 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 213 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 254 of file EcalVetoResult.h.

254{0};

◆ deepestLayerHit_

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

Definition at line 246 of file EcalVetoResult.h.

246{0};

◆ discValue_

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

discriminator value from the BDT

Definition at line 310 of file EcalVetoResult.h.

310{0};

Referenced by Clear().

◆ ecalBackEnergy_

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

Definition at line 256 of file EcalVetoResult.h.

256{0};

◆ ecalLayerEdepReadout_

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

Definition at line 330 of file EcalVetoResult.h.

◆ eContEnergy_

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

Definition at line 293 of file EcalVetoResult.h.

◆ eContXMean_

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

Definition at line 294 of file EcalVetoResult.h.

◆ eContYMean_

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

Definition at line 295 of file EcalVetoResult.h.

◆ electronContainmentEnergy_

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

Definition at line 278 of file EcalVetoResult.h.

◆ energySeg_

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

Definition at line 285 of file EcalVetoResult.h.

◆ epAng_

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

Angular separation between the projected photon and electron trajectories (currently unused)

Definition at line 271 of file EcalVetoResult.h.

271{0};

Referenced by Clear(), and setVariables().

◆ epDot_

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

Dot product of the photon and electron momenta unit vectors.

Definition at line 276 of file EcalVetoResult.h.

276{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 274 of file EcalVetoResult.h.

274{0};

Referenced by Clear(), and setVariables().

◆ fiducial_

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

is the recoil electron fiducial in ECAL?

Definition at line 313 of file EcalVetoResult.h.

313{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 264 of file EcalVetoResult.h.

264{0};

Referenced by Clear(), and setVariables().

◆ gContEnergy_

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

Definition at line 296 of file EcalVetoResult.h.

◆ gContNHits_

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

Definition at line 297 of file EcalVetoResult.h.

◆ gContXMean_

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

Definition at line 298 of file EcalVetoResult.h.

◆ gContYMean_

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

Definition at line 299 of file EcalVetoResult.h.

◆ layerMeanSeg_

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

Definition at line 290 of file EcalVetoResult.h.

◆ layerStdSeg_

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

Definition at line 291 of file EcalVetoResult.h.

◆ maxCellDep_

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

Definition at line 250 of file EcalVetoResult.h.

250{0};

◆ nLinregTracks_

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

Number of "linreg" tracks found in the event.

Definition at line 261 of file EcalVetoResult.h.

261{0};

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

◆ nNearPhHits_

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

Number of hits near the photon trajectory.

Definition at line 266 of file EcalVetoResult.h.

266{0};

Referenced by Clear(), and setVariables().

◆ nReadoutHits_

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

Definition at line 245 of file EcalVetoResult.h.

245{0};

◆ nStraightTracks_

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

Number of "straight" tracks found in the event.

Definition at line 259 of file EcalVetoResult.h.

259{0};

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

◆ oContEnergy_

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

Definition at line 300 of file EcalVetoResult.h.

◆ oContLayerMean_

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

Definition at line 306 of file EcalVetoResult.h.

◆ oContLayerStd_

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

Definition at line 307 of file EcalVetoResult.h.

◆ oContNHits_

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

Definition at line 301 of file EcalVetoResult.h.

◆ oContXMean_

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

Definition at line 302 of file EcalVetoResult.h.

◆ oContXStd_

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

Definition at line 304 of file EcalVetoResult.h.

◆ oContYMean_

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

Definition at line 303 of file EcalVetoResult.h.

◆ oContYStd_

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

Definition at line 305 of file EcalVetoResult.h.

◆ outsideContainmentEnergy_

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

Definition at line 280 of file EcalVetoResult.h.

◆ outsideContainmentNHits_

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

Definition at line 281 of file EcalVetoResult.h.

◆ outsideContainmentXStd_

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

Definition at line 282 of file EcalVetoResult.h.

◆ outsideContainmentYStd_

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

Definition at line 283 of file EcalVetoResult.h.

◆ passesVeto_

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

Flag indicating whether the event is vetoed by the Ecal.

Definition at line 243 of file EcalVetoResult.h.

243{false};

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

◆ photonContainmentEnergy_

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

Definition at line 279 of file EcalVetoResult.h.

◆ photonTerritoryHits_

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

Number of hits in the photon territory.

Definition at line 268 of file EcalVetoResult.h.

268{0};

Referenced by Clear(), and setVariables().

◆ recoilPx_

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

px of recoil electron at the Ecal face.

Definition at line 316 of file EcalVetoResult.h.

316{-9999};

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

◆ recoilPy_

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

py of recoil electron at the Ecal face.

Definition at line 319 of file EcalVetoResult.h.

319{-9999};

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

◆ recoilPz_

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

py of recoil electron at the Ecal face.

Definition at line 322 of file EcalVetoResult.h.

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

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

328{-9999};

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

◆ showerRMS_

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

Definition at line 251 of file EcalVetoResult.h.

251{0};

◆ stdLayerHit_

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

Definition at line 255 of file EcalVetoResult.h.

255{0};

◆ summedDet_

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

Definition at line 248 of file EcalVetoResult.h.

248{0};

◆ summedTightIso_

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

Definition at line 249 of file EcalVetoResult.h.

249{0};

◆ xMeanSeg_

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

Definition at line 286 of file EcalVetoResult.h.

◆ xStd_

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

Definition at line 252 of file EcalVetoResult.h.

252{0};

◆ xStdSeg_

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

Definition at line 288 of file EcalVetoResult.h.

◆ yMeanSeg_

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

Definition at line 287 of file EcalVetoResult.h.

◆ yStd_

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

Definition at line 253 of file EcalVetoResult.h.

253{0};

◆ yStdSeg_

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

Definition at line 289 of file EcalVetoResult.h.


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