Belle II Software development
SVDLocalCalibrationsCheckModule Class Reference

Module to produce a list of histogram showing the uploaded local calibration constants. More...

#include <SVDLocalCalibrationsCheckModule.h>

Inheritance diagram for SVDLocalCalibrationsCheckModule:
Module PathElement

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

 SVDLocalCalibrationsCheckModule ()
 Constructor: Sets the description, the properties and the parameters of the module.
 
virtual void beginRun () override
 initialize the TTrees and create SVDHistograms and SVDAPVHistograms
 
virtual void event () override
 perform analysis and Draw pdf Canvas
 
virtual void initialize ()
 Initialize the Module.
 
virtual std::vector< std::string > getFileNames (bool outputFiles)
 Return a list of output filenames for this modules.
 
virtual void endRun ()
 This method is called if the current run ends.
 
virtual void terminate ()
 This method is called at the end of the event processing.
 
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.
 
LogConfiggetLogConfig ()
 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 ModuleConditiongetCondition () 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< PathgetConditionPath () 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 ModuleParamListgetParamList () 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< PathElementclone () 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 void exposePythonAPI ()
 Exposes methods of the Module class to Python.
 

Public Attributes

TFile * m_rootFilePtrREF = nullptr
 pointer at the REFERENCE root file
 
TFile * m_rootFilePtrCHECK = nullptr
 pointer at the CHECK root file
 
TTree * m_treeREF = nullptr
 pointer at REF tree
 
TTree * m_treeCHECK = nullptr
 pointer at CHECK tree
 
TBranch * b_runREF = nullptr
 run number
 
TBranch * b_ladderREF = nullptr
 ladder number
 
TBranch * b_layerREF = nullptr
 layer number
 
TBranch * b_sensorREF = nullptr
 sensor number
 
TBranch * b_sideREF = nullptr
 sensor side
 
TBranch * b_stripREF = nullptr
 strip number
 
TBranch * b_maskREF = nullptr
 strip mask 0/1
 
TBranch * b_pedestalREF = nullptr
 strip pedestal
 
TBranch * b_gainREF = nullptr
 strip gain
 
TBranch * b_noiseREF = nullptr
 strip noise (ADC)
 
TBranch * b_noiseElREF = nullptr
 strip noise (e-)
 
TBranch * b_calPeakADCREF = nullptr
 strip calPeakADC (ADC of max pulse)
 
TBranch * b_calPeakTimeREF = nullptr
 strip calPeakTime (time of max pulse)
 
TBranch * b_pulseWidthREF = nullptr
 strip pulse width
 
TBranch * b_runCHECK = nullptr
 run number
 
TBranch * b_ladderCHECK = nullptr
 ladder number
 
TBranch * b_layerCHECK = nullptr
 layer number
 
TBranch * b_sensorCHECK = nullptr
 sensor number
 
TBranch * b_sideCHECK = nullptr
 sensor side
 
TBranch * b_stripCHECK = nullptr
 strip number
 
TBranch * b_maskCHECK = nullptr
 strip mask 0/1
 
TBranch * b_pedestalCHECK = nullptr
 strip pedestal
 
TBranch * b_gainCHECK = nullptr
 strip gain
 
TBranch * b_noiseCHECK = nullptr
 strip noise (ADC)
 
TBranch * b_noiseElCHECK = nullptr
 strip noise (e-)
 
TBranch * b_calPeakTimeCHECK = nullptr
 strip calPeakTime (time of max pulse)
 
TBranch * b_calPeakADCCHECK = nullptr
 strip calPeakADC (ADC of max pulse)
 
TBranch * b_pulseWidthCHECK = nullptr
 strip pulse width
 
UInt_t m_runREF = -1
 run number
 
UInt_t m_layerREF = -1
 layer number
 
UInt_t m_ladderREF = -1
 ladder number
 
UInt_t m_sensorREF = -1
 sensor number
 
UInt_t m_sideREF = -1
 sensor side
 
UInt_t m_stripREF = -1
 strip number
 
float m_maskREF = -1
 strip mask 0/1
 
float m_noiseREF = -1
 strip noise (ADC)
 
float m_noiseElREF = -1
 strip noise (e-)
 
float m_pedestalREF = -1
 strip pedestal
 
float m_gainREF = -1
 strip gain
 
float m_calPeakTimeREF = -1
 strip peak time
 
float m_calPeakADCREF = -1
 strip max peak ADC
 
float m_pulseWidthREF = -1
 strip pulse width
 
UInt_t m_runCHECK = -1
 run number
 
UInt_t m_layerCHECK = -1
 layer number
 
UInt_t m_ladderCHECK = -1
 ladder number
 
UInt_t m_sensorCHECK = -1
 sensor number
 
UInt_t m_sideCHECK = -1
 sensor side
 
UInt_t m_stripCHECK = -1
 strip number
 
float m_maskCHECK = -1
 strip mask 0/1
 
float m_noiseCHECK = -1
 strip noise (ADC)
 
float m_noiseElCHECK = -1
 strip noise (e-)
 
float m_pedestalCHECK = -1
 strip pedestal
 
float m_gainCHECK = -1
 strip gain
 
float m_calPeakTimeCHECK = -1
 strip peak time
 
float m_calPeakADCCHECK = -1
 strip max peak ADC
 
float m_pulseWidthCHECK = -1
 strip pulse width
 
std::string m_rootFileNameREF = "SVDLocalCalibrationMonitor_experiment5_run92.root"
 root file name REFERENCE
 
std::string m_rootFileNameCHECK = "SVDLocalCalibrationMonitor_experiment5_run408.root"
 root file name CHECK
 
std::string m_idFileNameREF = "refID"
 ID of the xml file name REFERENCE.
 
std::string m_idFileNameCHECK = "checkID"
 ID of the xml file name CHECK.
 
std::string m_outputPdfName = "SVDLocalCalibrationCheck.pdf"
 output pdf filename
 
bool m_plotGoodAPVs = false
 if true also the good APVs are plotted on the DIFF canvas
 
int m_cutN_out = -1
 maximum number of allowed outliers
 
float m_cutNoise_ave = -1
 maximum relative deviation APV-average (noise)
 
float m_cutNoise_out = -1
 maximum relative deviation strip (noise)
 
float m_cutCalpeakADC_ave = -1
 maximum relative deviation APV-average (calpeakADC)
 
float m_cutCalpeakADC_out = -1
 maximum relative deviation strip (calpeakADC)
 
float m_cutPedestal_ave = -1
 maximum relative deviation APV-average (pedestal)
 
float m_cutPedestal_out = -1
 maximum relative deviation strip (pedestal)
 

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 &paramVariable, const std::string &description, const T &defaultValue)
 Adds a new parameter to the module.
 
template<typename T >
void addParam (const std::string &name, T &paramVariable, 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 &params)
 Replace existing parameter list.
 

Private Member Functions

void printConfiguration ()
 print the configuration of the check of the calibration VS a reference calibration
 
void setAPVHistoStyles (SVDAPVHistograms< TH1F > *m_APVhistos)
 set style of APV histograms
 
void createLegends ()
 create the TLegends for the plot
 
void printFirstPage ()
 print the first page of the output pdf
 
void printLayerPage (int layer)
 print layer-number page
 
void printPage (VxdID theVxdID, TList *listUBAD, TList *listVBAD, TList *listUGOOD, TList *listVGOOD, TString variable, bool isL3)
 print the page relative to a sensor with problematic APVs
 
void printMaskedSummaryPages ()
 summary page with Masked strips summary plot
 
void printAPVSummaryPages ()
 summary page with 2D summary plot with problemtic APVs
 
void printLastPage ()
 print last empty page
 
int hasAnyProblem (TH1F *h, float cutAve, float cutCOUNT)
 return True if the APV has a problem, given a variable
 
std::list< ModulePtrgetModules () 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

const int m_apvColors [6] = { 1, 2, 8, kBlue, 6, 28}
 color palette
 
TLegend * m_leg2D = nullptr
 legend of the 2D plot
 
TLegend * m_legU = nullptr
 legend of U-side plot
 
TLegend * m_legV = nullptr
 legend of V-side plot
 
SVDHistograms< TH2F > * m_h2MaskREF = nullptr
 MASKS.
 
SVDHistograms< TH2F > * m_h2MaskCHECK = nullptr
 mask VS strip 2D histo
 
SVDAPVHistograms< TH1F > * m_hMaskDIFF = nullptr
 mask histo
 
SVDSummaryPlotsm_hMaskSummary = nullptr
 mask summary histo
 
SVDSummaryPlotsm_hMaskSummaryCHECK = nullptr
 mask summary histo
 
int m_nMaskedUREF = 0
 number of masked strips in the reference calibration (u side)
 
int m_nMaskedVREF = 0
 number of masked strips in the reference calibration (v side)
 
int m_nMaskedUCHECK = 0
 number of masked strips in the check calibration (u side)
 
int m_nMaskedVCHECK = 0
 number of masked strips in the check calibration (v side)
 
SVDHistograms< TH2F > * m_h2NoiseREF = nullptr
 NOISES.
 
SVDHistograms< TH2F > * m_h2NoiseCHECK = nullptr
 noise VS strip 2D histo
 
SVDAPVHistograms< TH1F > * m_hNoiseDIFF = nullptr
 noise histo
 
SVDSummaryPlotsm_hNoiseSummary = nullptr
 noise summary histo
 
SVDHistograms< TH2F > * m_h2CalpeakADCREF = nullptr
 CALPEAKS ADC.
 
SVDHistograms< TH2F > * m_h2CalpeakADCCHECK = nullptr
 calpeakADC VS strip 2D histo
 
SVDAPVHistograms< TH1F > * m_hCalpeakADCDIFF = nullptr
 calpeakADC histo
 
SVDSummaryPlotsm_hCalpeakADCSummary = nullptr
 calpeakADC summary histo
 
SVDHistograms< TH2F > * m_h2CalpeakTimeREF = nullptr
 CALPEAKS TIME.
 
SVDHistograms< TH2F > * m_h2CalpeakTimeCHECK = nullptr
 calpeakTime VS strip 2D histo
 
SVDAPVHistograms< TH1F > * m_hCalpeakTimeDIFF = nullptr
 calpeakTime histo
 
SVDSummaryPlotsm_hCalpeakTimeSummary = nullptr
 calpeakTime summary histo
 
SVDHistograms< TH2F > * m_h2PedestalREF = nullptr
 PEDESTALS.
 
SVDHistograms< TH2F > * m_h2PedestalCHECK = nullptr
 pedestal VS strip 2D histo
 
SVDAPVHistograms< TH1F > * m_hPedestalDIFF = nullptr
 pedestal histo
 
SVDSummaryPlotsm_hPedestalSummary = nullptr
 pedestal summary histo
 
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< ModuleConditionm_conditions
 Module condition, only non-null if set.
 

Detailed Description

Module to produce a list of histogram showing the uploaded local calibration constants.

Definition at line 35 of file SVDLocalCalibrationsCheckModule.h.

Member Typedef Documentation

◆ EAfterConditionPath

Forward the EAfterConditionPath definition from the ModuleCondition.

Definition at line 88 of file Module.h.

Member Enumeration Documentation

◆ EModulePropFlags

enum EModulePropFlags
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.

77 {
78 c_Input = 1,
79 c_Output = 2,
85 };
@ c_HistogramManager
This module is used to manage histograms accumulated by other modules.
Definition: Module.h:81
@ c_Input
This module is an input module (reads data).
Definition: Module.h:78
@ c_DontCollectStatistics
No statistics is collected for this module.
Definition: Module.h:84
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition: Module.h:80
@ c_InternalSerializer
This module is an internal serializer/deserializer for parallel processing.
Definition: Module.h:82
@ c_Output
This module is an output module (writes data).
Definition: Module.h:79
@ c_TerminateInAllProcesses
When using parallel processing, call this module's terminate() function in all processes().
Definition: Module.h:83

Constructor & Destructor Documentation

◆ SVDLocalCalibrationsCheckModule()

Constructor: Sets the description, the properties and the parameters of the module.

Definition at line 30 of file SVDLocalCalibrationsCheckModule.cc.

30 : Module()
31{
32 // Set module properties
33 setDescription("Module to produce a list of histograms showing the uploaded calibration constants");
34
35 // Parameter definitions
36 addParam("outputPdfName", m_outputPdfName, "output pdf filename", std::string("SVDLocalCalibrationsCheck.pdf"));
37 addParam("referenceID", m_idFileNameREF, "ID of REFERENCE xml file.",
38 std::string("refID"));
39 addParam("checkID", m_idFileNameCHECK, "ID of CHECK xml file.",
40 std::string("checkID"));
41 addParam("reference_root", m_rootFileNameREF, "Name of REFERENCE root file.",
42 std::string("SVDLocalCalibrationsMonitor_ref.root"));
43 addParam("check_root", m_rootFileNameCHECK, "Name of CHECK root file.",
44 std::string("SVDLocalCalibrationsMonitor_check.root"));
45 addParam("plotGoodAPVs", m_plotGoodAPVs, "If true draw 1D plots also for good APVs", bool(false));
46
47 addParam("cutN_outliers", m_cutN_out, "Max number of outliers allowed", int(5));
48 addParam("cutNoise_average", m_cutNoise_ave, "Max deviation of average noise per APV, in ADC", float(0.1));
49 addParam("cutNoise_outliers", m_cutNoise_out, "Max deviation of single strip, in ADC", float(2));
50 addParam("cutCalPeakADC_average", m_cutCalpeakADC_ave, "Max deviation of average CalPeakADC per APV, in ADC", float(4));
51 addParam("cutCalPeakADC_outliers", m_cutCalpeakADC_out, "Max deviation of single strip, in ADC", float(10));
52 addParam("cutPedestal_average", m_cutPedestal_ave, "Max deviation of average pedestal per APV, in ADC", float(4));
53 addParam("cutPedestal_outliers", m_cutPedestal_out, "Max deviation of single strip, in ADC", float(10));
54
55}
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
Module()
Constructor.
Definition: Module.cc:30
int m_cutN_out
maximum number of allowed outliers
float m_cutPedestal_ave
maximum relative deviation APV-average (pedestal)
float m_cutCalpeakADC_ave
maximum relative deviation APV-average (calpeakADC)
float m_cutCalpeakADC_out
maximum relative deviation strip (calpeakADC)
std::string m_idFileNameCHECK
ID of the xml file name CHECK.
bool m_plotGoodAPVs
if true also the good APVs are plotted on the DIFF canvas
float m_cutNoise_ave
maximum relative deviation APV-average (noise)
float m_cutNoise_out
maximum relative deviation strip (noise)
std::string m_rootFileNameREF
root file name REFERENCE
std::string m_idFileNameREF
ID of the xml file name REFERENCE.
float m_cutPedestal_out
maximum relative deviation strip (pedestal)
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:560

Member Function Documentation

◆ beginRun()

void beginRun ( void  )
overridevirtual

initialize the TTrees and create SVDHistograms and SVDAPVHistograms

MASKS

NOISES

CALPEAKTIMES

CALPEAKADC

PEDESTALS

Reimplemented from Module.

Definition at line 84 of file SVDLocalCalibrationsCheckModule.cc.

85{
86
88
89 gStyle->SetOptStat(0);
90 gStyle->SetLegendBorderSize(0);
91 gStyle->SetTextFont(42);
92
93 // read REFERENCE root file
94 m_rootFilePtrREF = new TFile(m_rootFileNameREF.c_str(), "READ");
95
96 // m_rootFilePtrREF->Print();
97
98 //REF tree initialization
99 m_treeREF = (TTree*)m_rootFilePtrREF->Get("calibLocalDetailed");
100 m_treeREF->SetBranchAddress("run", &m_runREF, &b_runREF);
101 m_treeREF->SetBranchAddress("layer", &m_layerREF, &b_layerREF);
102 m_treeREF->SetBranchAddress("ladder", &m_ladderREF, &b_ladderREF);
103 m_treeREF->SetBranchAddress("sensor", &m_sensorREF, &b_sensorREF);
104 m_treeREF->SetBranchAddress("side", &m_sideREF, &b_sideREF);
105 m_treeREF->SetBranchAddress("strip", &m_stripREF, &b_stripREF);
106 m_treeREF->SetBranchAddress("mask", &m_maskREF, &b_maskREF);
107 m_treeREF->SetBranchAddress("noise", &m_noiseREF, &b_noiseREF);
108 m_treeREF->SetBranchAddress("noiseEl", &m_noiseElREF, &b_noiseElREF);
109 m_treeREF->SetBranchAddress("gain", &m_gainREF, &b_gainREF);
110 m_treeREF->SetBranchAddress("pedestal", &m_pedestalREF, &b_pedestalREF);
111 m_treeREF->SetBranchAddress("calPeakADC", &m_calPeakADCREF, &b_calPeakADCREF);
112 m_treeREF->SetBranchAddress("calPeakTime", &m_calPeakTimeREF, &b_calPeakTimeREF);
113 m_treeREF->SetBranchAddress("pulseWidth", &m_pulseWidthREF, &b_pulseWidthREF);
114
115 // read CHECK root file
116 m_rootFilePtrCHECK = new TFile(m_rootFileNameCHECK.c_str(), "READ");
117 // m_rootFilePtrCHECK->Print();
118
119 //CHECK tree initialization
120 m_treeCHECK = (TTree*)m_rootFilePtrCHECK->Get("calibLocalDetailed");
121 m_treeCHECK->SetBranchAddress("run", &m_runCHECK, &b_runCHECK);
122 m_treeCHECK->SetBranchAddress("layer", &m_layerCHECK, &b_layerCHECK);
123 m_treeCHECK->SetBranchAddress("ladder", &m_ladderCHECK, &b_ladderCHECK);
124 m_treeCHECK->SetBranchAddress("sensor", &m_sensorCHECK, &b_sensorCHECK);
125 m_treeCHECK->SetBranchAddress("side", &m_sideCHECK, &b_sideCHECK);
126 m_treeCHECK->SetBranchAddress("strip", &m_stripCHECK, &b_stripCHECK);
127 m_treeCHECK->SetBranchAddress("mask", &m_maskCHECK, &b_maskCHECK);
128 m_treeCHECK->SetBranchAddress("noise", &m_noiseCHECK, &b_noiseCHECK);
129 m_treeCHECK->SetBranchAddress("noiseEl", &m_noiseElCHECK, &b_noiseElCHECK);
130 m_treeCHECK->SetBranchAddress("gain", &m_gainCHECK, &b_gainCHECK);
131 m_treeCHECK->SetBranchAddress("pedestal", &m_pedestalCHECK, &b_pedestalCHECK);
132 m_treeCHECK->SetBranchAddress("calPeakTime", &m_calPeakTimeCHECK, &b_calPeakTimeCHECK);
133 m_treeCHECK->SetBranchAddress("calPeakADC", &m_calPeakADCCHECK, &b_calPeakADCCHECK);
134 m_treeCHECK->SetBranchAddress("pulseWidth", &m_pulseWidthCHECK, &b_pulseWidthCHECK);
135
136
138 m_h2MaskREF = (SVDHistograms<TH2F>*)m_rootFilePtrREF->Get("expert/h2Mask");
139 m_h2MaskCHECK = (SVDHistograms<TH2F>*)m_rootFilePtrCHECK->Get("expert/h2Mask");
140
141 TH1F template_mask("maskDIFF_L@layerL@ladderS@sensor@view@apv",
142 "Mask Deviation Distribution in @layer.@ladder.@sensor @view/@side",
143 // 200, -1, 1);
144 200, -5, 5);
145 // template_mask.GetXaxis()->SetTitle("( ref - check ) / ref");
146 template_mask.GetXaxis()->SetTitle("ref - check");
147 m_hMaskDIFF = new SVDAPVHistograms<TH1F>(template_mask);
149 m_hMaskSummary = new SVDSummaryPlots("maskSummary@view", "REF - CHECK Number of Masked strips @view/@side Side");
150 m_hMaskSummaryCHECK = new SVDSummaryPlots("maskCHECKSummary@view", "CHECK Number Masked Strips @view/@side Side");
151
153 m_h2NoiseREF = (SVDHistograms<TH2F>*)m_rootFilePtrREF->Get("expert/h2Noise");
154 m_h2NoiseCHECK = (SVDHistograms<TH2F>*)m_rootFilePtrCHECK->Get("expert/h2Noise");
155
156 TH1F template_noise("noiseDIFF_L@layerL@ladderS@sensor@view@apv",
157 "Noise Deviation Distribution in @layer.@ladder.@sensor @view/@side",
158 // 200, -1, 1);
159 200, -5, 5);
160 // template_noise.GetXaxis()->SetTitle("( ref - check ) / ref");
161 template_noise.GetXaxis()->SetTitle("ref - check (ADC)");
162 m_hNoiseDIFF = new SVDAPVHistograms<TH1F>(template_noise);
164 m_hNoiseSummary = new SVDSummaryPlots("noiseSummary@view", "Number of problematic APV chips due to Noise for @view/@side Side");
165
166
167
168
170 m_h2CalpeakTimeREF = (SVDHistograms<TH2F>*)m_rootFilePtrREF->Get("expert/h2CalPeakTime");
171 m_h2CalpeakTimeCHECK = (SVDHistograms<TH2F>*)m_rootFilePtrCHECK->Get("expert/h2CalPeakTime");
172
173 TH1F template_calpeakTime("calpeakTimeDIFF_L@layerL@ladderS@sensor@view@apv",
174 // "CalpeakTime Deviation Distribution in @layer.@ladder.@sensor @view/@side APV @apv",
175 "CalPeakTime Deviation Distribution in @layer.@ladder.@sensor @view/@side",
176 500, -0.5, 0.5);
177 template_calpeakTime.GetXaxis()->SetTitle("( ref - check ) / ref");
178 m_hCalpeakTimeDIFF = new SVDAPVHistograms<TH1F>(template_calpeakTime);
180 m_hCalpeakTimeSummary = new SVDSummaryPlots("calPeakTimeSummary@view",
181 "Number of problematic APV chips due to CalPeakTime for @view/@side Side for @view/@side Side");
182
184 m_h2CalpeakADCREF = (SVDHistograms<TH2F>*)m_rootFilePtrREF->Get("expert/h2CalPeakADC");
185 m_h2CalpeakADCCHECK = (SVDHistograms<TH2F>*)m_rootFilePtrCHECK->Get("expert/h2CalPeakADC");
186
187 TH1F template_calpeakADC("calpeakADCDIFF_L@layerL@ladderS@sensor@view@apv",
188 // "CalpeakADC Deviation Distribution in @layer.@ladder.@sensor @view/@side APV @apv",
189 "CalPeakADC Deviation Distribution in @layer.@ladder.@sensor @view/@side",
190 400, -20, 20);
191 template_calpeakADC.GetXaxis()->SetTitle("ref - check (ADC)");
192 m_hCalpeakADCDIFF = new SVDAPVHistograms<TH1F>(template_calpeakADC);
194 m_hCalpeakADCSummary = new SVDSummaryPlots("calPeakADCSummary@view",
195 "Number of problematic APV chips due to CalPeakADC for @view/@side Side");
196
197
199 m_h2PedestalREF = (SVDHistograms<TH2F>*)m_rootFilePtrREF->Get("expert/h2Pedestal");
200 m_h2PedestalCHECK = (SVDHistograms<TH2F>*)m_rootFilePtrCHECK->Get("expert/h2Pedestal");
201
202 TH1F template_pedestal("pedestalDIFF_L@layerL@ladderS@sensor@view@apv",
203 "Pedestal Deviation Distribution in @layer.@ladder.@sensor @view/@side",
204 // 100, -0.5, 0.5);
205 100, -15, 15);
206 // template_pedestal.GetXaxis()->SetTitle("( ref - check ) / ref");
207 template_pedestal.GetXaxis()->SetTitle("(ref - check) (ADC)");
208 m_hPedestalDIFF = new SVDAPVHistograms<TH1F>(template_pedestal);
210 m_hPedestalSummary = new SVDSummaryPlots("pedestalSummary@view",
211 "Number of problematic APV chips due to Pedestal for @view/@side Side");
212
214}
template class for the APV Histograms
template class for SVd histograms
Definition: SVDHistograms.h:24
SVDHistograms< TH2F > * m_h2CalpeakADCREF
CALPEAKS ADC.
SVDSummaryPlots * m_hCalpeakADCSummary
calpeakADC summary histo
TFile * m_rootFilePtrCHECK
pointer at the CHECK root file
SVDHistograms< TH2F > * m_h2CalpeakTimeCHECK
calpeakTime VS strip 2D histo
SVDAPVHistograms< TH1F > * m_hMaskDIFF
mask histo
SVDAPVHistograms< TH1F > * m_hCalpeakTimeDIFF
calpeakTime histo
TBranch * b_calPeakADCCHECK
strip calPeakADC (ADC of max pulse)
SVDHistograms< TH2F > * m_h2CalpeakADCCHECK
calpeakADC VS strip 2D histo
SVDSummaryPlots * m_hMaskSummary
mask summary histo
TBranch * b_calPeakADCREF
strip calPeakADC (ADC of max pulse)
SVDSummaryPlots * m_hMaskSummaryCHECK
mask summary histo
TFile * m_rootFilePtrREF
pointer at the REFERENCE root file
SVDSummaryPlots * m_hCalpeakTimeSummary
calpeakTime summary histo
SVDHistograms< TH2F > * m_h2NoiseCHECK
noise VS strip 2D histo
SVDAPVHistograms< TH1F > * m_hPedestalDIFF
pedestal histo
TBranch * b_calPeakTimeCHECK
strip calPeakTime (time of max pulse)
void printConfiguration()
print the configuration of the check of the calibration VS a reference calibration
SVDAPVHistograms< TH1F > * m_hCalpeakADCDIFF
calpeakADC histo
SVDHistograms< TH2F > * m_h2PedestalCHECK
pedestal VS strip 2D histo
TBranch * b_calPeakTimeREF
strip calPeakTime (time of max pulse)
void createLegends()
create the TLegends for the plot
SVDAPVHistograms< TH1F > * m_hNoiseDIFF
noise histo
SVDSummaryPlots * m_hPedestalSummary
pedestal summary histo
SVDSummaryPlots * m_hNoiseSummary
noise summary histo
SVDHistograms< TH2F > * m_h2MaskCHECK
mask VS strip 2D histo
void setAPVHistoStyles(SVDAPVHistograms< TH1F > *m_APVhistos)
set style of APV histograms
SVDHistograms< TH2F > * m_h2CalpeakTimeREF
CALPEAKS TIME.
class to summarize SVD quantities per sensor and side

