CMS 3D CMS Logo

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 
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:38
def fillEvent(tree, event)
Definition: ntuple.py:17
std::vector< CaloSamples > theNoiseSignals
Definition: DetId.h:18
std::vector< unsigned int > theDetIds
void getNoiseSignals(std::vector< CaloSamples > &noiseSignals)