1 #ifndef HcalSimAlgos_HcalSignalGenerator_h
2 #define HcalSimAlgos_HcalSignalGenerator_h
23 template<
class HCALDIGITIZERTRAITS>
27 typedef typename HCALDIGITIZERTRAITS::Digi
DIGI;
28 typedef typename HCALDIGITIZERTRAITS::DigiCollection
COLLECTION;
71 boost::shared_ptr<edm::Wrapper<COLLECTION>
const> digisPTR =
74 digis = digisPTR->product();
79 throw cms::Exception(
"HcalSignalGenerator") <<
"No Event or EventPrincipal was set";
86 it != digis->
end(); ++it)
91 int startingCapId = (*it)[0].capid();
111 coder.
adc2fC(digi, result);
edm::InputTag theInputTag
these come from the ParameterSet
void setStartingCapId(int startingCapId)
void fC2pe(CaloSamples &samples) const
HCALDIGITIZERTRAITS::Digi DIGI
std::vector< T >::const_iterator const_iterator
HCALDIGITIZERTRAITS::DigiCollection COLLECTION
const edm::Event * theEvent
these fields are set in initializeEvent()
CaloSamples samplesInPE(const DIGI &digi)
void initializeEvent(const edm::EventPrincipal *eventPrincipal, const edm::EventSetup *eventSetup)
some users use EventPrincipals, not Events. We support both
edm::ESHandle< HcalDbService > theConditions
std::vector< CaloSamples > theNoiseSignals
const HcalQIEShape * theShape
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const
const edm::EventPrincipal * theEventPrincipal
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
void setFrameSize(const DetId &detId, int frameSize)
HcalSimParameterMap * theParameterMap
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
HcalElectronicsSim * theElectronicsSim
virtual ~HcalSignalGenerator()
const_iterator end() const
T const * product() const
T const * product() const
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
const HcalDetId & id() const
HcalSignalGenerator(const edm::InputTag &inputTag)
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
void setDbService(const HcalDbService *service)
const_iterator begin() const