CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCStripNoisesRcdRead.cc
Go to the documentation of this file.
1 #include <string>
2 #include <map>
3 #include <vector>
4 
14 
16 public:
19  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
20 };
21 
22 
24 
26 
28 {
30  evtSetup.get<RPCStripNoisesRcd>().get(noiseRcd);
31  edm::LogInfo("RPCStripNoisesReader") << "[RPCStripNoisesReader::analyze] End Reading RPCStripNoises" << std::endl;
32 
33  std::vector<RPCStripNoises::NoiseItem> vnoise = noiseRcd->getVNoise();
34  std::vector<float> vcls = noiseRcd->getCls();
35 
36  for(unsigned int n = 0; n < vcls.size(); ++n){
37  std::cout<<"Cls Value: "<<vcls[n]<<std::endl;
38  }
39 
40  int i= 1;
41  for(std::vector<RPCStripNoises::NoiseItem>::iterator it = vnoise.begin(); it != vnoise.end(); ++it){
42  if(i%96 == 0) std::cout<<"DetId: "<<it->dpid<<" "<<it->time<<" "<<std::endl;
43  std::cout<<" Noise Value: "<<(it->noise)<<" "<<(it->eff)<<std::endl;
44  i++;
45  }
46 }
47 
48 //define this as a plug-in
int i
Definition: DBlmapReader.cc:9
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
RPCStripNoisesRcdRead(const edm::ParameterSet &iConfig)
const T & get() const
Definition: EventSetup.h:55
tuple cout
Definition: gather_cfg.py:121