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") {
52 }
else if (name_ ==
"ETLDigitizer")
59 throw cms::Exception(
"[MTDDigitizerBase::MTDDigitizerBase]") << name_ <<
" is an invalid MTD digitizer name";
71 CLHEP::HepRandomEngine* hre) = 0;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
virtual ~MTDDigitizerBase()
const edm::InputTag inputSimHits_
const std::string digiCollection_
const std::string & name() const
const uint32_t verbosity_
double premixStage1MinCharge_
MTDDigitizerBase(const edm::ParameterSet &config, edm::ProducesCollector producesCollector, edm::ConsumesCollector &iC)
double premixStage1MaxCharge_