CMS 3D CMS Logo

CaloVNoiseSignalGenerator.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloVNoiseSignalGenerator_h
2 #define CaloSimAlgos_CaloVNoiseSignalGenerator_h
3 
5 #include <vector>
6 
7 namespace CLHEP {
8  class HepRandomEngine;
9 }
10 
12 public:
15 
17  void fillEvent(CLHEP::HepRandomEngine *);
18 
19  void fillEvent(); // don't need random engine for some tasks
20 
21  void getNoiseSignals(std::vector<CaloSamples> &noiseSignals) { noiseSignals = theNoiseSignals; }
22 
23  bool contains(const DetId &detId) const;
24 
27  void setNoiseSignals(const std::vector<CaloSamples> &noiseSignals);
28 
29 protected:
32  virtual void fillNoiseSignals(CLHEP::HepRandomEngine *) = 0;
33  virtual void fillNoiseSignals() = 0;
34  std::vector<CaloSamples> theNoiseSignals;
35 
36 private:
37  void fillDetIds();
38  std::vector<unsigned int> theDetIds;
39 };
40 
41 #endif
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:37
def fillEvent(tree, event)
Definition: ntuple.py:18
std::vector< CaloSamples > theNoiseSignals
Definition: DetId.h:17
std::vector< unsigned int > theDetIds
void getNoiseSignals(std::vector< CaloSamples > &noiseSignals)