All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FEBTruthInfo.hh
Go to the documentation of this file.
1 /**
2  * \brief Dataproduct to store data associated to CRT FEBData objects
3  *
4  * \details Each simulated FEBData object is associated to a vector of AuxDetIDEs that
5  * contributed to the energy deposits in that CRT module.
6  * For each AuxDetIDE, this FEBTruthInfo product allows to store the index of the
7  * SiPM associated to the energy deposit. Without FEBTruthInfo ot would be
8  * impossible to associate an AuxDetIDE to a particular SiPM (or strip), but only to the
9  * entire CRT module.
10  *
11  * \author Marco Del Tutto
12  */
13 
14 #ifndef SBND_FEBTRUTHINFO_HH
15 #define SBND_FEBTRUTHINFO_HH
16 
17 #include <array>
18 #include <vector>
19 
20 constexpr int NCH = 32;
21 
22 namespace sbnd::crt {
23 
24  class FEBTruthInfo {
25 
26  public:
27 
28  // std::array<std::vector<int>, NCH> channelToAuxDetIDEIndexes;
29  int channel;
30 
31  /**
32  * Default constructor.
33  */
34  FEBTruthInfo() = default;
35 
36  /**
37  * Sets the AuxDetIDE ID for the channel
38  *
39  * @param channel The SiPM channel.
40  * @param index The AuxDetIDE ID related to this channel.
41  */
42  // void Add(int channel, int index) { channelToAuxDetIDEIndexes[channel].push_back(index); };
43 
44  // std::vector<int> GetIndexes(int channel) { return channelToAuxDetIDEIndexes[channel]; }
45  int GetChannel() const { return channel; }
46 
47  };
48 
49 } // namespace sbnd::crt
50 
51 #endif
constexpr int NCH
Dataproduct to store data associated to CRT FEBData objects.
Definition: FEBTruthInfo.hh:20
process_name crt