LDMX Software
SiElectrodeDataCollection.h
1#pragma once
2
3#include <map>
4
5#include "Tracking/Digitization/SiElectrodeData.h"
6
7namespace tracking {
8namespace digitization {
9
11 public:
13 ~SiElectrodeDataCollection() { collection_.clear(); };
14
16
17 // Create from a map of electrode charges for a single SimTrackerHit
18 // map should always be sorted ascending
19 SiElectrodeDataCollection(const std::map<int, int>& electrode_charge,
21
22 void add(const std::map<int, SiElectrodeData>& electrode_data_collection);
23
24 void add(int cellid, SiElectrodeData electrode_data);
25
26 std::map<int, int> getChargeMap() const;
27
28 std::map<int, SiElectrodeData> getCollection() const { return collection_; };
29
30 void clear() { collection_.clear(); };
31
32 private:
33 std::map<int, SiElectrodeData> collection_;
34};
35
36} // namespace digitization
37} // namespace tracking
Represents a simulated tracker hit in the simulation.
The measurement calibrator can be a function or a class/struct able to retrieve the sim hits containe...