CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPileUpSignals.cc
Go to the documentation of this file.
3 
5  theMapLink.clear();
6  theCounterMapLink.clear();
7 }
8 
9 void SiPileUpSignals::add(const std::vector<double>& 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 
HitToDigisMapType theMapLink
virtual void add(const std::vector< double > &locAmpl, const size_t &firstChannelWithSignal, const size_t &lastChannelWithSignal, const PSimHit *hit, const int &counter)
HitCounterToDigisMapType theCounterMapLink