25 const bool syncPhase ( params.
getParameter<
bool>(
"syncPhase") ) ;
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)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::auto_ptr< EBDigiCollection > m_ebDigis
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
bool m_use2004OffsetConvention
vector< ParameterSet > Parameters
void setPhaseShift(const DetId &detId)
EcalTBDigiProducer(const edm::ParameterSet ¶ms, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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::auto_ptr< EcalTBTDCRawInfo > m_TDCproduct
std::unique_ptr< EEHitResponse > m_EEResponse
EcalTBReadout * m_theTBReadout
void setSample(unsigned int i, const EcalTBTDCSample &sam)
std::string m_EBdigiTempTag
std::unique_ptr< EBHitResponse > m_EBResponse
volatile std::atomic< bool > shutdown_flag false
std::auto_ptr< EEDigiCollection > m_eeDigis
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) ...