CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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, const size_t& lastChannelWithSignal,
11  const PSimHit* hit,const int& counter){
12  for (size_t iChannel=firstChannelWithSignal; iChannel<lastChannelWithSignal; ++iChannel) {
13  theMapLink[iChannel].push_back(std::pair < const PSimHit*, Amplitude >(hit,Amplitude(locAmpl[iChannel])));
14  theCounterMapLink[iChannel].push_back(std::make_pair(hit, counter));
15  }
16 }
17 
virtual void add(const std::vector< float > &locAmpl, const size_t &firstChannelWithSignal, const size_t &lastChannelWithSignal, const PSimHit *hit, const int &counter)
HitCounterToDigisMapType theCounterMapLink