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
signal_map_type theMap
Definition: PileUpFP420.h:31
void resetLink()
Definition: PileUpFP420.cc:33
void reset()
Definition: PileUpFP420.h:20
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
std::map< int, Amplitude, std::less< int > > signal_map_type
Definition: PileUpFP420.h:13
virtual ~PileUpFP420()
Definition: PileUpFP420.h:16
std::map< int, std::vector< std::pair< const PSimHit *, Amplitude > >, std::less< int > > HitToDigisMapType
Definition: PileUpFP420.h:14
void resetSignal()
Definition: PileUpFP420.cc:32
signal_map_type dumpSignal()
Definition: PileUpFP420.h:24
HitToDigisMapType dumpLink()
Definition: PileUpFP420.h:25