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
 
HIPHitMonitorVariables hitmonitorvars
 
const int maxEventsPerJob
 
const int maxHits
 
const int maxTracks
 
std::string outfile
 
const std::string outfilecore
 
HIPTrackMonitorVariables trackmonitorvars
 

Detailed Description

Definition at line 89 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 maxEventsPerJob(cfgMonitor.getParameter<int>("maxEventsPerJob")),
8 fillTrackMonitoring(cfgMonitor.getParameter<bool>("fillTrackMonitoring")),
9 maxTracks(cfgMonitor.getParameter<int>("maxTracks")),
11 fillTrackHitMonitoring(cfgMonitor.getParameter<bool>("fillTrackHitMonitoring")),
12 maxHits(cfgMonitor.getParameter<int>("maxHits")),
14 eventCounter(0),
15 hitCounter(0)
16 {
17  outfile = cfg.getParameter<std::string>("outpath") + outfilecore;
18 }
T getParameter(std::string const &) const
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
HIPHitMonitorVariables hitmonitorvars
const bool fillTrackMonitoring
HIPTrackMonitorVariables trackmonitorvars
const std::string outfilecore
HIPMonitorConfig::HIPMonitorConfig ( const HIPMonitorConfig other)

Definition at line 20 of file HIPMonitorConfig.cc.

20  :
21 cfgMonitor(other.cfgMonitor),
25 maxTracks(other.maxTracks),
27 maxHits(other.maxHits),
28 outfile(other.outfile),
31 {}
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore
HIPMonitorConfig::~HIPMonitorConfig ( )
inline

Definition at line 111 of file HIPMonitorConfig.h.

111 {}

Member Function Documentation

bool HIPMonitorConfig::checkNevents ( )

Definition at line 33 of file HIPMonitorConfig.cc.

References eventCounter.

Referenced by HIPAlignmentAlgorithm::run().

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

Definition at line 34 of file HIPMonitorConfig.cc.

References hitCounter.

Referenced by HIPAlignmentAlgorithm::run().

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

Member Data Documentation

const edm::ParameterSet HIPMonitorConfig::cfgMonitor

Definition at line 90 of file HIPMonitorConfig.h.

int HIPMonitorConfig::eventCounter

Definition at line 106 of file HIPMonitorConfig.h.

Referenced by checkNevents().

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

Definition at line 107 of file HIPMonitorConfig.h.

Referenced by checkNhits().

HIPHitMonitorVariables HIPMonitorConfig::hitmonitorvars
const int HIPMonitorConfig::maxEventsPerJob

Definition at line 94 of file HIPMonitorConfig.h.

const int HIPMonitorConfig::maxHits

Definition at line 101 of file HIPMonitorConfig.h.

const int HIPMonitorConfig::maxTracks

Definition at line 97 of file HIPMonitorConfig.h.

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

Definition at line 92 of file HIPMonitorConfig.h.

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

HIPTrackMonitorVariables HIPMonitorConfig::trackmonitorvars