SimChannel.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 ///
3 ///
4 /// \file SimChannel.h
5 ///
6 /// \brief object containing MC truth information necessary for making RawDigits
7 /// and doing back tracking
8 ///
9 /// \author brebel@fnal.gov
10 ///
11 ////////////////////////////////////////////////////////////////////////
12 
13 #ifndef SIM_SIMCHANNEL_H
14 #define SIM_SIMCHANNEL_H
15 
16 #include <string>
17 #include <vector>
18 #include <set>
19 #include <stdint.h>
20 
21 namespace gar {
22  namespace sdp {
23 
24  class IDE{
25  public:
26 
27  IDE();
28 
29 #ifndef __GCCXML__
30  //constructor for IDEs applying G4 offset...
31  IDE(IDE const&, int);
32  IDE(int id,
33  float numE,
34  unsigned int channel,
35  unsigned short tdc)
36  : fTrackID (id)
37  , fNumElectrons(numE)
38  , fChannel (channel)
39  , fTDC (tdc)
40  {}
41 
42  int const& TrackID() const { return fTrackID; }
43  float const& NumElectrons() const { return fNumElectrons; }
44  unsigned int const& Channel() const { return fChannel; }
45  unsigned short const& TDC() const { return fTDC; }
46 
47  void operator +=(gar::sdp::IDE const& b);
48  bool operator ==(gar::sdp::IDE const& b) const;
49  bool operator <(gar::sdp::IDE const& b) const;
50 
51 #endif
52 
53  int fTrackID; ///< Geant4 supplied track ID
54  float fNumElectrons; ///< total number of electrons for this track ID and time
55  unsigned int fChannel; ///< channel number for these electrons
56  unsigned short fTDC; ///< TDC value of the readout
57  };
58 
59  } // namespace sdp
60 } // gar
61 
62 #endif // sdp_SIMCHANNEL_H
63 
64 ////////////////////////////////////////////////////////////////////////
unsigned short fTDC
TDC value of the readout.
Definition: SimChannel.h:56
unsigned int const & Channel() const
Definition: SimChannel.h:44
float const & NumElectrons() const
Definition: SimChannel.h:43
unsigned short const & TDC() const
Definition: SimChannel.h:45
int fTrackID
Geant4 supplied track ID.
Definition: SimChannel.h:53
uint8_t channel
Definition: CRTFragment.hh:201
bool operator==(gar::sdp::IDE const &b) const
Definition: SimChannel.cxx:59
bool operator<(gar::sdp::IDE const &b) const
Definition: SimChannel.cxx:69
void operator+=(gar::sdp::IDE const &b)
Definition: SimChannel.cxx:36
General GArSoft Utilities.
unsigned int fChannel
channel number for these electrons
Definition: SimChannel.h:55
static bool * b
Definition: config.cpp:1043
float fNumElectrons
total number of electrons for this track ID and time
Definition: SimChannel.h:54
IDE(int id, float numE, unsigned int channel, unsigned short tdc)
Definition: SimChannel.h:32
int const & TrackID() const
Definition: SimChannel.h:42