CMS 3D CMS Logo

SiPileUpSignals.cc

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 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 }

Generated on Tue Jun 9 17:47:53 2009 for CMSSW by  doxygen 1.5.4