84 folderName_(ps.getUntrackedParameter<std::
string>(
"dqmFolder",
"HLT/HLTScalers_EvF")),
85 processname_(ps.getParameter<std::
string>(
"processname")),
98 hltOverallScalerN_(0),
102 monitorDaemon_(ps.getUntrackedParameter<bool>(
"MonitorDaemon",
false)),
107 LogDebug(
"HLTScalers") <<
"HLTScalers: constructor...." ;
119 LogDebug(
"HLTScalers") <<
"HLTScalers::beginJob()..." << std::endl;
123 dbe_->setCurrentFolder(rawdir);
134 "Reset HLT Overall Scaler", 1, 0.5, 1.5);
153 edm::LogInfo(
"HLTScalers") <<
"getByLabel for TriggerResults failed"
154 <<
" with label " << l.
module;
159 int npath = hltResults->size();
164 LogInfo(
"HLTScalers") <<
"analyze(): new run. dump path for this evt "
172 int maxModules = 200;
175 dbe_->setCurrentFolder(rawdir);
177 scalersPD_ = dbe_->book1D(
"pdScalers",
"PD scalers (stream A)",
180 npath, -0.5, npath-0.5,
181 maxModules, 0, maxModules-1);
182 scalers_ = dbe_->book1D(
"hltScalers",
"HLT scalers",
183 npath, -0.5, npath-0.5);
184 scalersN_ = dbe_->book1D(
"hltScalersN",
"Reset HLT scalers",
185 npath, -0.5, npath-0.5);
187 npath, -0.5, npath-0.5);
189 npath, -0.5, npath-0.5,
190 npath, -0.5, npath-0.5);
194 hltBxVsPath_ = dbe_->book2D(
"hltBxVsPath",
"HLT Accept vs Bunch Number",
196 npath, -0.5, npath-0.5);
197 hltBx_ = dbe_->book1D(
"hltBx",
"Bx of HLT Accepted Events ",
210 for ( TriggerNames::Strings::const_iterator
214 LogDebug(
"HLTScalers") << q <<
": " << *
j ;
219 for (
unsigned int i = 0;
i < nPD;
i++) {
229 for (
int i = 0;
i < npath; ++
i ) {
232 for (
unsigned int j = 0;
j < hltResults->index(
i); ++
j ) {
240 for (
int j =
i + 1;
j < npath; ++
j ) {
257 bool anyGroupPassed =
false;
258 for (
unsigned int mi = 0; mi <
pairPDPaths_.size(); mi++) {
260 bool groupPassed =
false;
271 if(pathByIndex >= hltResults->size() )
continue;
281 if(hltResults->accept(pathByIndex)) {
290 anyGroupPassed =
true;
301 LogDebug(
"HLTScalers") <<
"Start of luminosity block." ;
317 LogDebug(
"HLTScalers") <<
"End of luminosity block." ;
325 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, run "
339 edm::LogError(
"TrigXMonitor") <<
"HLTConfigProvider failed to initialize.";
351 for (
unsigned int i = 0;
i < PD.size();
i++) {
363 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, steamm A not in the HLT menu ";
373 LogDebug(
"HLTScalers") <<
"HLTScalers::endRun , run "
LuminosityBlockID id() const
std::vector< std::pair< std::string, std::vector< std::string > > > pairPDPaths_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
void setBinContent(int binx, double content)
set content of bin (1-D)
static const HistoName names[]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
HLTScalers(const edm::ParameterSet &ps)
Constructors.
MonitorElement * scalersN_
MonitorElement * detailedScalers_
int bunchCrossing() const
MonitorElement * hltOverallScaler_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * scalers_
unsigned int streamIndex(const std::string &stream) const
index of stream with name
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
MonitorElement * diagnostic_
Strings const & triggerNames() const
U second(std::pair< T, U > const &p)
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
MonitorElement * hltBxVsPath_
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
const std::vector< std::string > & streamNames() const
unsigned int triggerIndex(std::string const &name) const
void beginJob(void)
BeginJob.
const std::vector< std::string > & streamContent(unsigned int stream) const
names of datasets in stream with index i
MonitorElement * hltCorrelations_
HLTConfigProvider hltConfig_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Begin LumiBlock.
const std::vector< std::string > & datasetContent(unsigned int dataset) const
names of trigger paths in dataset with index i
static const char *const trigNames[]
MonitorElement * scalersException_
MonitorElement * nLumiBlock_
MonitorElement * hltOverallScalerN_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
LuminosityBlockNumber_t luminosityBlock() const
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
volatile std::atomic< bool > shutdown_flag false
MonitorElement * scalersPD_
void analyze(const edm::Event &e, const edm::EventSetup &c)
void Reset(void)
reset ME (ie. contents, errors, etc)
edm::EDGetTokenT< edm::TriggerResults > trigResultsSource_