SimTracker
SiStripDigitizer
plugins
DigiSimLinkPileUpSignals.cc
Go to the documentation of this file.
1
#include "
DigiSimLinkPileUpSignals.h
"
2
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
3
4
void
DigiSimLinkPileUpSignals::resetLink
() {
5
theMapLink
.clear();
6
theCounterMapLink
.clear();
7
}
8
9
void
DigiSimLinkPileUpSignals::add
(
const
std::vector<float>& locAmpl,
10
const
size_t
& firstChannelWithSignal,
11
const
size_t
& lastChannelWithSignal,
12
const
PSimHit
*
hit
,
13
const
int
&
counter
) {
14
for
(
size_t
iChannel = firstChannelWithSignal; iChannel < lastChannelWithSignal; ++iChannel) {
15
theMapLink
[iChannel].push_back(std::pair<const PSimHit*, Amplitude>(
hit
,
Amplitude
(locAmpl[iChannel])));
16
theCounterMapLink
[iChannel].push_back(std::make_pair(
hit
,
counter
));
17
}
18
}
counter
Definition:
counter.py:1
DigiSimLinkPileUpSignals::theCounterMapLink
HitCounterToDigisMapType theCounterMapLink
Definition:
DigiSimLinkPileUpSignals.h:43
DigiSimLinkPileUpSignals::resetLink
void resetLink()
Definition:
DigiSimLinkPileUpSignals.cc:4
DigiSimLinkPileUpSignals::Amplitude
float Amplitude
Definition:
DigiSimLinkPileUpSignals.h:16
PSimHit.h
DigiSimLinkPileUpSignals::theMapLink
HitToDigisMapType theMapLink
Definition:
DigiSimLinkPileUpSignals.h:42
DigiSimLinkPileUpSignals.h
DigiSimLinkPileUpSignals::add
virtual void add(const std::vector< float > &locAmpl, const size_t &firstChannelWithSignal, const size_t &lastChannelWithSignal, const PSimHit *hit, const int &counter)
Definition:
DigiSimLinkPileUpSignals.cc:9
PSimHit
Definition:
PSimHit.h:15
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16