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  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(); }
HIPAlignmentAlgorithm_cfi.verbosity
verbosity
Definition: HIPAlignmentAlgorithm_cfi.py:7
PileUpFP420::theMapLink
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
PileUpFP420::resetLink
void resetLink()
Definition: PileUpFP420.cc:33
gather_cfg.cout
cout
Definition: gather_cfg.py:144
PileUpFP420::Amplitude
float Amplitude
Definition: PileUpFP420.h:12
HitDigitizerFP420::hit_map_type
std::map< int, float, std::less< int > > hit_map_type
Definition: HitDigitizerFP420.h:18
PSimHit.h
PileUpFP420::add
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
Definition: PileUpFP420.cc:13
recoMuon::in
Definition: RecoMuonEnumerators.h:6
PileUpFP420::resetSignal
void resetSignal()
Definition: PileUpFP420.cc:32
PileUpFP420::theMap
signal_map_type theMap
Definition: PileUpFP420.h:31
PSimHit
Definition: PSimHit.h:15
PileUpFP420.h
hit
Definition: SiStripHitEffFromCalibTree.cc:88