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.

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 }

References looper::cfg, outfile, outfilecore, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ 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) {}

◆ ~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.

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

References eventCounter.

Referenced by HIPAlignmentAlgorithm::run().

◆ checkNhits()

bool HIPMonitorConfig::checkNhits ( )

Definition at line 35 of file HIPMonitorConfig.cc.

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

References hitCounter.

Referenced by HIPAlignmentAlgorithm::run().

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
HIPMonitorConfig::maxHits
const int maxHits
Definition: HIPMonitorConfig.h:124
HIPMonitorConfig::outfile
std::string outfile
Definition: HIPMonitorConfig.h:127
HIPMonitorConfig::fillTrackHitMonitoring
const bool fillTrackHitMonitoring
Definition: HIPMonitorConfig.h:123
HIPMonitorConfig::maxTracks
const int maxTracks
Definition: HIPMonitorConfig.h:120
HIPMonitorConfig::hitCounter
int hitCounter
Definition: HIPMonitorConfig.h:130
trackingPlots.other
other
Definition: trackingPlots.py:1467
HIPMonitorConfig::hitmonitorvars
HIPHitMonitorVariables hitmonitorvars
Definition: HIPMonitorConfig.h:125
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
HIPMonitorConfig::cfgMonitor
const edm::ParameterSet cfgMonitor
Definition: HIPMonitorConfig.h:113
HIPMonitorConfig::maxEventsPerJob
const int maxEventsPerJob
Definition: HIPMonitorConfig.h:117
res
Definition: Electron.h:6
looper.cfg
cfg
Definition: looper.py:297
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HIPMonitorConfig::outfilecore
const std::string outfilecore
Definition: HIPMonitorConfig.h:115
HIPMonitorConfig::trackmonitorvars
HIPTrackMonitorVariables trackmonitorvars
Definition: HIPMonitorConfig.h:121
HIPMonitorConfig::fillTrackMonitoring
const bool fillTrackMonitoring
Definition: HIPMonitorConfig.h:119
HIPMonitorConfig::eventCounter
int eventCounter
Definition: HIPMonitorConfig.h:129