86 folderName_(ps.getUntrackedParameter<std::string>(
"dqmFolder",
"HLT/HLTScalers_EvF")),
87 processname_(ps.getParameter<std::string>(
"processname")),
89 trigResultsSource_(ps.getParameter<edm::
InputTag>(
"triggerResults")),
100 hltOverallScalerN_(0),
104 monitorDaemon_(ps.getUntrackedParameter<bool>(
"MonitorDaemon",
false)),
109 LogDebug(
"HLTScalers") <<
"HLTScalers: constructor...." ;
121 LogDebug(
"HLTScalers") <<
"HLTScalers::beginJob()..." << std::endl;
136 "Reset HLT Overall Scaler", 1, 0.5, 1.5);
152 edm::LogInfo(
"HLTScalers") <<
"getByLabel for TriggerResults failed"
158 int npath = hltResults->size();
163 LogInfo(
"HLTScalers") <<
"analyze(): new run. dump path for this evt "
171 int maxModules = 200;
174 dbe_->setCurrentFolder(rawdir);
176 scalersPD_ = dbe_->book1D(
"pdScalers",
"PD scalers (stream A)",
179 npath, -0.5, npath-0.5,
180 maxModules, 0, maxModules-1);
181 scalers_ = dbe_->book1D(
"hltScalers",
"HLT scalers",
182 npath, -0.5, npath-0.5);
183 scalersN_ = dbe_->book1D(
"hltScalersN",
"Reset HLT scalers",
184 npath, -0.5, npath-0.5);
186 npath, -0.5, npath-0.5);
188 npath, -0.5, npath-0.5,
189 npath, -0.5, npath-0.5);
193 hltBxVsPath_ = dbe_->book2D(
"hltBxVsPath",
"HLT Accept vs Bunch Number",
195 npath, -0.5, npath-0.5);
196 hltBx_ = dbe_->book1D(
"hltBx",
"Bx of HLT Accepted Events ",
209 for ( TriggerNames::Strings::const_iterator
213 LogDebug(
"HLTScalers") << q <<
": " << *
j ;
218 for (
unsigned int i = 0;
i < nPD;
i++) {
228 for (
int i = 0;
i < npath; ++
i ) {
231 for (
unsigned int j = 0;
j < hltResults->index(
i); ++
j ) {
239 for (
int j =
i + 1;
j < npath; ++
j ) {
256 bool anyGroupPassed =
false;
257 for (
unsigned int mi = 0; mi <
pairPDPaths_.size(); mi++) {
259 bool groupPassed =
false;
270 if(pathByIndex >= hltResults->size() )
continue;
280 if(hltResults->accept(pathByIndex)) {
289 anyGroupPassed =
true;
300 LogDebug(
"HLTScalers") <<
"Start of luminosity block." ;
316 LogDebug(
"HLTScalers") <<
"End of luminosity block." ;
324 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, run "
338 edm::LogError(
"TrigXMonitor") <<
"HLTConfigProvider failed to initialize.";
350 for (
unsigned int i = 0;
i < PD.size();
i++) {
362 LogDebug(
"HLTScalers") <<
"HLTScalers::beginRun, steamm A not in the HLT menu ";
372 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)
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)