CMS 3D CMS Logo

PileUpFP420.cc
Go to the documentation of this file.
1 // File: PileUpFP420.cc
3 // Date: 12.2006
4 // Description: PileUpFP420 for FP420
5 // Modifications:
7 //#include "SimG4CMS/FP420/interface/FP420G4HitCollection.h"
8 //#include "SimG4CMS/FP420/interface/FP420G4Hit.h"
11 //#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
12 
14 
15 
16  if(verbosity>0) {
17  std::cout << " ==========================****PileUpFP420: add start = " << std::endl;
18  }
19  for (HitDigitizerFP420::hit_map_type::const_iterator im = in.begin(); im!=in.end(); im++ ){
20 
21  theMap[(*im).first] += Amplitude((*im).second);
22 
23  theMapLink[(*im).first].push_back( std::pair < const PSimHit*, Amplitude > ( &hit, Amplitude((*im).second) ) );
24 
25  if(verbosity>0) {
26  std::cout << "*********** Amplitude((*im).first) = " << Amplitude((*im).first) << std::endl;
27  std::cout << " Amplitude((*im).second) = " << Amplitude((*im).second) << std::endl;
28  }
29  } // for loop
30 
31  if(verbosity>0) {
32  std::cout << " ==========================****PileUpFP420: add end = " << std::endl;
33  }
34 }
36  theMap.clear();
37 }
39  theMapLink.clear();
40 }
signal_map_type theMap
Definition: PileUpFP420.h:29
void resetLink()
Definition: PileUpFP420.cc:38
float Amplitude
Definition: PileUpFP420.h:14
std::map< int, float, std::less< int > > hit_map_type
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:28
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
Definition: PileUpFP420.cc:13
void resetSignal()
Definition: PileUpFP420.cc:35