Definition at line 10 of file SiElectrodeDataCollection.h.
◆ SiElectrodeDataCollection() [1/3]
tracking::digitization::SiElectrodeDataCollection::SiElectrodeDataCollection |
( |
| ) |
|
|
inline |
◆ ~SiElectrodeDataCollection()
tracking::digitization::SiElectrodeDataCollection::~SiElectrodeDataCollection |
( |
| ) |
|
|
inline |
◆ SiElectrodeDataCollection() [2/3]
tracking::digitization::SiElectrodeDataCollection::SiElectrodeDataCollection |
( |
const SiElectrodeDataCollection & |
electrode_data | ) |
|
◆ SiElectrodeDataCollection() [3/3]
tracking::digitization::SiElectrodeDataCollection::SiElectrodeDataCollection |
( |
const std::map< int, int > & |
electrode_charge, |
|
|
ldmx::SimTrackerHit |
hit |
|
) |
| |
Definition at line 11 of file SiElectrodeDataCollection.cxx.
12 {
13 for (auto pair : electrode_charge) {
14 collection_[pair.first] = SiElectrodeData(pair.second, hit);
15 }
16}
◆ add() [1/2]
void tracking::digitization::SiElectrodeDataCollection::add |
( |
const std::map< int, SiElectrodeData > & |
electrode_data_collection | ) |
|
Definition at line 28 of file SiElectrodeDataCollection.cxx.
29 {
30 for (auto pair : electrode_data_collection) {
31
32 if (collection_.count(pair.first))
33 collection_[pair.first].add(pair.second);
34
35 else
36 collection_[pair.first] = pair.second;
37 }
38}
◆ add() [2/2]
void tracking::digitization::SiElectrodeDataCollection::add |
( |
int |
cellid, |
|
|
SiElectrodeData |
electrode_data |
|
) |
| |
Definition at line 40 of file SiElectrodeDataCollection.cxx.
41 {
42 if (electrode_data.isValid())
43 if (collection_.count(cellid))
44 collection_[cellid].add(electrode_data);
45 else
46 collection_[cellid] = electrode_data;
47}
◆ clear()
void tracking::digitization::SiElectrodeDataCollection::clear |
( |
| ) |
|
|
inline |
◆ getChargeMap()
std::map< int, int > tracking::digitization::SiElectrodeDataCollection::getChargeMap |
( |
| ) |
const |
Definition at line 18 of file SiElectrodeDataCollection.cxx.
18 {
19 std::map<int, int> charge_map;
20
21 for (auto pair : collection_) {
22 charge_map[pair.first] = pair.second.getCharge();
23 }
24
25 return charge_map;
26}
◆ getCollection()
std::map< int, SiElectrodeData > tracking::digitization::SiElectrodeDataCollection::getCollection |
( |
| ) |
const |
|
inline |
◆ collection_
std::map<int, SiElectrodeData> tracking::digitization::SiElectrodeDataCollection::collection_ |
|
private |
The documentation for this class was generated from the following files: