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 <array>
15#include <iostream>
16#include <map>
17
18//----------//
19// ROOT //
20//----------//
21
22#include <TObject.h> // For ClassDef
23namespace ldmx {
24
26 public:
28 EcalMipResult() = default;
29
31 virtual ~EcalMipResult();
32
33 friend std::ostream &operator<<(std::ostream &o, const EcalMipResult &d);
34
35 void clear();
36
37 // Large Setter for all mip elements
38 void setVariables(int n_straight_tracks, int n_linreg_tracks,
39 int first_near_ph_layer, int n_near_ph_hits,
40 int photon_territory_hits);
41 // Getters
43 int getNStraightTracks() const { return n_straight_tracks_; }
44
46 int getNLinRegTracks() const { return n_linreg_tracks_; }
47
48 int getFirstNearPhLayer() const { return first_near_ph_layer_; }
49 int getNNearPhHits() const { return n_near_ph_hits_; }
50 int getPhotonTerritoryHits() const { return photon_territory_hits_; }
51
52 private:
66
68};
69
70} // namespace ldmx
71
72#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.