Belle II Software development
|
This class serves as a base for the TrackDQMModule and AlignDQMModule (and possibly other DQM histogram modules). More...
#include <DQMHistoModuleBase.h>
Public Types | |
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 | |
DQMHistoModuleBase () | |
Constructor. | |
~DQMHistoModuleBase () | |
Destructor. | |
virtual void | initialize () override |
Initializer. | |
virtual void | beginRun () override |
Called when entering a new run. | |
virtual void | event () override |
This method is called for each event. | |
virtual void | defineHisto () override |
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree().... | |
void | runningOnHLT () |
function called when the module is run on HLT | |
virtual TH1F * | Create (std::string name, std::string title, int nbinsx, double xlow, double xup, std::string xTitle, std::string yTitle) |
Function to create TH1F and add it to the vector of histograms (m_histograms). | |
virtual TH2F * | Create (std::string name, std::string title, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, std::string xTitle, std::string yTitle, std::string zTitle) |
Same as above but for TH2F. | |
virtual TH1F ** | CreateLayers (boost::format nameTemplate, boost::format titleTemplate, int nbinsx, double xlow, double xup, std::string xTitle, std::string yTitle) |
Function to create array of TH1F histograms, one for each layer. | |
virtual TH2F ** | CreateLayers (boost::format nameTemplate, boost::format titleTemplate, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, std::string xTitle, std::string yTitle, std::string zTitle) |
Same as above but for TH2F. | |
virtual TH1F ** | CreateSensors (boost::format nameTemplate, boost::format titleTemplate, int nbinsx, double xlow, double xup, std::string xTitle, std::string yTitle) |
Function to create array of TH1F histograms, one for each sensor. | |
virtual TH2F ** | CreateSensors (boost::format nameTemplate, boost::format titleTemplate, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, std::string xTitle, std::string yTitle, std::string zTitle) |
Same as above but for TH2F. | |
virtual void | endRun () override |
Function to process end_run record. | |
virtual void | terminate () override |
Function to terminate module. | |
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. | |
Fill- functions | |
All the following Fill- functions are used by DQMEventProcessorBase or derived classes to fill histograms. They are supposed not to contain any computations need for more than one of them. All computations should be moved to the DQMEventProcessorBase or derived classes. | |
virtual void | FillTrackIndexes (int iTrack, int iTrackVXD, int iTrackCDC, int iTrackVXDCDC) |
Fill histograms with track indexes. | |
virtual void | FillHitNumbers (int nPXD, int nSVD, int nCDC) |
Fill histograms with numbers of hits. | |
virtual void | FillMomentumAngles (const TrackFitResult *tfr) |
Fill histograms with track momentum Pt. | |
virtual void | FillMomentumCoordinates (const TrackFitResult *tfr) |
Fill histograms with track momentum Pt. | |
virtual void | FillHelixParametersAndCorrelations (const TrackFitResult *tfr) |
Fill histograms with helix parameters and their correlations. | |
virtual void | FillTrackFitStatus (const genfit::FitStatus *tfs) |
Fill histograms which require FitStatus. | |
virtual void | FillTRClusterCorrelations (float phi_deg, float phiPrev_deg, float theta_deg, float thetaPrev_deg, int correlationIndex) |
Fill histograms with correlations between neighbor layers. | |
virtual void | FillTRClusterHitmap (float phi_deg, float theta_deg, int layerIndex) |
Fill cluster hitmap in IP angle range. | |
virtual void | FillUBResidualsPXD (const B2Vector3D &residual_um) |
Fill histograms with unbiased residuals in PXD sensors. | |
virtual void | FillUBResidualsSVD (const B2Vector3D &residual_um) |
Fill histograms with unbiased residuals in SVD sensors. | |
virtual void | FillHalfShellsPXD (const B2Vector3D &globalResidual_um, bool isNotYang) |
Fill histograms with unbiased residuals for half-shells for PXD sensors. | |
virtual void | FillHalfShellsSVD (const B2Vector3D &globalResidual_um, bool isNotMat) |
Fill histograms with unbiased residuals for half-shells for SVD sensors. | |
virtual void | FillUB1DResidualsSensor (const B2Vector3D &residual_um, int sensorIndex) |
Fill 1D histograms with unbiased residuals for individual sensors. | |
virtual void | FillUB2DResidualsSensor (const B2Vector3D &residual_um, int sensorIndex) |
Fill 2D histograms with unbiased residuals for individual sensors. | |
Static Public Member Functions | |
static void | exposePythonAPI () |
Exposes methods of the Module class to Python. | |
Protected Member Functions | |
void | ProcessHistogramParameterChange (const std::string &name, const std::string ¶meter, const std::string &value) |
Process one change in histogram parameters. | |
void | EditHistogramParameter (TH1 *histogram, const std::string ¶meter, std::string value) |
On given histogram sets given parameter to given value. | |
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. | |
virtual void | DefineTracks () |
All the following Define- functions should be used in the defineHisto() function to define histograms. | |
virtual void | DefineHits () |
Define histograms with numbers of hits. | |
virtual void | DefineMomentumAngles () |
Define histograms with track momentum Pt. | |
virtual void | DefineMomentumCoordinates () |
Define histograms with track momentum Pt. | |
virtual void | DefineHelixParametersAndCorrelations () |
Define histograms with helix parameters and their correlations. | |
virtual void | DefineTrackFitStatus () |
Define histograms which require FitStatus. | |
virtual void | DefineTRClusters () |
Define histograms with correlations between neighbor layers and cluster hitmap in IP angle range. | |
virtual void | DefineUBResidualsVXD () |
Define histograms with unbiased residuals in PXD and SVD sensors. | |
virtual void | DefineHalfShellsVXD () |
Define histograms with unbiased residuals for half-shells for PXD and SVD sensors. | |
virtual void | Define1DSensors () |
Define 1D histograms with unbiased residuals for individual sensors. | |
virtual void | Define2DSensors () |
Define 2D histograms with unbiased residuals for individual sensors. | |
Static Protected Member Functions | |
static std::string | SensorNameDescription (VxdID sensorID) |
Creates string description of the sensor from given sensor ID to be used in a histogram name. | |
static std::string | SensorTitleDescription (VxdID sensorID) |
Creates string description of the sensor from given sensor ID to be used in a histogram title. | |
static void | ComputeMean (TH1F *output, TH2F *input, bool onX=true) |
Creates a graph of means by given axis from given TH2F histogram. | |
Protected Attributes | |
std::vector< TH1 * > | m_histograms |
All histograms created via the Create- functions are automatically added to this set. | |
bool | histogramsDefined = false |
True if the defineHisto() was called. | |
bool | m_hltDQM = false |
True if the DQM module is run on HLT. | |
std::vector< std::tuple< std::string, std::string, std::string > > | m_histogramParameterChanges |
Used for changing parameters of histograms via the ProcessHistogramParameterChange function. | |
std::string | m_tracksStoreArrayName |
StoreArray name where Tracks are written. | |
std::string | m_recoTracksStoreArrayName |
StoreArray name where RecoTracks are written. | |
TH1F * | m_PValue = nullptr |
p Value | |
TH1F * | m_Chi2 = nullptr |
Chi2. | |
TH1F * | m_NDF = nullptr |
NDF. | |
TH1F * | m_Chi2NDF = nullptr |
Chi2 / NDF. | |
TH2F * | m_UBResidualsPXD = nullptr |
Unbiased residuals for PXD u vs v. | |
TH2F * | m_UBResidualsSVD = nullptr |
Unbiased residuals for SVD u vs v. | |
TH2F ** | m_UBResidualsSensor = nullptr |
Unbiased residuals for PXD and SVD u vs v per sensor. | |
TH1F * | m_UBResidualsPXDU = nullptr |
Unbiased residuals for PXD u. | |
TH1F * | m_UBResidualsSVDU = nullptr |
Unbiased residuals for SVD u. | |
TH1F ** | m_UBResidualsSensorU = nullptr |
Unbiased residuals for PXD and SVD u per sensor. | |
TH1F * | m_UBResidualsPXDV = nullptr |
Unbiased residuals for PXD v. | |
TH1F * | m_UBResidualsSVDV = nullptr |
Unbiased residuals for SVD v. | |
TH1F * | m_UBResidualsPXDX_Yin = nullptr |
half-shells | |
TH1F * | m_UBResidualsPXDX_Yang = nullptr |
Unbiased residuals in X for PXD for Yang. | |
TH1F * | m_UBResidualsSVDX_Pat = nullptr |
Unbiased residuals in X for PXD for Pat. | |
TH1F * | m_UBResidualsSVDX_Mat = nullptr |
Unbiased residuals in X for PXD for Mat. | |
TH1F * | m_UBResidualsPXDY_Yin = nullptr |
Unbiased residuals in Y for PXD for Yin. | |
TH1F * | m_UBResidualsPXDY_Yang = nullptr |
Unbiased residuals in Y for PXD for Yang. | |
TH1F * | m_UBResidualsSVDY_Pat = nullptr |
Unbiased residuals in Y for PXD for Pat. | |
TH1F * | m_UBResidualsSVDY_Mat = nullptr |
Unbiased residuals in Y for PXD for Mat. | |
TH1F * | m_UBResidualsPXDZ_Yin = nullptr |
Unbiased residuals in Z for PXD for Yin. | |
TH1F * | m_UBResidualsPXDZ_Yang = nullptr |
Unbiased residuals in Z for PXD for Yang. | |
TH1F * | m_UBResidualsSVDZ_Pat = nullptr |
Unbiased residuals in Z for PXD for Pat. | |
TH1F * | m_UBResidualsSVDZ_Mat = nullptr |
Unbiased residuals in Z for PXD for Mat. | |
TH1F ** | m_UBResidualsSensorV = nullptr |
Unbiased residuals for PXD and SVD v per sensor. | |
TH2F ** | m_TRClusterHitmap = nullptr |
Track related clusters - hitmap in IP angle range. | |
TH2F ** | m_TRClusterCorrelationsPhi = nullptr |
Track related clusters - neighbor correlations in Phi. | |
TH2F ** | m_TRClusterCorrelationsTheta = nullptr |
Track related clusters - neighbor correlations in Theta. | |
TH1F * | m_MomPhi = nullptr |
Track momentum Pt.Phi. | |
TH1F * | m_MomTheta = nullptr |
Track momentum Pt.Theta. | |
TH1F * | m_MomCosTheta = nullptr |
Track momentum Pt.CosTheta. | |
TH1F * | m_MomX = nullptr |
Track momentum Pt.X. | |
TH1F * | m_MomY = nullptr |
Track momentum Pt.Y. | |
TH1F * | m_MomZ = nullptr |
Track momentum Pt.Z. | |
TH1F * | m_MomPt = nullptr |
Track momentum Pt. | |
TH1F * | m_Mom = nullptr |
Track momentum Magnitude. | |
TH1F * | m_D0 = nullptr |
d0 - the signed distance to the IP in the r-phi plane | |
TH2F * | m_PhiD0 = nullptr |
d0 vs Phi - the signed distance to the IP in the r-phi plane | |
TH1F * | m_Z0 = nullptr |
z0 - the z0 coordinate of the perigee (beam spot position) | |
TH2F * | m_D0Z0 = nullptr |
z0 vs d0 - signed distance to the IP in r-phi vs. | |
TH1F * | m_Phi = nullptr |
Phi - the angle of the transverse momentum in the r-phi plane, with CDF naming convention. | |
TH1F * | m_TanLambda = nullptr |
TanLambda - the slope of the track in the r-z plane. | |
TH1F * | m_Omega = nullptr |
Omega - the curvature of the track. | |
TH1F * | m_HitsPXD = nullptr |
Number of hits on PXD. | |
TH1F * | m_HitsSVD = nullptr |
Number of hits on SVD. | |
TH1F * | m_HitsCDC = nullptr |
Number of hits on CDC. | |
TH1F * | m_Hits = nullptr |
Number of all hits in tracks. | |
TH1F * | m_TracksVXD = nullptr |
Number of tracks only with VXD. | |
TH1F * | m_TracksCDC = nullptr |
Number of tracks only with CDC. | |
TH1F * | m_TracksVXDCDC = nullptr |
Number of full tracks with VXD+CDC. | |
TH1F * | m_Tracks = nullptr |
Number of all finding tracks. | |
Private Member Functions | |
bool | checkVariableForNANOrINF (const double var) |
Check a variable for whether or not it is NAN or INF. | |
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_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. | |
This class serves as a base for the TrackDQMModule and AlignDQMModule (and possibly other DQM histogram modules).
Most of the functions of this class are supposed to be virtual so they can be overridden in derived classes.
Definition at line 29 of file DQMHistoModuleBase.h.
|
inherited |
Forward the EAfterConditionPath definition from the ModuleCondition.
|
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.
Constructor.
Definition at line 26 of file DQMHistoModuleBase.cc.
~DQMHistoModuleBase | ( | ) |
|
overridevirtual |
Called when entering a new run.
Reimplemented from HistoModule.
Definition at line 70 of file DQMHistoModuleBase.cc.
|
inlineprivate |
Check a variable for whether or not it is NAN or INF.
Definition at line 314 of file DQMHistoModuleBase.h.
|
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.
|
staticprotected |
Creates a graph of means by given axis from given TH2F histogram.
output | - value of every bin of this histogram is set to be the mean of all bins from input with the same x (or y) coordinate. |
input | - any TH2F histogram which NBinsX (or NBinsY) has the same value as the NBinsX of the input. |
onX | - if true, use "x" and "NBinsX" options in the statements above. If false, use "y" and "NBinsY" instead. |
Definition at line 618 of file DQMHistoModuleBase.cc.
|
virtual |
Same as above but for TH2F.
Reimplemented in AlignDQMModule.
Definition at line 108 of file DQMHistoModuleBase.cc.
|
virtual |
Function to create TH1F and add it to the vector of histograms (m_histograms).
All histograms in the module should be created via this function (or following Create- functions).
Reimplemented in AlignDQMModule.
Definition at line 96 of file DQMHistoModuleBase.cc.
|
virtual |
Same as above but for TH2F.
Definition at line 151 of file DQMHistoModuleBase.cc.
|
virtual |
Function to create array of TH1F histograms, one for each layer.
nameTemplate | - format() of string with exactly one %1% which is then replaced by the layer number and then used as a name for the histogram. |
titleTemplate | - same as nameTemplate but for title. |
nbinsx | - number of bins. |
xlow | - range x-axis (low boundary). |
xup | - range x-axis (high boundary). |
xTitle | - title x-axis. |
yTitle | - title y-axis |
Definition at line 132 of file DQMHistoModuleBase.cc.
|
virtual |
Same as above but for TH2F.
Definition at line 189 of file DQMHistoModuleBase.cc.
|
virtual |
Function to create array of TH1F histograms, one for each sensor.
nameTemplate | - format() of string with exactly one %1% which is then replaced by the output of the SensorNameDescription function and then used as a name for the histogram. |
titleTemplate | - same as nameTemplate but for title and with the SensorTitleDescription function. |
nbinsx | - number of bins. |
xlow | - range x-axis (low boundary). |
xup | - range x-axis (high boundary). |
xTitle | - title x-axis. |
yTitle | - title y-axis |
Definition at line 170 of file DQMHistoModuleBase.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.
|
protectedvirtual |
Define 1D histograms with unbiased residuals for individual sensors.
Definition at line 410 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define 2D histograms with unbiased residuals for individual sensors.
Definition at line 429 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with unbiased residuals for half-shells for PXD and SVD sensors.
Definition at line 340 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with helix parameters and their correlations.
Reimplemented in AlignDQMModule.
Definition at line 250 of file DQMHistoModuleBase.cc.
|
overridevirtual |
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
are supposed to be placed in this function. Also at the end function all m_histogramParameterChanges should be processed via the ProcessHistogramParameterChange function.
Reimplemented from HistoModule.
Reimplemented in AlignDQMModule, TrackDQMModule, TrackingExpressRecoDQMModule, and TrackingHLTDQMModule.
Definition at line 65 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with numbers of hits.
Definition at line 310 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with track momentum Pt.
angles.
Definition at line 208 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with track momentum Pt.
coordinates.
Definition at line 294 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms which require FitStatus.
Definition at line 215 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
All the following Define- functions should be used in the defineHisto() function to define histograms.
The convention is that every Define- function is responsible for creating its own TDirectory (if it's needed). In any case the function must then return to the original gDirectory. For the creation of histograms the THFFactory or the Create- functions should be used. Define histograms with track indexes.
Definition at line 327 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with correlations between neighbor layers and cluster hitmap in IP angle range.
Track related clusters - hitmap in IP angle range
Track related clusters - neighbor correlations in Phi
Track related clusters - neighbor correlations in Theta
Definition at line 370 of file DQMHistoModuleBase.cc.
|
protectedvirtual |
Define histograms with unbiased residuals in PXD and SVD sensors.
Definition at line 223 of file DQMHistoModuleBase.cc.
|
protected |
On given histogram sets given parameter to given value.
Used in the function above.
Definition at line 665 of file DQMHistoModuleBase.cc.
|
inlineoverridevirtualinherited |
Function to process end_run record.
Reimplemented from Module.
Reimplemented in CalibrationCollectorModule, AlignDQMModule, ARICHDQMModule, B2BIIMCParticlesMonitorModule, AnalysisPhase1StudyModule, BeamabortStudyModule, BgoStudyModule, ClawStudyModule, ClawsStudyModule, CsiStudy_v2Module, CsIStudyModule, DosiStudyModule, FANGSStudyModule, He3tubeStudyModule, MicrotpcStudyModule, TPCStudyModule, PindiodeStudyModule, QcsmonitorStudyModule, CDCCRTestModule, cdcDQM7Module, CDCDQMModule, MonitorDataModule, TrackAnaModule, PhysicsObjectsDQMModule, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleModule, ECLBackgroundModule, ECLDQMModule, ECLDQMEXTENDEDModule, KLMDQMModule, KLMDQM2Module, CDCDedxDQMModule, CDCDedxValidationModule, TOPGainEfficiencyCalculatorModule, TOPLaserHitSelectorModule, TOPInterimFENtupleModule, TOPTBCComparatorModule, TOPWaveformQualityPlotterModule, SVDROIDQMModule, CDCTriggerNeuroDQMModule, CDCTriggerNeuroDQMOnlineModule, TRGCDCT2DDQMModule, TRGCDCT3DDQMModule, TRGCDCTSFDQMModule, TRGECLDQMModule, TRGGDLModule, TRGEFFDQMModule, TRGGDLDQMModule, TRGGRLDQMModule, TRGTOPDQMModule, TRGRAWDATAModule, SVDUnpackerDQMModule, and vxdDigitMaskingModule.
Definition at line 44 of file HistoModule.h.
|
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.
|
overridevirtual |
This method is called for each event.
Reimplemented from HistoModule.
Reimplemented in AlignDQMModule, TrackDQMModule, TrackingExpressRecoDQMModule, and TrackingHLTDQMModule.
Definition at line 88 of file DQMHistoModuleBase.cc.
|
staticinherited |
Exposes methods of the Module class to Python.
Definition at line 325 of file Module.cc.
|
virtual |
Fill histograms with unbiased residuals for half-shells for PXD sensors.
Definition at line 560 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with unbiased residuals for half-shells for SVD sensors.
Definition at line 578 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with helix parameters and their correlations.
Reimplemented in AlignDQMModule.
Definition at line 496 of file DQMHistoModuleBase.cc.
|
virtual |
|
virtual |
Fill histograms with track momentum Pt.
angles.
Definition at line 461 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with track momentum Pt.
coordinates.
Definition at line 479 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms which require FitStatus.
Definition at line 514 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with track indexes.
Definition at line 443 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with correlations between neighbor layers.
Definition at line 533 of file DQMHistoModuleBase.cc.
|
virtual |
Fill cluster hitmap in IP angle range.
Definition at line 613 of file DQMHistoModuleBase.cc.
|
virtual |
Fill 1D histograms with unbiased residuals for individual sensors.
Definition at line 596 of file DQMHistoModuleBase.cc.
|
virtual |
Fill 2D histograms with unbiased residuals for individual sensors.
Definition at line 605 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with unbiased residuals in PXD sensors.
Definition at line 540 of file DQMHistoModuleBase.cc.
|
virtual |
Fill histograms with unbiased residuals in SVD sensors.
Definition at line 550 of file DQMHistoModuleBase.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.
|
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.
|
inlineinherited |
Returns the description of the module.
Definition at line 202 of file Module.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.
|
inlineinherited |
|
inlineoverrideprivatevirtualinherited |
no submodules, return empty list
Implements PathElement.
Definition at line 506 of file Module.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 |
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.
|
inherited |
Returns the type of the module (i.e.
class name minus 'Module')
|
inlineinherited |
|
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'. |
|
overridevirtual |
Initializer.
Reimplemented from HistoModule.
Reimplemented in TrackDQMModule, TrackingExpressRecoDQMModule, and TrackingHLTDQMModule.
Definition at line 43 of file DQMHistoModuleBase.cc.
|
protected |
Process one change in histogram parameters.
Should be applied to all items from m_histogramParameterChanges at the end of the defineHisto() function.
name | - name of the histogram whose parameter we want to change. |
parameter | - name of the parameter we want to change. Possible values are: name, title, nbinsx, xlow, xup, xTitle, yTitle (for both TH1F and TH2F) and nbinsy, ylow, yup, zTitle (only for TH2F). |
value | - new value we wish the parameter of the histogram to have. Int and double values are parsed from string so they must be given correctly. |
Definition at line 639 of file DQMHistoModuleBase.cc.
|
inline |
|
staticprotected |
Creates string description of the sensor from given sensor ID to be used in a histogram name.
Its used in the CreateSensors functions.
Definition at line 121 of file DQMHistoModuleBase.cc.
|
staticprotected |
Creates string description of the sensor from given sensor ID to be used in a histogram title.
Its used in the CreateSensors functions.
Definition at line 126 of file DQMHistoModuleBase.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. |
|
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 |
|
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. |
|
protectedinherited |
Set the module type.
Only for use by internal modules (which don't use the normal REG_MODULE mechanism).
|
inlineoverridevirtualinherited |
Function to terminate module.
Reimplemented from Module.
Reimplemented in CalibrationCollectorModule, B2BIIMCParticlesMonitorModule, AnalysisPhase1StudyModule, BeamabortStudyModule, BgoStudyModule, ClawStudyModule, ClawsStudyModule, CsiStudy_v2Module, CsIStudyModule, DosiStudyModule, FANGSStudyModule, He3tubeStudyModule, MicrotpcStudyModule, PindiodeStudyModule, QcsmonitorStudyModule, CDCCRTestModule, cdcDQM7Module, CDCDQMModule, MonitorDataModule, TrackAnaModule, PhysicsObjectsDQMModule, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleModule, ECLBackgroundModule, ECLDQMModule, ECLDQMEXTENDEDModule, KLMDQMModule, KLMDQM2Module, CDCDedxDQMModule, CDCDedxValidationModule, TOPGainEfficiencyCalculatorModule, TOPLaserHitSelectorModule, TOPInterimFENtupleModule, TOPPDFCheckerModule, TOPTBCComparatorModule, CDCTriggerNeuroDQMModule, CDCTriggerNeuroDQMOnlineModule, TRGCDCT2DDQMModule, TRGCDCT3DDQMModule, TRGCDCTSFDQMModule, TRGECLDQMModule, TRGGDLModule, TRGEFFDQMModule, TRGGDLDQMModule, TRGGRLDQMModule, TRGTOPDQMModule, TRGRAWDATAModule, SVDDQMClustersOnTrackModule, SVDDQMExpressRecoModule, and ROIDQMModule.
Definition at line 46 of file HistoModule.h.
|
protected |
True if the defineHisto() was called.
If false, the event() function does nothing.
Definition at line 191 of file DQMHistoModuleBase.h.
|
protected |
Chi2.
Definition at line 205 of file DQMHistoModuleBase.h.
|
protected |
Chi2 / NDF.
Definition at line 209 of file DQMHistoModuleBase.h.
|
privateinherited |
|
protected |
d0 - the signed distance to the IP in the r-phi plane
Definition at line 281 of file DQMHistoModuleBase.h.
|
protected |
z0 vs d0 - signed distance to the IP in r-phi vs.
z0 of the perigee (to see primary vertex shifts along R or z)
Definition at line 287 of file DQMHistoModuleBase.h.
|
privateinherited |
|
privateinherited |
|
protected |
Used for changing parameters of histograms via the ProcessHistogramParameterChange function.
Definition at line 196 of file DQMHistoModuleBase.h.
|
protected |
All histograms created via the Create- functions are automatically added to this set.
Its used to easy call Reset() on all histograms in beginRun() and also for changing parameters of histograms via the ProcessHistogramParameterChange function.
Definition at line 189 of file DQMHistoModuleBase.h.
|
protected |
Number of all hits in tracks.
Definition at line 302 of file DQMHistoModuleBase.h.
|
protected |
Number of hits on CDC.
Definition at line 300 of file DQMHistoModuleBase.h.
|
protected |
Number of hits on PXD.
Definition at line 296 of file DQMHistoModuleBase.h.
|
protected |
Number of hits on SVD.
Definition at line 298 of file DQMHistoModuleBase.h.
|
protected |
True if the DQM module is run on HLT.
Definition at line 193 of file DQMHistoModuleBase.h.
|
privateinherited |
|
privateinherited |
|
protected |
Track momentum Magnitude.
Definition at line 279 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.CosTheta.
Definition at line 269 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.Phi.
Definition at line 265 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.
Definition at line 277 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.Theta.
Definition at line 267 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.X.
Definition at line 271 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.Y.
Definition at line 273 of file DQMHistoModuleBase.h.
|
protected |
Track momentum Pt.Z.
Definition at line 275 of file DQMHistoModuleBase.h.
|
privateinherited |
|
protected |
NDF.
Definition at line 207 of file DQMHistoModuleBase.h.
|
protected |
Omega - the curvature of the track.
It's sign is defined by the charge of the particle
Definition at line 293 of file DQMHistoModuleBase.h.
|
privateinherited |
|
protected |
Phi - the angle of the transverse momentum in the r-phi plane, with CDF naming convention.
Definition at line 289 of file DQMHistoModuleBase.h.
|
protected |
d0 vs Phi - the signed distance to the IP in the r-phi plane
Definition at line 283 of file DQMHistoModuleBase.h.
|
privateinherited |
|
protected |
p Value
Definition at line 203 of file DQMHistoModuleBase.h.
|
protected |
StoreArray name where RecoTracks are written.
Definition at line 200 of file DQMHistoModuleBase.h.
|
protected |
TanLambda - the slope of the track in the r-z plane.
Definition at line 291 of file DQMHistoModuleBase.h.
|
protected |
Number of all finding tracks.
Definition at line 310 of file DQMHistoModuleBase.h.
|
protected |
Number of tracks only with CDC.
Definition at line 306 of file DQMHistoModuleBase.h.
|
protected |
StoreArray name where Tracks are written.
Definition at line 198 of file DQMHistoModuleBase.h.
|
protected |
Number of tracks only with VXD.
Definition at line 304 of file DQMHistoModuleBase.h.
|
protected |
Number of full tracks with VXD+CDC.
Definition at line 308 of file DQMHistoModuleBase.h.
|
protected |
Track related clusters - neighbor correlations in Phi.
Definition at line 260 of file DQMHistoModuleBase.h.
|
protected |
Track related clusters - neighbor correlations in Theta.
Definition at line 262 of file DQMHistoModuleBase.h.
|
protected |
Track related clusters - hitmap in IP angle range.
Definition at line 258 of file DQMHistoModuleBase.h.
|
privateinherited |
|
protected |
Unbiased residuals for PXD u vs v.
Definition at line 211 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for PXD u.
Definition at line 217 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for PXD v.
Definition at line 223 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in X for PXD for Yang.
Definition at line 231 of file DQMHistoModuleBase.h.
|
protected |
half-shells
Unbiased residuals in X for PXD for Yin
Definition at line 229 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Y for PXD for Yang.
Definition at line 240 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Y for PXD for Yin.
Definition at line 238 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Z for PXD for Yang.
Definition at line 249 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Z for PXD for Yin.
Definition at line 247 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for PXD and SVD u vs v per sensor.
Definition at line 215 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for PXD and SVD u per sensor.
Definition at line 221 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for PXD and SVD v per sensor.
Definition at line 256 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for SVD u vs v.
Definition at line 213 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for SVD u.
Definition at line 219 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals for SVD v.
Definition at line 225 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in X for PXD for Mat.
Definition at line 235 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in X for PXD for Pat.
Definition at line 233 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Y for PXD for Mat.
Definition at line 244 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Y for PXD for Pat.
Definition at line 242 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Z for PXD for Mat.
Definition at line 253 of file DQMHistoModuleBase.h.
|
protected |
Unbiased residuals in Z for PXD for Pat.
Definition at line 251 of file DQMHistoModuleBase.h.
|
protected |
z0 - the z0 coordinate of the perigee (beam spot position)
Definition at line 285 of file DQMHistoModuleBase.h.