SimCalorimetry
CastorSim
src
CastorElectronicsSim.h
Go to the documentation of this file.
1
#ifndef CastorSim_CastorElectronicsSim_h
2
#define CastorSim_CastorElectronicsSim_h
3
8
#include "
CalibFormats/CaloObjects/interface/CaloSamples.h
"
9
10
class
CastorDataFrame
;
11
12
class
CastorAmplifier
;
13
class
CastorCoderFactory
;
14
15
namespace
CLHEP
{
16
class
HepRandomEngine;
17
}
18
19
class
CastorElectronicsSim
{
20
public
:
21
CastorElectronicsSim
(
CastorAmplifier
*amplifier,
const
CastorCoderFactory
*coderFactory);
22
~CastorElectronicsSim
();
23
24
void
analogToDigital
(CLHEP::HepRandomEngine *,
CaloSamples
&linearFrame,
CastorDataFrame
&
result
);
25
27
void
newEvent
(CLHEP::HepRandomEngine *);
28
29
private
:
30
template
<
class
Digi>
31
void
convert
(
CaloSamples
&
frame
,
Digi
&
result
, CLHEP::HepRandomEngine *);
32
33
CastorAmplifier
*
theAmplifier
;
34
const
CastorCoderFactory
*
theCoderFactory
;
35
36
int
theStartingCapId
;
37
};
38
39
#endif
CaloSamples.h
CastorElectronicsSim::theAmplifier
CastorAmplifier * theAmplifier
Definition:
CastorElectronicsSim.h:33
TrendClient_cfi.Digi
Digi
Definition:
TrendClient_cfi.py:7
CastorElectronicsSim
Definition:
CastorElectronicsSim.h:19
CastorElectronicsSim::theCoderFactory
const CastorCoderFactory * theCoderFactory
Definition:
CastorElectronicsSim.h:34
CastorElectronicsSim::theStartingCapId
int theStartingCapId
Definition:
CastorElectronicsSim.h:36
CastorElectronicsSim::~CastorElectronicsSim
~CastorElectronicsSim()
Definition:
CastorElectronicsSim.cc:11
CLHEP
Definition:
CocoaGlobals.h:27
CastorDataFrame
Definition:
CastorDataFrame.h:15
CastorElectronicsSim::analogToDigital
void analogToDigital(CLHEP::HepRandomEngine *, CaloSamples &linearFrame, CastorDataFrame &result)
Definition:
CastorElectronicsSim.cc:20
CastorElectronicsSim::newEvent
void newEvent(CLHEP::HepRandomEngine *)
Things that need to be initialized every event.
Definition:
CastorElectronicsSim.cc:24
CaloSamples
Definition:
CaloSamples.h:14
CastorAmplifier
Definition:
CastorAmplifier.h:13
CastorCoderFactory
Definition:
CastorCoderFactory.h:8
amptDefault_cfi.frame
frame
Definition:
amptDefault_cfi.py:12
CastorElectronicsSim::convert
void convert(CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *)
Definition:
CastorElectronicsSim.cc:14
mps_fire.result
result
Definition:
mps_fire.py:303
CastorElectronicsSim::CastorElectronicsSim
CastorElectronicsSim(CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory)
Definition:
CastorElectronicsSim.cc:8
Generated for CMSSW Reference Manual by
1.8.16