33 typedef std::vector<edm::ParameterSet>
Parameters;
35 for (Parameters::iterator itRanges = ranges.begin(); itRanges != ranges.end(); ++itRanges) {
37 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
38 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
39 aRange.
tdcMin = itRanges->getParameter<std::vector<double>>(
"tdcMin");
40 aRange.
tdcMax = itRanges->getParameter<std::vector<double>>(
"tdcMax");
63 std::cout <<
"====****Entering EcalTBDigiProducer produce()" << std::endl;
95 *barrelReadout = *barrelResult;
98 std::cout <<
"===**** EcalTBDigiProducer: number of barrel digis = " << barrelReadout->size() << std::endl;
115 <<
" for the subdetector " << myDet;
120 passPhaseShift = 1. - passPhaseShift;
128 const unsigned int thisChannel(1);
135 const unsigned int sampleIndex(0);
136 theTBTDCRawInfo.
setSample(sampleIndex, theTBTDCSample);
138 LogDebug(
"EcalDigi") << theTBTDCSample <<
"\n" << theTBTDCRawInfo;
147 std::cout <<
"===**** EcalTBDigiProducer: number of endcap digis = " << eeDigiPtr->
size() << std::endl;
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
const EcalTrigTowerConstituentsMap m_theTTmap
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::unique_ptr< EEDigiCollection > m_eeDigis
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static PFTauRenderPlugin instance
void cacheEEDigis(const EEDigiCollection *eeDigiPtr) const override
std::vector< EcalTBTDCRecInfoAlgo::EcalTBTDCRanges > m_tdcRanges
std::vector< double > tdcMax
Main class for Parameters in different subdetectors.
void fillTBTDCRawInfo(EcalTBTDCRawInfo &theTBTDCRawInfo)
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
std::vector< double > tdcMin
std::unique_ptr< EBDigiCollection > m_ebDigis
bool m_use2004OffsetConvention
vector< ParameterSet > Parameters
void setPhaseShift(const DetId &detId)
void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::string m_EBdigiFinalTag
void performReadout(edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EBDigiCollection &input, EBDigiCollection &output)
master function to be called once per event
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void setDetIds(const std::vector< DetId > &detIds)
tell the readout which cells exist
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
std::pair< int, int > runRanges
std::unique_ptr< EEHitResponse > m_EEResponse
EcalTBReadout * m_theTBReadout
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
~EcalTBDigiProducer() override
double phaseShift() const
void setSample(unsigned int i, const EcalTBTDCSample &sam)
std::string m_EBdigiTempTag
std::unique_ptr< EBHitResponse > m_EBResponse
std::unique_ptr< EcalTBTDCRawInfo > m_TDCproduct
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
std::string m_ecalTBInfoLabel
EcalTBDigiProducer(const edm::ParameterSet ¶ms, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap