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 ;
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
virtual ~EcalTBDigiProducer()
std::vector< EcalTBTDCRecInfoAlgo::EcalTBTDCRanges > m_tdcRanges
std::vector< double > tdcMax
Main class for Parameters in different subdetectors.
void fillTBTDCRawInfo(EcalTBTDCRawInfo &theTBTDCRawInfo)
virtual void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const
virtual 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)
std::string m_EBdigiFinalTag
virtual void initializeEvent(edm::Event const &, edm::EventSetup const &)
virtual void finalizeEvent(edm::Event &, edm::EventSetup const &)
void performReadout(edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EBDigiCollection &input, EBDigiCollection &output)
master function to be called once per event
EcalTBDigiProducer(const edm::ParameterSet ¶ms, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void setDetIds(const std::vector< DetId > &detIds)
tell the readout which cells exist
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.
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
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
std::string m_ecalTBInfoLabel
virtual void cacheEEDigis(const EEDigiCollection *eeDigiPtr) const
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...