Public Member Functions | |
boost::shared_ptr < L1RCTChannelMask > | produceL1RCTChannelMask (const L1RCTChannelMaskRcd &) |
boost::shared_ptr < L1RCTNoisyChannelMask > | produceL1RCTNoisyChannelMask (const L1RCTNoisyChannelMaskRcd &) |
boost::shared_ptr < L1RCTParameters > | produceL1RCTParameters (const L1RCTParametersRcd &) |
RCTConfigProducers (const edm::ParameterSet &) | |
~RCTConfigProducers () | |
Private Attributes | |
L1RCTChannelMask | rctChannelMask |
L1RCTNoisyChannelMask | rctNoisyChannelMask |
L1RCTParameters | rctParameters |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 42 of file RCTConfigProducers.cc.
RCTConfigProducers::RCTConfigProducers | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 73 of file RCTConfigProducers.cc.
References L1RCTNoisyChannelMask::ecalMask, L1RCTChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalThreshold, edm::ParameterSet::getParameter(), L1RCTNoisyChannelMask::hcalMask, L1RCTChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalThreshold, L1RCTChannelMask::hfMask, L1RCTNoisyChannelMask::hfMask, L1RCTNoisyChannelMask::hfThreshold, i, j, gen::k, produceL1RCTChannelMask(), produceL1RCTNoisyChannelMask(), produceL1RCTParameters(), rctChannelMask, rctNoisyChannelMask, rctParameters, and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced //setWhatProduced(this); setWhatProduced(this, &RCTConfigProducers::produceL1RCTParameters); setWhatProduced(this, &RCTConfigProducers::produceL1RCTChannelMask); setWhatProduced(this, &RCTConfigProducers::produceL1RCTNoisyChannelMask); //now do what ever other initialization is needed rctParameters = L1RCTParameters(iConfig.getParameter<double>("eGammaLSB"), iConfig.getParameter<double>("jetMETLSB"), iConfig.getParameter<double>("eMinForFGCut"), iConfig.getParameter<double>("eMaxForFGCut"), iConfig.getParameter<double>("hOeCut"), iConfig.getParameter<double>("eMinForHoECut"), iConfig.getParameter<double>("eMaxForHoECut"), iConfig.getParameter<double>("hMinForHoECut"), iConfig.getParameter<double>("eActivityCut"), iConfig.getParameter<double>("hActivityCut"), iConfig.getParameter<unsigned>("eicIsolationThreshold"), iConfig.getParameter<unsigned>("jscQuietThresholdBarrel"), iConfig.getParameter<unsigned>("jscQuietThresholdEndcap"), iConfig.getParameter<bool>("noiseVetoHB"), iConfig.getParameter<bool>("noiseVetoHEplus"), iConfig.getParameter<bool>("noiseVetoHEminus"), iConfig.getParameter<bool>("useCorrectionsLindsey"), iConfig.getParameter<std::vector< double > >("eGammaECalScaleFactors"), iConfig.getParameter<std::vector< double > >("eGammaHCalScaleFactors"), iConfig.getParameter<std::vector< double > >("jetMETECalScaleFactors"), iConfig.getParameter<std::vector< double > >("jetMETHCalScaleFactors"), iConfig.getParameter<std::vector< double > >("ecal_calib_Lindsey"), iConfig.getParameter<std::vector< double > >("hcal_calib_Lindsey"), iConfig.getParameter<std::vector< double > >("hcal_high_calib_Lindsey"), iConfig.getParameter<std::vector< double > >("cross_terms_Lindsey"), iConfig.getParameter<std::vector< double > >("HoverE_low_Lindsey"), iConfig.getParameter<std::vector< double > >("HoverE_high_Lindsey") ); // value of true if channel is masked, false if not masked for (int i = 0; i < 18; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 28; k++) { rctChannelMask.ecalMask[i][j][k] = false; rctChannelMask.hcalMask[i][j][k] = false; } for (int k = 0; k < 4; k++) { rctChannelMask.hfMask[i][j][k] = false; } } } //Now the hot tower mask //first the thresholds rctNoisyChannelMask.ecalThreshold = 0.0; rctNoisyChannelMask.hcalThreshold = 0.0; rctNoisyChannelMask.hfThreshold = 0.0; for (int i = 0; i < 18; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 28; k++) { rctNoisyChannelMask.ecalMask[i][j][k] = false; rctNoisyChannelMask.hcalMask[i][j][k] = false; } for (int k = 0; k < 4; k++) { rctNoisyChannelMask.hfMask[i][j][k] = false; } } } }
RCTConfigProducers::~RCTConfigProducers | ( | ) |
Definition at line 162 of file RCTConfigProducers.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
boost::shared_ptr< L1RCTChannelMask > RCTConfigProducers::produceL1RCTChannelMask | ( | const L1RCTChannelMaskRcd & | iRecord | ) |
Definition at line 188 of file RCTConfigProducers.cc.
References rctChannelMask.
Referenced by RCTConfigProducers().
{ using namespace edm::es; boost::shared_ptr<L1RCTChannelMask> pL1RCTChannelMask = boost::shared_ptr<L1RCTChannelMask>( new L1RCTChannelMask( rctChannelMask ) ) ; return pL1RCTChannelMask ; }
boost::shared_ptr< L1RCTNoisyChannelMask > RCTConfigProducers::produceL1RCTNoisyChannelMask | ( | const L1RCTNoisyChannelMaskRcd & | iRecord | ) |
Definition at line 197 of file RCTConfigProducers.cc.
References rctNoisyChannelMask.
Referenced by RCTConfigProducers().
{ using namespace edm::es; boost::shared_ptr<L1RCTNoisyChannelMask> pL1RCTChannelMask = boost::shared_ptr<L1RCTNoisyChannelMask>( new L1RCTNoisyChannelMask( rctNoisyChannelMask ) ) ; return pL1RCTChannelMask ; }
boost::shared_ptr< L1RCTParameters > RCTConfigProducers::produceL1RCTParameters | ( | const L1RCTParametersRcd & | iRecord | ) |
Definition at line 178 of file RCTConfigProducers.cc.
References rctParameters.
Referenced by RCTConfigProducers().
{ using namespace edm::es; boost::shared_ptr<L1RCTParameters> pL1RCTParameters = boost::shared_ptr<L1RCTParameters>( new L1RCTParameters( rctParameters ) ) ; return pL1RCTParameters ; //return products( pL1RCTParameters, pL1RCTChannelMask ); }
Definition at line 58 of file RCTConfigProducers.cc.
Referenced by produceL1RCTChannelMask(), and RCTConfigProducers().
Definition at line 59 of file RCTConfigProducers.cc.
Referenced by produceL1RCTNoisyChannelMask(), and RCTConfigProducers().
Definition at line 57 of file RCTConfigProducers.cc.
Referenced by produceL1RCTParameters(), and RCTConfigProducers().