SimCalorimetry
CaloSimAlgos
interface
CaloVNoiseSignalGenerator.h
Go to the documentation of this file.
1
#ifndef CaloSimAlgos_CaloVNoiseSignalGenerator_h
2
#define CaloSimAlgos_CaloVNoiseSignalGenerator_h
3
4
#include "
CalibFormats/CaloObjects/interface/CaloSamples.h
"
5
#include <vector>
6
7
namespace
CLHEP
{
8
class
HepRandomEngine;
9
}
10
11
class
CaloVNoiseSignalGenerator
{
12
public
:
13
CaloVNoiseSignalGenerator
();
14
virtual
~CaloVNoiseSignalGenerator
() {}
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
CaloSamples.h
CaloVNoiseSignalGenerator::CaloVNoiseSignalGenerator
CaloVNoiseSignalGenerator()
Definition:
CaloVNoiseSignalGenerator.cc:5
CaloVNoiseSignalGenerator::fillDetIds
void fillDetIds()
Definition:
CaloVNoiseSignalGenerator.cc:27
DetId
Definition:
DetId.h:17
CaloVNoiseSignalGenerator::~CaloVNoiseSignalGenerator
virtual ~CaloVNoiseSignalGenerator()
Definition:
CaloVNoiseSignalGenerator.h:14
CaloVNoiseSignalGenerator::fillNoiseSignals
virtual void fillNoiseSignals()=0
CaloVNoiseSignalGenerator::theNoiseSignals
std::vector< CaloSamples > theNoiseSignals
Definition:
CaloVNoiseSignalGenerator.h:34
CaloVNoiseSignalGenerator
Definition:
CaloVNoiseSignalGenerator.h:11
CLHEP
Definition:
CocoaGlobals.h:27
CaloVNoiseSignalGenerator::setNoiseSignals
void setNoiseSignals(const std::vector< CaloSamples > &noiseSignals)
Definition:
CaloVNoiseSignalGenerator.cc:19
CaloVNoiseSignalGenerator::getNoiseSignals
void getNoiseSignals(std::vector< CaloSamples > &noiseSignals)
Definition:
CaloVNoiseSignalGenerator.h:21
CaloVNoiseSignalGenerator::fillEvent
void fillEvent()
Definition:
CaloVNoiseSignalGenerator.cc:13
CaloVNoiseSignalGenerator::theDetIds
std::vector< unsigned int > theDetIds
Definition:
CaloVNoiseSignalGenerator.h:38
CaloVNoiseSignalGenerator::contains
bool contains(const DetId &detId) const
Definition:
CaloVNoiseSignalGenerator.cc:23
Generated for CMSSW Reference Manual by
1.8.16