LDMX Software
ldmx::EcalMipResult Class Reference

Public Member Functions

 EcalMipResult ()=default
 Constructor.
 
virtual ~EcalMipResult ()
 Destructor.
 
void clear ()
 
void setVariables (int n_straight_tracks, int n_linreg_tracks, int first_near_ph_layer, int n_near_ph_hits, int photon_territory_hits)
 
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
 

Private Member Functions

 ClassDef (EcalMipResult, 2)
 Angular separation between the projected photon and electron trajectories as projected at the ECAL.
 

Private Attributes

int n_straight_tracks_ {0}
 Number of "straight" tracks found in the event.
 
int n_linreg_tracks_ {0}
 Number of "linreg" tracks found in the event.
 
int first_near_ph_layer_ {0}
 Earliest ECal layer in which a hit is found near the projected photon trajectory.
 
int n_near_ph_hits_ {0}
 Number of hits near the photon trajectory.
 
int photon_territory_hits_ {0}
 Number of hits in the photon territory.
 

Friends

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

Detailed Description

Definition at line 25 of file EcalMipResult.h.

Constructor & Destructor Documentation

◆ ~EcalMipResult()

ldmx::EcalMipResult::~EcalMipResult ( )
virtual

Destructor.

Definition at line 7 of file EcalMipResult.cxx.

7{ clear(); }

Member Function Documentation

◆ clear()

void ldmx::EcalMipResult::clear ( )

Definition at line 17 of file EcalMipResult.cxx.

17 {
23}
int first_near_ph_layer_
Earliest ECal layer in which a hit is found near the projected photon trajectory.
int n_near_ph_hits_
Number of hits near the photon trajectory.
int photon_territory_hits_
Number of hits in the photon territory.
int n_linreg_tracks_
Number of "linreg" tracks found in the event.
int n_straight_tracks_
Number of "straight" tracks found in the event.

◆ getFirstNearPhLayer()

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

Definition at line 48 of file EcalMipResult.h.

48{ return first_near_ph_layer_; }

◆ getNLinRegTracks()

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

Number of linear-regression tracks found.

Definition at line 46 of file EcalMipResult.h.

46{ return n_linreg_tracks_; }

References n_linreg_tracks_.

◆ getNNearPhHits()

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

Definition at line 49 of file EcalMipResult.h.

49{ return n_near_ph_hits_; }

◆ getNStraightTracks()

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

Number of straight tracks found.

Definition at line 43 of file EcalMipResult.h.

43{ return n_straight_tracks_; }

References n_straight_tracks_.

◆ getPhotonTerritoryHits()

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

Definition at line 50 of file EcalMipResult.h.

50{ return photon_territory_hits_; }

◆ setVariables()

void ldmx::EcalMipResult::setVariables ( int n_straight_tracks,
int n_linreg_tracks,
int first_near_ph_layer,
int n_near_ph_hits,
int photon_territory_hits )

Definition at line 25 of file EcalMipResult.cxx.

27 {
28 n_straight_tracks_ = n_straight_tracks;
29 n_linreg_tracks_ = n_linreg_tracks;
30 first_near_ph_layer_ = first_near_ph_layer;
31 n_near_ph_hits_ = n_near_ph_hits;
32 photon_territory_hits_ = photon_territory_hits;
33}

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 9 of file EcalMipResult.cxx.

9 {
10 return o << "EcalMipResult { n_straight_tracks : " << c.n_straight_tracks_
11 << ", " << "n_linreg_tracks : " << c.n_linreg_tracks_ << ", "
12 << "first_near_ph_layer : " << c.first_near_ph_layer_ << ", "
13 << "n_near_ph_hits : " << c.n_near_ph_hits_ << ", "
14 << "photon_territory_hits : " << c.photon_territory_hits_ << "}";
15}

Member Data Documentation

◆ first_near_ph_layer_

int ldmx::EcalMipResult::first_near_ph_layer_ {0}
private

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

Definition at line 59 of file EcalMipResult.h.

59{0};

◆ n_linreg_tracks_

int ldmx::EcalMipResult::n_linreg_tracks_ {0}
private

Number of "linreg" tracks found in the event.

Definition at line 56 of file EcalMipResult.h.

56{0};

Referenced by getNLinRegTracks().

◆ n_near_ph_hits_

int ldmx::EcalMipResult::n_near_ph_hits_ {0}
private

Number of hits near the photon trajectory.

Definition at line 61 of file EcalMipResult.h.

61{0};

◆ n_straight_tracks_

int ldmx::EcalMipResult::n_straight_tracks_ {0}
private

Number of "straight" tracks found in the event.

Definition at line 54 of file EcalMipResult.h.

54{0};

Referenced by getNStraightTracks().

◆ photon_territory_hits_

int ldmx::EcalMipResult::photon_territory_hits_ {0}
private

Number of hits in the photon territory.

Definition at line 63 of file EcalMipResult.h.

63{0};

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