89 folderName_(ps.getUntrackedParameter<std::string>(
"dqmFolder",
"HLT/HLTScalers_EvF")),
90 processname_(ps.getParameter<std::string>(
"processname")),
92 trigResultsSource_(ps.getParameter<edm::
InputTag>(
"triggerResults")),
102 hltOverallScaler_(0),
103 hltOverallScalerN_(0),
107 monitorDaemon_(ps.getUntrackedParameter<bool>(
"MonitorDaemon",
false)),
112 LogDebug(
"HLTScalers") <<
"HLTScalers: constructor...." ;
124 LogDebug(
"HLTScalers") <<
"HLTScalers::beginJob()..." << std::endl;
139 "Reset HLT Overall Scaler", 1, 0.5, 1.5);
155 edm::LogInfo(
"HLTScalers") <<
"getByLabel for TriggerResults failed"
161 int npath = hltResults->size();
166 LogInfo(
"HLTScalers") <<
"analyze(): new run. dump path for this evt "
174 int maxModules = 200;
177 dbe_->setCurrentFolder(rawdir);
179 scalersPD_ = dbe_->book1D(
"pdScalers",
"PD scalers (stream A)",
182 npath, -0.5, npath-0.5,
183 maxModules, 0, maxModules-1);
184 scalers_ = dbe_->book1D(
"hltScalers",
"HLT scalers",
185 npath, -0.5, npath-0.5);
186 scalersN_ = dbe_->book1D(
"hltScalersN",
"Reset HLT scalers",
187 npath, -0.5, npath-0.5);
189 npath, -0.5, npath-0.5);
191 npath, -0.5, npath-0.5,
192 npath, -0.5, npath-0.5);
196 hltBxVsPath_ = dbe_->book2D(
"hltBxVsPath",
"HLT Accept vs Bunch Number",
198 npath, -0.5, npath-0.5);
199 hltBx_ = dbe_->book1D(
"hltBx",
"Bx of HLT Accepted Events ",
212 for ( TriggerNames::Strings::const_iterator
216 LogDebug(
"HLTScalers") << q <<
": " << *
j ;
221 for (
unsigned int i = 0;
i < nPD;
i++) {
231 for (
int i = 0;
i < npath; ++
i ) {
234 for (
unsigned int j = 0;
j < hltResults->index(
i); ++
j ) {
242 for (
int j =
i + 1;
j < npath; ++
j ) {
259 bool anyGroupPassed =
false;
260 for (
unsigned int mi = 0; mi <
pairPDPaths_.size(); mi++) {
262 bool groupPassed =
false;
273 if(pathByIndex >= hltResults->size() )
continue;
283 if(hltResults->accept(pathByIndex)) {
292 anyGroupPassed =
true;
303 LogDebug(
"HLTScalers") <<
"Start of luminosity block." ;
319 LogDebug(
"HLTScalers") <<
"End of luminosity block." ;
327 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, run "
341 edm::LogError(
"TrigXMonitor") <<
"HLTConfigProvider failed to initialize.";
353 for (
unsigned int i = 0;
i < PD.size();
i++) {
365 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, steamm A not in the HLT menu ";
375 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)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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_
void setVerbose(unsigned level)
HLTConfigProvider hltConfig_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Begin LumiBlock.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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
edm::InputTag trigResultsSource_
MonitorElement * bookInt(const char *name)
Book int.
MonitorElement * scalersPD_
void analyze(const edm::Event &e, const edm::EventSetup &c)
void Reset(void)
reset ME (ie. contents, errors, etc)
static const HistoName names[]
void setCurrentFolder(const std::string &fullpath)