CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HIPMonitorConfig Struct Reference

#include <HIPMonitorConfig.h>

Public Member Functions

bool checkNevents ()
 
bool checkNhits ()
 
 HIPMonitorConfig (const edm::ParameterSet &cfg)
 
 HIPMonitorConfig (const HIPMonitorConfig &other)
 
 ~HIPMonitorConfig ()
 

Public Attributes

const edm::ParameterSet cfgMonitor
 
int eventCounter
 
const bool fillTrackHitMonitoring
 
const bool fillTrackMonitoring
 
int hitCounter
 
const int maxEventsPerJob
 
const int maxHits
 
std::string outfile
 
const std::string outfilecore
 

Detailed Description

Definition at line 8 of file HIPMonitorConfig.h.

Constructor & Destructor Documentation

HIPMonitorConfig::HIPMonitorConfig ( const edm::ParameterSet cfg)

Definition at line 4 of file HIPMonitorConfig.cc.

References edm::ParameterSet::getParameter(), outfile, outfilecore, and AlCaHLTBitMon_QueryRunRegistry::string.

4  :
5 cfgMonitor(cfg.getParameter<edm::ParameterSet>("monitorConfig")),
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 }
T getParameter(std::string const &) const
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore
std::string outfile
HIPMonitorConfig::HIPMonitorConfig ( const HIPMonitorConfig other)

Definition at line 17 of file HIPMonitorConfig.cc.

17  :
18 cfgMonitor(other.cfgMonitor),
23 maxHits(other.maxHits),
24 outfile(other.outfile),
27 {}
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore
std::string outfile
HIPMonitorConfig::~HIPMonitorConfig ( )
inline

Definition at line 26 of file HIPMonitorConfig.h.

References checkNevents(), and checkNhits().

26 {}

Member Function Documentation

bool HIPMonitorConfig::checkNevents ( )

Definition at line 29 of file HIPMonitorConfig.cc.

References eventCounter.

Referenced by HIPAlignmentAlgorithm::run(), and ~HIPMonitorConfig().

29 { bool res = (maxEventsPerJob<0 || maxEventsPerJob>eventCounter); eventCounter++; return res; }
Definition: Electron.h:4
bool HIPMonitorConfig::checkNhits ( )

Definition at line 30 of file HIPMonitorConfig.cc.

References hitCounter.

Referenced by HIPAlignmentAlgorithm::run(), and ~HIPMonitorConfig().

30 { bool res = (maxHits<0 || maxHits>hitCounter); hitCounter++; return res; }
Definition: Electron.h:4

Member Data Documentation

const edm::ParameterSet HIPMonitorConfig::cfgMonitor

Definition at line 9 of file HIPMonitorConfig.h.

int HIPMonitorConfig::eventCounter

Definition at line 21 of file HIPMonitorConfig.h.

Referenced by checkNevents().

const bool HIPMonitorConfig::fillTrackHitMonitoring
const bool HIPMonitorConfig::fillTrackMonitoring
int HIPMonitorConfig::hitCounter

Definition at line 22 of file HIPMonitorConfig.h.

Referenced by checkNhits().

const int HIPMonitorConfig::maxEventsPerJob

Definition at line 14 of file HIPMonitorConfig.h.

const int HIPMonitorConfig::maxHits

Definition at line 17 of file HIPMonitorConfig.h.

std::string HIPMonitorConfig::outfile
const std::string HIPMonitorConfig::outfilecore

Definition at line 11 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::collector(), and HIPMonitorConfig().