1 #ifndef FastTimingSimProducers_FastTimingCommon_MTDDigitizerBase_h 2 #define FastTimingSimProducers_FastTimingCommon_MTDDigitizerBase_h 15 #include "CLHEP/Units/GlobalPhysicalConstants.h" 20 class HepRandomEngine;
35 inputSimHits_( config.getParameter<
edm::InputTag>(
"inputSimHits") ),
36 digiCollection_( config.getParameter<
std::
string>(
"digiCollectionTag") ),
37 verbosity_( config.getUntrackedParameter< uint32_t >(
"verbosity",0) ),
38 refSpeed_( 0.1*
CLHEP::c_light ),
39 name_( config.getParameter<
std::
string>(
"digitizerName") ) {
40 iC.
consumes<std::vector<PSimHit> >(inputSimHits_);
42 if ( name_ ==
"BTLDigitizer" )
44 else if ( name_ ==
"ETLDigitizer" )
48 << name_ <<
" is an invalid MTD digitizer name";
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
virtual ~MTDDigitizerBase()
const edm::InputTag inputSimHits_
const std::string digiCollection_
const std::string & name() const
const uint32_t verbosity_
edmplugin::PluginFactory< MTDDigitizerBase *(const edm::ParameterSet &, edm::ConsumesCollector &, edm::ProducerBase &) > MTDDigitizerFactory
MTDDigitizerBase(const edm::ParameterSet &config, edm::ConsumesCollector &iC, edm::ProducerBase &parent)