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(
29 const std::string& passName) const {
30 return collection_;
31 };
32
33 void clear() { collection_.clear(); };
34
35 private:
36 std::map<int, SiElectrodeData> collection_;
37 std::string electrode_pass_name_;
38};
39
40} // namespace digitization
41} // 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...