CMS 3D CMS Logo

HIPMonitorConfig.cc
Go to the documentation of this file.
2 
3 
5 cfgMonitor(cfg.getParameter<edm::ParameterSet>("monitorConfig")),
6 outfilecore(cfgMonitor.getParameter<std::string>("outfile")),
7 fillTrackMonitoring(cfgMonitor.getParameter<bool>("fillTrackMonitoring")),
8 maxEventsPerJob(cfgMonitor.getParameter<int>("maxEventsPerJob")),
9 fillTrackHitMonitoring(cfgMonitor.getParameter<bool>("fillTrackHitMonitoring")),
10 maxHits(cfgMonitor.getParameter<int>("maxHits")),
11 eventCounter(0),
12 hitCounter(0)
13 {
14  outfile = cfg.getParameter<std::string>("outpath") + outfilecore;
15 }
16 
18 cfgMonitor(other.cfgMonitor),
23 maxHits(other.maxHits),
24 outfile(other.outfile),
27 {}
28 
29 bool HIPMonitorConfig::checkNevents(){ bool res = (maxEventsPerJob<0 || maxEventsPerJob>eventCounter); eventCounter++; return res; }
30 bool HIPMonitorConfig::checkNhits(){ bool res = (maxHits<0 || maxHits>hitCounter); hitCounter++; return res; }
31 
T getParameter(std::string const &) const
Definition: Electron.h:6
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore
std::string outfile
HLT enums.
HIPMonitorConfig(const edm::ParameterSet &cfg)