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 accumulate (const PMTDSimAccumulator &simAccumulator)=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 bool premixStage1_
 
double premixStage1MaxCharge_
 
double premixStage1MinCharge_
 
const float refSpeed_
 
const uint32_t verbosity_
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 31 of file MTDDigitizerBase.h.

Constructor & Destructor Documentation

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

Definition at line 33 of file MTDDigitizerBase.h.

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

35  :
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_);
45 
46  if ( name_ == "BTLTileDigitizer" || name_ == "BTLBarDigitizer" ) {
47  if(premixStage1_) {
49  }
50  else {
52  }
53  }
54  else if ( name_ == "ETLDigitizer" )
55  if(premixStage1_) {
57  }
58  else {
60  }
61  else
62  throw cms::Exception("[MTDDigitizerBase::MTDDigitizerBase]")
63  << name_ << " is an invalid MTD digitizer name";
64  }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
const bool premixStage1_
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::accumulate ( const PMTDSimAccumulator simAccumulator)
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 90 of file MTDDigitizerBase.h.

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

90  {
91  return name_;
92  }

Member Data Documentation

const std::string MTDDigitizerBase::digiCollection_
protected

Definition at line 98 of file MTDDigitizerBase.h.

const edm::InputTag MTDDigitizerBase::inputSimHits_
protected

Definition at line 97 of file MTDDigitizerBase.h.

std::string MTDDigitizerBase::name_
private

Definition at line 115 of file MTDDigitizerBase.h.

const bool MTDDigitizerBase::premixStage1_
protected

Definition at line 112 of file MTDDigitizerBase.h.

double MTDDigitizerBase::premixStage1MaxCharge_
protected

Definition at line 109 of file MTDDigitizerBase.h.

double MTDDigitizerBase::premixStage1MinCharge_
protected

Definition at line 107 of file MTDDigitizerBase.h.

const float MTDDigitizerBase::refSpeed_
protected

Definition at line 104 of file MTDDigitizerBase.h.

const uint32_t MTDDigitizerBase::verbosity_
protected

Definition at line 101 of file MTDDigitizerBase.h.