32 typedef std::vector< edm::ParameterSet >
Parameters;
34 for( Parameters::iterator itRanges = ranges.begin();
35 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");
51 "SimEcalTBG4Object" ) ;
70 std::cout<<
"====****Entering EcalTBDigiProducer produce()"<<std::endl ;
73 const std::vector<DetId>& theBarrelDets (
110 *barrelReadout = *barrelResult ;
113 std::cout<<
"===**** EcalTBDigiProducer: number of barrel digis = " 114 << barrelReadout->size()<<std::endl ;
132 const int myDet ( detId.
subdetId() ) ;
134 LogDebug(
"EcalDigi") <<
"Setting the phase shift " 136 <<
" and the offset " 138 <<
" for the subdetector " 154 const unsigned int thisChannel ( 1 ) ;
156 const unsigned int thisCount (
163 const unsigned int sampleIndex ( 0 ) ;
164 theTBTDCRawInfo.
setSample( sampleIndex, theTBTDCSample ) ;
166 LogDebug(
"EcalDigi") << theTBTDCSample <<
"\n" << theTBTDCRawInfo ;
179 std::cout<<
"===**** EcalTBDigiProducer: number of endcap digis = " 180 << 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
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
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
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
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...