|
|
Go to the documentation of this file.
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;
86 m_ebDigis = std::make_unique<EBDigiCollection>();
96 *barrelReadout = *barrelResult;
99 std::cout <<
"===**** EcalTBDigiProducer: number of barrel digis = " << barrelReadout->size() << std::endl;
116 <<
" for the subdetector " << myDet;
121 passPhaseShift = 1. - passPhaseShift;
129 const unsigned int thisChannel(1);
136 const unsigned int sampleIndex(0);
137 theTBTDCRawInfo.
setSample(sampleIndex, theTBTDCSample);
139 LogDebug(
"EcalDigi") << theTBTDCSample <<
"\n" << theTBTDCRawInfo;
143 m_ebDigis = std::make_unique<EBDigiCollection>();
148 std::cout <<
"===**** EcalTBDigiProducer: number of endcap digis = " << eeDigiPtr->
size() << std::endl;
double phaseShift() const
std::vector< double > tdcMin
std::unique_ptr< EEHitResponse > m_EEResponse
EcalTBReadout * m_theTBReadout
~EcalTBDigiProducer() override
void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const override
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
void performReadout(edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EBDigiCollection &input, EBDigiCollection &output)
master function to be called once per event
std::unique_ptr< EBDigiCollection > m_ebDigis
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
std::vector< EcalTBTDCRecInfoAlgo::EcalTBTDCRanges > m_tdcRanges
Main class for Parameters in different subdetectors.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void fillTBTDCRawInfo(EcalTBTDCRawInfo &theTBTDCRawInfo)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
std::unique_ptr< EBHitResponse > m_EBResponse
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap
std::vector< double > tdcMax
void setSample(unsigned int i, const EcalTBTDCSample &sam)
std::unique_ptr< EcalTBTDCRawInfo > m_TDCproduct
std::pair< int, int > runRanges
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
static PFTauRenderPlugin instance
std::string m_EBdigiFinalTag
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
EcalTBDigiProducer(const edm::ParameterSet ¶ms, edm::ProducesCollector, edm::ConsumesCollector &iC)
std::unique_ptr< EEDigiCollection > m_eeDigis
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
void cacheEEDigis(const EEDigiCollection *eeDigiPtr) const override
std::string m_ecalTBInfoLabel
const EcalTrigTowerConstituentsMap m_theTTmap
std::string m_EBdigiTempTag
bool m_use2004OffsetConvention
vector< ParameterSet > Parameters
void setDetIds(const std::vector< DetId > &detIds)
tell the readout which cells exist
void setPhaseShift(const DetId &detId)