LDMX Software
EcalMipResult.h
Go to the documentation of this file.
1
8#ifndef EVENT_ECALMIPRESULT_H_
9#define EVENT_ECALMIPRESULT_H_
10
11//----------------//
12// C++ StdLib //
13//----------------//
14#include <iostream>
15
16//----------//
17// ROOT //
18//----------//
19#include <Rtypes.h> // For ClassDef
20
21namespace ldmx {
22
24 public:
26 EcalMipResult() = default;
27
29 virtual ~EcalMipResult();
30
31 friend std::ostream& operator<<(std::ostream& o, const EcalMipResult& d);
32
33 void clear();
34
35 // Large Setter for all mip elements
36 void setVariables(int n_straight_tracks, int n_linreg_tracks,
37 int first_near_ph_layer, int n_near_ph_hits,
38 int photon_territory_hits);
39 // Getters
41 int getNStraightTracks() const { return n_straight_tracks_; }
42
44 int getNLinRegTracks() const { return n_linreg_tracks_; }
45
46 int getFirstNearPhLayer() const { return first_near_ph_layer_; }
47 int getNNearPhHits() const { return n_near_ph_hits_; }
48 int getPhotonTerritoryHits() const { return photon_territory_hits_; }
49
50 private:
64
66};
67
68} // namespace ldmx
69
70#endif
virtual ~EcalMipResult()
Destructor.
int first_near_ph_layer_
Earliest ECal layer in which a hit is found near the projected photon trajectory.
EcalMipResult()=default
Constructor.
int getNLinRegTracks() const
Number of linear-regression tracks found.
int n_near_ph_hits_
Number of hits near the photon trajectory.
ClassDef(EcalMipResult, 2)
Angular separation between the projected photon and electron trajectories as projected at the ECAL.
int photon_territory_hits_
Number of hits in the photon territory.
int n_linreg_tracks_
Number of "linreg" tracks found in the event.
int getNStraightTracks() const
Number of straight tracks found.
int n_straight_tracks_
Number of "straight" tracks found in the event.