Belle II Software development
|
This module is for analysis of ECL DQM histograms. More...
#include <DQMHistAnalysisECLConnectedRegions.h>
Public Types | |
enum | EStatus { c_StatusTooFew = 0 , c_StatusDefault = 1 , c_StatusGood = 2 , c_StatusWarning = 3 , c_StatusError = 4 } |
Status flag of histogram/canvas. More... | |
enum | EStatusColor { c_ColorTooFew = kGray , c_ColorDefault = kWhite , c_ColorGood = kGreen , c_ColorWarning = kYellow , c_ColorError = kRed } |
Status colors of histogram/canvas (corresponding to status) More... | |
enum | ERefScaling { c_RefScaleNone = 0 , c_RefScaleEntries = 1 , c_RefScaleMax = 2 } |
Reference plot scaling type. More... | |
typedef std::map< std::string, HistObject > | HistList |
The type of list of histograms. | |
typedef std::map< std::string, MonitoringObject > | MonObjList |
The type of list of MonitoringObjects. | |
typedef std::map< std::string, HistDelta > | DeltaList |
The type of list of delta settings and histograms. | |
typedef std::map< std::string, bool > | CanvasUpdatedList |
The type of list of canvas updated status. | |
typedef std::map< std::string, RefHistObject > | RefList |
The type of list of references. | |
enum | EModulePropFlags { c_Input = 1 , c_Output = 2 , c_ParallelProcessingCertified = 4 , c_HistogramManager = 8 , c_InternalSerializer = 16 , c_TerminateInAllProcesses = 32 , c_DontCollectStatistics = 64 } |
Each module can be tagged with property flags, which indicate certain features of the module. More... | |
typedef ModuleCondition::EAfterConditionPath | EAfterConditionPath |
Forward the EAfterConditionPath definition from the ModuleCondition. | |
Public Member Functions | |
DQMHistAnalysisECLConnectedRegionsModule () | |
< derived from DQMHistAnalysisModule class. | |
~DQMHistAnalysisECLConnectedRegionsModule () | |
Destructor. | |
void | initialize () override final |
Initialize the module. | |
void | beginRun () override final |
Call when a run begins. | |
void | event () override final |
Event processor. | |
void | endRun () override final |
Call when a run ends. | |
void | terminate () override final |
Terminate. | |
void | clearlist (void) |
Clear all static global lists. | |
void | setRunType (std::string &t) |
Set the Run Type. | |
void | setEventProcessed (int e) |
Set the number of processed events. | |
TCanvas * | findCanvas (TString cname) |
Find canvas by name. | |
TH1 * | findHistInCanvas (const std::string &hname, TCanvas **canvas=nullptr) |
Find histogram in corresponding canvas. | |
double | getSigma68 (TH1 *h) const |
Helper function to compute half of the central interval covering 68% of a distribution. | |
void | clearCanvases (void) |
Clear content of all Canvases. | |
void | resetDeltaList (void) |
Reset Delta. | |
TH1 * | getDelta (const std::string &fullname, int n=0, bool onlyIfUpdated=true) |
Get Delta histogram. | |
TH1 * | getDelta (const std::string &dirname, const std::string &histname, int n=0, bool onlyIfUpdated=true) |
Get Delta histogram. | |
void | addDeltaPar (const std::string &dirname, const std::string &histname, HistDelta::EDeltaType t, int p, unsigned int a=1) |
Add Delta histogram parameters. | |
bool | hasDeltaPar (const std::string &dirname, const std::string &histname) |
Check if Delta histogram parameters exist for histogram. | |
void | UpdateCanvas (std::string name, bool updated=true) |
Mark canvas as updated (or not) | |
void | UpdateCanvas (TCanvas *canvas, bool updated=true) |
Mark canvas as updated (or not) | |
void | ExtractRunType (std::vector< TH1 * > &hs) |
Extract Run Type from histogram title, called from input module. | |
void | ExtractEvent (std::vector< TH1 * > &hs) |
Extract event processed from daq histogram, called from input module. | |
int | registerEpicsPV (std::string pvname, std::string keyname="") |
EPICS related Functions. | |
int | registerExternalEpicsPV (std::string pvname, std::string keyname="") |
Register a PV with its name and a key name. | |
void | setEpicsPV (std::string keyname, double value) |
Write value to a EPICS PV. | |
void | setEpicsPV (std::string keyname, int value) |
Write value to a EPICS PV. | |
void | setEpicsPV (int index, double value) |
Write value to a EPICS PV. | |
void | setEpicsPV (int index, int value) |
Write value to a EPICS PV. | |
void | setEpicsStringPV (std::string keyname, std::string value) |
Write string to a EPICS PV. | |
void | setEpicsStringPV (int index, std::string value) |
Write string to a EPICS PV. | |
double | getEpicsPV (std::string keyname) |
Read value from a EPICS PV. | |
double | getEpicsPV (int index) |
Read value from a EPICS PV. | |
std::string | getEpicsStringPV (std::string keyname, bool &status) |
Read value from a EPICS PV. | |
std::string | getEpicsStringPV (int index, bool &status) |
Read value from a EPICS PV. | |
int | updateEpicsPVs (float timeout) |
Update all EPICS PV (flush to network) | |
chid | getEpicsPVChID (std::string keyname) |
Get EPICS PV Channel Id. | |
chid | getEpicsPVChID (int index) |
Get EPICS PV Channel Id. | |
bool | requestLimitsFromEpicsPVs (chid id, double &lowerAlarm, double &lowerWarn, double &upperWarn, double &upperAlarm) |
Get Alarm Limits from EPICS PV. | |
bool | requestLimitsFromEpicsPVs (std::string keyname, double &lowerAlarm, double &lowerWarn, double &upperWarn, double &upperAlarm) |
Get Alarm Limits from EPICS PV. | |
bool | requestLimitsFromEpicsPVs (int index, double &lowerAlarm, double &lowerWarn, double &upperWarn, double &upperAlarm) |
Get Alarm Limits from EPICS PV. | |
void | setUseEpics (bool flag) |
Setter for EPICS usage. | |
void | setUseEpicsReadOnly (bool flag) |
Setter EPICS flag in read only mode. | |
bool | getUseEpics (void) |
Getter for EPICS usage. | |
bool | getUseEpicsReadOnly (void) |
Getter EPICS flag in read only mode. | |
void | cleanupEpicsPVs (void) |
Unsubscribe from EPICS PVs on terminate. | |
std::string & | getPVPrefix (void) |
get global Prefix for EPICS PVs | |
void | setPVPrefix (std::string &prefix) |
set global Prefix for EPICS PVs | |
EStatus | makeStatus (bool enough, bool warn_flag, bool error_flag) |
Helper function to judge the status for coloring and EPICS. | |
void | colorizeCanvas (TCanvas *canvas, EStatus status) |
Helper function for Canvas colorization. | |
EStatusColor | getStatusColor (EStatus status) |
Return color for canvas state. | |
void | checkPVStatus (void) |
Check the status of all PVs and report if disconnected or not found. | |
void | printPVStatus (chid pv, bool onlyError=true) |
check the status of a PVs and report if disconnected or not found | |
void | CheckEpicsError (int state, const std::string &message, const std::string &name) |
check the return status and check PV in case of error | |
void | CheckEpicsError (int state, const std::string &message, chid id) |
check the return status and check PV in case of error | |
std::vector< std::string > | StringSplit (const std::string &s, const char delim) |
Helper function for string token split. | |
virtual std::vector< std::string > | getFileNames (bool outputFiles) |
Return a list of output filenames for this modules. | |
const std::string & | getName () const |
Returns the name of the module. | |
const std::string & | getType () const |
Returns the type of the module (i.e. | |
const std::string & | getPackage () const |
Returns the package this module is in. | |
const std::string & | getDescription () const |
Returns the description of the module. | |
void | setName (const std::string &name) |
Set the name of the module. | |
void | setPropertyFlags (unsigned int propertyFlags) |
Sets the flags for the module properties. | |
LogConfig & | getLogConfig () |
Returns the log system configuration. | |
void | setLogConfig (const LogConfig &logConfig) |
Set the log system configuration. | |
void | setLogLevel (int logLevel) |
Configure the log level. | |
void | setDebugLevel (int debugLevel) |
Configure the debug messaging level. | |
void | setAbortLevel (int abortLevel) |
Configure the abort log level. | |
void | setLogInfo (int logLevel, unsigned int logInfo) |
Configure the printed log information for the given level. | |
void | if_value (const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
Add a condition to the module. | |
void | if_false (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
A simplified version to add a condition to the module. | |
void | if_true (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
A simplified version to set the condition of the module. | |
bool | hasCondition () const |
Returns true if at least one condition was set for the module. | |
const ModuleCondition * | getCondition () const |
Return a pointer to the first condition (or nullptr, if none was set) | |
const std::vector< ModuleCondition > & | getAllConditions () const |
Return all set conditions for this module. | |
bool | evalCondition () const |
If at least one condition was set, it is evaluated and true returned if at least one condition returns true. | |
std::shared_ptr< Path > | getConditionPath () const |
Returns the path of the last true condition (if there is at least one, else reaturn a null pointer). | |
Module::EAfterConditionPath | getAfterConditionPath () const |
What to do after the conditional path is finished. | |
std::vector< std::shared_ptr< Path > > | getAllConditionPaths () const |
Return all condition paths currently set (no matter if the condition is true or not). | |
bool | hasProperties (unsigned int propertyFlags) const |
Returns true if all specified property flags are available in this module. | |
bool | hasUnsetForcedParams () const |
Returns true and prints error message if the module has unset parameters which the user has to set in the steering file. | |
const ModuleParamList & | getParamList () const |
Return module param list. | |
template<typename T > | |
ModuleParam< T > & | getParam (const std::string &name) const |
Returns a reference to a parameter. | |
bool | hasReturnValue () const |
Return true if this module has a valid return value set. | |
int | getReturnValue () const |
Return the return value set by this module. | |
std::shared_ptr< PathElement > | clone () const override |
Create an independent copy of this module. | |
std::shared_ptr< boost::python::list > | getParamInfoListPython () const |
Returns a python list of all parameters. | |
Static Public Member Functions | |
static HistList & | getHistList () |
Get the list of the histograms. | |
static MonObjList & | getMonObjList () |
Get the list of MonitoringObjects. | |
static const DeltaList & | getDeltaList () |
Get the list of the delta histograms. | |
static const CanvasUpdatedList & | getCanvasUpdatedList () |
Get the list of the canvas update status. | |
static RefList & | getRefList () |
Get the list of the reference histograms. | |
static const std::string & | getRunType (void) |
Get the Run Type. | |
static int | getEventProcessed (void) |
Get the number of processed events. | |
static TH1 * | findHist (const std::string &histname, bool onlyIfUpdated=false) |
Get histogram from list (no other search). | |
static TH1 * | findHist (const std::string &dirname, const std::string &histname, bool onlyIfUpdated=false) |
Find histogram. | |
static TH1 * | findRefHist (const std::string &histname, ERefScaling scaling=ERefScaling::c_RefScaleNone, const TH1 *hist=nullptr) |
Get referencehistogram from list (no other search). | |
static TH1 * | findRefHist (const std::string &dirname, const std::string &histname, ERefScaling scaling=ERefScaling::c_RefScaleNone, const TH1 *hist=nullptr) |
Find reference histogram. | |
static TH1 * | scaleReference (ERefScaling scaling, const TH1 *hist, TH1 *ref) |
Using the original and reference, create scaled version. | |
static TH1 * | findHistInFile (TFile *file, const std::string &histname) |
Find histogram in specific TFile (e.g. | |
static MonitoringObject * | findMonitoringObject (const std::string &objName) |
Find MonitoringObject. | |
static bool | addHist (const std::string &dirname, const std::string &histname, TH1 *h) |
Add histogram. | |
static MonitoringObject * | getMonitoringObject (const std::string &name) |
Get MonitoringObject with given name (new object is created if non-existing) | |
static void | initHistListBeforeEvent (void) |
Reset the list of histograms. | |
static void | clearHistList (void) |
Clears the list of histograms. | |
static void | clearRefList (void) |
Clears the list of ref histograms. | |
static void | exposePythonAPI () |
Exposes methods of the Module class to Python. | |
Static Public Attributes | |
static DeltaList | s_deltaList |
The list of Delta Histograms and settings. | |
Protected Member Functions | |
virtual void | def_initialize () |
Wrappers to make the methods without "def_" prefix callable from Python. | |
virtual void | def_beginRun () |
Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python. | |
virtual void | def_event () |
Wrapper method for the virtual function event() that has the implementation to be used in a call from Python. | |
virtual void | def_endRun () |
This method can receive that the current run ends as a call from the Python side. | |
virtual void | def_terminate () |
Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python. | |
void | setDescription (const std::string &description) |
Sets the description of the module. | |
void | setType (const std::string &type) |
Set the module type. | |
template<typename T > | |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue) |
Adds a new parameter to the module. | |
template<typename T > | |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description) |
Adds a new enforced parameter to the module. | |
void | setReturnValue (int value) |
Sets the return value for this module as integer. | |
void | setReturnValue (bool value) |
Sets the return value for this module as bool. | |
void | setParamList (const ModuleParamList ¶ms) |
Replace existing parameter list. | |
Private Member Functions | |
int | registerEpicsPVwithPrefix (std::string prefix, std::string pvname, std::string keyname="") |
Register a PV with its name and a key name. | |
std::list< ModulePtr > | getModules () const override |
no submodules, return empty list | |
std::string | getPathString () const override |
return the module name. | |
void | setParamPython (const std::string &name, const boost::python::object &pyObj) |
Implements a method for setting boost::python objects. | |
void | setParamPythonDict (const boost::python::dict &dictionary) |
Implements a method for reading the parameter values from a boost::python dictionary. | |
Private Attributes | |
std::string | m_pvPrefix |
Prefix to use for PVs registered by this module. | |
double | m_largestCRAvgCrystalsNum = 0 |
Average number of crystals in largest ECL CR. | |
double | m_largestCRLocalMaxNum = 0 |
Average number local maximum in largest ECL CR. | |
MonitoringObject * | m_monObj = nullptr |
monitoring object | |
std::string | m_name |
The name of the module, saved as a string (user-modifiable) | |
std::string | m_type |
The type of the module, saved as a string. | |
std::string | m_package |
Package this module is found in (may be empty). | |
std::string | m_description |
The description of the module. | |
unsigned int | m_propertyFlags |
The properties of the module as bitwise or (with |) of EModulePropFlags. | |
LogConfig | m_logConfig |
The log system configuration of the module. | |
ModuleParamList | m_moduleParamList |
List storing and managing all parameter of the module. | |
bool | m_hasReturnValue |
True, if the return value is set. | |
int | m_returnValue |
The return value. | |
std::vector< ModuleCondition > | m_conditions |
Module condition, only non-null if set. | |
Static Private Attributes | |
static HistList | s_histList |
The list of Histograms. | |
static MonObjList | s_monObjList |
The list of MonitoringObjects. | |
static CanvasUpdatedList | s_canvasUpdatedList |
The list of canvas updated status. | |
static RefList | s_refList |
The list of references. | |
static int | s_eventProcessed = 0 |
Number of Events processed to fill histograms. | |
static std::string | s_runType = "" |
The Run type. | |
static bool | m_useEpics = false |
Flag if to use EPICS do not set by yourself, use EpicsEnable module to set. | |
static bool | m_epicsReadOnly |
Flag if to use EPICS in ReadOnly mode (for reading limits) do not set by yourself, use EpicsEnable module to set. | |
static std::string | m_PVPrefix = "TEST:" |
The Prefix for EPICS PVs. | |
This module is for analysis of ECL DQM histograms.
Definition at line 29 of file DQMHistAnalysisECLConnectedRegions.h.
|
inherited |
The type of list of canvas updated status.
Definition at line 91 of file DQMHistAnalysis.h.
The type of list of delta settings and histograms.
Definition at line 86 of file DQMHistAnalysis.h.
|
inherited |
Forward the EAfterConditionPath definition from the ModuleCondition.
|
inherited |
The type of list of histograms.
Definition at line 77 of file DQMHistAnalysis.h.
|
inherited |
The type of list of MonitoringObjects.
Definition at line 81 of file DQMHistAnalysis.h.
|
inherited |
The type of list of references.
Definition at line 96 of file DQMHistAnalysis.h.
|
inherited |
Each module can be tagged with property flags, which indicate certain features of the module.
Enumerator | |
---|---|
c_Input | This module is an input module (reads data). |
c_Output | This module is an output module (writes data). |
c_ParallelProcessingCertified | This module can be run in parallel processing mode safely (All I/O must be done through the data store, in particular, the module must not write any files.) |
c_HistogramManager | This module is used to manage histograms accumulated by other modules. |
c_InternalSerializer | This module is an internal serializer/deserializer for parallel processing. |
c_TerminateInAllProcesses | When using parallel processing, call this module's terminate() function in all processes(). This will also ensure that there is exactly one process (single-core if no parallel modules found) or at least one input, one main and one output process. |
c_DontCollectStatistics | No statistics is collected for this module. |
Definition at line 77 of file Module.h.
|
inherited |
Reference plot scaling type.
Enumerator | |
---|---|
c_RefScaleNone | no scaling |
c_RefScaleEntries | to number of entries (integral) |
c_RefScaleMax | to maximum (bin entry) |
Definition at line 68 of file DQMHistAnalysis.h.
|
inherited |
Status flag of histogram/canvas.
Definition at line 46 of file DQMHistAnalysis.h.
|
inherited |
Status colors of histogram/canvas (corresponding to status)
Definition at line 57 of file DQMHistAnalysis.h.
< derived from DQMHistAnalysisModule class.
Constructor.
Definition at line 19 of file DQMHistAnalysisECLConnectedRegions.cc.
|
inline |
|
inherited |
Add Delta histogram parameters.
dirname | directory |
histname | name of histogram |
t | type of delta histogramming |
p | numerical parameter depending on type, e.g. number of entries |
a | amount of histograms in the past |
Definition at line 96 of file DQMHistAnalysis.cc.
|
staticinherited |
Add histogram.
dirname | The name of the directory. |
histname | The name of the histogram. |
h | The TH1 pointer for the histogram. |
Definition at line 59 of file DQMHistAnalysis.cc.
|
finaloverridevirtual |
Call when a run begins.
Reimplemented from Module.
Definition at line 39 of file DQMHistAnalysisECLConnectedRegions.cc.
|
inherited |
check the return status and check PV in case of error
state | return state of epics function |
message | message to print out |
id | the chid of the affected PV |
Definition at line 807 of file DQMHistAnalysis.cc.
|
inherited |
check the return status and check PV in case of error
state | return state of epics function |
message | message to print out |
name | the (key)name of the affected PV |
Definition at line 799 of file DQMHistAnalysis.cc.
|
inherited |
Check the status of all PVs and report if disconnected or not found.
Definition at line 763 of file DQMHistAnalysis.cc.
|
inherited |
Unsubscribe from EPICS PVs on terminate.
Definition at line 644 of file DQMHistAnalysis.cc.
|
inherited |
Clear content of all Canvases.
Definition at line 310 of file DQMHistAnalysis.cc.
|
staticinherited |
Clears the list of histograms.
Definition at line 338 of file DQMHistAnalysis.cc.
|
inherited |
Clear all static global lists.
Definition at line 50 of file DQMHistAnalysis.cc.
|
staticinherited |
Clears the list of ref histograms.
Definition at line 343 of file DQMHistAnalysis.cc.
|
overridevirtualinherited |
Create an independent copy of this module.
Note that parameters are shared, so changing them on a cloned module will also affect the original module.
Implements PathElement.
Definition at line 179 of file Module.cc.
|
inherited |
Helper function for Canvas colorization.
canvas | Canvas to change |
status | status to color |
Definition at line 750 of file DQMHistAnalysis.cc.
|
inlineprotectedvirtualinherited |
Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python.
Reimplemented in PyModule.
Definition at line 426 of file Module.h.
|
inlineprotectedvirtualinherited |
This method can receive that the current run ends as a call from the Python side.
For regular C++-Modules that forwards the call to the regular endRun() method.
Reimplemented in PyModule.
Definition at line 439 of file Module.h.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
Wrappers to make the methods without "def_" prefix callable from Python.
Overridden in PyModule. Wrapper method for the virtual function initialize() that has the implementation to be used in a call from Python.
Reimplemented in PyModule.
Definition at line 420 of file Module.h.
|
inlineprotectedvirtualinherited |
Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python.
Reimplemented in PyModule.
Definition at line 445 of file Module.h.
|
finaloverridevirtual |
Call when a run ends.
Reimplemented from Module.
Definition at line 61 of file DQMHistAnalysisECLConnectedRegions.cc.
|
inherited |
If at least one condition was set, it is evaluated and true returned if at least one condition returns true.
If no condition or result value was defined, the method returns false. Otherwise, the condition is evaluated and true returned, if at least one condition returns true. To speed up the evaluation, the condition strings were already parsed in the method if_value().
Definition at line 96 of file Module.cc.
|
finaloverridevirtual |
Event processor.
Reimplemented from Module.
Definition at line 44 of file DQMHistAnalysisECLConnectedRegions.cc.
|
staticinherited |
Exposes methods of the Module class to Python.
Definition at line 325 of file Module.cc.
|
inherited |
Extract event processed from daq histogram, called from input module.
Definition at line 377 of file DQMHistAnalysis.cc.
|
inherited |
Extract Run Type from histogram title, called from input module.
Definition at line 365 of file DQMHistAnalysis.cc.
|
inherited |
Find canvas by name.
cname | Name of the canvas |
Definition at line 147 of file DQMHistAnalysis.cc.
|
staticinherited |
Find histogram.
dirname | The name of the directory. |
histname | The name of the histogram. |
onlyIfUpdated | req only updated hists, return nullptr otherwise |
Definition at line 175 of file DQMHistAnalysis.cc.
|
staticinherited |
Get histogram from list (no other search).
histname | The name of the histogram (incl dir). |
onlyIfUpdated | req only updated hists, return nullptr otherwise |
Definition at line 161 of file DQMHistAnalysis.cc.
|
inherited |
Find histogram in corresponding canvas.
hname | Name of the histogram (dir+name) |
canvas | ptr to specific canvas ptr or nullptr |
Definition at line 229 of file DQMHistAnalysis.cc.
|
staticinherited |
Find histogram in specific TFile (e.g.
ref file).
file | The TFile to search. |
histname | The name of the histogram, can incl directory |
Definition at line 264 of file DQMHistAnalysis.cc.
|
staticinherited |
Find MonitoringObject.
objName | The name of the MonitoringObject. |
Definition at line 285 of file DQMHistAnalysis.cc.
|
staticinherited |
Find reference histogram.
dirname | The name of the directory. |
histname | The name of the histogram. |
scaling | enum what scaling to use |
hist | histogram to scale to |
Definition at line 220 of file DQMHistAnalysis.cc.
|
staticinherited |
Get referencehistogram from list (no other search).
histname | The name of the histogram (incl dir). |
scaling | enum what scaling to use |
hist | histogram to scale to |
Definition at line 209 of file DQMHistAnalysis.cc.
|
inherited |
What to do after the conditional path is finished.
(defaults to c_End if no condition is set)
Definition at line 133 of file Module.cc.
|
inherited |
|
inlineinherited |
Return all set conditions for this module.
|
inlinestaticinherited |
Get the list of the canvas update status.
Definition at line 202 of file DQMHistAnalysis.h.
|
inlineinherited |
|
inherited |
Returns the path of the last true condition (if there is at least one, else reaturn a null pointer).
Definition at line 113 of file Module.cc.
|
inherited |
Get Delta histogram.
dirname | directory |
histname | name of histogram |
n | index of delta histogram, 0 is most recent one |
onlyIfUpdated | req only updated deltas, return nullptr otherwise |
Definition at line 119 of file DQMHistAnalysis.cc.
|
inherited |
Get Delta histogram.
fullname | directory+name of histogram |
n | index of delta histogram, 0 is most recent one |
onlyIfUpdated | req only updated deltas, return nullptr otherwise |
Definition at line 130 of file DQMHistAnalysis.cc.
|
inlinestaticinherited |
Get the list of the delta histograms.
Definition at line 196 of file DQMHistAnalysis.h.
|
inlineinherited |
Returns the description of the module.
Definition at line 202 of file Module.h.
|
inherited |
Read value from a EPICS PV.
index | index of PV |
Definition at line 530 of file DQMHistAnalysis.cc.
|
inherited |
Read value from a EPICS PV.
keyname | key name (or full PV name) of PV |
Definition at line 507 of file DQMHistAnalysis.cc.
|
inherited |
Get EPICS PV Channel Id.
index | index of PV |
Definition at line 617 of file DQMHistAnalysis.cc.
|
inherited |
Get EPICS PV Channel Id.
keyname | key name (or full PV name) of PV |
Definition at line 603 of file DQMHistAnalysis.cc.
|
inherited |
Read value from a EPICS PV.
index | index of PV |
status | return status (true on success) |
Definition at line 578 of file DQMHistAnalysis.cc.
|
inherited |
Read value from a EPICS PV.
keyname | key name (or full PV name) of PV |
status | return status (true on success) |
Definition at line 553 of file DQMHistAnalysis.cc.
|
inlinestaticinherited |
Get the number of processed events.
(Attention, asynch histogram updates!)
Definition at line 220 of file DQMHistAnalysis.h.
|
inlinevirtualinherited |
Return a list of output filenames for this modules.
This will be called when basf2 is run with "--dry-run" if the module has set either the c_Input or c_Output properties.
If the parameter outputFiles
is false (for modules with c_Input) the list of input filenames should be returned (if any). If outputFiles
is true (for modules with c_Output) the list of output files should be returned (if any).
If a module has sat both properties this member is called twice, once for each property.
The module should return the actual list of requested input or produced output filenames (including handling of input/output overrides) so that the grid system can handle input/output files correctly.
This function should return the same value when called multiple times. This is especially important when taking the input/output overrides from Environment as they get consumed when obtained so the finalized list of output files should be stored for subsequent calls.
Reimplemented in RootInputModule, StorageRootOutputModule, and RootOutputModule.
Definition at line 134 of file Module.h.
|
inlinestaticinherited |
Get the list of the histograms.
Definition at line 184 of file DQMHistAnalysis.h.
|
inlineinherited |
|
inlineoverrideprivatevirtualinherited |
no submodules, return empty list
Implements PathElement.
Definition at line 506 of file Module.h.
|
staticinherited |
Get MonitoringObject with given name (new object is created if non-existing)
name | name of MonitoringObject to get |
Definition at line 140 of file DQMHistAnalysis.cc.
|
inlinestaticinherited |
Get the list of MonitoringObjects.
Definition at line 190 of file DQMHistAnalysis.h.
|
inlineinherited |
Returns the name of the module.
This can be changed via e.g. set_name() in the steering file to give more useful names if there is more than one module of the same type.
For identifying the type of a module, using getType() (or type() in Python) is recommended.
Definition at line 187 of file Module.h.
|
inlineinherited |
|
inherited |
Returns a python list of all parameters.
Each item in the list consists of the name of the parameter, a string describing its type, a python list of all default values and the description of the parameter.
Definition at line 279 of file Module.cc.
|
inlineinherited |
|
overrideprivatevirtualinherited |
return the module name.
Implements PathElement.
Definition at line 192 of file Module.cc.
|
inlineinherited |
get global Prefix for EPICS PVs
Definition at line 609 of file DQMHistAnalysis.h.
|
inlinestaticinherited |
Get the list of the reference histograms.
Definition at line 208 of file DQMHistAnalysis.h.
|
inlineinherited |
Return the return value set by this module.
This value is only meaningful if hasReturnValue() is true
Definition at line 381 of file Module.h.
|
inlinestaticinherited |
|
inherited |
Helper function to compute half of the central interval covering 68% of a distribution.
This quantity is an alternative to the standard deviation.
h | histogram |
Definition at line 294 of file DQMHistAnalysis.cc.
|
inherited |
Return color for canvas state.
status | canvas status |
Definition at line 723 of file DQMHistAnalysis.cc.
|
inherited |
Returns the type of the module (i.e.
class name minus 'Module')
|
inlineinherited |
|
inlineinherited |
Getter EPICS flag in read only mode.
Definition at line 598 of file DQMHistAnalysis.h.
|
inlineinherited |
|
inherited |
Check if Delta histogram parameters exist for histogram.
dirname | directory |
histname | name of histogram |
Definition at line 108 of file DQMHistAnalysis.cc.
|
inherited |
Returns true if all specified property flags are available in this module.
propertyFlags | Ored EModulePropFlags which should be compared with the module flags. |
|
inlineinherited |
|
inherited |
Returns true and prints error message if the module has unset parameters which the user has to set in the steering file.
Definition at line 166 of file Module.cc.
|
inherited |
A simplified version to add a condition to the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression "<1". This method is meant to be used together with the setReturnValue(bool value) method.
path | Shared pointer to the Path which will be executed if the return value is false. |
afterConditionPath | What to do after executing 'path'. |
|
inherited |
A simplified version to set the condition of the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression ">=1". This method is meant to be used together with the setReturnValue(bool value) method.
path | Shared pointer to the Path which will be executed if the return value is true. |
afterConditionPath | What to do after executing 'path'. |
|
inherited |
Add a condition to the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
See https://xwiki.desy.de/xwiki/rest/p/a94f2 or ModuleCondition for a description of the syntax.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
expression | The expression of the condition. |
path | Shared pointer to the Path which will be executed if the condition is evaluated to true. |
afterConditionPath | What to do after executing 'path'. |
|
staticinherited |
Reset the list of histograms.
Definition at line 324 of file DQMHistAnalysis.cc.
|
finaloverridevirtual |
Initialize the module.
Reimplemented from Module.
Definition at line 28 of file DQMHistAnalysisECLConnectedRegions.cc.
|
inherited |
Helper function to judge the status for coloring and EPICS.
enough | enough events for judging |
warn_flag | outside of expected range |
error_flag | outside of warning range |
Definition at line 705 of file DQMHistAnalysis.cc.
|
inherited |
check the status of a PVs and report if disconnected or not found
pv | the chid of the PV to check |
onlyError | print only if in error condition (default) |
Definition at line 773 of file DQMHistAnalysis.cc.
|
inherited |
EPICS related Functions.
Register a PV with its name and a key name
pvname | full PV name |
keyname | key name for easier access |
Definition at line 389 of file DQMHistAnalysis.cc.
|
privateinherited |
Register a PV with its name and a key name.
prefix | prefix to PV name |
pvname | full PV name without prefix |
keyname | key name for easier access |
Definition at line 399 of file DQMHistAnalysis.cc.
|
inherited |
Register a PV with its name and a key name.
pvname | full PV name |
keyname | key name for easier access |
Definition at line 394 of file DQMHistAnalysis.cc.
|
inherited |
Get Alarm Limits from EPICS PV.
id | Channel ID |
&lowerAlarm | return low Alarm limit (lolo) if set, not changed otherwise |
&lowerWarn | return low Warning limit (low) if set, not changed otherwise |
&upperWarn | return upper Warning limit (high) if set, not changed otherwise |
&upperAlarm | return upper Alarm limit (hihi) if set, not changed otherwise |
Definition at line 670 of file DQMHistAnalysis.cc.
|
inherited |
Get Alarm Limits from EPICS PV.
index | index of PV |
&lowerAlarm | return low Alarm limit (lolo) if set, not changed otherwise |
&lowerWarn | return low Warning limit (low) if set, not changed otherwise |
&upperWarn | return upper Warning limit (high) if set, not changed otherwise |
&upperAlarm | return upper Alarm limit (hihi) if set, not changed otherwise |
Definition at line 664 of file DQMHistAnalysis.cc.
|
inherited |
Get Alarm Limits from EPICS PV.
keyname | key name (or full PV name) of PV |
&lowerAlarm | return low Alarm limit (lolo) if set, not changed otherwise |
&lowerWarn | return low Warning limit (low) if set, not changed otherwise |
&upperWarn | return upper Warning limit (high) if set, not changed otherwise |
&upperAlarm | return upper Alarm limit (hihi) if set, not changed otherwise |
Definition at line 658 of file DQMHistAnalysis.cc.
|
inherited |
Reset Delta.
Definition at line 348 of file DQMHistAnalysis.cc.
|
staticinherited |
Using the original and reference, create scaled version.
scaling | scaling algorithm |
hist | pointer to histogram |
ref | pointer to reference |
Definition at line 183 of file DQMHistAnalysis.cc.
|
inherited |
Configure the abort log level.
Definition at line 67 of file Module.cc.
|
inherited |
Configure the debug messaging level.
Definition at line 61 of file Module.cc.
|
protectedinherited |
Sets the description of the module.
description | A description of the module. |
|
inherited |
Write value to a EPICS PV.
index | index of PV |
value | value to write |
Definition at line 468 of file DQMHistAnalysis.cc.
|
inherited |
Write value to a EPICS PV.
index | index of PV |
value | value to write |
Definition at line 480 of file DQMHistAnalysis.cc.
|
inherited |
Write value to a EPICS PV.
keyname | key name (or full PV name) of PV |
value | value to write |
Definition at line 426 of file DQMHistAnalysis.cc.
|
inherited |
Write value to a EPICS PV.
keyname | key name (or full PV name) of PV |
value | value to write |
Definition at line 438 of file DQMHistAnalysis.cc.
|
inherited |
Write string to a EPICS PV.
index | index of PV |
value | string to write |
Definition at line 492 of file DQMHistAnalysis.cc.
|
inherited |
Write string to a EPICS PV.
keyname | key name (or full PV name) of PV |
value | string to write |
Definition at line 450 of file DQMHistAnalysis.cc.
|
inlineinherited |
Set the number of processed events.
(Attention, asynch histogram updates!)
Definition at line 232 of file DQMHistAnalysis.h.
|
inlineinherited |
Set the log system configuration.
Definition at line 230 of file Module.h.
|
inherited |
Configure the printed log information for the given level.
logLevel | The log level (one of LogConfig::ELogLevel) |
logInfo | What kind of info should be printed? ORed combination of LogConfig::ELogInfo flags. |
Definition at line 73 of file Module.cc.
|
inherited |
Configure the log level.
|
inlineinherited |
|
inlineprotectedinherited |
Replace existing parameter list.
Definition at line 501 of file Module.h.
|
privateinherited |
Implements a method for setting boost::python objects.
The method supports the following types: list, dict, int, double, string, bool The conversion of the python object to the C++ type and the final storage of the parameter value is done in the ModuleParam class.
name | The unique name of the parameter. |
pyObj | The object which should be converted and stored as the parameter value. |
Definition at line 234 of file Module.cc.
|
privateinherited |
Implements a method for reading the parameter values from a boost::python dictionary.
The key of the dictionary has to be the name of the parameter and the value has to be of one of the supported parameter types.
dictionary | The python dictionary from which the parameter values are read. |
Definition at line 249 of file Module.cc.
|
inherited |
Sets the flags for the module properties.
propertyFlags | bitwise OR of EModulePropFlags |
|
inlineinherited |
set global Prefix for EPICS PVs
prefix | Prefix to set |
Definition at line 615 of file DQMHistAnalysis.h.
|
protectedinherited |
Sets the return value for this module as bool.
The bool value is saved as an integer with the convention 1 meaning true and 0 meaning false. The value can be used in the steering file to divide the analysis chain into several paths.
value | The value of the return value. |
|
protectedinherited |
Sets the return value for this module as integer.
The value can be used in the steering file to divide the analysis chain into several paths.
value | The value of the return value. |
|
inlineinherited |
Set the Run Type.
Definition at line 226 of file DQMHistAnalysis.h.
|
protectedinherited |
Set the module type.
Only for use by internal modules (which don't use the normal REG_MODULE mechanism).
|
inlineinherited |
Setter for EPICS usage.
flag | set in use |
Definition at line 580 of file DQMHistAnalysis.h.
|
inlineinherited |
Setter EPICS flag in read only mode.
flag | set read only |
Definition at line 586 of file DQMHistAnalysis.h.
|
inherited |
Helper function for string token split.
s | String to split |
delim | delimiter |
Definition at line 303 of file DQMHistAnalysis.cc.
|
finaloverridevirtual |
Terminate.
Reimplemented from Module.
Definition at line 69 of file DQMHistAnalysisECLConnectedRegions.cc.
|
inherited |
Mark canvas as updated (or not)
name | name of Canvas |
updated | was updated |
Definition at line 355 of file DQMHistAnalysis.cc.
|
inherited |
Mark canvas as updated (or not)
canvas | Canvas from which to take the name for update |
updated | was updated |
Definition at line 360 of file DQMHistAnalysis.cc.
|
inherited |
Update all EPICS PV (flush to network)
timeout | maximum time until timeout in s |
Definition at line 631 of file DQMHistAnalysis.cc.
|
privateinherited |
|
privateinherited |
|
staticprivateinherited |
Flag if to use EPICS in ReadOnly mode (for reading limits) do not set by yourself, use EpicsEnable module to set.
Definition at line 155 of file DQMHistAnalysis.h.
|
privateinherited |
|
private |
Average number of crystals in largest ECL CR.
Definition at line 57 of file DQMHistAnalysisECLConnectedRegions.h.
|
private |
Average number local maximum in largest ECL CR.
Definition at line 59 of file DQMHistAnalysisECLConnectedRegions.h.
|
privateinherited |
|
privateinherited |
|
private |
monitoring object
Definition at line 61 of file DQMHistAnalysisECLConnectedRegions.h.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
Prefix to use for PVs registered by this module.
Definition at line 54 of file DQMHistAnalysisECLConnectedRegions.h.
|
staticprivateinherited |
The Prefix for EPICS PVs.
Definition at line 160 of file DQMHistAnalysis.h.
|
privateinherited |
|
staticprivateinherited |
Flag if to use EPICS do not set by yourself, use EpicsEnable module to set.
Definition at line 149 of file DQMHistAnalysis.h.
|
staticprivateinherited |
The list of canvas updated status.
Definition at line 124 of file DQMHistAnalysis.h.
|
staticinherited |
The list of Delta Histograms and settings.
Definition at line 118 of file DQMHistAnalysis.h.
|
inlinestaticprivateinherited |
Number of Events processed to fill histograms.
Attention: histograms are updates asynchronously Thus the number for a specific histogram may be lower or higher. If you need precise number, you must fill it in the histogram itself (e.g. underflow bin)
Definition at line 138 of file DQMHistAnalysis.h.
|
staticprivateinherited |
The list of Histograms.
Definition at line 108 of file DQMHistAnalysis.h.
|
staticprivateinherited |
The list of MonitoringObjects.
Definition at line 112 of file DQMHistAnalysis.h.
|
staticprivateinherited |
The list of references.
Definition at line 129 of file DQMHistAnalysis.h.
|
inlinestaticprivateinherited |
The Run type.
Definition at line 143 of file DQMHistAnalysis.h.