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 unsigned int& firstChannelWithSignal, const unsigned int& lastChannelWithSignal, 00011 const PSimHit& hit,const int& counter){ 00012 for (unsigned int iChannel = firstChannelWithSignal-1; iChannel<=lastChannelWithSignal-1; 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 }