Go to the documentation of this file.00001 #include "SimTracker/SiStripDigitizer/interface/SiPileUpSignals.h"
00002 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
00003
00004 void SiPileUpSignals::resetLink(){
00005 theMapLink.clear();
00006 theCounterMapLink.clear();
00007 }
00008
00009 void SiPileUpSignals::add(const std::vector<double>& locAmpl,
00010 const size_t& firstChannelWithSignal, const size_t& lastChannelWithSignal,
00011 const PSimHit* hit,const int& counter){
00012 for (size_t iChannel=firstChannelWithSignal; iChannel<lastChannelWithSignal; ++iChannel) {
00013 theMapLink[iChannel].push_back(std::pair < const PSimHit*, Amplitude >(hit,Amplitude(locAmpl[iChannel])));
00014 theCounterMapLink[iChannel].push_back(std::make_pair(hit, counter));
00015 }
00016 }
00017