Public Member Functions | |
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) |
RPCStripNoisesRcdRead (const edm::ParameterSet &iConfig) | |
~RPCStripNoisesRcdRead () |
Definition at line 15 of file RPCStripNoisesRcdRead.cc.
RPCStripNoisesRcdRead::RPCStripNoisesRcdRead | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 23 of file RPCStripNoisesRcdRead.cc.
{}
RPCStripNoisesRcdRead::~RPCStripNoisesRcdRead | ( | ) |
Definition at line 25 of file RPCStripNoisesRcdRead.cc.
{}
void RPCStripNoisesRcdRead::analyze | ( | const edm::Event & | evt, |
const edm::EventSetup & | evtSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 27 of file RPCStripNoisesRcdRead.cc.
References gather_cfg::cout, edm::EventSetup::get(), i, and n.
{ edm::ESHandle<RPCStripNoises> noiseRcd; evtSetup.get<RPCStripNoisesRcd>().get(noiseRcd); edm::LogInfo("RPCStripNoisesReader") << "[RPCStripNoisesReader::analyze] End Reading RPCStripNoises" << std::endl; std::vector<RPCStripNoises::NoiseItem> vnoise = noiseRcd->getVNoise(); std::vector<float> vcls = noiseRcd->getCls(); for(unsigned int n = 0; n < vcls.size(); ++n){ std::cout<<"Cls Value: "<<vcls[n]<<std::endl; } int i= 1; for(std::vector<RPCStripNoises::NoiseItem>::iterator it = vnoise.begin(); it != vnoise.end(); ++it){ if(i%96 == 0) std::cout<<"DetId: "<<it->dpid<<" "<<it->time<<" "<<std::endl; std::cout<<" Noise Value: "<<(it->noise)<<" "<<(it->eff)<<std::endl; i++; } }