|
![CMS Logo](/cmsdoxygen/common/rightImage.jpg) |
Go to the documentation of this file.
79 : folderName_(ps.getUntrackedParameter<
std::
string>(
"dqmFolder",
"HLT/HLTScalers_EvF")),
80 processname_(ps.getParameter<
std::
string>(
"processname")),
84 scalersException_(nullptr),
85 hltCorrelations_(nullptr),
86 detailedScalers_(nullptr),
90 hltBxVsPath_(nullptr),
91 hltOverallScaler_(nullptr),
92 hltOverallScalerN_(nullptr),
95 monitorDaemon_(ps.getUntrackedParameter<
bool>(
"MonitorDaemon",
false)),
98 LogDebug(
"HLTScalers") <<
"HLTScalers: constructor....";
102 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, run " <<
run.id();
105 bool changed =
false;
111 edm::LogError(
"TrigXMonitor") <<
"HLTConfigProvider failed to initialize.";
121 for (
unsigned int i = 0;
i < PD.size();
i++) {
130 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, steamm A not in the HLT menu ";
137 iBooker.setCurrentFolder(rawdir);
139 nProc_ = iBooker.bookInt(
"nProcessed");
141 diagnostic_ = iBooker.book1D(
"hltMerge",
"HLT merging diagnostic", 1, 0.5, 1.5);
143 hltOverallScaler_ = iBooker.book1D(
"hltOverallScaler",
"HLT Overall Scaler", 1, 0.5, 1.5);
144 hltOverallScalerN_ = iBooker.book1D(
"hltOverallScalerN",
"Reset HLT Overall Scaler", 1, 0.5, 1.5);
153 int maxModules = 200;
155 scalersPD_ = iBooker.book1D(
"pdScalers",
"PD scalers (stream A)", nPD, -0.5, nPD - 0.5);
157 iBooker.book2D(
"detailedHltScalers",
"HLT Scalers", npath, -0.5, npath - 0.5, maxModules, 0, maxModules - 1);
158 scalers_ = iBooker.book1D(
"hltScalers",
"HLT scalers", npath, -0.5, npath - 0.5);
159 scalersN_ = iBooker.book1D(
"hltScalersN",
"Reset HLT scalers", npath, -0.5, npath - 0.5);
160 scalersException_ = iBooker.book1D(
"hltExceptions",
"HLT Exception scalers", npath, -0.5, npath - 0.5);
162 iBooker.book2D(
"hltCorrelations",
"HLT Scalers", npath, -0.5, npath - 0.5, npath, -0.5, npath - 0.5);
167 iBooker.book2D(
"hltBxVsPath",
"HLT Accept vs Bunch Number", 3600, -0.5, 3599.5, npath, -0.5, npath - 0.5);
168 hltBx_ = iBooker.book1D(
"hltBx",
"Bx of HLT Accepted Events ", 3600, -0.5, 3599.5);
172 LogDebug(
"HLTScalers") <<
"Start of luminosity block.";
191 edm::LogInfo(
"HLTScalers") <<
"getByLabel for TriggerResults failed"
192 <<
" with label " <<
l.module;
206 for (TriggerNames::Strings::const_iterator
j =
names.triggerNames().begin();
j !=
names.triggerNames().end(); ++
j) {
212 for (
unsigned int i = 0;
i < nPD;
i++) {
221 int bx =
e.bunchCrossing();
222 for (
int i = 0;
i < npath; ++
i) {
233 for (
int j =
i + 1;
j < npath; ++
j) {
249 bool anyGroupPassed =
false;
250 for (
unsigned int mi = 0; mi <
pairPDPaths_.size(); mi++) {
251 bool groupPassed =
false;
279 anyGroupPassed =
true;
292 LogDebug(
"HLTScalers") <<
"End of luminosity block.";
296 LogDebug(
"HLTScalers") <<
"HLTScalers::endRun , run " <<
run.id();
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &c) override
static const char *const trigNames[]
MonitorElement * hltCorrelations_
MonitorElement * scalersException_
HLTConfigProvider hltConfig_
MonitorElement * nLumiBlock_
U second(std::pair< T, U > const &p)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
MonitorElement * hltOverallScalerN_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
const std::string names[nVars_]
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
edm::EDGetTokenT< edm::TriggerResults > trigResultsSource_
MonitorElement * scalersPD_
std::vector< std::pair< std::string, std::vector< std::string > > > pairPDPaths_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
unsigned int size() const
number of trigger paths in trigger table
LuminosityBlockNumber_t luminosityBlock() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
LuminosityBlockID id() const
const std::vector< std::string > & streamNames() const
MonitorElement * hltOverallScaler_
MonitorElement * scalersN_
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
HLTScalers(const edm::ParameterSet &ps)
MonitorElement * detailedScalers_
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
MonitorElement * scalers_
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
DQM Client Diagnostic should be performed here:
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
unsigned int streamIndex(const std::string &stream) const
index of stream with name
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
MonitorElement * diagnostic_
MonitorElement * hltBxVsPath_