◆ clone()

std::shared_ptr< PathElement > clone ( ) const
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.

180{
182 newModule->m_moduleParamList.setParameters(getParamList());
183 newModule->setName(getName());
184 newModule->m_package = m_package;
185 newModule->m_propertyFlags = m_propertyFlags;
186 newModule->m_logConfig = m_logConfig;
187 newModule->m_conditions = m_conditions;
188
189 return newModule;
190}
std::shared_ptr< Module > registerModule(const std::string &moduleName, std::string sharedLibPath="") noexcept(false)
Creates an instance of a module and registers it to the ModuleManager.
static ModuleManager & Instance()
Exception is thrown if the requested module could not be created by the ModuleManager.
const ModuleParamList & getParamList() const
Return module param list.
Definition: Module.h:363
const std::string & getName() const
Returns the name of the module.
Definition: Module.h:187
const std::string & getType() const
Returns the type of the module (i.e.
Definition: Module.cc:41
unsigned int m_propertyFlags
The properties of the module as bitwise or (with |) of EModulePropFlags.
Definition: Module.h:512
LogConfig m_logConfig
The log system configuration of the module.
Definition: Module.h:514
std::vector< ModuleCondition > m_conditions
Module condition, only non-null if set.
Definition: Module.h:521
std::string m_package
Package this module is found in (may be empty).
Definition: Module.h:510
std::shared_ptr< Module > ModulePtr
Defines a pointer to a module object as a boost shared pointer.
Definition: Module.h:43

◆ createLegends()

void createLegends ( )
private

create the TLegends for the plot

Definition at line 960 of file SVDLocalCalibrationsCheckModule.cc.

961{
962
963
964 m_legU = new TLegend(0.75, 0.55, 0.89, 0.89);
965 m_legV = new TLegend(0.75, 0.65, 0.89, 0.89);
966 m_legU->SetFillStyle(0);
967 m_legV->SetFillStyle(0);
968
969
970 TH1F* hAPV1 = new TH1F("apv1", "apv 1", 1, 0, 1);
971 hAPV1->SetLineColor(m_apvColors[0]);
972 m_legU->AddEntry(hAPV1, "apv 1", "l");
973 m_legV->AddEntry(hAPV1, "apv 1", "l");
974 TH1F* hAPV2 = new TH1F("apv2", "apv 2", 2, 0, 2);
975 hAPV2->SetLineColor(m_apvColors[1]);
976 hAPV2->SetMarkerColor(m_apvColors[1]);
977 hAPV2->SetMarkerStyle(21);
978 hAPV2->SetMarkerSize(0.5);
979 m_legU->AddEntry(hAPV2, "apv 2", "l");
980 m_legV->AddEntry(hAPV2, "apv 2", "l");
981 TH1F* hAPV3 = new TH1F("apv3", "apv 3", 3, 0, 3);
982 hAPV3->SetLineColor(m_apvColors[2]);
983 m_legU->AddEntry(hAPV3, "apv 3", "l");
984 m_legV->AddEntry(hAPV3, "apv 3", "l");
985 TH1F* hAPV4 = new TH1F("apv4", "apv 4", 4, 0, 4);
986 hAPV4->SetLineColor(m_apvColors[3]);
987 hAPV4->SetMarkerColor(m_apvColors[3]);
988 hAPV4->SetMarkerStyle(21);
989 hAPV4->SetMarkerSize(0.5);
990 m_legU->AddEntry(hAPV4, "apv 4", "l");
991 m_legV->AddEntry(hAPV4, "apv 4", "l");
992 TH1F* hAPV5 = new TH1F("apv5", "apv 5", 5, 0, 5);
993 hAPV5->SetLineColor(m_apvColors[4]);
994 m_legU->AddEntry(hAPV5, "apv 5", "l");
995 TH1F* hAPV6 = new TH1F("apv6", "apv 6", 6, 0, 6);
996 hAPV6->SetLineColor(m_apvColors[5]);
997 m_legU->AddEntry(hAPV6, "apv 6", "l");
998
999 m_leg2D = new TLegend(0.78, 0.75, 0.89, 0.89);
1000 m_leg2D->AddEntry(hAPV2, "ref", "pl");
1001 m_leg2D->AddEntry(hAPV4, "check", "pl");
1002 m_leg2D->SetFillStyle(0);
1003}

◆ def_beginRun()

virtual void def_beginRun ( )
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.

426{ beginRun(); }
virtual void beginRun()
Called when entering a new run.
Definition: Module.h:147

◆ def_endRun()

virtual void def_endRun ( )
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.

439{ endRun(); }
virtual void endRun()
This method is called if the current run ends.
Definition: Module.h:166

◆ def_event()

virtual void def_event ( )
inlineprotectedvirtualinherited

Wrapper method for the virtual function event() that has the implementation to be used in a call from Python.

Reimplemented in PyModule.

Definition at line 432 of file Module.h.

432{ event(); }
virtual void event()
This method is the core of the module.
Definition: Module.h:157

◆ def_initialize()

virtual void def_initialize ( )
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.

420{ initialize(); }
virtual void initialize()
Initialize the Module.
Definition: Module.h:109

◆ def_terminate()

virtual void def_terminate ( )
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.

445{ terminate(); }
virtual void terminate()
This method is called at the end of the event processing.
Definition: Module.h:176

◆ endRun()

virtual void endRun ( void  )
inlinevirtualinherited

This method is called if the current run ends.

Use this method to store information, which should be aggregated over one run.

This method can be implemented by subclasses.

Reimplemented in BeamabortModule, BgoModule, CaveModule, ClawModule, CLAWSModule, DosiModule, FANGSModule, He3tubeModule, MicrotpcModule, Ph1bpipeModule, Ph1sustrModule, PindiodeModule, PlumeModule, QcsmonitorModule, SrsensorModule, GetEventFromSocketModule, CalibrationCollectorModule, AlignDQMModule, CosmicsAlignmentValidationModule, CurlTaggerModule, LowEnergyPi0IdentificationExpertModule, LowEnergyPi0VetoExpertModule, arichBtestModule, ARICHDQMModule, B2BIIMCParticlesMonitorModule, B2BIIConvertMdstModule, B2BIIMdstInputModule, BelleMCOutputModule, BeamBkgGeneratorModule, BeamBkgHitRateMonitorModule, BeamBkgMixerModule, BeamBkgTagSetterModule, BGOverlayInputModule, AnalysisPhase1StudyModule, NtuplePhase1_v6Module, ReprocessorModule, BeamabortStudyModule, BeamDigitizerModule, BgoDigitizerModule, BgoStudyModule, ClawDigitizerModule, ClawStudyModule, ClawsDigitizerModule, ClawsStudyModule, CsiDigitizer_v2Module, CsIDigitizerModule, CsiModule, CsiStudy_v2Module, CsIStudyModule, DosiDigitizerModule, DosiStudyModule, FANGSDigitizerModule, FANGSStudyModule, He3DigitizerModule, He3tubeStudyModule, MicrotpcStudyModule, TpcDigitizerModule, TPCStudyModule, PinDigitizerModule, PindiodeStudyModule, PlumeDigitizerModule, QcsmonitorDigitizerModule, QcsmonitorStudyModule, CDCCosmicAnalysisModule, CDCCRTestModule, cdcDQM7Module, CDCDQMModule, CDCPackerModule, CDCRecoTrackFilterModule, CDCUnpackerModule, DAQPerfModule, RxSocketModule, TxSocketModule, DqmHistoManagerModule, MonitorDataModule, TrackAnaModule, Ds2SampleModule, ReceiveEventModule, HLTDQM2ZMQModule, HLTDs2ZMQModule, ElapsedTimeModule, DeSerializerPXDModule, GenRawSendModule, Root2RawModule, SerializerModule, CertifyParallelModule, Ds2RawModule, Ds2RbufModule, EvReductionModule, FastRbuf2DsModule, Raw2DsModule, RawInputModule, Rbuf2DsModule, Rbuf2RbufModule, Ds2RawFileModule, PartialSeqRootReaderModule, SeqRootMergerModule, StorageDeserializerModule, StorageRootOutputModule, StorageSerializerModule, PhysicsObjectsDQMModule, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleModule, ECLBackgroundModule, ECLChargedPIDModule, ECLChargedPIDDataAnalysisModule, ECLChargedPIDDataAnalysisValidationModule, ECLClusterPSDModule, ECLCovarianceMatrixModule, ECLCRFinderModule, ECLDataAnalysisModule, ECLDigitCalibratorModule, ECLDigitizerModule, ECLDigitizerPureCsIModule, EclDisplayModule, ECLDQMModule, ECLDQMEXTENDEDModule, ECLDQMOutOfTimeDigitsModule, ECLFinalizerModule, ECLHitDebugModule, ECLLocalMaximumFinderModule, ECLLocalRunCalibratorModule, ECLLOMModule, ECLPackerModule, ECLShowerCorrectorModule, ECLShowerShapeModule, ECLSplitterN1Module, ECLSplitterN2Module, ECLUnpackerModule, ECLWaveformFitModule, HistoModule, SubEventModule, SwitchDataStoreModule, EventInfoPrinterModule, RandomBarrierModule, HistoManagerModule, StatisticsSummaryModule, SeqRootInputModule, SeqRootOutputModule, RxModule, TxModule, ZMQTxInputModule, ZMQTxWorkerModule, EvtGenDecayModule, OverrideGenerationFlagsModule, BKLMAnaModule, BKLMDigitAnalyzerModule, BKLMSimHistogrammerModule, BKLMTrackingModule, EKLMDataCheckerModule, KLMClusterEfficiencyModule, KLMClustersReconstructorModule, KLMDigitizerModule, KLMDQMModule, KLMDQM2Module, KLMPackerModule, KLMReconstructorModule, KLMScintillatorSimulatorModule, KLMUnpackerModule, AWESOMEBasicModule, PXDBackgroundModule, PXDClustersFromTracksModule, PXDPerformanceModule, Convert2RawDetModule, PrintDataModule, PrintEventRateModule, Root2BinaryModule, CDCDedxDQMModule, CDCDedxValidationModule, EventT0ValidationModule, DataWriterModule, KlongValidationModule, KLMMuonIDDNNExpertModule, FullSimModule, SVDBackgroundModule, SVDClusterCalibrationsMonitorModule, SVDHotStripFinderModule, SVDLatencyCalibrationModule, SVDLocalCalibrationsMonitorModule, SVDPositionErrorScaleFactorImporterModule, SVDTimeCalibrationsMonitorModule, svdDumpModule, SVDPackerModule, SVDB4CommissioningPlotsModule, SVDClusterEvaluationModule, SVDClusterEvaluationTrueInfoModule, SVDClusterFilterModule, SVDOccupancyAnalysisModule, SVDPerformanceModule, SVDShaperDigitsFromTracksModule, SVDClusterizerModule, SVDCoGTimeEstimatorModule, SVDDataFormatCheckModule, SVDRecoDigitCreatorModule, SVD3SamplesEmulatorModule, SVDTriggerQualityGeneratorModule, SVDUnpackerModule, TOPBackgroundModule, TOPChannelT0MCModule, TOPTriggerDigitizerModule, TOPDoublePulseGeneratorModule, TOPGainEfficiencyCalculatorModule, TOPLaserHitSelectorModule, TOPInterimFENtupleModule, TOPLaserCalibratorModule, TOPMCTrackMakerModule, TOPNtupleModule, TOPPackerModule, TOPRawDigitConverterModule, TOPTBCComparatorModule, TOPTimeBaseCalibratorModule, TOPUnpackerModule, TOPWaveformFeatureExtractorModule, TOPWaveformQualityPlotterModule, TOPXTalkChargeShareSetterModule, ExtModule, GenfitVisModule, MCV0MatcherModule, MCTrackCandClassifierModule, MuidModule, MCSlowPionPXDROICreatorModule, PXDROIFinderModule, SVDROIDQMModule, SVDROIFinderAnalysisModule, SVDROIFinderModule, RT2SPTCConverterModule, SPTCmomentumSeedRetrieverModule, SPTCvirtualIPRemoverModule, TrackFinderMCTruthRecoTracksModule, EffPlotsModule, HitXPModule, TrackingPerformanceEvaluationModule, V0findingPerformanceEvaluationModule, SecMapTrainerBaseModule, SecMapTrainerVXDTFModule, TrackFinderVXDAnalizerModule, VXDSimpleClusterizerModule, NoKickCutsEvalModule, SectorMapBootstrapModule, VXDTFTrainingDataCollectorModule, FindletModule< AFindlet >, FindletModule< HitBasedT0Extractor >, FindletModule< CKFToSVDSeedFindlet >, FindletModule< CKFToSVDFindlet >, FindletModule< CosmicsTrackMergerFindlet >, FindletModule< DATCONFPGAFindlet >, FindletModule< MCVXDCDCTrackMergerFindlet >, FindletModule< vxdHoughTracking::SVDHoughTracking >, FindletModule< CKFToCDCFindlet >, FindletModule< CKFToCDCFromEclFindlet >, FindletModule< CKFToPXDFindlet >, FindletModule< AsicBackgroundLibraryCreator >, FindletModule< CDCTrackingEventLevelMdstInfoFillerFindlet >, FindletModule< AxialSegmentPairCreator >, FindletModule< AxialStraightTrackFinder >, FindletModule< AxialTrackCreatorMCTruth >, FindletModule< AxialTrackCreatorSegmentHough >, FindletModule< AxialTrackFinderHough >, FindletModule< AxialTrackFinderLegendre >, FindletModule< ClusterBackgroundDetector >, FindletModule< ClusterPreparer >, FindletModule< ClusterRefiner< BridgingWireHitRelationFilter > >, FindletModule< FacetCreator >, FindletModule< HitReclaimer >, FindletModule< MonopoleAxialTrackFinderLegendre >, FindletModule< MonopoleStereoHitFinder >, FindletModule< MonopoleStereoHitFinderQuadratic >, FindletModule< SegmentCreatorFacetAutomaton >, FindletModule< SegmentCreatorMCTruth >, FindletModule< SegmentFinderFacetAutomaton >, FindletModule< SegmentFitter >, FindletModule< SegmentLinker >, FindletModule< SegmentOrienter >, FindletModule< SegmentPairCreator >, FindletModule< SegmentRejecter >, FindletModule< SegmentTrackCombiner >, FindletModule< SegmentTripleCreator >, FindletModule< StereoHitFinder >, FindletModule< SuperClusterCreator >, FindletModule< TrackCombiner >, FindletModule< TrackCreatorSegmentPairAutomaton >, FindletModule< TrackCreatorSegmentTripleAutomaton >, FindletModule< TrackCreatorSingleSegments >, FindletModule< TrackExporter >, FindletModule< TrackFinderAutomaton >, FindletModule< TrackFinderCosmics >, FindletModule< TrackFinder >, FindletModule< TrackFinderSegmentPairAutomaton >, FindletModule< TrackFinderSegmentTripleAutomaton >, FindletModule< TrackFlightTimeAdjuster >, FindletModule< TrackLinker >, FindletModule< TrackOrienter >, FindletModule< TrackQualityAsserter >, FindletModule< TrackQualityEstimator >, FindletModule< TrackRejecter >, FindletModule< WireHitBackgroundDetector >, FindletModule< WireHitCreator >, FindletModule< WireHitPreparer >, CDCTriggerNeuroDQMModule, CDCTriggerNeuroDQMOnlineModule, CDCTriggerNDFinderModule, TRGCDCModule, TRGCDCETFUnpackerModule, TRGCDCT2DDQMModule, TRGCDCT3DConverterModule, TRGCDCT3DDQMModule, TRGCDCT3DUnpackerModule, TRGCDCTSFDQMModule, TRGCDCTSFUnpackerModule, TRGCDCTSStreamModule, MCMatcherTRGECLModule, TRGECLFAMModule, TRGECLModule, TRGECLBGTCHitModule, TRGECLDQMModule, TRGECLQAMModule, TRGECLRawdataAnalysisModule, TRGECLTimingCalModule, TRGECLUnpackerModule, TRGGDLModule, TRGGDLDQMModule, TRGGDLDSTModule, TRGGDLSummaryModule, TRGGDLUnpackerModule, TRGGRLMatchModule, TRGGRLModule, TRGGRLProjectsModule, TRGGRLDQMModule, TRGGRLUnpackerModule, KLMTriggerModule, TRGTOPDQMModule, TRGTOPTRD2TTSConverterModule, TRGTOPUnpackerModule, TRGTOPUnpackerWaveformModule, TRGTOPWaveformPlotterModule, TRGRAWDATAModule, DQMHistAnalysisARICHModule, DQMHistAnalysisARICHMonObjModule, DQMHistAnalysisCDCDedxModule, DQMHistAnalysisCDCEpicsModule, DQMHistAnalysisCDCMonObjModule, DQMHistAnalysisECLModule, DQMHistAnalysisECLConnectedRegionsModule, DQMHistAnalysisECLOutOfTimeDigitsModule, DQMHistAnalysisECLShapersModule, DQMHistAnalysisECLSummaryModule, DQMHistAnalysisEpicsExampleModule, DQMHistAnalysisExampleModule, DQMHistAnalysisExampleFlagsModule, DQMHistAnalysisHLTMonObjModule, DQMHistAnalysisInput2Module, DQMHistAnalysisInputPVSrvModule, DQMHistAnalysisInputTestModule, DQMHistAnalysisKLMModule, DQMHistAnalysisKLM2Module, DQMHistAnalysisMiraBelleModule, DQMHistAnalysisMonObjModule, DQMHistAnalysisOutputFileModule, DQMHistAnalysisOutputMonObjModule, DQMHistAnalysisOutputRelayMsgModule, DQMHistAnalysisPXDFitsModule, DQMHistAnalysisSVDDoseModule, DQMHistAnalysisSVDEfficiencyModule, DQMHistAnalysisSVDGeneralModule, DQMHistAnalysisSVDOnMiraBelleModule, DQMHistAnalysisTOPModule, DQMHistAnalysisTRGECLModule, DQMHistAnalysisTRGGDLModule, DQMHistComparitorModule, DQMHistDeltaHistoModule, DQMHistReferenceModule, DQMHistSnapshotsModule, PyModule, SVDUnpackerDQMModule, TrackSetEvaluatorHopfieldNNDEVModule, vxdDigitMaskingModule, DQMHistAnalysisDeltaEpicsMonObjExampleModule, DQMHistAnalysisDeltaTestModule, DQMHistAnalysisEpicsOutputModule, DQMHistAnalysisPhysicsModule, DQMHistAnalysisPXDChargeModule, DQMHistAnalysisPXDTrackChargeModule, DQMHistAnalysisRooFitExampleModule, DQMHistAnalysisTRGModule, and DQMHistOutputToEPICSModule.

Definition at line 166 of file Module.h.

166{};

◆ evalCondition()

bool evalCondition ( ) const
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().

Returns
True if at least one condition and return value exists and at least one condition expression was evaluated to true.

Definition at line 96 of file Module.cc.

97{
98 if (m_conditions.empty()) return false;
99
100 //okay, a condition was set for this Module...
101 if (!m_hasReturnValue) {
102 B2FATAL("A condition was set for '" << getName() << "', but the module did not set a return value!");
103 }
104
105 for (const auto& condition : m_conditions) {
106 if (condition.evaluate(m_returnValue)) {
107 return true;
108 }
109 }
110 return false;
111}
int m_returnValue
The return value.
Definition: Module.h:519
bool m_hasReturnValue
True, if the return value is set.
Definition: Module.h:518

◆ event()

void event ( void  )
overridevirtual

perform analysis and Draw pdf Canvas

Reimplemented from Module.

Definition at line 216 of file SVDLocalCalibrationsCheckModule.cc.

217{
219
220 Long64_t nentries = m_treeREF->GetEntriesFast();
221
222 for (Long64_t jentry = 0; jentry < nentries; jentry++) {
223 m_treeREF->GetEntry(jentry);
224 m_treeCHECK->GetEntry(jentry);
226 float diff = 0;
227
228
229 diff = (m_maskREF - m_maskCHECK);// / m_maskREF;
230 m_hMaskDIFF->fill(theVxdID, (int)m_sideREF, (int)m_stripREF / 128, diff);
231 if (m_sideREF == 1) {
234 } else {
237 }
238 m_hMaskSummaryCHECK->fill(theVxdID, (int)m_sideREF, (float)m_maskCHECK);
239
240 diff = (m_noiseREF - m_noiseCHECK);// / m_noiseREF;
241 m_hNoiseDIFF->fill(theVxdID, (int)m_sideREF, (int)m_stripREF / 128, diff);
242
244 m_hCalpeakTimeDIFF->fill(theVxdID, (int)m_sideREF, (int)m_stripREF / 128, diff);
245
246 diff = (m_calPeakADCREF - m_calPeakADCCHECK);// / m_calPeakADCREF;
247 m_hCalpeakADCDIFF->fill(theVxdID, (int)m_sideREF, (int)m_stripREF / 128, diff);
248
249 diff = (m_pedestalREF - m_pedestalCHECK);// / m_pedestalREF;
250 m_hPedestalDIFF->fill(theVxdID, (int)m_sideREF, (int)m_stripREF / 128, diff);
251 }
252
253
254 //call for a geometry instance
256 std::set<Belle2::VxdID> svdLayers = aGeometry.getLayers(VXD::SensorInfoBase::SVD);
257 std::set<Belle2::VxdID>::iterator itSvdLayers = svdLayers.begin();
258
259 while ((itSvdLayers != svdLayers.end()) && (itSvdLayers->getLayerNumber() != 7)) { //loop on Layers
260
261 bool isL3 = false;
262
263 int layer = itSvdLayers->getLayerNumber();
264 printLayerPage(layer);
265
266 if (layer == 3)
267 isL3 = true;
268
269 std::set<Belle2::VxdID> svdLadders = aGeometry.getLadders(*itSvdLayers);
270 std::set<Belle2::VxdID>::iterator itSvdLadders = svdLadders.begin();
271
272 while (itSvdLadders != svdLadders.end()) { //loop on Ladders
273
274 std::set<Belle2::VxdID> svdSensors = aGeometry.getSensors(*itSvdLadders);
275 std::set<Belle2::VxdID>::iterator itSvdSensors = svdSensors.begin();
276
277 while (itSvdSensors != svdSensors.end()) { //loop on sensors
278 B2DEBUG(1, " svd sensor info " << *itSvdSensors);
279
280
281 int ladder = itSvdSensors->getLadderNumber();
282 int sensor = itSvdSensors->getSensorNumber();
283 Belle2::VxdID theVxdID(layer, ladder, sensor);
284 const SVD::SensorInfo* currentSensorInfo = dynamic_cast<const SVD::SensorInfo*>(&VXD::GeoCache::getInstance().getSensorInfo(
285 theVxdID));
286
287 TList* listEmpty = new TList;
288
289 //noise
290 TList* listNoiseUBAD = new TList;
291 TList* listNoiseUGOOD = new TList;
292 TList* listNoiseVBAD = new TList;
293 TList* listNoiseVGOOD = new TList;
294
295
296 //calpeak
297 TList* listCalpeakADCUBAD = new TList;
298 TList* listCalpeakADCUGOOD = new TList;
299 TList* listCalpeakADCVBAD = new TList;
300 TList* listCalpeakADCVGOOD = new TList;
301
302 //calpeak
303 TList* listCalpeakTimeUGOOD = new TList;
304 TList* listCalpeakTimeVGOOD = new TList;
305
306 //pedestal
307 TList* listPedestalUBAD = new TList;
308 TList* listPedestalUGOOD = new TList;
309 TList* listPedestalVBAD = new TList;
310 TList* listPedestalVGOOD = new TList;
311
312 bool needPlot = false;
313 for (int side = 0; side < 2; side++) {
314
315 int Ncells = currentSensorInfo->getUCells();
316 if (side == 0)
317 Ncells = currentSensorInfo->getVCells();
318
319 int Napv = Ncells / 128;
320
321 for (int m_APV = 0; m_APV < Napv; m_APV++) {
322
323 int problem = 0;
324
325 //mask analysis
326 TH1F* hMask = m_hMaskDIFF->getHistogram(theVxdID, side, m_APV);
327 m_hMaskSummary->fill(theVxdID, side, hMask->GetMean() * 128);
328
329 //noise analysis
330 TH1F* hNoise = m_hNoiseDIFF->getHistogram(theVxdID, side, m_APV);
331 problem = hasAnyProblem(hNoise, m_cutNoise_ave, m_cutNoise_out);
332 if (problem) {
333 needPlot = true;
334 B2INFO("WARNING, ONE APV has Noise problems in: L" << layer << "L" << ladder << "S" << sensor << " side = " << side <<
335 ", APV number = " << m_APV << ", problem ID = " << problem);
336 m_hNoiseSummary->fill(theVxdID, side, 1);
337 if (side == 0)
338 listNoiseVBAD->Add(hNoise);
339 else
340 listNoiseUBAD->Add(hNoise);
341 } else {
342 if (side == 0)
343 listNoiseVGOOD->Add(hNoise);
344 else
345 listNoiseUGOOD->Add(hNoise);
346 }
347
348
349
350 //calpeak analysis
351 TH1F* hCalpeakADC = m_hCalpeakADCDIFF->getHistogram(theVxdID, side, m_APV);
353 if (problem) {
354 needPlot = true;
355 B2INFO("WARNING, ONE APV has CalpeakADC problems in: L" << layer << "L" << ladder << "S" << sensor << " side = " << side <<
356 ", APV number = " << m_APV << " problem ID = " << problem);
357 m_hCalpeakADCSummary->fill(theVxdID, side, 1);
358 if (side == 0)
359 listCalpeakADCVBAD->Add(hCalpeakADC);
360 else
361 listCalpeakADCUBAD->Add(hCalpeakADC);
362 } else {
363 if (side == 0)
364 listCalpeakADCVGOOD->Add(hCalpeakADC);
365 else
366 listCalpeakADCUGOOD->Add(hCalpeakADC);
367 }
368
369 //calpeak plot
370 TH1F* hCalpeakTime = m_hCalpeakTimeDIFF->getHistogram(theVxdID, side, m_APV);
371 if (side == 0)
372 listCalpeakTimeVGOOD->Add(hCalpeakTime);
373 else
374 listCalpeakTimeUGOOD->Add(hCalpeakTime);
375
376
377 //pedestal analysis
378 TH1F* hPedestal = m_hPedestalDIFF->getHistogram(theVxdID, side, m_APV);
380 if (problem) {
381 needPlot = true;
382 B2INFO("WARNING, ONE APV has Pedestal problems in: L" << layer << "L" << ladder << "S" << sensor << " side = " << side <<
383 ", APV number = " << m_APV << " problem ID = " << problem);
384 m_hPedestalSummary->fill(theVxdID, side, 1);
385 if (side == 0)
386 listPedestalVBAD->Add(hPedestal);
387 else
388 listPedestalUBAD->Add(hPedestal);
389 } else {
390 if (side == 0)
391 listPedestalVGOOD->Add(hPedestal);
392 else
393 listPedestalUGOOD->Add(hPedestal);
394 }
395
396
397
398 }
399 }
400 if (needPlot) {
401 printPage(theVxdID, listNoiseUBAD, listNoiseVBAD, listNoiseUGOOD, listNoiseVGOOD, "Noise", isL3);
402 printPage(theVxdID, listCalpeakADCUBAD, listCalpeakADCVBAD, listCalpeakADCUGOOD, listCalpeakADCVGOOD, "CalpeakADC", isL3);
403 printPage(theVxdID, listEmpty, listEmpty, listCalpeakTimeUGOOD, listCalpeakTimeVGOOD, "CalpeakTime", isL3);
404 printPage(theVxdID, listPedestalUBAD, listPedestalVBAD, listPedestalUGOOD, listPedestalVGOOD, "Pedestal", isL3);
405 }
406 ++itSvdSensors;
407 }
408 ++itSvdLadders;
409 }
410 ++itSvdLayers;
411 }
412
416
417}
H * getHistogram(const VxdID &vxdID, int view, int apv)
get a reference to the histogram for
void fill(const VxdID &vxdID, int view, int apv, Types ... args)
fill the histogram for
int m_nMaskedUCHECK
number of masked strips in the check calibration (u side)
void printPage(VxdID theVxdID, TList *listUBAD, TList *listVBAD, TList *listUGOOD, TList *listVGOOD, TString variable, bool isL3)
print the page relative to a sensor with problematic APVs
int m_nMaskedUREF
number of masked strips in the reference calibration (u side)
void printMaskedSummaryPages()
summary page with Masked strips summary plot
void printLayerPage(int layer)
print layer-number page
void printAPVSummaryPages()
summary page with 2D summary plot with problemtic APVs
int m_nMaskedVREF
number of masked strips in the reference calibration (v side)
int hasAnyProblem(TH1F *h, float cutAve, float cutCOUNT)
return True if the APV has a problem, given a variable
int m_nMaskedVCHECK
number of masked strips in the check calibration (v side)
void printFirstPage()
print the first page of the output pdf
void fill(int layer, int ladder, int sensor, int view, float value)
fill the histogram for
Specific implementation of SensorInfo for SVD Sensors which provides additional sensor specific infor...
Definition: SensorInfo.h:25
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
const std::set< Belle2::VxdID > getLayers(SensorInfoBase::SensorType sensortype=SensorInfoBase::VXD)
Return a set of all known Layers.
Definition: GeoCache.cc:176
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
Definition: GeoCache.cc:67
const std::set< Belle2::VxdID > & getSensors(Belle2::VxdID ladder) const
Return a set of all sensor IDs belonging to a given ladder.
Definition: GeoCache.cc:204
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214
const std::set< Belle2::VxdID > & getLadders(Belle2::VxdID layer) const
Return a set of all ladder IDs belonging to a given layer.
Definition: GeoCache.cc:193
int getVCells() const
Return number of pixel/strips in v direction.
int getUCells() const
Return number of pixel/strips in u direction.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33

◆ exposePythonAPI()

void exposePythonAPI ( )
staticinherited

Exposes methods of the Module class to Python.

Definition at line 325 of file Module.cc.

326{
327 // to avoid confusion between std::arg and boost::python::arg we want a shorthand namespace as well
328 namespace bp = boost::python;
329
330 docstring_options options(true, true, false); //userdef, py sigs, c++ sigs
331
332 void (Module::*setReturnValueInt)(int) = &Module::setReturnValue;
333
334 enum_<Module::EAfterConditionPath>("AfterConditionPath",
335 R"(Determines execution behaviour after a conditional path has been executed:
336
337.. attribute:: END
338
339 End processing of this path after the conditional path. (this is the default for if_value() etc.)
340
341.. attribute:: CONTINUE
342
343 After the conditional path, resume execution after this module.)")
344 .value("END", Module::EAfterConditionPath::c_End)
345 .value("CONTINUE", Module::EAfterConditionPath::c_Continue)
346 ;
347
348 /* Do not change the names of >, <, ... we use them to serialize conditional pathes */
349 enum_<Belle2::ModuleCondition::EConditionOperators>("ConditionOperator")
356 ;
357
358 enum_<Module::EModulePropFlags>("ModulePropFlags",
359 R"(Flags to indicate certain low-level features of modules, see :func:`Module.set_property_flags()`, :func:`Module.has_properties()`. Most useful flags are:
360
361.. attribute:: PARALLELPROCESSINGCERTIFIED
362
363 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.)
364
365.. attribute:: HISTOGRAMMANAGER
366
367 This module is used to manage histograms accumulated by other modules
368
369.. attribute:: TERMINATEINALLPROCESSES
370
371 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.
372)")
373 .value("INPUT", Module::EModulePropFlags::c_Input)
374 .value("OUTPUT", Module::EModulePropFlags::c_Output)
375 .value("PARALLELPROCESSINGCERTIFIED", Module::EModulePropFlags::c_ParallelProcessingCertified)
376 .value("HISTOGRAMMANAGER", Module::EModulePropFlags::c_HistogramManager)
377 .value("INTERNALSERIALIZER", Module::EModulePropFlags::c_InternalSerializer)
378 .value("TERMINATEINALLPROCESSES", Module::EModulePropFlags::c_TerminateInAllProcesses)
379 ;
380
381 //Python class definition
382 class_<Module, PyModule> module("Module", R"(
383Base class for Modules.
384
385A module is the smallest building block of the framework.
386A typical event processing chain consists of a Path containing
387modules. By inheriting from this base class, various types of
388modules can be created. To use a module, please refer to
389:func:`Path.add_module()`. A list of modules is available by running
390``basf2 -m`` or ``basf2 -m package``, detailed information on parameters is
391given by e.g. ``basf2 -m RootInput``.
392
393The 'Module Development' section in the manual provides detailed information
394on how to create modules, setting parameters, or using return values/conditions:
395https://confluence.desy.de/display/BI/Software+Basf2manual#Module_Development
396
397)");
398 module
399 .def("__str__", &Module::getPathString)
400 .def("name", &Module::getName, return_value_policy<copy_const_reference>(),
401 "Returns the name of the module. Can be changed via :func:`set_name() <Module.set_name()>`, use :func:`type() <Module.type()>` for identifying a particular module class.")
402 .def("type", &Module::getType, return_value_policy<copy_const_reference>(),
403 "Returns the type of the module (i.e. class name minus 'Module')")
404 .def("set_name", &Module::setName, args("name"), R"(
405Set custom name, e.g. to distinguish multiple modules of the same type.
406
407>>> path.add_module('EventInfoSetter')
408>>> ro = path.add_module('RootOutput', branchNames=['EventMetaData'])
409>>> ro.set_name('RootOutput_metadata_only')
410>>> print(path)
411[EventInfoSetter -> RootOutput_metadata_only]
412
413)")
414 .def("description", &Module::getDescription, return_value_policy<copy_const_reference>(),
415 "Returns the description of this module.")
416 .def("package", &Module::getPackage, return_value_policy<copy_const_reference>(),
417 "Returns the package this module belongs to.")
418 .def("available_params", &_getParamInfoListPython,
419 "Return list of all module parameters as `ModuleParamInfo` instances")
420 .def("has_properties", &Module::hasProperties, (bp::arg("properties")),
421 R"DOCSTRING(Allows to check if the module has the given properties out of `ModulePropFlags` set.
422
423>>> if module.has_properties(ModulePropFlags.PARALLELPROCESSINGCERTIFIED):
424>>> ...
425
426Parameters:
427 properties (int): bitmask of `ModulePropFlags` to check for.
428)DOCSTRING")
429 .def("set_property_flags", &Module::setPropertyFlags, args("property_mask"),
430 "Set module properties in the form of an OR combination of `ModulePropFlags`.");
431 {
432 // python signature is too crowded, make ourselves
433 docstring_options subOptions(true, false, false); //userdef, py sigs, c++ sigs
434 module
435 .def("if_value", &Module::if_value,
436 (bp::arg("expression"), bp::arg("condition_path"), bp::arg("after_condition_path")= Module::EAfterConditionPath::c_End),
437 R"DOCSTRING(if_value(expression, condition_path, after_condition_path=AfterConditionPath.END)
438
439Sets a conditional sub path which will be executed after this
440module if the return value set in the module passes the given ``expression``.
441
442Modules can define a return value (int or bool) using ``setReturnValue()``,
443which can be used in the steering file to split the Path based on this value, for example
444
445>>> module_with_condition.if_value("<1", another_path)
446
447In case the return value of the ``module_with_condition`` for a given event is
448less than 1, the execution will be diverted into ``another_path`` for this event.
449
450You could for example set a special return value if an error occurs, and divert
451the execution into a path containing :b2:mod:`RootOutput` if it is found;
452saving only the data producing/produced by the error.
453
454After a conditional path has executed, basf2 will by default stop processing
455the path for this event. This behaviour can be changed by setting the
456``after_condition_path`` argument.
457
458Parameters:
459 expression (str): Expression to determine if the conditional path should be executed.
460 This should be one of the comparison operators ``<``, ``>``, ``<=``,
461 ``>=``, ``==``, or ``!=`` followed by a numerical value for the return value
462 condition_path (Path): path to execute in case the expression is fulfilled
463 after_condition_path (AfterConditionPath): What to do once the ``condition_path`` has been executed.
464)DOCSTRING")
465 .def("if_false", &Module::if_false,
466 (bp::arg("condition_path"), bp::arg("after_condition_path")= Module::EAfterConditionPath::c_End),
467 R"DOC(if_false(condition_path, after_condition_path=AfterConditionPath.END)
468
469Sets a conditional sub path which will be executed after this module if
470the return value of the module evaluates to False. This is equivalent to
471calling `if_value` with ``expression=\"<1\"``)DOC")
472 .def("if_true", &Module::if_true,
473 (bp::arg("condition_path"), bp::arg("after_condition_path")= Module::EAfterConditionPath::c_End),
474 R"DOC(if_true(condition_path, after_condition_path=AfterConditionPath.END)
475
476Sets a conditional sub path which will be executed after this module if
477the return value of the module evaluates to True. It is equivalent to
478calling `if_value` with ``expression=\">=1\"``)DOC");
479 }
480 module
481 .def("has_condition", &Module::hasCondition,
482 "Return true if a conditional path has been set for this module "
483 "using `if_value`, `if_true` or `if_false`")
484 .def("get_all_condition_paths", &_getAllConditionPathsPython,
485 "Return a list of all conditional paths set for this module using "
486 "`if_value`, `if_true` or `if_false`")
487 .def("get_all_conditions", &_getAllConditionsPython,
488 "Return a list of all conditional path expressions set for this module using "
489 "`if_value`, `if_true` or `if_false`")
490 .add_property("logging", make_function(&Module::getLogConfig, return_value_policy<reference_existing_object>()),
@ c_GE
Greater or equal than: ">=".
@ c_SE
Smaller or equal than: "<=".
@ c_GT
Greater than: ">"
@ c_NE
Not equal: "!=".
@ c_EQ
Equal: "=" or "=="
@ c_ST
Smaller than: "<"
Base class for Modules.
Definition: Module.h:72
LogConfig & getLogConfig()
Returns the log system configuration.
Definition: Module.h:225
void if_value(const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
Add a condition to the module.
Definition: Module.cc:79
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:208
void if_true(const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
A simplified version to set the condition of the module.
Definition: Module.cc:90
void setReturnValue(int value)
Sets the return value for this module as integer.
Definition: Module.cc:220
void setLogConfig(const LogConfig &logConfig)
Set the log system configuration.
Definition: Module.h:230
const std::string & getDescription() const
Returns the description of the module.
Definition: Module.h:202
void if_false(const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
A simplified version to add a condition to the module.
Definition: Module.cc:85
bool hasCondition() const
Returns true if at least one condition was set for the module.
Definition: Module.h:311
const std::string & getPackage() const
Returns the package this module is in.
Definition: Module.h:197
void setName(const std::string &name)
Set the name of the module.
Definition: Module.h:214
bool hasProperties(unsigned int propertyFlags) const
Returns true if all specified property flags are available in this module.
Definition: Module.cc:160
std::string getPathString() const override
return the module name.
Definition: Module.cc:192

◆ getAfterConditionPath()

Module::EAfterConditionPath getAfterConditionPath ( ) const
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.

134{
135 if (m_conditions.empty()) return EAfterConditionPath::c_End;
136
137 //okay, a condition was set for this Module...
138 if (!m_hasReturnValue) {
139 B2FATAL("A condition was set for '" << getName() << "', but the module did not set a return value!");
140 }
141
142 for (const auto& condition : m_conditions) {
143 if (condition.evaluate(m_returnValue)) {
144 return condition.getAfterConditionPath();
145 }
146 }
147
148 return EAfterConditionPath::c_End;
149}

◆ getAllConditionPaths()

std::vector< std::shared_ptr< Path > > getAllConditionPaths ( ) const
inherited

Return all condition paths currently set (no matter if the condition is true or not).

Definition at line 150 of file Module.cc.

151{
152 std::vector<std::shared_ptr<Path>> allConditionPaths;
153 for (const auto& condition : m_conditions) {
154 allConditionPaths.push_back(condition.getPath());
155 }
156
157 return allConditionPaths;
158}

◆ getAllConditions()

const std::vector< ModuleCondition > & getAllConditions ( ) const
inlineinherited

Return all set conditions for this module.

Definition at line 324 of file Module.h.

325 {
326 return m_conditions;
327 }

◆ getCondition()

const ModuleCondition * getCondition ( ) const
inlineinherited

Return a pointer to the first condition (or nullptr, if none was set)

Definition at line 314 of file Module.h.

315 {
316 if (m_conditions.empty()) {
317 return nullptr;
318 } else {
319 return &m_conditions.front();
320 }
321 }

◆ getConditionPath()

std::shared_ptr< Path > getConditionPath ( ) const
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.

114{
115 PathPtr p;
116 if (m_conditions.empty()) return p;
117
118 //okay, a condition was set for this Module...
119 if (!m_hasReturnValue) {
120 B2FATAL("A condition was set for '" << getName() << "', but the module did not set a return value!");
121 }
122
123 for (const auto& condition : m_conditions) {
124 if (condition.evaluate(m_returnValue)) {
125 return condition.getPath();
126 }
127 }
128
129 // if none of the conditions were true, return a null pointer.
130 return p;
131}
std::shared_ptr< Path > PathPtr
Defines a pointer to a path object as a boost shared pointer.
Definition: Path.h:35

◆ getDescription()

const std::string & getDescription ( ) const
inlineinherited

Returns the description of the module.

Definition at line 202 of file Module.h.

202{return m_description;}
std::string m_description
The description of the module.
Definition: Module.h:511

◆ getFileNames()

virtual std::vector< std::string > getFileNames ( bool  outputFiles)
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.

135 {
136 return std::vector<std::string>();
137 }

◆ getLogConfig()

LogConfig & getLogConfig ( )
inlineinherited

Returns the log system configuration.

Definition at line 225 of file Module.h.

225{return m_logConfig;}

◆ getModules()

std::list< ModulePtr > getModules ( ) const
inlineoverrideprivatevirtualinherited

no submodules, return empty list

Implements PathElement.

Definition at line 506 of file Module.h.

506{ return std::list<ModulePtr>(); }

◆ getName()

const std::string & getName ( ) const
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.

187{return m_name;}
std::string m_name
The name of the module, saved as a string (user-modifiable)
Definition: Module.h:508

◆ getPackage()

const std::string & getPackage ( ) const
inlineinherited

Returns the package this module is in.

Definition at line 197 of file Module.h.

197{return m_package;}

◆ getParamInfoListPython()

std::shared_ptr< boost::python::list > getParamInfoListPython ( ) const
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.

Returns
A python list containing the parameters of this parameter list.

Definition at line 279 of file Module.cc.

280{
282}
std::shared_ptr< boost::python::list > getParamInfoListPython() const
Returns a python list of all parameters.
ModuleParamList m_moduleParamList
List storing and managing all parameter of the module.
Definition: Module.h:516

◆ getParamList()

const ModuleParamList & getParamList ( ) const
inlineinherited

Return module param list.

Definition at line 363 of file Module.h.

363{ return m_moduleParamList; }

◆ getPathString()

std::string getPathString ( ) const
overrideprivatevirtualinherited

return the module name.

Implements PathElement.

Definition at line 192 of file Module.cc.

193{
194
195 std::string output = getName();
196
197 for (const auto& condition : m_conditions) {
198 output += condition.getString();
199 }
200
201 return output;
202}

◆ getReturnValue()

int getReturnValue ( ) const
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.

381{ return m_returnValue; }

◆ getType()

const std::string & getType ( ) const
inherited

Returns the type of the module (i.e.

class name minus 'Module')

Definition at line 41 of file Module.cc.

42{
43 if (m_type.empty())
44 B2FATAL("Module type not set for " << getName());
45 return m_type;
46}
std::string m_type
The type of the module, saved as a string.
Definition: Module.h:509

◆ hasAnyProblem()

int hasAnyProblem ( TH1F *  h,
float  cutAve,
float  cutCOUNT 
)
private

return True if the APV has a problem, given a variable

Definition at line 760 of file SVDLocalCalibrationsCheckModule.cc.

761{
762
763 float average = h->GetMean();
764 if (std::fabs(average) > cutAve)
765 return 1;
766
767 TAxis* xaxis = h->GetXaxis();
768 Int_t bin1 = xaxis->FindBin(-cutCOUNT);
769 Int_t bin2 = xaxis->FindBin(cutCOUNT);
770 if (bin1 > bin2) {
771 int tmp = bin1;
772 bin1 = bin2;
773 bin2 = tmp;
774 }
775
776 B2DEBUG(1, bin1 << " -> " << bin2 << " with " << xaxis->GetNbins() << " bins");
777
778 if (h->Integral(1, bin1) > m_cutN_out - 1) return 2;
779
780 if (h->Integral(bin2, xaxis->GetNbins()) > m_cutN_out - 1) return 3;
781
782 return 0;
783}

◆ hasCondition()

bool hasCondition ( ) const
inlineinherited

Returns true if at least one condition was set for the module.

Definition at line 311 of file Module.h.

311{ return not m_conditions.empty(); };

◆ hasProperties()

bool hasProperties ( unsigned int  propertyFlags) const
inherited

Returns true if all specified property flags are available in this module.

Parameters
propertyFlagsOred EModulePropFlags which should be compared with the module flags.

Definition at line 160 of file Module.cc.

161{
162 return (propertyFlags & m_propertyFlags) == propertyFlags;
163}

◆ hasReturnValue()

bool hasReturnValue ( ) const
inlineinherited

Return true if this module has a valid return value set.

Definition at line 378 of file Module.h.

378{ return m_hasReturnValue; }

◆ hasUnsetForcedParams()

bool hasUnsetForcedParams ( ) const
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.

167{
169 std::string allMissing = "";
170 for (const auto& s : missing)
171 allMissing += s + " ";
172 if (!missing.empty())
173 B2ERROR("The following required parameters of Module '" << getName() << "' were not specified: " << allMissing <<
174 "\nPlease add them to your steering file.");
175 return !missing.empty();
176}
std::vector< std::string > getUnsetForcedParams() const
Returns list of unset parameters (if they are required to have a value.

◆ if_false()

void if_false ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
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.

Parameters
pathShared pointer to the Path which will be executed if the return value is false.
afterConditionPathWhat to do after executing 'path'.

Definition at line 85 of file Module.cc.

86{
87 if_value("<1", path, afterConditionPath);
88}

◆ if_true()

void if_true ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
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.

Parameters
pathShared pointer to the Path which will be executed if the return value is true.
afterConditionPathWhat to do after executing 'path'.

Definition at line 90 of file Module.cc.

91{
92 if_value(">=1", path, afterConditionPath);
93}

◆ if_value()

void if_value ( const std::string &  expression,
const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
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://confluence.desy.de/display/BI/Software+ModCondTut 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.

Parameters
expressionThe expression of the condition.
pathShared pointer to the Path which will be executed if the condition is evaluated to true.
afterConditionPathWhat to do after executing 'path'.

Definition at line 79 of file Module.cc.

80{
81 m_conditions.emplace_back(expression, path, afterConditionPath);
82}

◆ initialize()

virtual void initialize ( void  )
inlinevirtualinherited

Initialize the Module.

This method is called once before the actual event processing starts. Use this method to initialize variables, open files etc.

This method can be implemented by subclasses.

Reimplemented in ARICHBackgroundModule, BeamabortModule, BgoModule, CaveModule, ClawModule, CLAWSModule, DosiModule, FANGSModule, He3tubeModule, MicrotpcModule, Ph1bpipeModule, Ph1sustrModule, PindiodeModule, PlumeModule, QcsmonitorModule, SrsensorModule, GetEventFromSocketModule, TrackTimeEstimatorModule, CalibrationCollectorModule, EventsOfDoomBusterModule, MCRecoTracksMatcherModule, AlignmentGeneratorModule, CopyRecoTracksWithOverlapModule, CosmicsAlignmentValidationModule, MergerCosmicTracksModule, SetRecoTrackMomentumModule, UpdateParticleTrackCandModule, AllParticleCombinerModule, AnalysisConfigurationModule, BelleNbarMVAModule, BestCandidateSelectionModule, BelleBremRecoveryModule, BremsFinderModule, BtubeCreatorModule, ChargedPidMVAModule, ChargedPidMVAMulticlassModule, ContinuumSuppressionBuilderModule, CurlTaggerModule, DistanceCalculatorModule, DuplicateVertexMarkerModule, EventKinematicsModule, EventShapeCalculatorModule, ExtraInfoPrinterModule, ExtraInfoRemoverModule, FlavorTaggerInfoBuilderModule, FlavorTaggerInfoFillerModule, HelixErrorScalerModule, InclusiveBtagReconstructionModule, InclusiveDstarReconstructionModule, KlongDecayReconstructorExpertModule, KlongMomentumCalculatorExpertModule, KlongMomentumUpdaterExpertModule, LowEnergyPi0IdentificationExpertModule, LowEnergyPi0VetoExpertModule, MCDecayFinderModule, MCMatcherParticlesModule, NeutralHadron4MomentumCalculatorModule, OnlyWriteOutParticleListsModule, ParticleCombinerModule, ParticleCombinerFromMCModule, ParticleCopierModule, ParticleExtractorFromROEModule, ParticleKinematicFitterModule, ParticleListManipulatorModule, ParticleLoaderModule, ParticleMassHypothesesUpdaterModule, ParticleMassUpdaterModule, ParticleMCDecayStringModule, ParticleMomentumUpdaterModule, ParticlePrinterModule, ParticleSelectorModule, ParticleStatsModule, ParticleVertexFitterModule, ParticleWeightingModule, ParticleWeightingLookUpCreatorModule, Pi0VetoEfficiencySystematicsModule, PIDCalibrationWeightCreatorModule, PIDNeuralNetworkParametersCreatorModule, PostMergeUpdaterModule, PrintMCParticlesModule, PseudoVertexFitterModule, RemoveParticlesNotInListsModule, RestOfEventBuilderModule, RestOfEventInterpreterModule, RestOfEventPrinterModule, RestOfEventUpdaterModule, SelectDaughtersModule, SignalSideParticleFilterModule, SignalSideParticleListCreatorModule, SignalSideVariablesToDaughterExtraInfoModule, SignalSideVariablesToExtraInfoModule, SkimFilterModule, TagUniqueSignalModule, TagVertexModule, TauDecayMarkerModule, TauDecayModeModule, TrackFitResultEstimatorModule, TrackingEnergyLossCorrectionModule, TrackingMomentumScaleFactorsModule, TrackIsoCalculatorModule, TreeFitterModule, TwoBodyISRPhotonCorrectorModule, UdstListFilterModule, VariablesToEventBasedTreeModule, VariablesToEventExtraInfoModule, VariablesToExtraInfoModule, VariablesToHistogramModule, VariablesToNtupleModule, VariableToReturnValueModule, arichBtestModule, ARICHDigitizerModule, ARICHDQMModule, ARICHFillHitsModule, ARICHMCParticlesModule, ARICHNtupleModule, ARICHPackerModule, ARICHRateCalModule, ARICHRawUnpackerModule, ARICHReconstructorModule, ARICHRelateModule, arichToNtupleModule, ARICHUnpackerModule, B2BIIMCParticlesMonitorModule, B2BIIConvertBeamParamsModule, B2BIIConvertMdstModule, B2BIIFixMdstModule, B2BIIMdstInputModule, BelleMCOutputModule, BeamBkgGeneratorModule, BeamBkgHitRateMonitorModule, BeamBkgMixerModule, BeamBkgTagSetterModule, BGOverlayExecutorModule, BGOverlayInputModule, AnalysisPhase1StudyModule, NtuplePhase1_v6Module, ReprocessorModule, BeamabortStudyModule, BeamDigitizerModule, BgoDigitizerModule, BgoStudyModule, ClawDigitizerModule, ClawStudyModule, ClawsDigitizerModule, ClawsStudyModule, CsiDigitizer_v2Module, CsIDigitizerModule, CsiModule, CsiStudy_v2Module, CsIStudyModule, DosiDigitizerModule, DosiStudyModule, FANGSDigitizerModule, FANGSStudyModule, He3DigitizerModule, He3tubeStudyModule, MicrotpcStudyModule, TpcDigitizerModule, TPCStudyModule, PinDigitizerModule, PindiodeStudyModule, PlumeDigitizerModule, QcsmonitorDigitizerModule, QcsmonitorStudyModule, TestCalibDBAccessModule, TriggerSkimModule, CDCCosmicAnalysisModule, CDCCosmicSelectorModule, CDCCosmicSelectorAfterFullSimModule, CDCCrossTalkAdderModule, CDCCRTestModule, CDCDigitizerModule, cdcDQM7Module, CDCDQMModule, ScanCDCGeoModule, CDCHitFilterModule, CDCInitialT0DeterminationModule, CDCJobCntlParModifierModule, CDCPackerModule, CDCCosmicTrackMergerModule, CDCRecoTrackFilterModule, CDCUnpackerModule, DAQPerfModule, RxSocketModule, TxSocketModule, DqmHistoManagerModule, MonitorDataModule, TrackAnaModule, Ds2SampleModule, ReceiveEventModule, HLTZMQ2DsModule, HLTZMQ2DsDirectModule, StorageZMQ2DsModule, ElapsedTimeModule, DeSerializerModule, DeSerializerCOPPERModule, DeSerializerFILEModule, DeSerializerHLTModule, DeSerializerPCModule, DeSerializerPrePCModule, DeSerializerPXDModule, DesSerPrePCMainModule, DummyDataSourceModule, DummyDataSourceFileModule, GenRawSendModule, MonitorDataCOPPERModule, Root2RawModule, SerializerModule, CertifyParallelModule, Ds2RawModule, Ds2RbufModule, EvReductionModule, FastRbuf2DsModule, Raw2DsModule, RawInputModule, Rbuf2DsModule, Rbuf2RbufModule, Ds2RawFileModule, PartialSeqRootReaderModule, SeqRootMergerModule, StorageDeserializerModule, StorageRootOutputModule, StorageSerializerModule, DisplayModule, IPDQMModule, PhysicsObjectsDQMModule, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleModule, ECLBackgroundModule, ECLChargedPIDModule, ECLChargedPIDDataAnalysisModule, ECLChargedPIDDataAnalysisValidationModule, ECLChargedPIDMVAModule, ECLClusterPropertiesModule, ECLClusterPSDModule, ECLCompressBGOverlayModule, ECLCovarianceMatrixModule, ECLCRFinderModule, EclCovMatrixNtupleModule, ECLDataAnalysisModule, ECLDigiStudyModule, ECLDigitCalibratorModule, ECLDigitizerModule, ECLDigitizerPureCsIModule, EclDisplayModule, ECLDQMModule, ECLDQMConnectedRegionsModule, ECLDQMEXTENDEDModule, ECLDQMOutOfTimeDigitsModule, ECLDumpGeometryModule, ECLEventT0Module, ECLFillCellIdMappingModule, ECLFinalizerModule, ECLHitDebugModule, ECLLocalMaximumFinderModule, ECLLOMModule, ECLMatchingPerformanceExpertModule, ECLPackerModule, ECLShowerCorrectorModule, ECLShowerShapeModule, ECLSplitterN1Module, ECLSplitterN2Module, ECLTrackBremFinderModule, ECLTrackCalDigitMatchModule, ECLTrackClusterMatchingModule, ECLTrackClusterMatchingParametrizationExpertModule, ECLTrackClusterMatchingPerformanceModule, ECLTRGInformationModule, ECLTriggerClusterMatcherModule, ECLTrimShowersAndDigitsModule, ECLUnpackerModule, eclWaveformCalibCollectorModule, ECLWaveformFitModule, MCMatcherECLClustersModule, CreateConsistencyInfoModule, HistoModule, MergeDataStoreModule, SteerRootInputModule, SubEventModule, SwitchDataStoreModule, EventErrorFlagModule, EventInfoPrinterModule, EventInfoSetterModule, EventLimiterModule, IoVDependentConditionModule, PartialSelectModule, PrescaleModule, PrintCollectionsModule, ProgressBarModule, ProgressModule, PruneDataStoreModule, RandomBarrierModule, TheKillerModule, GearboxModule, HistoManagerModule, ProfileModule, StatisticsSummaryModule, RootInputModule, RootOutputModule, SeqRootInputModule, SeqRootOutputModule, AsyncWrapper, RxModule, TxModule, ZMQRxOutputModule, ZMQRxWorkerModule, ZMQTxInputModule, BBBremInputModule, BHWideInputModule, CRYInputModule, EvtGenDecayModule, FragmentationModule, HepMCInputModule, HepMCOutputModule, BeamParametersModule, BoostMCParticlesModule, CosmicsModule, EventT0GeneratorModule, EventT0ShifterModule, GeneratedVertexDisplacerModule, GeneratorBaseModule, GeneratorPreselectionLeptonicModule, GeneratorPreselectionModule, HepevtInputModule, HepevtOutputModule, InclusiveParticleCheckerModule, LHEInputModule, OverrideGenerationFlagsModule, ParticleGunModule, RemoveMCParticlesModule, SADInputModule, SmearPrimaryVertexModule, TouschekTURTLEInputModule, PairGenModule, TeeggInputModule, FBXWriterModule, CreateFieldMapModule, DensityScalerModule, ExportGeometryModule, GeometryModule, OverlapCheckerModule, VRMLWriterModule, OnlineEventT0CreatorModule, SoftwareTriggerModule, SoftwareTriggerResultPrinterModule, CosmicRayHLTDQMModule, SoftwareTriggerHLTDQMModule, StatisticsTimingHLTDQMModule, BKLMAnaModule, BKLMDigitAnalyzerModule, BKLMSimHistogrammerModule, BKLMTrackingModule, EKLMDataCheckerModule, KLMClusterAnaModule, KLMClusterEfficiencyModule, KLMClustersReconstructorModule, KLMDigitizerModule, KLMDigitTimeShifterModule, KLMDQMModule, KLMDQM2Module, KLMPackerModule, KLMReconstructorModule, KLMScintillatorSimulatorModule, KLMUnpackerModule, MCMatcherKLMClustersModule, MasterClassModule, FixMergedObjectsModule, MVAExpertModule, MVAMultipleExpertsModule, MVAPrototypeModule, AWESOMEBasicModule, PXDBackgroundModule, PXDBeamBackHitFilterModule, PXDRawDQMChipsModule, PXDRawHitMaskingModule, PXDTrackingEventLevelMdstInfoFillerModule, PXDClustersFromTracksModule, PXDPerformanceModule, PXDClusterCheckModule, PXDClusterizerModule, PXDDigitSorterModule, PXDRawHitSorterModule, PXDSpacePointCreatorModule, CheckErrorEventModule, Convert2RawDetModule, DummyDataPackerModule, HexDataPackerModule, MakeDumHSLBDataModule, PrintDataModule, PrintDataTemplateModule, PrintEventRateModule, Root2BinaryModule, CDCDedxCorrectionModule, CDCDedxDQMModule, CDCDedxPIDModule, CDCDedxScanModule, CDCDedxSkimModule, CDCDedxSkimCDSTModule, CDCDedxValidationModule, ClusterMatcherModule, EventT0DQMModule, EventT0ValidationModule, HitLevelInfoWriterModule, DataWriterModule, ECLExpertModule, KLMExpertModule, KlongValidationModule, KLMMuonIDDNNExpertModule, MdstPIDModule, PIDNtupleModule, VXDDedxPIDModule, FullSimModule, FullSimTimingModule, MaterialScanModule, SimulateEventLevelTriggerTimeInfoModule, SVDBackgroundModule, SVDBeamBackHitFilterModule, SVDChannelMappingModule, SVDDatabaseTestModule, SVDHotStripFinderModule, SVDLatencyCalibrationModule, SVDPositionErrorScaleFactorImporterModule, SVDChargeSharingAnalysisModule, SVDClusterQualityEstimatorCalibrationModule, SVDClusterQualityEstimatorModule, SVDCrossTalkFinderModule, SVDDQMHitTimeModule, svdDumpModule, SVDTrackingEventLevelMdstInfoFillerModule, SVDPackerModule, SVDB4CommissioningPlotsModule, SVDClusterEvaluationModule, SVDClusterEvaluationTrueInfoModule, SVDClusterFilterModule, SVDEventT0PerformanceTTreeModule, SVDMaxStripTTreeModule, SVDOccupancyAnalysisModule, SVDPerformanceModule, SVDPerformanceTTreeModule, SVDShaperDigitsFromTracksModule, SVDClusterizerDirectModule, SVDClusterizerModule, SVDCoGTimeEstimatorModule, SVDDataFormatCheckModule, SVDMissingAPVsClusterCreatorModule, SVDNNClusterizerModule, SVDNNShapeReconstructorModule, SVDRecoDigitCreatorModule, SVDShaperDigitSorterModule, SVDSimpleClusterizerModule, SVDStripMaskingModule, SVD3SamplesEmulatorModule, SVDDigitizerModule, SVDEventInfoSetterModule, SVDTriggerQualityGeneratorModule, SVDZeroSuppressionEmulatorModule, SVDSpacePointCreatorModule, SVDSpacePointQICalibrationModule, SVDTimeGroupingModule, SVDUnpackerModule, OpticalGunModule, TOPAlignerModule, TOPBackgroundModule, TOPBunchFinderModule, TOPChannelMaskerModule, TOPChannelT0CalibratorModule, TOPChannelT0MCModule, TOPCommonT0CalibratorModule, TOPCosmicT0FinderModule, TOPDigitizerModule, TOPTriggerDigitizerModule, TOPCalPulseGeneratorModule, TOPDoublePulseGeneratorModule, TOPDQMModule, TOPGainEfficiencyCalculatorModule, TOPLaserHitSelectorModule, TOPGeometryParInitializerModule, TOPInterimFENtupleModule, TOPLaserCalibratorModule, TOPLLScannerModule, TOPMCTrackMakerModule, TOPModuleT0CalibratorModule, TOPNtupleModule, TOPPackerModule, TOPPDFCheckerModule, TOPPDFDebuggerModule, TOPRawDigitConverterModule, TOPReconstructorModule, TOPRingPlotterModule, TOPTBCComparatorModule, TOPTimeBaseCalibratorModule, TOPTimeRecalibratorModule, TOPUnpackerModule, TOPWaveformFeatureExtractorModule, TOPWaveformQualityPlotterModule, TOPXTalkChargeShareSetterModule, DQMHistoModuleBase, SVDEventT0EstimatorModule, ExtModule, BaseRecoFitterModule, FittedTracksStorerModule, RecoTrackCreatorModule, BaseTrackTimeEstimatorModule, FlippedRecoTracksMergerModule, FlipQualityModule, RegisterEventLevelTrackingInfoModule, SetupGenfitExtrapolationModule, GenfitVisModule, BeamSpotMonitorModule, KinkFinderModule, Chi2MCTrackMatcherModule, MCV0MatcherModule, TrackToMCParticleRelatorModule, MCTrackCandClassifierModule, MuidModule, PruneRecoHitsModule, PruneRecoTracksModule, PXDSVDCutModule, ReattachCDCWireHitsToRecoTracksModule, RecoTrackParticleLoaderModule, RecoTracksCopierModule, RecoTracksReverterModule, CDCCKFTracksCombinerModule, MCRelationCreatorModule, RecoTrackStoreArrayCombinerModule, RelatedTracksCombinerModule, MCSlowPionPXDROICreatorModule, PXDclusterFilterModule, PXDROIFinderModule, ROIReadTestModule, SVDROIDQMModule, SVDROIFinderAnalysisDataModule, SVDROIFinderAnalysisModule, SVDROIFinderModule, SVDShaperDigitFilterModule, CurlingTrackCandSplitterModule, GFTC2SPTCConverterModule, PhaseSpaceAnalysisModule, RT2SPTCConverterModule, SpacePoint2TrueHitConnectorModule, SpacePointCreatorTestModule, SPTC2GFTCConverterModule, SPTCmomentumSeedRetrieverModule, SPTCRefereeModule, SPTCvirtualIPRemoverModule, TCConvertersTestModule, StandardTrackingPerformanceModule, TrackCreatorModule, ParallelTrackFilterModule, TrackFilterModule, TrackFinderMCTruthRecoTracksModule, CollectorTestModule, StudyMaterialEffectsModule, TrackDQMModule, TrackingExpressRecoDQMModule, TrackingHLTDQMModule, EffPlotsModule, FillTrackFitNtupleModule, HitXPModule, TrackingPerformanceEvaluationModule, V0findingPerformanceEvaluationModule, TrackQETrainingDataCollectorModule, TrackQualityEstimatorMVAModule, V0FinderModule, VXDCDCTrackMergerModule, OverlapResidualsModule, RawSecMapMergerModule, SecMapTrainerBaseModule, SecMapTrainerVXDTFModule, TrackFinderVXDAnalizerModule, VXDSimpleClusterizerModule, QualityEstimatorVXDModule, VXDQETrainingDataCollectorModule, VXDQualityEstimatorMVAModule, FastBDTClassifierAnalyzerModule, FastBDTClassifierTrainingModule, MLSegmentNetworkProducerModule, NoKickCutsEvalModule, SectorMapBootstrapModule, SegmentNetworkAnalyzerModule, SegmentNetworkProducerModule, SPTC2RTConverterModule, TrackFinderVXDBasicPathFinderModule, TrackFinderVXDCellOMatModule, TrackFinderVXDCosmicsStandaloneModule, VXDTFTrainingDataCollectorModule, FindletModule< AFindlet >, FindletModule< HitBasedT0Extractor >, FindletModule< CKFToSVDSeedFindlet >, FindletModule< CKFToSVDFindlet >, FindletModule< CosmicsTrackMergerFindlet >, FindletModule< DATCONFPGAFindlet >, FindletModule< MCVXDCDCTrackMergerFindlet >, FindletModule< vxdHoughTracking::SVDHoughTracking >, FindletModule< CKFToCDCFindlet >, FindletModule< CKFToCDCFromEclFindlet >, FindletModule< CKFToPXDFindlet >, FindletModule< AsicBackgroundLibraryCreator >, FindletModule< CDCTrackingEventLevelMdstInfoFillerFindlet >, FindletModule< AxialSegmentPairCreator >, FindletModule< AxialStraightTrackFinder >, FindletModule< AxialTrackCreatorMCTruth >, FindletModule< AxialTrackCreatorSegmentHough >, FindletModule< AxialTrackFinderHough >, FindletModule< AxialTrackFinderLegendre >, FindletModule< ClusterBackgroundDetector >, FindletModule< ClusterPreparer >, FindletModule< ClusterRefiner< BridgingWireHitRelationFilter > >, FindletModule< FacetCreator >, FindletModule< HitReclaimer >, FindletModule< MonopoleAxialTrackFinderLegendre >, FindletModule< MonopoleStereoHitFinder >, FindletModule< MonopoleStereoHitFinderQuadratic >, FindletModule< SegmentCreatorFacetAutomaton >, FindletModule< SegmentCreatorMCTruth >, FindletModule< SegmentFinderFacetAutomaton >, FindletModule< SegmentFitter >, FindletModule< SegmentLinker >, FindletModule< SegmentOrienter >, FindletModule< SegmentPairCreator >, FindletModule< SegmentRejecter >, FindletModule< SegmentTrackCombiner >, FindletModule< SegmentTripleCreator >, FindletModule< StereoHitFinder >, FindletModule< SuperClusterCreator >, FindletModule< TrackCombiner >, FindletModule< TrackCreatorSegmentPairAutomaton >, FindletModule< TrackCreatorSegmentTripleAutomaton >, FindletModule< TrackCreatorSingleSegments >, FindletModule< TrackExporter >, FindletModule< TrackFinderAutomaton >, FindletModule< TrackFinderCosmics >, FindletModule< TrackFinder >, FindletModule< TrackFinderSegmentPairAutomaton >, FindletModule< TrackFinderSegmentTripleAutomaton >, FindletModule< TrackFlightTimeAdjuster >, FindletModule< TrackLinker >, FindletModule< TrackOrienter >, FindletModule< TrackQualityAsserter >, FindletModule< TrackQualityEstimator >, FindletModule< TrackRejecter >, FindletModule< WireHitBackgroundDetector >, FindletModule< WireHitCreator >, FindletModule< WireHitPreparer >, CDCTriggerNeuroDQMModule, CDCTriggerNeuroDQMOnlineModule, CDCTrigger2DFitterModule, CDCTrigger3DFitterModule, CDCTriggerHoughETFModule, CDCTrigger2DFinderModule, CDCTriggerMCMatcherModule, CDCTriggerRecoHitMatcherModule, CDCTriggerRecoMatcherModule, CDCTriggerNDFinderModule, CDCTriggerNeuroDataModule, CDCTriggerNeuroIDHistModule, CDCTriggerNeuroModule, CDCTriggerETFModule, CDCTriggerTrackCombinerModule, CDCTriggerTSFFirmwareModule, CDCTriggerTSFModule, TRGCDCModule, TRGCDCETFUnpackerModule, TRGCDCT2DDQMModule, TRGCDCT3DConverterModule, TRGCDCT3DDQMModule, TRGCDCT3DUnpackerModule, TRGCDCTSFDQMModule, TRGCDCTSFUnpackerModule, TRGCDCTSStreamModule, CDCTriggerUnpackerModule, MCMatcherTRGECLModule, TRGECLFAMModule, TRGECLModule, TRGECLBGTCHitModule, TRGECLDQMModule, TRGECLEventTimingDQMModule, TRGECLQAMModule, TRGECLRawdataAnalysisModule, TRGECLTimingCalModule, TRGECLUnpackerModule, TRGGDLCosmicRunModule, TRGGDLModule, TRGGDLDQMModule, TRGGDLDSTModule, TRGGDLSummaryModule, TRGGDLUnpackerModule, TRGGRLMatchModule, TRGGRLModule, TRGGRLProjectsModule, TRGGRLDQMModule, GRLNeuroModule, GRLNeuroTrainerModule, TRGGRLUnpackerModule, KLMTriggerModule, TRGTOPDQMModule, TRGTOPTRD2TTSConverterModule, TRGTOPUnpackerModule, TRGTOPUnpackerWaveformModule, TRGTOPWaveformPlotterModule, TRGRAWDATAModule, VXDMisalignmentModule, NeutralHadronMatcherModule, DQMHistAnalysisARICHModule, DQMHistAnalysisARICHMonObjModule, DQMHistAnalysisCDCDedxModule, DQMHistAnalysisCDCEpicsModule, DQMHistAnalysisCDCMonObjModule, DQMHistAnalysisECLModule, DQMHistAnalysisECLConnectedRegionsModule, DQMHistAnalysisECLOutOfTimeDigitsModule, DQMHistAnalysisECLShapersModule, DQMHistAnalysisECLSummaryModule, DQMHistAnalysisEpicsEnableModule, DQMHistAnalysisEpicsExampleModule, DQMHistAnalysisEventT0EfficiencyModule, DQMHistAnalysisEventT0TriggerJitterModule, DQMHistAnalysisExampleModule, DQMHistAnalysisExampleFlagsModule, DQMHistAnalysisHLTModule, DQMHistAnalysisHLTMonObjModule, DQMHistAnalysisInput2Module, DQMHistAnalysisInputPVSrvModule, DQMHistAnalysisInputRootFileModule, DQMHistAnalysisInputTestModule, DQMHistAnalysisKLMModule, DQMHistAnalysisKLM2Module, DQMHistAnalysisMiraBelleModule, DQMHistAnalysisMonObjModule, DQMHistAnalysisOutputFileModule, DQMHistAnalysisOutputMonObjModule, DQMHistAnalysisOutputRelayMsgModule, DQMHistAnalysisPeakModule, DQMHistAnalysisPXDERModule, DQMHistAnalysisPXDFitsModule, DQMHistAnalysisSVDDoseModule, DQMHistAnalysisSVDEfficiencyModule, DQMHistAnalysisSVDGeneralModule, DQMHistAnalysisSVDOnMiraBelleModule, DQMHistAnalysisTOPModule, DQMHistAnalysisTrackingAbortModule, DQMHistAnalysisTrackingERModule, DQMHistAnalysisTrackingHLTModule, DQMHistAnalysisTRGECLModule, DQMHistAnalysisTRGGDLModule, DQMHistAnalysisV0Module, DQMHistComparitorModule, DQMHistDeltaHistoModule, DQMHistReferenceModule, DQMHistSnapshotsModule, DAQMonitorModule, DelayDQMModule, V0ObjectsDQMModule, ECLDQMInjectionModule, PyModule, PXDBgTupleProducerModule, PXDMCBgTupleProducerModule, PXDDAQDQMModule, PXDDQMClustersModule, PXDDQMCorrModule, PXDDQMEfficiencyModule, PXDDQMEfficiencyNtupleModule, PXDDQMEfficiencyNtupleSelftrackModule, PXDDQMEfficiencySelftrackModule, PXDDQMExpressRecoModule, PXDDQMTrackRawNtupleModule, PXDGatedDHCDQMModule, PXDGatedModeDQMModule, PXDInjectionDQMModule, PXDRawDQMCorrModule, PXDRawDQMModule, PXDROIDQMModule, PXDTrackClusterDQMModule, PXDBadSensorTagModule, PXDEventPlotModule, PXDROIPlotModule, ActivatePXDClusterPositionEstimatorModule, ActivatePXDGainCalibratorModule, ActivatePXDPixelMaskerModule, PXDClusterPropFilterModule, PXDDigitizerModule, PXDInjectionVetoEmulatorModule, PXDGatedInfoFillerModule, PXDPackerErrModule, PXDPackerModule, PXDPostErrorCheckerModule, PXDReadRawBonnDAQModule, PXDReadRawBonnDAQMatchedModule, PXDReadRawONSENModule, PXDUnpackerModule, PXDUnpackerOldModule, PXDUnpackerOTModule, TTDDQMModule, TTDUnpackerModule, SVDDQMClustersOnTrackModule, SVDDQMDoseModule, SVDDQMEfficiencyModule, SVDDQMExpressRecoModule, SVDDQMInjectionModule, SVDUnpackerDQMModule, PXDdigiFilterModule, PXDRawHitFilterModule, PXDROIFinderAnalysisModule, ROIGeneratorModule, ROIPayloadAssemblerModule, ROISenderModule, TrackingAbortDQMModule, AddVXDTrackCandidateSubSetsModule, BestVXDFamilyCandidateSelectorModule, BestVXDTrackCandidatesSelectorModule, SVDOverlapResolverModule, TrackSetEvaluatorGreedyDEVModule, TrackSetEvaluatorHopfieldNNDEVModule, VXDTrackCandidatesQualityIndicatorCutterModule, VXDDQMExpressRecoModule, vxdDigitMaskingModule, PXDRawDumperModule, DQMHistAnalysisDeltaEpicsMonObjExampleModule, DQMHistAnalysisDeltaTestModule, DQMHistAnalysisEpicsOutputModule, DQMHistAnalysisOutputImagesModule, DQMHistAnalysisPhysicsModule, DQMHistAnalysisPXDChargeModule, DQMHistAnalysisPXDCMModule, DQMHistAnalysisPXDDAQModule, DQMHistAnalysisPXDEffModule, DQMHistAnalysisPXDInjectionModule, DQMHistAnalysisPXDReductionModule, DQMHistAnalysisPXDTrackChargeModule, DQMHistAnalysisRooFitExampleModule, DQMHistAnalysisRunNrModule, DQMHistAnalysisTRGModule, DQMHistInjectionModule, DQMHistOutputToEPICSModule, and ROIDQMModule.

Definition at line 109 of file Module.h.

109{};

◆ printAPVSummaryPages()

void printAPVSummaryPages ( )
private

summary page with 2D summary plot with problemtic APVs

Definition at line 841 of file SVDLocalCalibrationsCheckModule.cc.

842{
843
844 TPaveText* pt_cuts_title = new TPaveText(.05, .6, .95, .65);
845 TPaveText* pt_cuts = new TPaveText(.15, .5, .85, .55);
846 char cuts[512];
847 sprintf(cuts, "%s", "APV SUMMARY");
848 pt_cuts_title->SetShadowColor(0);
849 pt_cuts_title->SetBorderSize(0);
850 pt_cuts_title->SetTextSize(0.03);
851 pt_cuts_title->AddText(cuts);
852 sprintf(cuts, "each bin of the plots in the next pages contains the number of problematic APV chips of the sensor");
853 pt_cuts->AddText(cuts);
854 sprintf(cuts, "corresponding to the combination of column (ladder number) and row (layer and sensor number)");
855 pt_cuts->AddText(cuts);
856 pt_cuts->SetTextSize(0.02);
857 pt_cuts->SetShadowColor(0);
858 pt_cuts->SetBorderSize(0);
859 pt_cuts->SetFillColor(10);
860 pt_cuts->SetTextAlign(12);
861
862 TCanvas* explain = new TCanvas();
863 pt_cuts_title->Draw();
864 pt_cuts->Draw();
865 explain->Print(m_outputPdfName.c_str());
866
867 TCanvas* noise = new TCanvas();
868 noise->SetGridx();
869 noise->Divide(2, 2);
870 noise->cd(1);
871 m_hNoiseSummary->getHistogram(1)->Draw("colztext");
872 noise->cd(3);
873 m_hNoiseSummary->getHistogram(0)->Draw("colztext");
874 noise->Print(m_outputPdfName.c_str());
875
876 TCanvas* calpeakADC = new TCanvas();
877 calpeakADC->Divide(2, 2);
878 calpeakADC->cd(1);
879 m_hCalpeakADCSummary->getHistogram(1)->Draw("colztext");
880 calpeakADC->cd(3);
881 m_hCalpeakADCSummary->getHistogram(0)->Draw("colztext");
882 calpeakADC->Print(m_outputPdfName.c_str());
883
884
885
886 TCanvas* pedestal = new TCanvas();
887 pedestal->Divide(2, 2);
888 pedestal->cd(1);
889 m_hPedestalSummary->getHistogram(1)->Draw("colztext");
890 pedestal->cd(3);
891 m_hPedestalSummary->getHistogram(0)->Draw("colztext");
892 pedestal->Print(m_outputPdfName.c_str());
893
894
895}
TH2F * getHistogram(int view)
get a reference to the histogram for

◆ printConfiguration()

void printConfiguration ( )
private

print the configuration of the check of the calibration VS a reference calibration

Definition at line 57 of file SVDLocalCalibrationsCheckModule.cc.

58{
59 B2INFO("SVD Local Calibration Check Configuration");
60 B2INFO("-----------------------------------------");
61 B2INFO("");
62 B2INFO("- input files:");
63 B2INFO(" reference: " << m_idFileNameREF);
64 B2INFO(" check: " << m_idFileNameCHECK);
65 B2INFO("- output file:");
66 B2INFO(" output pdf: " << m_outputPdfName);
67 B2INFO("");
68 B2INFO("- analysis parameters:");
69 B2INFO(" outliers (Noise, Pedestal, CalPeakADC)");
70 B2INFO(" max allowed outliers = " << m_cutN_out);
71 B2INFO(" Noise");
72 B2INFO(" max difference on the APV averages = " << m_cutNoise_ave << " ADC");
73 B2INFO(" max to mark a strip as outlier = " << m_cutNoise_out << " ADC");
74 B2INFO(" CalPeakADC");
75 B2INFO(" max difference on the APV averages = " << m_cutCalpeakADC_ave << " ADC");
76 B2INFO(" max to mark a strip as outlier = " << m_cutCalpeakADC_out << " ADC");
77 B2INFO(" Pedestal");
78 B2INFO(" max difference on the APV averages = " << m_cutPedestal_ave << " ADC");
79 B2INFO(" max to mark a strip as outlier = " << m_cutPedestal_out << " ADC");
80 B2INFO("--------------------------------------------------------------");
81 B2INFO("");
82}

◆ printFirstPage()

void printFirstPage ( )
private

print the first page of the output pdf

Definition at line 419 of file SVDLocalCalibrationsCheckModule.cc.

420{
421
422 TCanvas* empty = new TCanvas();
423 TString pdf_open = TString(m_outputPdfName) + "[";
424 empty->Print(pdf_open);
425
426 TCanvas* first = new TCanvas("open_pag1", "test first page");
427 first->cd();
428 TPaveText* pt_title = new TPaveText(.05, .9, .95, 1, "blNDC");
429 char name[50];
430 sprintf(name, "Local Calibration Check Results");
431 pt_title->AddText(name);
432 pt_title->SetTextFont(42);
433 pt_title->SetTextColor(kBlack);
434 pt_title->SetShadowColor(0);
435 pt_title->SetFillColor(10);
436 pt_title->SetBorderSize(0);
437 pt_title->SetTextSize(0.08);
438 pt_title->Draw();
439
440 TPaveText* pt_input_title = new TPaveText(.05, .8, .95, .85);
441 TPaveText* pt_input = new TPaveText(.05, .72, .8, .8);
442 char input[150];
443 sprintf(input, "%s", "input files");
444 pt_input_title->AddText(input);
445 pt_input_title->SetShadowColor(0);
446 pt_input_title->SetBorderSize(0);
447 pt_input_title->SetTextSize(0.03);
448 if (m_idFileNameREF == "refID")
449 sprintf(input, "reference rootfile = %s", m_rootFileNameREF.c_str());
450 else
451 sprintf(input, " reference ID = %s", m_idFileNameREF.c_str());
452 pt_input->AddText(input);
453 ((TText*)pt_input->GetListOfLines()->Last())->SetTextColor(kRed);
454 if (m_idFileNameCHECK == "checkID")
455 sprintf(input, "calibration rootfile = %s", m_rootFileNameCHECK.c_str());
456 else
457 sprintf(input, "calibration ID = %s", m_idFileNameCHECK.c_str());
458 pt_input->AddText(input);
459 ((TText*)pt_input->GetListOfLines()->Last())->SetTextColor(kBlue);
460 pt_input->SetTextSize(0.02);
461 pt_input->SetTextAlign(12);
462 pt_input->SetShadowColor(0);
463 pt_input->SetBorderSize(0);
464 pt_input->SetFillColor(10);
465
466 pt_input_title->Draw();
467 pt_input->Draw();
468
469 TPaveText* pt_cuts_title = new TPaveText(.05, .65, .95, .7);
470 TPaveText* pt_cuts = new TPaveText(.05, .15, .8, .60);
471 char cuts[512];
472 sprintf(cuts, "%s", "selection criteria");
473 pt_cuts_title->AddText(cuts);
474 pt_cuts_title->SetShadowColor(0);
475 pt_cuts_title->SetBorderSize(0);
476 pt_cuts_title->SetTextSize(0.03);
477 sprintf(cuts, " An APV chip is selected as problematic if passes the criteria on Noise or CalPeakADC or Pedestal");
478 pt_cuts->AddText(cuts);
479 // NOISE
480 sprintf(cuts, " Noise: an APV is problematic if 1. or 2. or 3.");
481 pt_cuts->AddText(cuts);
482 sprintf(cuts, " 1. abs(ref_ave - check_ave) > %1.2f ADC", m_cutNoise_ave);
483 pt_cuts->AddText(cuts);
484 sprintf(cuts, " 2. more than %d strips with a value %1.2f ADC higher than the value of the ref calibration", m_cutN_out,
486 pt_cuts->AddText(cuts);
487 sprintf(cuts, " 3. more than %d strips with a value %1.2f ADC lower than the value of the ref calibration", m_cutN_out,
489 pt_cuts->AddText(cuts);
490 // CALPEAK ADC
491 sprintf(cuts, " CalPeakADC: an APV is problematic if 1. or 2. or 3.");
492 pt_cuts->AddText(cuts);
493 sprintf(cuts, " 1. abs(ref_ave - check_ave) > %1.2f ADC", m_cutCalpeakADC_ave);
494 pt_cuts->AddText(cuts);
495 sprintf(cuts, " 2. more than %d strips with a value %1.1f ADC higher than the value of the ref calibration", m_cutN_out,
497 pt_cuts->AddText(cuts);
498 sprintf(cuts, " 3. more than %d strips with a value %1.1f ADC lower than the value of the ref calibration", m_cutN_out,
500 pt_cuts->AddText(cuts);
501 // PEDESTAL
502 sprintf(cuts, " Pedestal: an APV is problematic if 1. or 2. or 3.");
503 pt_cuts->AddText(cuts);
504 sprintf(cuts, " 1. abs(ref_ave - check_ave) > %1.1f ADC", m_cutPedestal_ave);
505 pt_cuts->AddText(cuts);
506 sprintf(cuts, " 2. more than %d strips with a value %1.1f ADC higher than the value of the ref calibration", m_cutN_out,
508 pt_cuts->AddText(cuts);
509 sprintf(cuts, " 3. more than %d strips with a value %1.1f ADC lower than the value of the ref calibration", m_cutN_out,
511 pt_cuts->AddText(cuts);
512 sprintf(cuts,
513 " where:");
514 pt_cuts->AddText(cuts);
515 sprintf(cuts,
516 " - {ref,check}_ave is the variable averaged on one APV chip of the reference or the check calibration");
517 pt_cuts->AddText(cuts);
518 sprintf(cuts,
519 " - 1 2 and 3 are the problem ID printed on screen while running the python script");
520 pt_cuts->AddText(cuts);
521 pt_cuts->SetTextSize(0.02);
522 pt_cuts->SetShadowColor(0);
523 pt_cuts->SetBorderSize(0);
524 pt_cuts->SetFillColor(10);
525 pt_cuts->SetTextAlign(12);
526
527 pt_cuts_title->Draw();
528 pt_cuts->Draw();
529
530 TPaveText* pt_tag_title = new TPaveText(.05, .03, .95, .07);
531 char tag[100];
532 sprintf(tag, "analysis algorithm ID 1.0");
533 pt_tag_title->AddText(tag);
534 // pt_tag_title->SetTextFont(62);
535 pt_tag_title->SetShadowColor(0);
536 pt_tag_title->SetFillColor(18);
537 pt_tag_title->SetBorderSize(0);
538 pt_tag_title->SetTextSize(0.02);
539 pt_tag_title->Draw();
540 first->Print(m_outputPdfName.c_str());
541}

◆ printLastPage()

void printLastPage ( )
private

print last empty page

Definition at line 949 of file SVDLocalCalibrationsCheckModule.cc.

950{
951
952 TCanvas* empty = new TCanvas();
953 TString pdf_close = TString(m_outputPdfName) + "]";
954 empty->Print(pdf_close);
955
956
957}

◆ printLayerPage()

void printLayerPage ( int  layer)
private

print layer-number page

Definition at line 543 of file SVDLocalCalibrationsCheckModule.cc.

544{
545
546 TCanvas* cLayer = new TCanvas();
547 cLayer->cd();
548 TPaveText* pt_title = new TPaveText(.05, .4, .95, 0.6, "blNDC");
549 char name[50];
550 sprintf(name, "Layer %d", layer);
551 pt_title->AddText(name);
552 pt_title->SetTextFont(42);
553 pt_title->SetTextColor(kBlack);
554 pt_title->SetShadowColor(0);
555 pt_title->SetFillColor(10);
556 pt_title->SetBorderSize(0);
557 pt_title->SetTextSize(0.08);
558 pt_title->Draw();
559 cLayer->Print(m_outputPdfName.c_str());
560
561}

◆ printMaskedSummaryPages()

void printMaskedSummaryPages ( )
private

summary page with Masked strips summary plot

Definition at line 897 of file SVDLocalCalibrationsCheckModule.cc.

898{
899
900 TPaveText* pt_cuts_title = new TPaveText(.05, .6, .95, .65);
901 TPaveText* pt_cuts = new TPaveText(.15, .4, .85, .55);
902 char cuts[512];
903 sprintf(cuts, "%s", "Masked Strips SUMMARY");
904 pt_cuts_title->SetShadowColor(0);
905 pt_cuts_title->SetBorderSize(0);
906 pt_cuts_title->SetTextSize(0.03);
907 pt_cuts_title->AddText(cuts);
908 float nU = 768 * (2 * 7 + 3 * 10 + 4 * 12 + 5 * 16);
909 float nV = 512 * (2 * 7) + 768 * (3 * 10 + 4 * 12 + 5 * 16);
910 sprintf(cuts, "Number of MASKED strips on the u/P side in the REF calibration = %d (%.3f)%%", m_nMaskedUREF,
911 m_nMaskedUREF * 100. / nU);
912 pt_cuts->AddText(cuts);
913 sprintf(cuts, "Number of MASKED strips on the u/P side in the CHECK calibration = %d (%.3f)%%", m_nMaskedUCHECK,
914 m_nMaskedUCHECK * 100. / nU);
915 pt_cuts->AddText(cuts);
916 sprintf(cuts, "Number of MASKED strips on the v/N side in the REF calibration = %d (%.3f)%%", m_nMaskedVREF,
917 m_nMaskedVREF * 100. / nV);
918 pt_cuts->AddText(cuts);
919 sprintf(cuts, "Number of MASKED strips on the v/N side in the CHECK calibration = %d (%.3f)%%", m_nMaskedVCHECK,
920 m_nMaskedVCHECK * 100. / nV);
921 pt_cuts->AddText(cuts);
922 pt_cuts->SetTextSize(0.02);
923 pt_cuts->SetShadowColor(0);
924 pt_cuts->SetBorderSize(0);
925 pt_cuts->SetFillColor(10);
926 pt_cuts->SetTextAlign(12);
927
928 TCanvas* explain = new TCanvas();
929 pt_cuts_title->Draw();
930 pt_cuts->Draw();
931 explain->Print(m_outputPdfName.c_str());
932
933 TCanvas* mask = new TCanvas();
934 mask->SetGridx();
935 mask->Divide(2, 2);
936 mask->cd(1);
937 m_hMaskSummary->getHistogram(1)->Draw("colztext");
938 mask->cd(2);
939 m_hMaskSummaryCHECK->getHistogram(1)->Draw("colztext");
940 mask->cd(3);
941 m_hMaskSummary->getHistogram(0)->Draw("colztext");
942 mask->cd(4);
943 m_hMaskSummaryCHECK->getHistogram(0)->Draw("colztext");
944 mask->Print(m_outputPdfName.c_str());
945
946
947}

◆ printPage()

void printPage ( VxdID  theVxdID,
TList *  listUBAD,
TList *  listVBAD,
TList *  listUGOOD,
TList *  listVGOOD,
TString  variable,
bool  isL3 
)
private

print the page relative to a sensor with problematic APVs

Definition at line 563 of file SVDLocalCalibrationsCheckModule.cc.

565{
566
567 TH2F* refU = nullptr;
568 TH2F* refV = nullptr;
569 TH2F* checkU = nullptr;
570 TH2F* checkV = nullptr;
571
572 Int_t minY = 0;
573 Int_t maxY = 0;
574
575 Float_t leftLine = 0;
576 Float_t rightLine = 0;
577 Float_t topLine = 0;
578
579 if (variable == "Noise") {
580 refU = m_h2NoiseREF->getHistogram(theVxdID, 1);
581 refV = m_h2NoiseREF->getHistogram(theVxdID, 0);
582 checkU = m_h2NoiseCHECK->getHistogram(theVxdID, 1);
583 checkV = m_h2NoiseCHECK->getHistogram(theVxdID, 0);
584 // minY = refU->GetYaxis()->GetXmin();
585 // maxY = refU->GetYaxis()->GetXmax();
586 minY = 0;
587 maxY = 6;
588 leftLine = -m_cutNoise_out;
589 rightLine = m_cutNoise_out;
590 topLine = 5;
591 } else if (variable == "CalpeakADC") {
592 refU = m_h2CalpeakADCREF->getHistogram(theVxdID, 1);
593 refV = m_h2CalpeakADCREF->getHistogram(theVxdID, 0);
594 checkU = m_h2CalpeakADCCHECK->getHistogram(theVxdID, 1);
595 checkV = m_h2CalpeakADCCHECK->getHistogram(theVxdID, 0);
596 minY = refU->GetYaxis()->GetXmin();
597 maxY = refU->GetYaxis()->GetXmax();
598 leftLine = -m_cutCalpeakADC_out;
599 rightLine = m_cutCalpeakADC_out;
600 topLine = 15;
601 } else if (variable == "CalpeakTime") {
602 refU = m_h2CalpeakTimeREF->getHistogram(theVxdID, 1);
603 refV = m_h2CalpeakTimeREF->getHistogram(theVxdID, 0);
604 checkU = m_h2CalpeakTimeCHECK->getHistogram(theVxdID, 1);
605 checkV = m_h2CalpeakTimeCHECK->getHistogram(theVxdID, 0);
606 minY = refU->GetYaxis()->GetXmin();
607 maxY = refU->GetYaxis()->GetXmax();
608 } else if (variable == "Pedestal") {
609 refU = m_h2PedestalREF->getHistogram(theVxdID, 1);
610 refV = m_h2PedestalREF->getHistogram(theVxdID, 0);
611 checkU = m_h2PedestalCHECK->getHistogram(theVxdID, 1);
612 checkV = m_h2PedestalCHECK->getHistogram(theVxdID, 0);
613 // minY = refU->GetYaxis()->GetXmin();
614 // maxY = refU->GetYaxis()->GetXmax();
615 minY = 250;
616 maxY = 500;
617 leftLine = -m_cutPedestal_out;
618 rightLine = m_cutPedestal_out;
619 topLine = 25;
620 } else {
621 B2FATAL("The printPage function is not implemented for" << LogVar("variable", variable));
622 }
623 refU->GetYaxis()->SetRangeUser(minY, maxY);
624 refV->GetYaxis()->SetRangeUser(minY, maxY);
625 checkU->GetYaxis()->SetRangeUser(minY, maxY);
626 checkV->GetYaxis()->SetRangeUser(minY, maxY);
627
628 refU->SetMarkerColor(kRed);
629 refV->SetMarkerColor(kRed);
630 checkU->SetMarkerColor(kBlue);
631 checkV->SetMarkerColor(kBlue);
632
633 float min = minY;
634 float max = maxY;
635
636 //create outliers lines
637 TLine lLeft(leftLine, 0, leftLine, topLine);
638 TLine lRight(rightLine, 0, rightLine, topLine);
639 lLeft.SetLineColor(15);
640 lRight.SetLineColor(15);
641 lLeft.SetLineStyle(kDashed);
642 lRight.SetLineStyle(kDashed);
643
644 //create APVlines
645 TLine l1(128, min, 128, max);
646 TLine l2(128 * 2, min, 128 * 2, max);
647 TLine l3(128 * 3, min, 128 * 3, max);
648 TLine l4(128 * 4, min, 128 * 4, max);
649 TLine l5(128 * 5, min, 128 * 5, max);
650 l1.SetLineColor(15);
651 l2.SetLineColor(15);
652 l3.SetLineColor(15);
653 l4.SetLineColor(15);
654 l5.SetLineColor(15);
655 TCanvas* c = new TCanvas();
656 TPaveText* pt_sensorID = new TPaveText(.495, 0.485, .505, 0.505, "blNDC");
657 char name[50];
658 sprintf(name, "%d.%d.%.d", theVxdID.getLayerNumber(), theVxdID.getLadderNumber(), theVxdID.getSensorNumber());
659 pt_sensorID->AddText(name);
660 pt_sensorID->SetTextFont(82);
661 pt_sensorID->SetTextColor(kBlack);
662 pt_sensorID->SetShadowColor(0);
663 pt_sensorID->SetFillColor(10);
664 pt_sensorID->SetBorderSize(0);
665 pt_sensorID->SetTextSize(0.08);
666
667
668 c->Divide(2, 2);
669 c->cd(1);
670 refU->Draw();
671 l1.Draw("same");
672 l2.Draw("same");
673 l3.Draw("same");
674 l4.Draw("same");
675 l5.Draw("same");
676 refU->Draw("same");
677 checkU->Draw("same");
678 m_leg2D->Draw("same");
679
680 c->cd(2);
681 TH1F* objDiff;
682 int count = 0;
683 if (m_plotGoodAPVs) {
684 TIter nextH_uGood(listUGOOD);
685 while ((objDiff = (TH1F*)nextH_uGood())) {
686 objDiff->SetFillStyle(3004);
687 if (count == 0)
688 objDiff->Draw();
689 else
690 objDiff->Draw("same");
691 count++;
692 }
693 }
694 TIter nextH_uBad(listUBAD);
695 while ((objDiff = (TH1F*)nextH_uBad())) {
696 objDiff->SetFillStyle(0);
697 if (count == 0)
698 objDiff->Draw();
699 else
700 objDiff->Draw("same");
701 count++;
702 }
703 if (count > 0) {
704 lLeft.Draw("same");
705 lRight.Draw("same");
706 m_legU->Draw("same");
707 }
708
709 c->cd(3);
710 refV->Draw();
711 l1.Draw("same");
712 l2.Draw("same");
713 l3.Draw("same");
714 if (isL3) {
715 l4.Draw("same");
716 l5.Draw("same");
717 }
718
719 refV->Draw("same");
720 checkV->Draw("same");
721 m_leg2D->Draw("same");
722
723 c->cd(4);
724 TIter nextH_vBad(listVBAD);
725 count = 0;
726 if (m_plotGoodAPVs) {
727 TIter nextH_vGood(listVGOOD);
728 while ((objDiff = (TH1F*)nextH_vGood())) {
729 objDiff->SetFillStyle(3004);
730 if (count == 0)
731 objDiff->Draw();
732 else
733 objDiff->Draw("same");
734 count++;
735 }
736 }
737 while ((objDiff = (TH1F*)nextH_vBad())) {
738 objDiff->SetFillStyle(0);
739 if (count == 0)
740 objDiff->Draw();
741 else
742 objDiff->Draw("same");
743 count++;
744 }
745 if (count > 0) {
746 lLeft.Draw("same");
747 lRight.Draw("same");
748 if (isL3)
749 m_legU->Draw("same");
750 else
751 m_legV->Draw("same");
752 }
753 c->cd();
754 if (variable == "Noise")
755 pt_sensorID->Draw("same");
756 c->Print(m_outputPdfName.c_str());
757
758}
H * getHistogram(const VxdID &vxdID, int view)
get a reference to the histogram for
Definition: SVDHistograms.h:56
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
baseType getLadderNumber() const
Get the ladder id.
Definition: VxdID.h:98
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96
Class to store variables with their name which were sent to the logging service.

◆ setAbortLevel()

void setAbortLevel ( int  abortLevel)
inherited

Configure the abort log level.

Definition at line 67 of file Module.cc.

68{
69 m_logConfig.setAbortLevel(static_cast<LogConfig::ELogLevel>(abortLevel));
70}
ELogLevel
Definition of the supported log levels.
Definition: LogConfig.h:26
void setAbortLevel(ELogLevel abortLevel)
Configure the abort level.
Definition: LogConfig.h:112

◆ setAPVHistoStyles()

void setAPVHistoStyles ( SVDAPVHistograms< TH1F > *  m_APVhistos)
private

set style of APV histograms

Definition at line 786 of file SVDLocalCalibrationsCheckModule.cc.

787{
788
790 std::set<Belle2::VxdID> svdLayers = aGeometry.getLayers(VXD::SensorInfoBase::SVD);
791 std::set<Belle2::VxdID>::iterator itSvdLayers = svdLayers.begin();
792
793 while ((itSvdLayers != svdLayers.end()) && (itSvdLayers->getLayerNumber() != 7)) { //loop on Layers
794
795 std::set<Belle2::VxdID> svdLadders = aGeometry.getLadders(*itSvdLayers);
796 std::set<Belle2::VxdID>::iterator itSvdLadders = svdLadders.begin();
797
798 while (itSvdLadders != svdLadders.end()) { //loop on Ladders
799
800 std::set<Belle2::VxdID> svdSensors = aGeometry.getSensors(*itSvdLadders);
801 std::set<Belle2::VxdID>::iterator itSvdSensors = svdSensors.begin();
802
803 while (itSvdSensors != svdSensors.end()) { //loop on sensors
804
805 int layer = itSvdSensors->getLayerNumber();
806 int ladder = itSvdSensors->getLadderNumber();
807 int sensor = itSvdSensors->getSensorNumber();
808 Belle2::VxdID theVxdID(layer, ladder, sensor);
809 const SVD::SensorInfo* currentSensorInfo = dynamic_cast<const SVD::SensorInfo*>(&VXD::GeoCache::getInstance().getSensorInfo(
810 theVxdID));
811
812 for (int side = 0; side < 2; side++) {
813
814 int Ncells = currentSensorInfo->getUCells();
815 if (side == 0)
816 Ncells = currentSensorInfo->getVCells();
817
818 int Napv = Ncells / 128;
819
820 for (int m_APV = 0; m_APV < Napv; m_APV++) {
821
822 TH1F* h = m_APVhistos->getHistogram(theVxdID, side, m_APV);
823
824 h->SetFillColor(m_apvColors[m_APV]);
825 h->SetLineColor(m_apvColors[m_APV]);
826 h->SetMarkerColor(m_apvColors[m_APV]);
827 }
828 }
829
830 ++itSvdSensors;
831 }
832 ++itSvdLadders;
833 }
834 ++itSvdLayers;
835 }
836
837
838}

◆ setDebugLevel()

void setDebugLevel ( int  debugLevel)
inherited

Configure the debug messaging level.

Definition at line 61 of file Module.cc.

62{
63 m_logConfig.setDebugLevel(debugLevel);
64}
void setDebugLevel(int debugLevel)
Configure the debug messaging level.
Definition: LogConfig.h:98

◆ setDescription()

void setDescription ( const std::string &  description)
protectedinherited

Sets the description of the module.

Parameters
descriptionA description of the module.

Definition at line 214 of file Module.cc.

215{
216 m_description = description;
217}

◆ setLogConfig()

void setLogConfig ( const LogConfig logConfig)
inlineinherited

Set the log system configuration.

Definition at line 230 of file Module.h.

230{m_logConfig = logConfig;}

◆ setLogInfo()

void setLogInfo ( int  logLevel,
unsigned int  logInfo 
)
inherited

Configure the printed log information for the given level.

Parameters
logLevelThe log level (one of LogConfig::ELogLevel)
logInfoWhat kind of info should be printed? ORed combination of LogConfig::ELogInfo flags.

Definition at line 73 of file Module.cc.

74{
75 m_logConfig.setLogInfo(static_cast<LogConfig::ELogLevel>(logLevel), logInfo);
76}
void setLogInfo(ELogLevel logLevel, unsigned int logInfo)
Configure the printed log information for the given level.
Definition: LogConfig.h:127

◆ setLogLevel()

void setLogLevel ( int  logLevel)
inherited

Configure the log level.

Definition at line 55 of file Module.cc.

56{
57 m_logConfig.setLogLevel(static_cast<LogConfig::ELogLevel>(logLevel));
58}
void setLogLevel(ELogLevel logLevel)
Configure the log level.
Definition: LogConfig.cc:25

◆ setName()

void setName ( const std::string &  name)
inlineinherited

Set the name of the module.

Note
The module name is set when using the REG_MODULE macro, but the module can be renamed before calling process() using the set_name() function in your steering file.
Parameters
nameThe name of the module

Definition at line 214 of file Module.h.

214{ m_name = name; };

◆ setParamList()

void setParamList ( const ModuleParamList params)
inlineprotectedinherited

Replace existing parameter list.

Definition at line 501 of file Module.h.

501{ m_moduleParamList = params; }

◆ setParamPython()

void setParamPython ( const std::string &  name,
const boost::python::object &  pyObj 
)
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.

Parameters
nameThe unique name of the parameter.
pyObjThe object which should be converted and stored as the parameter value.

Definition at line 234 of file Module.cc.

235{
236 LogSystem& logSystem = LogSystem::Instance();
237 logSystem.updateModule(&(getLogConfig()), getName());
238 try {
240 } catch (std::runtime_error& e) {
241 throw std::runtime_error("Cannot set parameter '" + name + "' for module '"
242 + m_name + "': " + e.what());
243 }
244
245 logSystem.updateModule(nullptr);
246}
Class for logging debug, info and error messages.
Definition: LogSystem.h:46
void updateModule(const LogConfig *moduleLogConfig=nullptr, const std::string &moduleName="")
Sets the log configuration to the given module log configuration and sets the module name This method...
Definition: LogSystem.h:191
static LogSystem & Instance()
Static method to get a reference to the LogSystem instance.
Definition: LogSystem.cc:31
void setParamPython(const std::string &name, const PythonObject &pyObj)
Implements a method for setting boost::python objects.

◆ setParamPythonDict()

void setParamPythonDict ( const boost::python::dict &  dictionary)
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.

Parameters
dictionaryThe python dictionary from which the parameter values are read.

Definition at line 249 of file Module.cc.

250{
251
252 LogSystem& logSystem = LogSystem::Instance();
253 logSystem.updateModule(&(getLogConfig()), getName());
254
255 boost::python::list dictKeys = dictionary.keys();
256 int nKey = boost::python::len(dictKeys);
257
258 //Loop over all keys in the dictionary
259 for (int iKey = 0; iKey < nKey; ++iKey) {
260 boost::python::object currKey = dictKeys[iKey];
261 boost::python::extract<std::string> keyProxy(currKey);
262
263 if (keyProxy.check()) {
264 const boost::python::object& currValue = dictionary[currKey];
265 setParamPython(keyProxy, currValue);
266 } else {
267 B2ERROR("Setting the module parameters from a python dictionary: invalid key in dictionary!");
268 }
269 }
270
271 logSystem.updateModule(nullptr);
272}
void setParamPython(const std::string &name, const boost::python::object &pyObj)
Implements a method for setting boost::python objects.
Definition: Module.cc:234

◆ setPropertyFlags()

void setPropertyFlags ( unsigned int  propertyFlags)
inherited

Sets the flags for the module properties.

Parameters
propertyFlagsbitwise OR of EModulePropFlags

Definition at line 208 of file Module.cc.

209{
210 m_propertyFlags = propertyFlags;
211}

◆ setReturnValue() [1/2]

void setReturnValue ( bool  value)
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.

Parameters
valueThe value of the return value.

Definition at line 227 of file Module.cc.

228{
229 m_hasReturnValue = true;
230 m_returnValue = value;
231}

◆ setReturnValue() [2/2]

void setReturnValue ( int  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.

Parameters
valueThe value of the return value.

Definition at line 220 of file Module.cc.

221{
222 m_hasReturnValue = true;
223 m_returnValue = value;
224}

◆ setType()

void setType ( const std::string &  type)
protectedinherited

Set the module type.

Only for use by internal modules (which don't use the normal REG_MODULE mechanism).

Definition at line 48 of file Module.cc.

49{
50 if (!m_type.empty())
51 B2FATAL("Trying to change module type from " << m_type << " is not allowed, the value is assumed to be fixed.");
52 m_type = type;
53}

◆ terminate()

virtual void terminate ( void  )
inlinevirtualinherited

This method is called at the end of the event processing.

This method is called only once after the event processing finished. Use this method for cleaning up, closing files, etc.

This method can be implemented by subclasses.

Reimplemented in ARICHBackgroundModule, BeamabortModule, BgoModule, CaveModule, ClawModule, CLAWSModule, DosiModule, FANGSModule, He3tubeModule, MicrotpcModule, Ph1bpipeModule, Ph1sustrModule, PindiodeModule, PlumeModule, QcsmonitorModule, SrsensorModule, GetEventFromSocketModule, CalibrationCollectorModule, CosmicsAlignmentValidationModule, CurlTaggerModule, EventKinematicsModule, FlavorTaggerInfoFillerModule, LowEnergyPi0IdentificationExpertModule, LowEnergyPi0VetoExpertModule, ParticleKinematicFitterModule, ParticleLoaderModule, ParticleMassHypothesesUpdaterModule, ParticleMassUpdaterModule, ParticleMCDecayStringModule, ParticleMomentumUpdaterModule, ParticleStatsModule, ParticleWeightingLookUpCreatorModule, RemoveParticlesNotInListsModule, SkimFilterModule, TreeFitterModule, VariablesToEventBasedTreeModule, VariablesToHistogramModule, VariablesToNtupleModule, arichBtestModule, ARICHNtupleModule, arichToNtupleModule, B2BIIMCParticlesMonitorModule, B2BIIConvertMdstModule, B2BIIFixMdstModule, B2BIIMdstInputModule, BelleMCOutputModule, BeamBkgGeneratorModule, BeamBkgHitRateMonitorModule, BeamBkgMixerModule, BeamBkgTagSetterModule, BGOverlayInputModule, AnalysisPhase1StudyModule, NtuplePhase1_v6Module, ReprocessorModule, BeamabortStudyModule, BeamDigitizerModule, BgoDigitizerModule, BgoStudyModule, ClawDigitizerModule, ClawStudyModule, ClawsDigitizerModule, ClawsStudyModule, CsiDigitizer_v2Module, CsIDigitizerModule, CsiModule, CsiStudy_v2Module, CsIStudyModule, DosiDigitizerModule, DosiStudyModule, FANGSDigitizerModule, FANGSStudyModule, He3DigitizerModule, He3tubeStudyModule, MicrotpcStudyModule, TpcDigitizerModule, PinDigitizerModule, PindiodeStudyModule, PlumeDigitizerModule, QcsmonitorDigitizerModule, QcsmonitorStudyModule, CDCCosmicAnalysisModule, CDCCrossTalkAdderModule, CDCCRTestModule, CDCDigitizerModule, cdcDQM7Module, CDCDQMModule, ScanCDCGeoModule, CDCInitialT0DeterminationModule, CDCPackerModule, CDCRecoTrackFilterModule, CDCUnpackerModule, DAQPerfModule, RxSocketModule, TxSocketModule, DqmHistoManagerModule, MonitorDataModule, TrackAnaModule, Ds2SampleModule, ReceiveEventModule, HLTDQM2ZMQModule, HLTDs2ZMQModule, ElapsedTimeModule, DeSerializerModule, DeSerializerPXDModule, GenRawSendModule, Root2RawModule, SerializerModule, CertifyParallelModule, Ds2RawModule, Ds2RbufModule, EvReductionModule, FastRbuf2DsModule, Raw2DsModule, RawInputModule, Rbuf2DsModule, Rbuf2RbufModule, Ds2RawFileModule, PartialSeqRootReaderModule, SeqRootMergerModule, StorageDeserializerModule, StorageRootOutputModule, StorageSerializerModule, DisplayModule, PhysicsObjectsDQMModule, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleModule, ECLBackgroundModule, ECLChargedPIDModule, ECLChargedPIDDataAnalysisModule, ECLChargedPIDDataAnalysisValidationModule, ECLClusterPSDModule, ECLCompressBGOverlayModule, ECLCovarianceMatrixModule, ECLCRFinderModule, EclCovMatrixNtupleModule, ECLDataAnalysisModule, ECLDigiStudyModule, ECLDigitCalibratorModule, ECLDigitizerModule, ECLDigitizerPureCsIModule, EclDisplayModule, ECLDQMModule, ECLDQMEXTENDEDModule, ECLDQMOutOfTimeDigitsModule, ECLFillCellIdMappingModule, ECLFinalizerModule, ECLHitDebugModule, ECLLocalMaximumFinderModule, ECLLOMModule, ECLMatchingPerformanceExpertModule, ECLPackerModule, ECLShowerCorrectorModule, ECLShowerShapeModule, ECLSplitterN1Module, ECLSplitterN2Module, ECLTrackClusterMatchingModule, ECLTrackClusterMatchingParametrizationExpertModule, ECLTrackClusterMatchingPerformanceModule, ECLTRGInformationModule, ECLTrimShowersAndDigitsModule, ECLUnpackerModule, eclWaveformCalibCollectorModule, ECLWaveformFitModule, HistoModule, MergeDataStoreModule, SubEventModule, SwitchDataStoreModule, ProgressBarModule, RandomBarrierModule, HistoManagerModule, ProfileModule, RootInputModule, RootOutputModule, SeqRootInputModule, SeqRootOutputModule, AsyncWrapper, RxModule, TxModule, ZMQRxOutputModule, ZMQRxWorkerModule, ZMQTxInputModule, ZMQTxWorkerModule, AafhInputModule, BabayagaNLOInputModule, BBBremInputModule, BHWideInputModule, CRYInputModule, EvtGenDecayModule, FragmentationModule, HepMCInputModule, HepMCOutputModule, GeneratedVertexDisplacerModule, GeneratorPreselectionModule, HepevtOutputModule, OverrideGenerationFlagsModule, RemoveMCParticlesModule, KKGenInputModule, KoralWInputModule, PhokharaInputModule, TeeggInputModule, TrepsInputModule, GeometryModule, SoftwareTriggerModule, SoftwareTriggerResultPrinterModule, BKLMAnaModule, BKLMDigitAnalyzerModule, BKLMSimHistogrammerModule, BKLMTrackingModule, EKLMDataCheckerModule, KLMClusterEfficiencyModule, KLMClustersReconstructorModule, KLMDigitizerModule, KLMDQMModule, KLMDQM2Module, KLMPackerModule, KLMReconstructorModule, KLMScintillatorSimulatorModule, KLMUnpackerModule, MasterClassModule, MVAExpertModule, MVAMultipleExpertsModule, AWESOMEBasicModule, PXDBackgroundModule, PXDClustersFromTracksModule, PXDPerformanceModule, PXDSpacePointCreatorModule, CheckErrorEventModule, Convert2RawDetModule, Root2BinaryModule, CDCDedxCorrectionModule, CDCDedxDQMModule, CDCDedxPIDModule, CDCDedxScanModule, CDCDedxSkimModule, CDCDedxSkimCDSTModule, CDCDedxValidationModule, HitLevelInfoWriterModule, DataWriterModule, ECLExpertModule, KLMExpertModule, KlongValidationModule, KLMMuonIDDNNExpertModule, PIDNtupleModule, VXDDedxPIDModule, FullSimModule, FullSimTimingModule, SVDBackgroundModule, SVDChannelMappingModule, SVDHotStripFinderModule, SVDChargeSharingAnalysisModule, SVDClusterQualityEstimatorCalibrationModule, SVDClusterQualityEstimatorModule, SVDCrossTalkFinderModule, svdDumpModule, SVDPackerModule, SVDClusterEvaluationTrueInfoModule, SVDClusterFilterModule, SVDEventT0PerformanceTTreeModule, SVDMaxStripTTreeModule, SVDPerformanceTTreeModule, SVDShaperDigitsFromTracksModule, SVDCoGTimeEstimatorModule, SVDDataFormatCheckModule, SVD3SamplesEmulatorModule, SVDDigitizerModule, SVDTriggerQualityGeneratorModule, SVDSpacePointCreatorModule, SVDSpacePointQICalibrationModule, TOPAlignerModule, TOPBackgroundModule, TOPBunchFinderModule, TOPChannelT0CalibratorModule, TOPChannelT0MCModule, TOPCommonT0CalibratorModule, TOPCosmicT0FinderModule, TOPTriggerDigitizerModule, TOPDoublePulseGeneratorModule, TOPGainEfficiencyCalculatorModule, TOPLaserHitSelectorModule, TOPInterimFENtupleModule, TOPLaserCalibratorModule, TOPLLScannerModule, TOPMCTrackMakerModule, TOPModuleT0CalibratorModule, TOPNtupleModule, TOPPackerModule, TOPPDFCheckerModule, TOPRawDigitConverterModule, TOPRingPlotterModule, TOPTBCComparatorModule, TOPTimeBaseCalibratorModule, TOPUnpackerModule, TOPWaveformFeatureExtractorModule, TOPXTalkChargeShareSetterModule, ExtModule, GenfitVisModule, BeamSpotMonitorModule, KinkFinderModule, Chi2MCTrackMatcherModule, MCV0MatcherModule, MCTrackCandClassifierModule, MuidModule, ROIReadTestModule, SVDROIFinderAnalysisDataModule, SVDROIFinderAnalysisModule, SVDROIFinderModule, CurlingTrackCandSplitterModule, GFTC2SPTCConverterModule, PhaseSpaceAnalysisModule, RT2SPTCConverterModule, SpacePoint2TrueHitConnectorModule, SpacePointCreatorTestModule, SPTC2GFTCConverterModule, SPTCRefereeModule, TCConvertersTestModule, StandardTrackingPerformanceModule, TrackFilterModule, CollectorTestModule, StudyMaterialEffectsModule, EffPlotsModule, FillTrackFitNtupleModule, HitXPModule, TrackingPerformanceEvaluationModule, V0findingPerformanceEvaluationModule, TrackQETrainingDataCollectorModule, V0FinderModule, SecMapTrainerBaseModule, SecMapTrainerVXDTFModule, TrackFinderVXDAnalizerModule, VXDQETrainingDataCollectorModule, FastBDTClassifierAnalyzerModule, FastBDTClassifierTrainingModule, MLSegmentNetworkProducerModule, NoKickCutsEvalModule, SegmentNetworkAnalyzerModule, SPTC2RTConverterModule, VXDTFTrainingDataCollectorModule, FindletModule< AFindlet >, FindletModule< HitBasedT0Extractor >, FindletModule< CKFToSVDSeedFindlet >, FindletModule< CKFToSVDFindlet >, FindletModule< CosmicsTrackMergerFindlet >, FindletModule< DATCONFPGAFindlet >, FindletModule< MCVXDCDCTrackMergerFindlet >, FindletModule< vxdHoughTracking::SVDHoughTracking >, FindletModule< CKFToCDCFindlet >, FindletModule< CKFToCDCFromEclFindlet >, FindletModule< CKFToPXDFindlet >, FindletModule< AsicBackgroundLibraryCreator >, FindletModule< CDCTrackingEventLevelMdstInfoFillerFindlet >, FindletModule< AxialSegmentPairCreator >, FindletModule< AxialStraightTrackFinder >, FindletModule< AxialTrackCreatorMCTruth >, FindletModule< AxialTrackCreatorSegmentHough >, FindletModule< AxialTrackFinderHough >, FindletModule< AxialTrackFinderLegendre >, FindletModule< ClusterBackgroundDetector >, FindletModule< ClusterPreparer >, FindletModule< ClusterRefiner< BridgingWireHitRelationFilter > >, FindletModule< FacetCreator >, FindletModule< HitReclaimer >, FindletModule< MonopoleAxialTrackFinderLegendre >, FindletModule< MonopoleStereoHitFinder >, FindletModule< MonopoleStereoHitFinderQuadratic >, FindletModule< SegmentCreatorFacetAutomaton >, FindletModule< SegmentCreatorMCTruth >, FindletModule< SegmentFinderFacetAutomaton >, FindletModule< SegmentFitter >, FindletModule< SegmentLinker >, FindletModule< SegmentOrienter >, FindletModule< SegmentPairCreator >, FindletModule< SegmentRejecter >, FindletModule< SegmentTrackCombiner >, FindletModule< SegmentTripleCreator >, FindletModule< StereoHitFinder >, FindletModule< SuperClusterCreator >, FindletModule< TrackCombiner >, FindletModule< TrackCreatorSegmentPairAutomaton >, FindletModule< TrackCreatorSegmentTripleAutomaton >, FindletModule< TrackCreatorSingleSegments >, FindletModule< TrackExporter >, FindletModule< TrackFinderAutomaton >, FindletModule< TrackFinderCosmics >, FindletModule< TrackFinder >, FindletModule< TrackFinderSegmentPairAutomaton >, FindletModule< TrackFinderSegmentTripleAutomaton >, FindletModule< TrackFlightTimeAdjuster >, FindletModule< TrackLinker >, FindletModule< TrackOrienter >, FindletModule< TrackQualityAsserter >, FindletModule< TrackQualityEstimator >, FindletModule< TrackRejecter >, FindletModule< WireHitBackgroundDetector >, FindletModule< WireHitCreator >, FindletModule< WireHitPreparer >, CDCTriggerNeuroDQMModule, CDCTriggerNeuroDQMOnlineModule, CDCTriggerHoughETFModule, CDCTrigger2DFinderModule, CDCTriggerNDFinderModule, CDCTriggerNeuroDataModule, CDCTriggerNeuroIDHistModule, CDCTriggerTSFFirmwareModule, CDCTriggerTSFModule, TRGCDCModule, TRGCDCETFUnpackerModule, TRGCDCT2DDQMModule, TRGCDCT3DConverterModule, TRGCDCT3DDQMModule, TRGCDCT3DUnpackerModule, TRGCDCTSFDQMModule, TRGCDCTSFUnpackerModule, TRGCDCTSStreamModule, CDCTriggerUnpackerModule, MCMatcherTRGECLModule, TRGECLFAMModule, TRGECLModule, TRGECLBGTCHitModule, TRGECLDQMModule, TRGECLQAMModule, TRGECLRawdataAnalysisModule, TRGECLTimingCalModule, TRGECLUnpackerModule, TRGGDLModule, TRGGDLDQMModule, TRGGDLDSTModule, TRGGDLSummaryModule, TRGGDLUnpackerModule, TRGGRLMatchModule, TRGGRLModule, TRGGRLProjectsModule, TRGGRLDQMModule, GRLNeuroModule, GRLNeuroTrainerModule, TRGGRLUnpackerModule, KLMTriggerModule, TRGTOPDQMModule, TRGTOPTRD2TTSConverterModule, TRGTOPUnpackerModule, TRGTOPUnpackerWaveformModule, TRGTOPWaveformPlotterModule, TRGRAWDATAModule, VXDMisalignmentModule, DQMHistAnalysisARICHModule, DQMHistAnalysisARICHMonObjModule, DQMHistAnalysisCDCDedxModule, DQMHistAnalysisCDCEpicsModule, DQMHistAnalysisCDCMonObjModule, DQMHistAnalysisECLModule, DQMHistAnalysisECLConnectedRegionsModule, DQMHistAnalysisECLOutOfTimeDigitsModule, DQMHistAnalysisECLShapersModule, DQMHistAnalysisECLSummaryModule, DQMHistAnalysisEpicsExampleModule, DQMHistAnalysisEventT0EfficiencyModule, DQMHistAnalysisEventT0TriggerJitterModule, DQMHistAnalysisExampleModule, DQMHistAnalysisExampleFlagsModule, DQMHistAnalysisHLTModule, DQMHistAnalysisHLTMonObjModule, DQMHistAnalysisInput2Module, DQMHistAnalysisInputPVSrvModule, DQMHistAnalysisInputTestModule, DQMHistAnalysisKLMModule, DQMHistAnalysisMiraBelleModule, DQMHistAnalysisMonObjModule, DQMHistAnalysisOutputFileModule, DQMHistAnalysisOutputMonObjModule, DQMHistAnalysisOutputRelayMsgModule, DQMHistAnalysisPeakModule, DQMHistAnalysisPXDFitsModule, DQMHistAnalysisSVDEfficiencyModule, DQMHistAnalysisSVDGeneralModule, DQMHistAnalysisSVDOnMiraBelleModule, DQMHistAnalysisTOPModule, DQMHistAnalysisTrackingAbortModule, DQMHistAnalysisTRGECLModule, DQMHistAnalysisTRGGDLModule, DQMHistAutoCanvasModule, DQMHistComparitorModule, DQMHistDeltaHistoModule, DQMHistReferenceModule, DQMHistSnapshotsModule, PyModule, PXDBgTupleProducerModule, PXDMCBgTupleProducerModule, PXDDQMEfficiencyNtupleModule, PXDDQMEfficiencyNtupleSelftrackModule, PXDDQMTrackRawNtupleModule, PXDPackerErrModule, PXDPackerModule, PXDReadRawBonnDAQModule, PXDReadRawBonnDAQMatchedModule, PXDReadRawONSENModule, PXDUnpackerModule, PXDUnpackerOldModule, PXDUnpackerOTModule, SVDDQMClustersOnTrackModule, SVDDQMExpressRecoModule, PXDROIFinderAnalysisModule, ROISenderModule, DQMHistAnalysisDeltaEpicsMonObjExampleModule, DQMHistAnalysisDeltaTestModule, DQMHistAnalysisPhysicsModule, DQMHistAnalysisPXDChargeModule, DQMHistAnalysisPXDCMModule, DQMHistAnalysisPXDDAQModule, DQMHistAnalysisPXDEffModule, DQMHistAnalysisPXDERModule, DQMHistAnalysisPXDInjectionModule, DQMHistAnalysisPXDReductionModule, DQMHistAnalysisPXDTrackChargeModule, DQMHistAnalysisRooFitExampleModule, DQMHistAnalysisRunNrModule, DQMHistAnalysisTRGModule, DQMHistOutputToEPICSModule, and ROIDQMModule.

Definition at line 176 of file Module.h.

176{};

Member Data Documentation

◆ b_calPeakADCCHECK

TBranch* b_calPeakADCCHECK = nullptr

strip calPeakADC (ADC of max pulse)

Definition at line 85 of file SVDLocalCalibrationsCheckModule.h.

◆ b_calPeakADCREF

TBranch* b_calPeakADCREF = nullptr

strip calPeakADC (ADC of max pulse)

Definition at line 68 of file SVDLocalCalibrationsCheckModule.h.

◆ b_calPeakTimeCHECK

TBranch* b_calPeakTimeCHECK = nullptr

strip calPeakTime (time of max pulse)

Definition at line 84 of file SVDLocalCalibrationsCheckModule.h.

◆ b_calPeakTimeREF

TBranch* b_calPeakTimeREF = nullptr

strip calPeakTime (time of max pulse)

Definition at line 69 of file SVDLocalCalibrationsCheckModule.h.

◆ b_gainCHECK

TBranch* b_gainCHECK = nullptr

strip gain

Definition at line 81 of file SVDLocalCalibrationsCheckModule.h.

◆ b_gainREF

TBranch* b_gainREF = nullptr

strip gain

Definition at line 65 of file SVDLocalCalibrationsCheckModule.h.

◆ b_ladderCHECK

TBranch* b_ladderCHECK = nullptr

ladder number

Definition at line 74 of file SVDLocalCalibrationsCheckModule.h.

◆ b_ladderREF

TBranch* b_ladderREF = nullptr

ladder number

Definition at line 58 of file SVDLocalCalibrationsCheckModule.h.

◆ b_layerCHECK

TBranch* b_layerCHECK = nullptr

layer number

Definition at line 75 of file SVDLocalCalibrationsCheckModule.h.

◆ b_layerREF

TBranch* b_layerREF = nullptr

layer number

Definition at line 59 of file SVDLocalCalibrationsCheckModule.h.

◆ b_maskCHECK

TBranch* b_maskCHECK = nullptr

strip mask 0/1

Definition at line 79 of file SVDLocalCalibrationsCheckModule.h.

◆ b_maskREF

TBranch* b_maskREF = nullptr

strip mask 0/1

Definition at line 63 of file SVDLocalCalibrationsCheckModule.h.

◆ b_noiseCHECK

TBranch* b_noiseCHECK = nullptr

strip noise (ADC)

Definition at line 82 of file SVDLocalCalibrationsCheckModule.h.

◆ b_noiseElCHECK

TBranch* b_noiseElCHECK = nullptr

strip noise (e-)

Definition at line 83 of file SVDLocalCalibrationsCheckModule.h.

◆ b_noiseElREF

TBranch* b_noiseElREF = nullptr

strip noise (e-)

Definition at line 67 of file SVDLocalCalibrationsCheckModule.h.

◆ b_noiseREF

TBranch* b_noiseREF = nullptr

strip noise (ADC)

Definition at line 66 of file SVDLocalCalibrationsCheckModule.h.

◆ b_pedestalCHECK

TBranch* b_pedestalCHECK = nullptr

strip pedestal

Definition at line 80 of file SVDLocalCalibrationsCheckModule.h.

◆ b_pedestalREF

TBranch* b_pedestalREF = nullptr

strip pedestal

Definition at line 64 of file SVDLocalCalibrationsCheckModule.h.

◆ b_pulseWidthCHECK

TBranch* b_pulseWidthCHECK = nullptr

strip pulse width

Definition at line 86 of file SVDLocalCalibrationsCheckModule.h.

◆ b_pulseWidthREF

TBranch* b_pulseWidthREF = nullptr

strip pulse width

Definition at line 70 of file SVDLocalCalibrationsCheckModule.h.

◆ b_runCHECK

TBranch* b_runCHECK = nullptr

run number

Definition at line 73 of file SVDLocalCalibrationsCheckModule.h.

◆ b_runREF

TBranch* b_runREF = nullptr

run number

Definition at line 57 of file SVDLocalCalibrationsCheckModule.h.

◆ b_sensorCHECK

TBranch* b_sensorCHECK = nullptr

sensor number

Definition at line 76 of file SVDLocalCalibrationsCheckModule.h.

◆ b_sensorREF

TBranch* b_sensorREF = nullptr

sensor number

Definition at line 60 of file SVDLocalCalibrationsCheckModule.h.

◆ b_sideCHECK

TBranch* b_sideCHECK = nullptr

sensor side

Definition at line 77 of file SVDLocalCalibrationsCheckModule.h.

◆ b_sideREF

TBranch* b_sideREF = nullptr

sensor side

Definition at line 61 of file SVDLocalCalibrationsCheckModule.h.

◆ b_stripCHECK

TBranch* b_stripCHECK = nullptr

strip number

Definition at line 78 of file SVDLocalCalibrationsCheckModule.h.

◆ b_stripREF

TBranch* b_stripREF = nullptr

strip number

Definition at line 62 of file SVDLocalCalibrationsCheckModule.h.

◆ m_apvColors

const int m_apvColors[6] = { 1, 2, 8, kBlue, 6, 28}
private

color palette

Definition at line 145 of file SVDLocalCalibrationsCheckModule.h.

◆ m_calPeakADCCHECK

float m_calPeakADCCHECK = -1

strip max peak ADC

Definition at line 119 of file SVDLocalCalibrationsCheckModule.h.

◆ m_calPeakADCREF

float m_calPeakADCREF = -1

strip max peak ADC

Definition at line 102 of file SVDLocalCalibrationsCheckModule.h.

◆ m_calPeakTimeCHECK

float m_calPeakTimeCHECK = -1

strip peak time

Definition at line 118 of file SVDLocalCalibrationsCheckModule.h.

◆ m_calPeakTimeREF

float m_calPeakTimeREF = -1

strip peak time

Definition at line 101 of file SVDLocalCalibrationsCheckModule.h.

◆ m_conditions

std::vector<ModuleCondition> m_conditions
privateinherited

Module condition, only non-null if set.

Definition at line 521 of file Module.h.

◆ m_cutCalpeakADC_ave

float m_cutCalpeakADC_ave = -1

maximum relative deviation APV-average (calpeakADC)

Definition at line 136 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutCalpeakADC_out

float m_cutCalpeakADC_out = -1

maximum relative deviation strip (calpeakADC)

Definition at line 137 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutN_out

int m_cutN_out = -1

maximum number of allowed outliers

Definition at line 133 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutNoise_ave

float m_cutNoise_ave = -1

maximum relative deviation APV-average (noise)

Definition at line 134 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutNoise_out

float m_cutNoise_out = -1

maximum relative deviation strip (noise)

Definition at line 135 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutPedestal_ave

float m_cutPedestal_ave = -1

maximum relative deviation APV-average (pedestal)

Definition at line 138 of file SVDLocalCalibrationsCheckModule.h.

◆ m_cutPedestal_out

float m_cutPedestal_out = -1

maximum relative deviation strip (pedestal)

Definition at line 139 of file SVDLocalCalibrationsCheckModule.h.

◆ m_description

std::string m_description
privateinherited

The description of the module.

Definition at line 511 of file Module.h.

◆ m_gainCHECK

float m_gainCHECK = -1

strip gain

Definition at line 117 of file SVDLocalCalibrationsCheckModule.h.

◆ m_gainREF

float m_gainREF = -1

strip gain

Definition at line 100 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2CalpeakADCCHECK

SVDHistograms<TH2F>* m_h2CalpeakADCCHECK = nullptr
private

calpeakADC VS strip 2D histo

Definition at line 182 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2CalpeakADCREF

SVDHistograms<TH2F>* m_h2CalpeakADCREF = nullptr
private

CALPEAKS ADC.

calpeakADC VS strip 2D histo

Definition at line 181 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2CalpeakTimeCHECK

SVDHistograms<TH2F>* m_h2CalpeakTimeCHECK = nullptr
private

calpeakTime VS strip 2D histo

Definition at line 188 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2CalpeakTimeREF

SVDHistograms<TH2F>* m_h2CalpeakTimeREF = nullptr
private

CALPEAKS TIME.

calpeakTime VS strip 2D histo

Definition at line 187 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2MaskCHECK

SVDHistograms<TH2F>* m_h2MaskCHECK = nullptr
private

mask VS strip 2D histo

Definition at line 165 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2MaskREF

SVDHistograms<TH2F>* m_h2MaskREF = nullptr
private

MASKS.

mask VS strip 2D histo

Definition at line 164 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2NoiseCHECK

SVDHistograms<TH2F>* m_h2NoiseCHECK = nullptr
private

noise VS strip 2D histo

Definition at line 176 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2NoiseREF

SVDHistograms<TH2F>* m_h2NoiseREF = nullptr
private

NOISES.

noise VS strip 2D histo

Definition at line 175 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2PedestalCHECK

SVDHistograms<TH2F>* m_h2PedestalCHECK = nullptr
private

pedestal VS strip 2D histo

Definition at line 194 of file SVDLocalCalibrationsCheckModule.h.

◆ m_h2PedestalREF

SVDHistograms<TH2F>* m_h2PedestalREF = nullptr
private

PEDESTALS.

pedestal VS strip 2D histo

Definition at line 193 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hasReturnValue

bool m_hasReturnValue
privateinherited

True, if the return value is set.

Definition at line 518 of file Module.h.

◆ m_hCalpeakADCDIFF

SVDAPVHistograms<TH1F>* m_hCalpeakADCDIFF = nullptr
private

calpeakADC histo

Definition at line 183 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hCalpeakADCSummary

SVDSummaryPlots* m_hCalpeakADCSummary = nullptr
private

calpeakADC summary histo

Definition at line 184 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hCalpeakTimeDIFF

SVDAPVHistograms<TH1F>* m_hCalpeakTimeDIFF = nullptr
private

calpeakTime histo

Definition at line 189 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hCalpeakTimeSummary

SVDSummaryPlots* m_hCalpeakTimeSummary = nullptr
private

calpeakTime summary histo

Definition at line 190 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hMaskDIFF

SVDAPVHistograms<TH1F>* m_hMaskDIFF = nullptr
private

mask histo

Definition at line 166 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hMaskSummary

SVDSummaryPlots* m_hMaskSummary = nullptr
private

mask summary histo

Definition at line 167 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hMaskSummaryCHECK

SVDSummaryPlots* m_hMaskSummaryCHECK = nullptr
private

mask summary histo

Definition at line 168 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hNoiseDIFF

SVDAPVHistograms<TH1F>* m_hNoiseDIFF = nullptr
private

noise histo

Definition at line 177 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hNoiseSummary

SVDSummaryPlots* m_hNoiseSummary = nullptr
private

noise summary histo

Definition at line 178 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hPedestalDIFF

SVDAPVHistograms<TH1F>* m_hPedestalDIFF = nullptr
private

pedestal histo

Definition at line 195 of file SVDLocalCalibrationsCheckModule.h.

◆ m_hPedestalSummary

SVDSummaryPlots* m_hPedestalSummary = nullptr
private

pedestal summary histo

Definition at line 196 of file SVDLocalCalibrationsCheckModule.h.

◆ m_idFileNameCHECK

std::string m_idFileNameCHECK = "checkID"

ID of the xml file name CHECK.

Definition at line 126 of file SVDLocalCalibrationsCheckModule.h.

◆ m_idFileNameREF

std::string m_idFileNameREF = "refID"

ID of the xml file name REFERENCE.

Definition at line 125 of file SVDLocalCalibrationsCheckModule.h.

◆ m_ladderCHECK

UInt_t m_ladderCHECK = -1

ladder number

Definition at line 109 of file SVDLocalCalibrationsCheckModule.h.

◆ m_ladderREF

UInt_t m_ladderREF = -1

ladder number

Definition at line 92 of file SVDLocalCalibrationsCheckModule.h.

◆ m_layerCHECK

UInt_t m_layerCHECK = -1

layer number

Definition at line 108 of file SVDLocalCalibrationsCheckModule.h.

◆ m_layerREF

UInt_t m_layerREF = -1

layer number

Definition at line 91 of file SVDLocalCalibrationsCheckModule.h.

◆ m_leg2D

TLegend* m_leg2D = nullptr
private

legend of the 2D plot

Definition at line 149 of file SVDLocalCalibrationsCheckModule.h.

◆ m_legU

TLegend* m_legU = nullptr
private

legend of U-side plot

Definition at line 150 of file SVDLocalCalibrationsCheckModule.h.

◆ m_legV

TLegend* m_legV = nullptr
private

legend of V-side plot

Definition at line 151 of file SVDLocalCalibrationsCheckModule.h.

◆ m_logConfig

LogConfig m_logConfig
privateinherited

The log system configuration of the module.

Definition at line 514 of file Module.h.

◆ m_maskCHECK

float m_maskCHECK = -1

strip mask 0/1

Definition at line 113 of file SVDLocalCalibrationsCheckModule.h.

◆ m_maskREF

float m_maskREF = -1

strip mask 0/1

Definition at line 96 of file SVDLocalCalibrationsCheckModule.h.

◆ m_moduleParamList

ModuleParamList m_moduleParamList
privateinherited

List storing and managing all parameter of the module.

Definition at line 516 of file Module.h.

◆ m_name

std::string m_name
privateinherited

The name of the module, saved as a string (user-modifiable)

Definition at line 508 of file Module.h.

◆ m_nMaskedUCHECK

int m_nMaskedUCHECK = 0
private

number of masked strips in the check calibration (u side)

Definition at line 171 of file SVDLocalCalibrationsCheckModule.h.

◆ m_nMaskedUREF

int m_nMaskedUREF = 0
private

number of masked strips in the reference calibration (u side)

Definition at line 169 of file SVDLocalCalibrationsCheckModule.h.

◆ m_nMaskedVCHECK

int m_nMaskedVCHECK = 0
private

number of masked strips in the check calibration (v side)

Definition at line 172 of file SVDLocalCalibrationsCheckModule.h.

◆ m_nMaskedVREF

int m_nMaskedVREF = 0
private

number of masked strips in the reference calibration (v side)

Definition at line 170 of file SVDLocalCalibrationsCheckModule.h.

◆ m_noiseCHECK

float m_noiseCHECK = -1

strip noise (ADC)

Definition at line 114 of file SVDLocalCalibrationsCheckModule.h.

◆ m_noiseElCHECK

float m_noiseElCHECK = -1

strip noise (e-)

Definition at line 115 of file SVDLocalCalibrationsCheckModule.h.

◆ m_noiseElREF

float m_noiseElREF = -1

strip noise (e-)

Definition at line 98 of file SVDLocalCalibrationsCheckModule.h.

◆ m_noiseREF

float m_noiseREF = -1

strip noise (ADC)

Definition at line 97 of file SVDLocalCalibrationsCheckModule.h.

◆ m_outputPdfName

std::string m_outputPdfName = "SVDLocalCalibrationCheck.pdf"

output pdf filename

Definition at line 128 of file SVDLocalCalibrationsCheckModule.h.

◆ m_package

std::string m_package
privateinherited

Package this module is found in (may be empty).

Definition at line 510 of file Module.h.

◆ m_pedestalCHECK

float m_pedestalCHECK = -1

strip pedestal

Definition at line 116 of file SVDLocalCalibrationsCheckModule.h.

◆ m_pedestalREF

float m_pedestalREF = -1

strip pedestal

Definition at line 99 of file SVDLocalCalibrationsCheckModule.h.

◆ m_plotGoodAPVs

bool m_plotGoodAPVs = false

if true also the good APVs are plotted on the DIFF canvas

Definition at line 130 of file SVDLocalCalibrationsCheckModule.h.

◆ m_propertyFlags

unsigned int m_propertyFlags
privateinherited

The properties of the module as bitwise or (with |) of EModulePropFlags.

Definition at line 512 of file Module.h.

◆ m_pulseWidthCHECK

float m_pulseWidthCHECK = -1

strip pulse width

Definition at line 120 of file SVDLocalCalibrationsCheckModule.h.

◆ m_pulseWidthREF

float m_pulseWidthREF = -1

strip pulse width

Definition at line 103 of file SVDLocalCalibrationsCheckModule.h.

◆ m_returnValue

int m_returnValue
privateinherited

The return value.

Definition at line 519 of file Module.h.

◆ m_rootFileNameCHECK

std::string m_rootFileNameCHECK = "SVDLocalCalibrationMonitor_experiment5_run408.root"

root file name CHECK

Definition at line 123 of file SVDLocalCalibrationsCheckModule.h.

◆ m_rootFileNameREF

std::string m_rootFileNameREF = "SVDLocalCalibrationMonitor_experiment5_run92.root"

root file name REFERENCE

Definition at line 122 of file SVDLocalCalibrationsCheckModule.h.

◆ m_rootFilePtrCHECK

TFile* m_rootFilePtrCHECK = nullptr

pointer at the CHECK root file

Definition at line 52 of file SVDLocalCalibrationsCheckModule.h.

◆ m_rootFilePtrREF

TFile* m_rootFilePtrREF = nullptr

pointer at the REFERENCE root file

Definition at line 51 of file SVDLocalCalibrationsCheckModule.h.

◆ m_runCHECK

UInt_t m_runCHECK = -1

run number

Definition at line 107 of file SVDLocalCalibrationsCheckModule.h.

◆ m_runREF

UInt_t m_runREF = -1

run number

Definition at line 90 of file SVDLocalCalibrationsCheckModule.h.

◆ m_sensorCHECK

UInt_t m_sensorCHECK = -1

sensor number

Definition at line 110 of file SVDLocalCalibrationsCheckModule.h.

◆ m_sensorREF

UInt_t m_sensorREF = -1

sensor number

Definition at line 93 of file SVDLocalCalibrationsCheckModule.h.

◆ m_sideCHECK

UInt_t m_sideCHECK = -1

sensor side

Definition at line 111 of file SVDLocalCalibrationsCheckModule.h.

◆ m_sideREF

UInt_t m_sideREF = -1

sensor side

Definition at line 94 of file SVDLocalCalibrationsCheckModule.h.

◆ m_stripCHECK

UInt_t m_stripCHECK = -1

strip number

Definition at line 112 of file SVDLocalCalibrationsCheckModule.h.

◆ m_stripREF

UInt_t m_stripREF = -1

strip number

Definition at line 95 of file SVDLocalCalibrationsCheckModule.h.

◆ m_treeCHECK

TTree* m_treeCHECK = nullptr

pointer at CHECK tree

Definition at line 54 of file SVDLocalCalibrationsCheckModule.h.

◆ m_treeREF

TTree* m_treeREF = nullptr

pointer at REF tree

Definition at line 53 of file SVDLocalCalibrationsCheckModule.h.

◆ m_type

std::string m_type
privateinherited

The type of the module, saved as a string.

Definition at line 509 of file Module.h.


The documentation for this class was generated from the following files: