18 : outputFile_(iConfig.getUntrackedParameter<
std::
string>(
"outputFile",
"myfile.root")),
19 rbxCollName_(iConfig.getUntrackedParameter<
edm::
InputTag>(
"rbxCollName")),
20 minRBXEnergy_(iConfig.getUntrackedParameter<double>(
"minRBXEnergy")),
21 minHitEnergy_(iConfig.getUntrackedParameter<double>(
"minHitEnergy")),
22 useAllHistos_(iConfig.getUntrackedParameter<
bool>(
"useAllHistos",
false)),
35 ib.setCurrentFolder(
"NoiseRatesV/NoiseRatesTask");
42 sprintf(
histo,
"hLumiBlockCount");
46 sprintf(
histo,
"hRBXEnergy");
49 sprintf(
histo,
"hRBXEnergyType1");
52 sprintf(
histo,
"hRBXEnergyType2");
55 sprintf(
histo,
"hRBXEnergyType3");
58 sprintf(
histo,
"hRBXNHits");
63 sprintf(
histo,
"nNNumChannels");
65 sprintf(
histo,
"nNSumE");
67 sprintf(
histo,
"nNSumEt");
70 sprintf(
histo,
"sNNumChannels");
72 sprintf(
histo,
"sNSumE");
74 sprintf(
histo,
"sNSumEt");
77 sprintf(
histo,
"iNNumChannels");
79 sprintf(
histo,
"iNSumE");
81 sprintf(
histo,
"iNSumEt");
84 sprintf(
histo,
"hNoise_maxZeros");
86 sprintf(
histo,
"hNoise_maxHPDHits");
88 sprintf(
histo,
"hNoise_maxHPDNoOtherHits");
95 int lumiSection =
iEvent.luminosityBlock();
102 <<
" could not find HcalNoiseRBXCollection named " <<
rbxCollName_ <<
".\n";
132 for (reco::HcalNoiseRBXCollection::const_iterator it =
handle->begin(); it !=
handle->end(); ++it) {
146 else if (
nhits <= 18)
MonitorElement * sNNumChannels_
MonitorElement * hRBXEnergy_
std::vector< HcalNoiseRBX > HcalNoiseRBXCollection
const double minHitEnergy_
double recHitEnergy(double theshold=1.5) const
MonitorElement * hNoise_maxHPDNoOtherHits_
const edm::EDGetTokenT< reco::HcalNoiseRBXCollection > tok_rbx_
const edm::EDGetTokenT< HcalNoiseSummary > noisetoken_
MonitorElement * hRBXEnergyType3_
int numRecHits(double threshold=1.5) const
MonitorElement * hLumiBlockCount_
MonitorElement * hRBXNHits_
MonitorElement * nNNumChannels_
std::map< int, int > lumiCountMap_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * hNoise_maxZeros_
MonitorElement * iNNumChannels_
MonitorElement * hRBXEnergyType2_
#define DEFINE_FWK_MODULE(type)
NoiseRates(const edm::ParameterSet &)
MonitorElement * hNoise_maxHPDHits_
MonitorElement * iNSumEt_
MonitorElement * sNSumEt_
MonitorElement * hRBXEnergyType1_
MonitorElement * nNSumEt_
const edm::InputTag rbxCollName_
const double minRBXEnergy_
void analyze(const edm::Event &, const edm::EventSetup &) override