CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Attributes
MTDDigitizerBase Class Referenceabstract

#include <MTDDigitizerBase.h>

Inheritance diagram for MTDDigitizerBase:
mtd_digitizer::MTDDigitizer< Traits >

Public Member Functions

virtual void accumulate (edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)=0
 handle SimHit accumulation More...
 
virtual void accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)=0
 
virtual void accumulate (edm::Handle< edm::PSimHitContainer > const &hits, int bxCrossing, CLHEP::HepRandomEngine *hre)=0
 
virtual void beginRun (const edm::EventSetup &es)=0
 actions at the start/end of run More...
 
virtual void endRun ()=0
 
virtual void finalizeEvent (edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)=0
 
virtual void initializeEvent (edm::Event const &e, edm::EventSetup const &c)=0
 actions at the start/end of event More...
 
 MTDDigitizerBase (const edm::ParameterSet &config, edm::ConsumesCollector &iC, edm::ProducerBase &parent)
 
const std::string & name () const
 
virtual ~MTDDigitizerBase ()
 

Protected Attributes

const std::string digiCollection_
 
const edm::InputTag inputSimHits_
 
const float refSpeed_
 
const uint32_t verbosity_
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 30 of file MTDDigitizerBase.h.

Constructor & Destructor Documentation

MTDDigitizerBase::MTDDigitizerBase ( const edm::ParameterSet config,
edm::ConsumesCollector iC,
edm::ProducerBase parent 
)
inline

Definition at line 32 of file MTDDigitizerBase.h.

References edm::ConsumesCollector::consumes(), Exception, and edm::ProductRegistryHelper::produces().

34  :
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_);
41 
42  if ( name_ == "BTLDigitizer" )
44  else if ( name_ == "ETLDigitizer" )
46  else
47  throw cms::Exception("[MTDDigitizerBase::MTDDigitizerBase]")
48  << name_ << " is an invalid MTD digitizer name";
49  }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const edm::InputTag inputSimHits_
const std::string digiCollection_
const uint32_t verbosity_
const float refSpeed_
virtual MTDDigitizerBase::~MTDDigitizerBase ( )
inlinevirtual

Member Function Documentation

virtual void MTDDigitizerBase::accumulate ( edm::Event const &  e,
edm::EventSetup const &  c,
CLHEP::HepRandomEngine *  hre 
)
pure virtual

handle SimHit accumulation

Implemented in mtd_digitizer::MTDDigitizer< Traits >.

virtual void MTDDigitizerBase::accumulate ( PileUpEventPrincipal const &  e,
edm::EventSetup const &  c,
CLHEP::HepRandomEngine *  hre 
)
pure virtual
virtual void MTDDigitizerBase::accumulate ( edm::Handle< edm::PSimHitContainer > const &  hits,
int  bxCrossing,
CLHEP::HepRandomEngine *  hre 
)
pure virtual
virtual void MTDDigitizerBase::beginRun ( const edm::EventSetup es)
pure virtual

actions at the start/end of run

Implemented in mtd_digitizer::MTDDigitizer< Traits >.

virtual void MTDDigitizerBase::endRun ( )
pure virtual
virtual void MTDDigitizerBase::finalizeEvent ( edm::Event e,
edm::EventSetup const &  c,
CLHEP::HepRandomEngine *  hre 
)
pure virtual
virtual void MTDDigitizerBase::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  c 
)
pure virtual

actions at the start/end of event

Implemented in mtd_digitizer::MTDDigitizer< Traits >.

const std::string& MTDDigitizerBase::name ( void  ) const
inline

Definition at line 73 of file MTDDigitizerBase.h.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

73  {
74  return name_;
75  }

Member Data Documentation

const std::string MTDDigitizerBase::digiCollection_
protected

Definition at line 81 of file MTDDigitizerBase.h.

const edm::InputTag MTDDigitizerBase::inputSimHits_
protected

Definition at line 80 of file MTDDigitizerBase.h.

std::string MTDDigitizerBase::name_
private

Definition at line 90 of file MTDDigitizerBase.h.

const float MTDDigitizerBase::refSpeed_
protected

Definition at line 87 of file MTDDigitizerBase.h.

const uint32_t MTDDigitizerBase::verbosity_
protected

Definition at line 84 of file MTDDigitizerBase.h.