CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloVNoiseSignalGenerator.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloVNoiseSignalGenerator_h
2 #define CaloSimAlgos_CaloVNoiseSignalGenerator_h
3 
4 #include<vector>
6 
7 namespace CLHEP {
8  class HepRandomEngine;
9 }
10 
12 {
13 public:
16 
18  void fillEvent(CLHEP::HepRandomEngine*);
19 
20  void fillEvent(); //don't need random engine for some tasks
21 
22  void getNoiseSignals(std::vector<CaloSamples> & noiseSignals) { noiseSignals = theNoiseSignals; }
23 
24  bool contains(const DetId & detId) const;
25 
28  void setNoiseSignals(const std::vector<CaloSamples> & noiseSignals);
29 
30 protected:
33  virtual void fillNoiseSignals(CLHEP::HepRandomEngine*) = 0;
34  virtual void fillNoiseSignals() = 0;
35  std::vector<CaloSamples> theNoiseSignals;
36 
37 private:
38  void fillDetIds();
39  std::vector<unsigned int> theDetIds;
40 };
41 
42 #endif
43 
virtual void fillNoiseSignals()=0
std::vector< CaloSamples > theNoiseSignals
void setNoiseSignals(const std::vector< CaloSamples > &noiseSignals)
bool contains(const DetId &detId) const
Definition: DetId.h:18
std::vector< unsigned int > theDetIds
void getNoiseSignals(std::vector< CaloSamples > &noiseSignals)