CMS 3D CMS Logo

PileUpFP420.h
Go to the documentation of this file.
1 #ifndef PileUpFP420_h
2 #define PileUpFP420_h
3 
5 #include <map>
6 
7 class SimHit;
8 
9 // Class which takes the responses from each SimHit and piles-up them.
10 class PileUpFP420 {
11 public:
12  typedef float Amplitude;
13  typedef std::map<int, Amplitude, std::less<int>> signal_map_type;
14  typedef std::map<int, std::vector<std::pair<const PSimHit *, Amplitude>>, std::less<int>> HitToDigisMapType;
15 
16  virtual ~PileUpFP420() {}
17 
18  PileUpFP420() { reset(); }
19  virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int);
20  void reset() {
21  resetLink();
22  resetSignal();
23  }
26 
27 private:
28  void resetLink();
29  void resetSignal();
32 };
33 #endif
PileUpFP420::theMapLink
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
PileUpFP420::resetLink
void resetLink()
Definition: PileUpFP420.cc:33
PileUpFP420::Amplitude
float Amplitude
Definition: PileUpFP420.h:12
PileUpFP420::reset
void reset()
Definition: PileUpFP420.h:20
HitDigitizerFP420::hit_map_type
std::map< int, float, std::less< int > > hit_map_type
Definition: HitDigitizerFP420.h:18
PileUpFP420::PileUpFP420
PileUpFP420()
Definition: PileUpFP420.h:18
HitDigitizerFP420.h
PileUpFP420::add
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
Definition: PileUpFP420.cc:13
PileUpFP420::signal_map_type
std::map< int, Amplitude, std::less< int > > signal_map_type
Definition: PileUpFP420.h:13
PileUpFP420
Definition: PileUpFP420.h:10
PileUpFP420::resetSignal
void resetSignal()
Definition: PileUpFP420.cc:32
PileUpFP420::dumpSignal
signal_map_type dumpSignal()
Definition: PileUpFP420.h:24
PileUpFP420::~PileUpFP420
virtual ~PileUpFP420()
Definition: PileUpFP420.h:16
PileUpFP420::theMap
signal_map_type theMap
Definition: PileUpFP420.h:31
PileUpFP420::HitToDigisMapType
std::map< int, std::vector< std::pair< const PSimHit *, Amplitude > >, std::less< int > > HitToDigisMapType
Definition: PileUpFP420.h:14
PileUpFP420::dumpLink
HitToDigisMapType dumpLink()
Definition: PileUpFP420.h:25
PSimHit
Definition: PSimHit.h:15
hit
Definition: SiStripHitEffFromCalibTree.cc:88