Go to the documentation of this file.00001
00002
00003
00004
00005
00007
00008
00009 #include "SimRomanPot/SimFP420/interface/PileUpFP420.h"
00010 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
00011
00012
00013 void PileUpFP420::add(HitDigitizerFP420::hit_map_type in, const PSimHit& hit, int verbosity){
00014
00015
00016 if(verbosity>0) {
00017 std::cout << " ==========================****PileUpFP420: add start = " << std::endl;
00018 }
00019 for (HitDigitizerFP420::hit_map_type::const_iterator im = in.begin(); im!=in.end(); im++ ){
00020
00021 theMap[(*im).first] += Amplitude((*im).second);
00022
00023 theMapLink[(*im).first].push_back( std::pair < const PSimHit*, Amplitude > ( &hit, Amplitude((*im).second) ) );
00024
00025 if(verbosity>0) {
00026 std::cout << "*********** Amplitude((*im).first) = " << Amplitude((*im).first) << std::endl;
00027 std::cout << " Amplitude((*im).second) = " << Amplitude((*im).second) << std::endl;
00028 }
00029 }
00030
00031 if(verbosity>0) {
00032 std::cout << " ==========================****PileUpFP420: add end = " << std::endl;
00033 }
00034 }
00035 void PileUpFP420::resetSignal(){
00036 theMap.clear();
00037 }
00038 void PileUpFP420::resetLink(){
00039 theMapLink.clear();
00040 }