1 #ifndef FastTimingSimProducers_FastTimingCommon_MTDDigitizerBase_h 2 #define FastTimingSimProducers_FastTimingCommon_MTDDigitizerBase_h 16 #include "CLHEP/Units/GlobalPhysicalConstants.h" 21 class HepRandomEngine;
36 inputSimHits_( config.getParameter<
edm::InputTag>(
"inputSimHits") ),
37 digiCollection_( config.getParameter<
std::
string>(
"digiCollectionTag") ),
38 verbosity_( config.getUntrackedParameter< uint32_t >(
"verbosity",0) ),
39 refSpeed_( 0.1*
CLHEP::c_light ),
40 premixStage1MinCharge_( config.getParameter<double>(
"premixStage1MinCharge") ),
41 premixStage1MaxCharge_( config.getParameter<double>(
"premixStage1MaxCharge") ),
42 premixStage1_( config.getParameter<
bool>(
"premixStage1")),
43 name_( config.getParameter<
std::
string>(
"digitizerName") ) {
44 iC.
consumes<std::vector<PSimHit> >(inputSimHits_);
46 if ( name_ ==
"BTLTileDigitizer" || name_ ==
"BTLBarDigitizer" ) {
54 else if ( name_ ==
"ETLDigitizer" )
63 << 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_
double premixStage1MinCharge_
edmplugin::PluginFactory< MTDDigitizerBase *(const edm::ParameterSet &, edm::ConsumesCollector &, edm::ProducerBase &) > MTDDigitizerFactory
double premixStage1MaxCharge_
MTDDigitizerBase(const edm::ParameterSet &config, edm::ConsumesCollector &iC, edm::ProducerBase &parent)