CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DigiSimLinkPileUpSignals.cc
Go to the documentation of this file.
3 
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 }
virtual void add(const std::vector< float > &locAmpl, const size_t &firstChannelWithSignal, const size_t &lastChannelWithSignal, const PSimHit *hit, const int &counter)
HitCounterToDigisMapType theCounterMapLink
static std::atomic< unsigned int > counter