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 112 of file HIPMonitorConfig.h.

Constructor & Destructor Documentation

◆ HIPMonitorConfig() [1/2]

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

Definition at line 3 of file HIPMonitorConfig.cc.

References looper::cfg, 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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
HIPHitMonitorVariables hitmonitorvars
const bool fillTrackMonitoring
HIPTrackMonitorVariables trackmonitorvars
const std::string outfilecore

◆ HIPMonitorConfig() [2/2]

HIPMonitorConfig::HIPMonitorConfig ( const HIPMonitorConfig other)

Definition at line 18 of file HIPMonitorConfig.cc.

19  : cfgMonitor(other.cfgMonitor),
20  outfilecore(other.outfilecore),
21  maxEventsPerJob(other.maxEventsPerJob),
22  fillTrackMonitoring(other.fillTrackMonitoring),
23  maxTracks(other.maxTracks),
24  fillTrackHitMonitoring(other.fillTrackHitMonitoring),
25  maxHits(other.maxHits),
26  outfile(other.outfile),
27  eventCounter(other.eventCounter),
28  hitCounter(other.hitCounter) {}
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore

◆ ~HIPMonitorConfig()

HIPMonitorConfig::~HIPMonitorConfig ( )
inline

Definition at line 134 of file HIPMonitorConfig.h.

134 {}

Member Function Documentation

◆ checkNevents()

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 }
Definition: Electron.h:6

◆ checkNhits()

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 }
Definition: Electron.h:6

Member Data Documentation

◆ cfgMonitor

const edm::ParameterSet HIPMonitorConfig::cfgMonitor

Definition at line 113 of file HIPMonitorConfig.h.

◆ eventCounter

int HIPMonitorConfig::eventCounter

Definition at line 129 of file HIPMonitorConfig.h.

Referenced by checkNevents().

◆ fillTrackHitMonitoring

const bool HIPMonitorConfig::fillTrackHitMonitoring

◆ fillTrackMonitoring

const bool HIPMonitorConfig::fillTrackMonitoring

◆ hitCounter

int HIPMonitorConfig::hitCounter

Definition at line 130 of file HIPMonitorConfig.h.

Referenced by checkNhits().

◆ hitmonitorvars

HIPHitMonitorVariables HIPMonitorConfig::hitmonitorvars

◆ maxEventsPerJob

const int HIPMonitorConfig::maxEventsPerJob

Definition at line 117 of file HIPMonitorConfig.h.

◆ maxHits

const int HIPMonitorConfig::maxHits

Definition at line 124 of file HIPMonitorConfig.h.

◆ maxTracks

const int HIPMonitorConfig::maxTracks

Definition at line 120 of file HIPMonitorConfig.h.

◆ outfile

std::string HIPMonitorConfig::outfile

◆ outfilecore

const std::string HIPMonitorConfig::outfilecore

Definition at line 115 of file HIPMonitorConfig.h.

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

◆ trackmonitorvars

HIPTrackMonitorVariables HIPMonitorConfig::trackmonitorvars