CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  if (verbosity > 0) {
15  std::cout << " ==========================****PileUpFP420: add start = " << std::endl;
16  }
17  for (HitDigitizerFP420::hit_map_type::const_iterator im = in.begin(); im != in.end(); im++) {
18  theMap[(*im).first] += Amplitude((*im).second);
19 
20  theMapLink[(*im).first].push_back(std::pair<const PSimHit *, Amplitude>(&hit, Amplitude((*im).second)));
21 
22  if (verbosity > 0) {
23  std::cout << "*********** Amplitude((*im).first) = " << Amplitude((*im).first) << std::endl;
24  std::cout << " Amplitude((*im).second) = " << Amplitude((*im).second) << std::endl;
25  }
26  } // for loop
27 
28  if (verbosity > 0) {
29  std::cout << " ==========================****PileUpFP420: add end = " << std::endl;
30  }
31 }
32 void PileUpFP420::resetSignal() { theMap.clear(); }
signal_map_type theMap
Definition: PileUpFP420.h:31
void resetLink()
Definition: PileUpFP420.cc:33
float Amplitude
Definition: PileUpFP420.h:12
std::map< int, float, std::less< int > > hit_map_type
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
Definition: PileUpFP420.cc:13
void resetSignal()
Definition: PileUpFP420.cc:32
tuple cout
Definition: gather_cfg.py:144