HerdSoftware  0.1.1
FitMCDeposit.h
Go to the documentation of this file.
1 /*
2  * FitMCDeposit.h
3  *
4  *
5  * Created on 03 Mar 2020
6  * Author: Valerio Formato (based on code by Junjing Wang)
7  */
8 
9 #ifndef HERD_FITMCDEPOSIT_H_
10 #define HERD_FITMCDEPOSIT_H_
11 
12 #include <vector>
13 
14 // this in c++17 will become
15 // namespace Herd::FitDigitizationTools {
16 namespace Herd {
17 namespace FitDigitizationTools {
18 
19 class FitMCDeposit {
20 
21 public:
22  FitMCDeposit(int channelID, int matID, int nPhotons, double time, bool isReflected)
25 
26 public:
27  int channelID() const { return m_channelID; }
28  int matID() const { return m_matID; }
29  double nPhotons() const { return m_nPhotons; }
30  double time() const { return m_time; }
31  bool isReflected() const { return m_isReflected; }
32 
33 private:
35  int m_matID;
37  double m_time;
39 };
40 
41 using FitMCDeposits = std::vector<FitMCDeposit>;
42 } // namespace FitDigitizationTools
43 } // namespace Herd
44 #endif
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
int m_nPhotons
Definition: FitMCDeposit.h:36
double nPhotons() const
Definition: FitMCDeposit.h:29
int m_matID
Definition: FitMCDeposit.h:35
double m_time
Definition: FitMCDeposit.h:37
bool isReflected() const
Definition: FitMCDeposit.h:31
~FitMCDeposit()
Definition: FitMCDeposit.h:24
std::vector< FitMCDeposit > FitMCDeposits
Definition: FitMCDeposit.h:41
Definition: FitMCDeposit.h:19
double time() const
Definition: FitMCDeposit.h:30
int channelID() const
Definition: FitMCDeposit.h:27
bool m_isReflected
Definition: FitMCDeposit.h:38
int m_channelID
Definition: FitMCDeposit.h:34
FitMCDeposit(int channelID, int matID, int nPhotons, double time, bool isReflected)
Definition: FitMCDeposit.h:22
int matID() const
Definition: FitMCDeposit.h:28