34 typedef std::vector<edm::ParameterSet>
Parameters;
36 for (Parameters::iterator itRanges =
ranges.begin(); itRanges !=
ranges.end(); ++itRanges) {
38 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
39 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
40 aRange.
tdcMin = itRanges->getParameter<std::vector<double>>(
"tdcMin");
41 aRange.
tdcMax = itRanges->getParameter<std::vector<double>>(
"tdcMax");
64 std::cout <<
"====****Entering EcalTBDigiProducer produce()" << std::endl;
84 m_ebDigis = std::make_unique<EBDigiCollection>();
94 *barrelReadout = *barrelResult;
97 std::cout <<
"===**** EcalTBDigiProducer: number of barrel digis = " << barrelReadout->size() << std::endl;
114 <<
" for the subdetector " << myDet;
119 passPhaseShift = 1. - passPhaseShift;
127 const unsigned int thisChannel(1);
134 const unsigned int sampleIndex(0);
135 theTBTDCRawInfo.
setSample(sampleIndex, theTBTDCSample);
137 LogDebug(
"EcalDigi") << theTBTDCSample <<
"\n" << theTBTDCRawInfo;
141 m_ebDigis = std::make_unique<EBDigiCollection>();
146 std::cout <<
"===**** EcalTBDigiProducer: number of endcap digis = " << eeDigiPtr->
size() << std::endl;
const EcalTrigTowerConstituentsMap m_theTTmap
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::unique_ptr< EEDigiCollection > m_eeDigis
void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const override
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
static PFTauRenderPlugin instance
double phaseShift() const
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 cacheEEDigis(const EEDigiCollection *eeDigiPtr) const override
std::string m_EBdigiFinalTag
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void performReadout(edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EBDigiCollection &input, EBDigiCollection &output)
master function to be called once per event
std::pair< int, int > runRanges
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
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::unique_ptr< EEHitResponse > m_EEResponse
EcalTBDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &iC)
EcalTBReadout * m_theTBReadout
~EcalTBDigiProducer() override
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
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap