1#include "Tracking/Digitization/SiElectrodeDataCollection.h"
4namespace digitization {
6SiElectrodeDataCollection::SiElectrodeDataCollection(
7 const SiElectrodeDataCollection& electrode_data) {
8 collection_ = electrode_data.getCollection();
11SiElectrodeDataCollection::SiElectrodeDataCollection(
13 for (
auto pair : electrode_charge) {
14 collection_[pair.first] = SiElectrodeData(pair.second, hit);
18std::map<int, int> SiElectrodeDataCollection::getChargeMap()
const {
19 std::map<int, int> charge_map;
21 for (
auto pair : collection_) {
22 charge_map[pair.first] = pair.second.getCharge();
28void SiElectrodeDataCollection::add(
29 const std::map<int, SiElectrodeData>& electrode_data_collection) {
30 for (
auto pair : electrode_data_collection) {
32 if (collection_.count(pair.first))
33 collection_[pair.first].add(pair.second);
36 collection_[pair.first] = pair.second;
40void SiElectrodeDataCollection::add(
int cellid,
41 SiElectrodeData electrode_data) {
42 if (electrode_data.isValid())
43 if (collection_.count(cellid))
44 collection_[cellid].add(electrode_data);
46 collection_[cellid] = electrode_data;
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...