CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 112 of file HIPMonitorConfig.h.

Constructor & Destructor Documentation

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

Definition at line 3 of file HIPMonitorConfig.cc.

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

4  : cfgMonitor(cfg.getParameter<edm::ParameterSet>("monitorConfig")),
6  maxEventsPerJob(cfgMonitor.getParameter<int>("maxEventsPerJob")),
7  fillTrackMonitoring(cfgMonitor.getParameter<bool>("fillTrackMonitoring")),
8  maxTracks(cfgMonitor.getParameter<int>("maxTracks")),
10  fillTrackHitMonitoring(cfgMonitor.getParameter<bool>("fillTrackHitMonitoring")),
11  maxHits(cfgMonitor.getParameter<int>("maxHits")),
13  eventCounter(0),
14  hitCounter(0) {
15  outfile = cfg.getParameter<std::string>("outpath") + outfilecore;
16 }
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
HIPHitMonitorVariables hitmonitorvars
const bool fillTrackMonitoring
HIPTrackMonitorVariables trackmonitorvars
const std::string outfilecore
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HIPMonitorConfig::HIPMonitorConfig ( const HIPMonitorConfig other)

Definition at line 18 of file HIPMonitorConfig.cc.

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

Definition at line 134 of file HIPMonitorConfig.h.

134 {}

Member Function Documentation

bool HIPMonitorConfig::checkNevents ( )

Definition at line 30 of file HIPMonitorConfig.cc.

References eventCounter.

Referenced by HIPAlignmentAlgorithm::run().

30  {
31  bool res = (maxEventsPerJob < 0 || maxEventsPerJob > eventCounter);
32  eventCounter++;
33  return res;
34 }
bool HIPMonitorConfig::checkNhits ( )

Definition at line 35 of file HIPMonitorConfig.cc.

References hitCounter.

Referenced by HIPAlignmentAlgorithm::run().

35  {
36  bool res = (maxHits < 0 || maxHits > hitCounter);
37  hitCounter++;
38  return res;
39 }

Member Data Documentation

const edm::ParameterSet HIPMonitorConfig::cfgMonitor

Definition at line 113 of file HIPMonitorConfig.h.

int HIPMonitorConfig::eventCounter

Definition at line 129 of file HIPMonitorConfig.h.

Referenced by checkNevents().

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

Definition at line 130 of file HIPMonitorConfig.h.

Referenced by checkNhits().

HIPHitMonitorVariables HIPMonitorConfig::hitmonitorvars
const int HIPMonitorConfig::maxEventsPerJob

Definition at line 117 of file HIPMonitorConfig.h.

const int HIPMonitorConfig::maxHits

Definition at line 124 of file HIPMonitorConfig.h.

const int HIPMonitorConfig::maxTracks

Definition at line 120 of file HIPMonitorConfig.h.

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

Definition at line 115 of file HIPMonitorConfig.h.

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

HIPTrackMonitorVariables HIPMonitorConfig::trackmonitorvars