Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondTools
RPC
src
RPCStripNoisesRcdRead.cc
Go to the documentation of this file.
1
#include <string>
2
#include <map>
3
#include <vector>
4
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
7
#include "
FWCore/Framework/interface/MakerMacros.h
"
8
#include "
FWCore/Framework/interface/Event.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
#include "
CondTools/RPC/interface/RPCDBSimSetUp.h
"
11
#include "
DataFormats/MuonDetId/interface/RPCDetId.h
"
12
#include "
CondFormats/RPCObjects/interface/RPCStripNoises.h
"
13
#include "
CondFormats/DataRecord/interface/RPCStripNoisesRcd.h
"
14
15
class
RPCStripNoisesRcdRead
:
public
edm::EDAnalyzer
{
16
public
:
17
RPCStripNoisesRcdRead
(
const
edm::ParameterSet
& iConfig );
18
~RPCStripNoisesRcdRead
();
19
void
analyze
(
const
edm::Event
& evt,
const
edm::EventSetup
& evtSetup)
override
;
20
};
21
22
23
RPCStripNoisesRcdRead::RPCStripNoisesRcdRead
(
const
edm::ParameterSet
& iConfig ){}
24
25
RPCStripNoisesRcdRead::~RPCStripNoisesRcdRead
(){}
26
27
void
RPCStripNoisesRcdRead::analyze
(
const
edm::Event
& evt,
const
edm::EventSetup
& evtSetup)
28
{
29
edm::ESHandle<RPCStripNoises>
noiseRcd;
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
49
DEFINE_FWK_MODULE
(
RPCStripNoisesRcdRead
);
RPCStripNoisesRcd.h
i
int i
Definition:
DBlmapReader.cc:9
RPCStripNoisesRcdRead::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition:
RPCStripNoisesRcdRead.cc:27
RPCStripNoisesRcdRead::~RPCStripNoisesRcdRead
~RPCStripNoisesRcdRead()
Definition:
RPCStripNoisesRcdRead.cc:25
RPCDetId.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
RPCDBSimSetUp.h
RPCStripNoisesRcdRead
Definition:
RPCStripNoisesRcdRead.cc:15
RPCStripNoisesRcdRead::RPCStripNoisesRcdRead
RPCStripNoisesRcdRead(const edm::ParameterSet &iConfig)
Definition:
RPCStripNoisesRcdRead.cc:23
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::EDAnalyzer
Definition:
EDAnalyzer.h:22
EDAnalyzer.h
edm::LogInfo
Definition:
MessageLogger.h:214
n
int n
Definition:
DTDataIntegrityTask.cc:31
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
RPCStripNoisesRcd
Definition:
RPCStripNoisesRcd.h:24
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
edm::Event
Definition:
Event.h:62
RPCStripNoises.h
Generated for CMSSW Reference Manual by
1.8.5