|
|
Go to the documentation of this file.
35 typedef std::vector<edm::ParameterSet>
Parameters;
37 for (Parameters::iterator itRanges =
ranges.begin(); itRanges !=
ranges.end(); ++itRanges) {
39 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
40 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
41 aRange.
tdcMin = itRanges->getParameter<std::vector<double>>(
"tdcMin");
42 aRange.
tdcMax = itRanges->getParameter<std::vector<double>>(
"tdcMax");
65 std::cout <<
"====****Entering EcalTBDigiProducer produce()" << std::endl;
87 m_ebDigis = std::make_unique<EBDigiCollection>();
97 *barrelReadout = *barrelResult;
100 std::cout <<
"===**** EcalTBDigiProducer: number of barrel digis = " << barrelReadout->size() << std::endl;
117 <<
" for the subdetector " << myDet;
122 passPhaseShift = 1. - passPhaseShift;
130 const unsigned int thisChannel(1);
137 const unsigned int sampleIndex(0);
138 theTBTDCRawInfo.
setSample(sampleIndex, theTBTDCSample);
140 LogDebug(
"EcalDigi") << theTBTDCSample <<
"\n" << theTBTDCRawInfo;
144 m_ebDigis = std::make_unique<EBDigiCollection>();
149 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)