Main Page
Namespaces
Classes
Package Documentation
SimFastTiming
FastTimingCommon
plugins
MTDDigiProducer.h
Go to the documentation of this file.
1
#ifndef SimFastTiming_FastTimingCommon_MTDDigiProducer_h
2
#define SimFastTiming_FastTimingCommon_MTDDigiProducer_h
3
4
#include "
SimGeneral/MixingModule/interface/DigiAccumulatorMixMod.h
"
5
#include "
SimFastTiming/FastTimingCommon/interface/MTDDigitizerBase.h
"
6
7
#include <memory>
8
#include <vector>
9
10
namespace
edm
{
11
class
ConsumesCollector;
12
class
ProducerBase;
13
class
ParameterSet
;
14
class
StreamID;
15
}
16
17
namespace
CLHEP
{
18
class
HepRandomEngine;
19
}
20
21
class
MTDDigiProducer
:
public
DigiAccumulatorMixMod
{
22
public
:
23
MTDDigiProducer
(
edm::ParameterSet
const
&
pset
,
edm::ProducerBase
& mixMod,
edm::ConsumesCollector
& iC);
24
MTDDigiProducer
(
edm::ParameterSet
const
& pset,
edm::ConsumesCollector
& iC)
25
{
26
throw
cms::Exception
(
"DeprecatedConstructor"
) <<
"Please make sure you're calling this with the threaded mixing module..."
;
27
}
28
29
void
initializeEvent(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
30
void
finalizeEvent(
edm::Event
&,
edm::EventSetup
const
&)
override
;
31
void
accumulate(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
32
void
accumulate(
PileUpEventPrincipal
const
&,
edm::EventSetup
const
&,
edm::StreamID
const
&)
override
;
33
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
34
void
endRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
35
~
MTDDigiProducer
()
override
;
36
private
:
37
//the digitizer
38
std::vector<std::unique_ptr<MTDDigitizerBase> >
theDigitizers_
;
39
CLHEP::HepRandomEngine* randomEngine_ =
nullptr
;
40
};
41
42
#include "
FWCore/Framework/interface/MakerMacros.h
"
43
#include "
SimGeneral/MixingModule/interface/DigiAccumulatorMixModFactory.h
"
44
DEFINE_DIGI_ACCUMULATOR
(
MTDDigiProducer
);
45
46
#endif
Exception
Definition:
hltDiff.cc:292
ParameterSet
Definition:
Functions.h:16
edm::StreamID
Definition:
StreamID.h:30
MakerMacros.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DigiAccumulatorMixMod
Definition:
DigiAccumulatorMixMod.h:42
CLHEP
Definition:
CocoaGlobals.h:27
DigiAccumulatorMixModFactory.h
MTDDigiProducer::theDigitizers_
std::vector< std::unique_ptr< MTDDigitizerBase > > theDigitizers_
Definition:
MTDDigiProducer.h:38
MTDDigiProducer::MTDDigiProducer
MTDDigiProducer(edm::ParameterSet const &pset, edm::ConsumesCollector &iC)
Definition:
MTDDigiProducer.h:24
MTDDigiProducer
Definition:
MTDDigiProducer.h:21
edm::EventSetup
Definition:
EventSetup.h:52
DigiAccumulatorMixMod.h
PileUpEventPrincipal
Definition:
PileUpEventPrincipal.h:19
edm
HLT enums.
Definition:
AlignableModifier.h:17
DEFINE_DIGI_ACCUMULATOR
#define DEFINE_DIGI_ACCUMULATOR(type)
Definition:
DigiAccumulatorMixModFactory.h:30
edm::ProducerBase
Definition:
ProducerBase.h:59
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:70
Ecal2004TBTDCRanges_v1_cff.endRun
endRun
Definition:
Ecal2004TBTDCRanges_v1_cff.py:4
MTDDigitizerBase.h
edm::Run
Definition:
Run.h:44
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11