Belle II Software development
SVDClusterEvaluationModule Class Reference

The SVD ClusterEvaluation Module. More...

#include <SVDClusterEvaluationModule.h>

Inheritance diagram for SVDClusterEvaluationModule:
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

 SVDClusterEvaluationModule ()
 constructor
 
virtual ~SVDClusterEvaluationModule ()
 destructor
 
virtual void initialize () override
 check StoreArrays & create rootfile
 
virtual void beginRun () override
 create histograms
 
virtual void event () override
 fill histograms
 
virtual void endRun () override
 write histogrmas
 
virtual std::vector< std::string > getFileNames (bool outputFiles)
 Return a list of output filenames for this modules.
 
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

std::string m_rootFileName
 root file name
 
std::string m_ClusterName
 SVDCluster StoreArray name.
 
std::string m_InterceptName
 SVDIntercept StoreArray name.
 
std::string m_TrackName
 Track StoreArray name.
 
TFile * m_rootFilePtr = nullptr
 pointer at root file used for storing histograms
 
TTree * m_tree = nullptr
 pointer at tree containing the parameters
 
TTree * m_treeSummary = nullptr
 pointer at tree containing the summary parameters
 
double m_UbinWidth
 histogram u-bin width in microns
 
double m_VbinWidth
 histogram v-bin width in microns
 
TBranch * b_experiment = nullptr
 experiment number
 
TBranch * b_run = nullptr
 run number
 
TBranch * b_ladder = nullptr
 ladder number
 
TBranch * b_layer = nullptr
 layer number
 
TBranch * b_sensor = nullptr
 sensor number
 
TBranch * b_interU = nullptr
 intercept U position
 
TBranch * b_interV = nullptr
 intercept V position
 
TBranch * b_interErrU = nullptr
 intercept U position error
 
TBranch * b_interErrV = nullptr
 intercept V position error
 
TBranch * b_interUprime = nullptr
 intercept U prime
 
TBranch * b_interVprime = nullptr
 intercept V prime
 
TBranch * b_interErrUprime = nullptr
 intercept U prime error
 
TBranch * b_interErrVprime = nullptr
 intercept V prime error
 
TBranch * b_residU = nullptr
 U residual.
 
TBranch * b_residV = nullptr
 V residual.
 
TBranch * b_clUpos = nullptr
 cluster U position
 
TBranch * b_clVpos = nullptr
 cluster V position
 
TBranch * b_clUcharge = nullptr
 cluster U charge
 
TBranch * b_clVcharge = nullptr
 cluster V charge
 
TBranch * b_clUsnr = nullptr
 cluster U snr
 
TBranch * b_clVsnr = nullptr
 cluster V snr
 
TBranch * b_clUsize = nullptr
 cluster U size
 
TBranch * b_clVsize = nullptr
 cluster V size
 
TBranch * b_clUtime = nullptr
 cluster U time
 
TBranch * b_clVtime = nullptr
 cluster V time
 
int m_experiment = -1
 experiment number
 
int m_run = -1
 run number
 
int m_ladder = -1
 ladder number
 
int m_layer = -1
 layer number
 
int m_sensor = -1
 sensor number
 
float m_interU = -1
 intercept U position
 
float m_interV = -1
 intercept V position
 
float m_interErrU = -1
 intercept U position error
 
float m_interErrV = -1
 intercept V position error
 
float m_interUprime = -1
 intercept U prime
 
float m_interVprime = -1
 intercept V prime
 
float m_interErrUprime = -1
 intercept U prime error
 
float m_interErrVprime = -1
 intercept V prime error
 
float m_residU = -1
 U residual.
 
float m_residV = -1
 V residual.
 
float m_clUpos = -1
 cluster U position
 
float m_clVpos = -1
 cluster V position
 
float m_clUcharge = -1
 cluster U charge
 
float m_clVcharge = -1
 cluster V charge
 
float m_clUsnr = -1
 cluster U snr
 
float m_clVsnr = -1
 cluster V snr
 
int m_clUsize = -1
 cluster U size
 
int m_clVsize = -1
 cluster V size
 
float m_clUtime = -1
 cluster U time
 
float m_clVtime = -1
 cluster V time
 
TBranch * bs_experiment = nullptr
 experiment number
 
TBranch * bs_run = nullptr
 run number
 
TBranch * bs_ladder = nullptr
 ladder number
 
TBranch * bs_layer = nullptr
 layer number
 
TBranch * bs_sensor = nullptr
 sensor number
 
TBranch * bs_effU = nullptr
 efficiency U
 
TBranch * bs_effV = nullptr
 efficiency V
 
TBranch * bs_effErrU = nullptr
 efficiency error U
 
TBranch * bs_effErrV = nullptr
 efficiency error V
 
TBranch * bs_nIntercepts = nullptr
 number of intercepts
 
TBranch * bs_residU = nullptr
 residual U
 
TBranch * bs_residV = nullptr
 residual V
 
TBranch * bs_misU = nullptr
 misalignment U
 
TBranch * bs_misV = nullptr
 misalignment V
 
TBranch * bs_statU = nullptr
 intercept stat error U
 
TBranch * bs_statV = nullptr
 intercept stat error V
 
int ms_experiment = -1
 experiment number
 
int ms_run = -1
 run number
 
int ms_ladder = -1
 ladder number
 
int ms_layer = -1
 layer number
 
int ms_sensor = -1
 sensor number
 
float ms_effU = -1
 efficiency U
 
float ms_effV = -1
 efficiency V
 
float ms_effErrU = -1
 efficiency error U
 
float ms_effErrV = -1
 efficiency error V
 
int ms_nIntercepts = -1
 number of intercepts
 
float ms_residU = -1
 residual U
 
float ms_residV = -1
 residual V
 
float ms_misU = -1
 misalignment U
 
float ms_misV = -1
 misalignment V
 
float ms_statU = -1
 intercept stat error U
 
float ms_statV = -1
 intercept stat error V
 

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 create_SVDHistograms_interCoor ()
 create intercept coordinates plots
 
void create_SVDHistograms_interSigma ()
 create intercept error plots
 
void create_SVDHistograms_clsCoor ()
 create cluster coordinates plots
 
void create_SVDHistograms_clsResid ()
 create slucter resid plots
 
double getOneSigma (TH1F *h)
 returns one sigma using quantiles
 
bool isRelatedToTrack (SVDIntercept *inter)
 is the intercept related to a track
 
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

double m_cmTomicron = 10000
 factor cm -> micron
 
int m_theLayer = -1
 layer under study
 
double m_interSigmaMax = -1
 max of the histo of the intercept stat error
 
double m_uFiducial = -1
 fiducial length u
 
double m_vFiducial = -1
 fiducial length v
 
float m_nSigma = -1
 number of sigmas for efficiency computation
 
float m_halfWidth = -1
 window half width for efficiency computation
 
int m_groupNstrips = -1
 number of strip in the group in 2D resid vs position
 
VXD::GeoCachem_geoCache = VXD::GeoCache::getInstance()
 the geo cache instance
 
StoreObjPtr< EventMetaDatam_eventMetaData
 event meta data
 
StoreArray< SVDClusterm_svdClusters
 clusters
 
StoreArray< Trackm_tracks
 tracks
 
StoreArray< SVDInterceptm_svdIntercepts
 intercepts
 
SVDHistograms< TH2F > * m_interCoor
 intercept coordinates plots
 
SVDHistograms< TH1F > * m_interSigma
 intercept stat error plots
 
SVDHistograms< TH1F > * m_clsCoor
 cluster coordinates plots
 
SVDHistograms< TH1F > * m_clsResid
 cluster resid plots
 
SVDHistograms< TH1F > * m_clsMinResid
 cluster minimum resid plots
 
SVDHistograms< TH2F > * m_clsResid2D
 2D resid plots
 
float m_width_LargeS_U = 5.772
 width large sensor U
 
float m_width_LargeS_V = 12.290
 width large sensor V
 
float m_width_SmallS_U = 3.855
 width small sensor U
 
float m_width_SmallS_V = m_width_LargeS_V
 width small sensor V
 
float m_safety_margin = 0.2
 safety margin
 
int m_nBins_LargeS_U = 100
 number of bins for large sensor U
 
int m_nBins_LargeS_V = 100
 number of bins for large sensor V
 
int m_nBins_SmallS_U = 100
 number of bins for small sensor U
 
int m_nBins_SmallS_V = 100
 number of bins for small sensor V
 
float m_abs_LargeS_U = 1
 half width including safety margin, large sensor U
 
float m_abs_LargeS_V = 1
 half width including safety margin, large sensor V
 
float m_abs_SmallS_U = 1
 half width including safety margin, small sensor U
 
float m_abs_SmallS_V = 1
 half width including safety margin, small sensor V
 
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

The SVD ClusterEvaluation Module.

Definition at line 39 of file SVDClusterEvaluationModule.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

◆ SVDClusterEvaluationModule()

constructor

Definition at line 16 of file SVDClusterEvaluationModule.cc.

16 : Module()
17 , m_interCoor(nullptr)
18 , m_interSigma(nullptr)
19 , m_clsCoor(nullptr)
20 , m_clsResid(nullptr)
21 , m_clsMinResid(nullptr)
22 , m_clsResid2D(nullptr)
23{
24
25 setDescription("This module check performances of SVD reconstruction of VXD TB data");
26
27 addParam("outputFileName", m_rootFileName, "Name of output root file.", std::string("SVDClusterEvaluation_output.root"));
28
29 addParam("LayerUnderStudy", m_theLayer, "Number of the layer under study. If 0, then all layers are plotted", int(0));
30 addParam("InterceptSigmaMax", m_interSigmaMax,
31 "Max of the histogram that contains the intercept statistical error. Default is OK for Phase2.", double(0.35));
32 addParam("uFiducialLength", m_uFiducial,
33 "length to be subtracted from the U-edge to consider intercepts inside the sensor. Positive values reduce the area; negative values increase the area",
34 double(0));
35 addParam("vFiducialLength", m_vFiducial,
36 "length to be subtracted from the V-edge to consider intercepts inside the sensor. Positive values reduce the area; negative values increase the area",
37 double(0));
38 addParam("efficiency_nSigma", m_nSigma, " number of residual sigmas for the determination of the efficiency", float(5));
39 addParam("efficiency_halfWidth", m_halfWidth, " window half width for the determination of the efficiency", float(0.05));
40 addParam("ClustersName", m_ClusterName, "Name of DUTs Cluster Store Array.", std::string(""));
41 addParam("InterceptsName", m_InterceptName, "Name of Intercept Store Array.", std::string(""));
42 addParam("TracksName", m_TrackName, "Name of Track Store Array.", std::string(""));
43 addParam("UbinWidth", m_UbinWidth, "Histograms U-bin width (in um)", double(10));
44 addParam("VbinWidth", m_VbinWidth, "Histograms V-bin width (in um)", double(10));
45 addParam("groupNstrips", m_groupNstrips, "How many strips group together in the 2D residual VS position plot", int(128));
46}
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
Module()
Constructor.
Definition: Module.cc:30
int m_groupNstrips
number of strip in the group in 2D resid vs position
SVDHistograms< TH1F > * m_clsResid
cluster resid plots
double m_VbinWidth
histogram v-bin width in microns
float m_halfWidth
window half width for efficiency computation
SVDHistograms< TH1F > * m_interSigma
intercept stat error plots
float m_nSigma
number of sigmas for efficiency computation
SVDHistograms< TH2F > * m_clsResid2D
2D resid plots
std::string m_TrackName
Track StoreArray name.
SVDHistograms< TH1F > * m_clsMinResid
cluster minimum resid plots
double m_interSigmaMax
max of the histo of the intercept stat error
SVDHistograms< TH1F > * m_clsCoor
cluster coordinates plots
SVDHistograms< TH2F > * m_interCoor
intercept coordinates plots
std::string m_ClusterName
SVDCluster StoreArray name.
double m_UbinWidth
histogram u-bin width in microns
std::string m_InterceptName
SVDIntercept StoreArray name.
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

◆ ~SVDClusterEvaluationModule()

virtual ~SVDClusterEvaluationModule ( )
inlinevirtual

destructor

Definition at line 46 of file SVDClusterEvaluationModule.h.

46{};

Member Function Documentation

◆ beginRun()

void beginRun ( void  )
overridevirtual

create histograms

Reimplemented from Module.

Definition at line 124 of file SVDClusterEvaluationModule.cc.

125{
126
127 if (m_interCoor == nullptr) {
128
129 //INTERCEPTS
131
133
134 //CLUSTERS
136
138
139 B2DEBUG(10, "Empty histograms have beein created");
140 B2DEBUG(10, "Large sensors, U side: width = " << m_width_LargeS_U << " cm, bin width = " << m_UbinWidth << " cm -> Nbins = " <<
142 B2DEBUG(10, "Large sensors, V side: width = " << m_width_LargeS_V << " cm, bin width = " << m_UbinWidth << " cm -> Nbins = " <<
144
145 B2DEBUG(10, "Small sensors, U side: width = " << m_width_SmallS_U << " cm, bin width = " << m_UbinWidth << " cm -> Nbins = " <<
147 B2DEBUG(10, "Small sensors, V side: width = " << m_width_SmallS_V << " cm, bin width = " << m_UbinWidth << " cm -> Nbins = " <<
149 }
150
151
152
153
154
155
156}
void create_SVDHistograms_interCoor()
create intercept coordinates plots
void create_SVDHistograms_interSigma()
create intercept error plots
void create_SVDHistograms_clsResid()
create slucter resid plots
int m_nBins_SmallS_U
number of bins for small sensor U
int m_nBins_LargeS_U
number of bins for large sensor U
int m_nBins_LargeS_V
number of bins for large sensor V
int m_nBins_SmallS_V
number of bins for small sensor V
void create_SVDHistograms_clsCoor()
create cluster coordinates plots

◆ 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

◆ create_SVDHistograms_clsCoor()

void create_SVDHistograms_clsCoor ( )
private

create cluster coordinates plots

Definition at line 668 of file SVDClusterEvaluationModule.cc.

669{
670
671
672 TH1F h_clcoorU_LargeSensor("clsCoorU_LS_L@layerL@ladderS@sensor@view",
673 "Cluster U Coordinate (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
675 h_clcoorU_LargeSensor.GetXaxis()->SetTitle("Cluster U coordinate (cm)");
676
677 TH1F h_clcoorV_LargeSensor("clsCoorV_LS_L@layerL@ladderS@sensor@view",
678 "Cluster V Coordinate (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
680 h_clcoorV_LargeSensor.GetXaxis()->SetTitle("Cluster V coordinate (cm)");
681
682 TH1F h_clcoorU_SmallSensor("clsCoorU_SS_L@layerL@ladderS@sensor@view",
683 "Cluster U Coordinate (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
685 h_clcoorU_SmallSensor.GetXaxis()->SetTitle("Cluster U coordinate (cm)");
686
687 TH1F h_clcoorV_SmallSensor("clsCoorV_SS_L@layerL@ladderS@sensor@view",
688 "Cluster V Coordinate (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
690 h_clcoorV_SmallSensor.GetXaxis()->SetTitle("Cluster V coordinate (cm)");
691
692
693 m_clsCoor = new SVDHistograms<TH1F>(h_clcoorU_SmallSensor, h_clcoorV_SmallSensor, h_clcoorU_LargeSensor, h_clcoorV_LargeSensor);
694
695}
float m_abs_LargeS_U
half width including safety margin, large sensor U
float m_abs_SmallS_V
half width including safety margin, small sensor V
float m_abs_LargeS_V
half width including safety margin, large sensor V
float m_abs_SmallS_U
half width including safety margin, small sensor U
template class for SVd histograms
Definition: SVDHistograms.h:24

◆ create_SVDHistograms_clsResid()

void create_SVDHistograms_clsResid ( )
private

create slucter resid plots

Definition at line 697 of file SVDClusterEvaluationModule.cc.

698{
699
700 float range = 0.5;
701 int NbinsU = 200;//range*0.0001*2/m_UbinWidth;
702 int NbinsV = 200;//range*0.0001*2/m_VbinWidth;
703
704 //CLUSTER RESIDUALS
705 TH1F h_clresidU_LargeSensor("clsResidU_LS_L@layerL@ladderS@sensor@view",
706 "U Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
707 // m_nBins_LargeS_U, -m_abs_LargeS_U, m_abs_LargeS_U);
708 NbinsU, -range, range);
709 h_clresidU_LargeSensor.GetXaxis()->SetTitle("residual (cm)");
710
711 TH1F h_clresidV_LargeSensor("clsResidV_LS_L@layerL@ladderS@sensor@view",
712 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
713 // m_nBins_LargeS_V, -m_abs_LargeS_V, m_abs_LargeS_V);
714 NbinsV, -range, range);
715 h_clresidV_LargeSensor.GetXaxis()->SetTitle("residual (cm)");
716
717 TH1F h_clresidU_SmallSensor("clsResidU_SS_L@layerL@ladderS@sensor@view",
718 "U Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
719 // m_nBins_SmallS_U, -m_abs_SmallS_U, m_abs_SmallS_U);
720 NbinsU, -range, range);
721 h_clresidU_SmallSensor.GetXaxis()->SetTitle("residual (cm)");
722
723 TH1F h_clresidV_SmallSensor("clsResidV_SS_L@layerL@ladderS@sensor@view",
724 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
725 // m_nBins_SmallS_V, -m_abs_SmallS_V, m_abs_SmallS_V);
726 NbinsU, -range, range);
727 h_clresidV_SmallSensor.GetXaxis()->SetTitle("residual (cm)");
728
729
730
731 m_clsResid = new SVDHistograms<TH1F>(h_clresidU_SmallSensor, h_clresidV_SmallSensor, h_clresidU_LargeSensor,
732 h_clresidV_LargeSensor);
733
734 //CLUSTER RESIDUALS VS CL POSITION
735 const int Nzones_768 = 768 / m_groupNstrips;
736 const int Nzones_512 = 512 / m_groupNstrips;
737
738 TH2F h2_clresidU_LargeSensor("clsResid2DU_LS_L@layerL@ladderS@sensor@view",
739 "U Cluster Residuals VS U Cluster Position(layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
740 Nzones_768, -m_width_LargeS_U / 2, m_width_LargeS_U / 2, NbinsU, -range, range);
741 h2_clresidU_LargeSensor.GetYaxis()->SetTitle("residual (cm)");
742 h2_clresidU_LargeSensor.GetXaxis()->SetTitle("cluster position (cm)");
743
744 TH2F h2_clresidV_LargeSensor("clsResid2DV_LS_L@layerL@ladderS@sensor@view",
745 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
746 Nzones_512, -m_width_LargeS_V / 2, m_width_LargeS_V / 2, NbinsV, -range, range);
747 h2_clresidV_LargeSensor.GetYaxis()->SetTitle("residual (cm)");
748 h2_clresidV_LargeSensor.GetXaxis()->SetTitle("cluster position (cm)");
749
750 TH2F h2_clresidU_SmallSensor("clsResid2DU_SS_L@layerL@ladderS@sensor@view",
751 "U Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
752 Nzones_768, -m_width_SmallS_U / 2, m_width_SmallS_U / 2, NbinsU, -range, range);
753 h2_clresidU_SmallSensor.GetYaxis()->SetTitle("residual (cm)");
754 h2_clresidU_SmallSensor.GetXaxis()->SetTitle("cluster position (cm)");
755
756 TH2F h2_clresidV_SmallSensor("clsResid2DV_SS_L@layerL@ladderS@sensor@view",
757 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
758 Nzones_512, -m_width_SmallS_V / 2, m_width_SmallS_V / 2, NbinsU, -range, range);
759 h2_clresidV_SmallSensor.GetYaxis()->SetTitle("residual (cm)");
760 h2_clresidV_SmallSensor.GetXaxis()->SetTitle("cluster position (cm)");
761
762 m_clsResid2D = new SVDHistograms<TH2F>(h2_clresidU_SmallSensor, h2_clresidV_SmallSensor, h2_clresidU_LargeSensor,
763 h2_clresidV_LargeSensor);
764
765 //CLUSTER MINIMUM RESIDUAL
766 //CLUSTER RESIDUALS
767 TH1F h_clminresidU_LargeSensor("clsMinResidU_LS_L@layerL@ladderS@sensor@view",
768 "U Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
769 // m_nBins_LargeS_U, -m_abs_LargeS_U, m_abs_LargeS_U);
770 NbinsU, -range, range);
771 h_clminresidU_LargeSensor.GetXaxis()->SetTitle("residual (cm)");
772
773 TH1F h_clminresidV_LargeSensor("clsMinResidV_LS_L@layerL@ladderS@sensor@view",
774 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
775 // m_nBins_LargeS_V, -m_abs_LargeS_V, m_abs_LargeS_V);
776 NbinsV, -range, range);
777 h_clminresidV_LargeSensor.GetXaxis()->SetTitle("residual (cm)");
778
779 TH1F h_clminresidU_SmallSensor("clsMinResidU_SS_L@layerL@ladderS@sensor@view",
780 "U Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
781 // m_nBins_SmallS_U, -m_abs_SmallS_U, m_abs_SmallS_U);
782 NbinsU, -range, range);
783 h_clminresidU_SmallSensor.GetXaxis()->SetTitle("residual (cm)");
784
785 TH1F h_clminresidV_SmallSensor("clsMinResidV_SS_L@layerL@ladderS@sensor@view",
786 "V Cluster Residuals (layer @layer, ladder @ladder, sensor @sensor, side@view/@side)",
787 // m_nBins_SmallS_V, -m_abs_SmallS_V, m_abs_SmallS_V);
788 NbinsU, -range, range);
789 h_clminresidV_SmallSensor.GetXaxis()->SetTitle("residual (cm)");
790
791
792
793 m_clsMinResid = new SVDHistograms<TH1F>(h_clminresidU_SmallSensor, h_clminresidV_SmallSensor, h_clminresidU_LargeSensor,
794 h_clminresidV_LargeSensor);
795
796
797}

◆ create_SVDHistograms_interCoor()

void create_SVDHistograms_interCoor ( )
private

create intercept coordinates plots

Definition at line 628 of file SVDClusterEvaluationModule.cc.

629{
630
631 TH2F h_coorUV_LargeSensor("interCoor_Large_L@layerL@ladderS@sensor",
632 "Intercept 2D Coordinate (layer @layer, ladder @ladder, sensor @sensor)",
635 h_coorUV_LargeSensor.GetXaxis()->SetTitle("Intercept U coordinate (cm)");
636 h_coorUV_LargeSensor.GetYaxis()->SetTitle("Intercept V coordinate (cm)");
637
638 TH2F h_coorUV_SmallSensor("interCoor_Small_L@layerL@ladderS@sensor",
639 "Intercept 2D Coordinate (layer @layer, ladder @ladder, sensor @sensor)",
642 h_coorUV_SmallSensor.GetXaxis()->SetTitle("Intercept U coordinate (cm)");
643 h_coorUV_SmallSensor.GetYaxis()->SetTitle("Intercept V coordinate (cm)");
644
645
646 m_interCoor = new SVDHistograms<TH2F>(h_coorUV_SmallSensor, h_coorUV_SmallSensor, h_coorUV_LargeSensor, h_coorUV_LargeSensor);
647}

◆ create_SVDHistograms_interSigma()

void create_SVDHistograms_interSigma ( )
private

create intercept error plots

Definition at line 650 of file SVDClusterEvaluationModule.cc.

651{
652
653 TH1F h_sigmaU("interSigmaU_L@layerL@ladderS@sensor@view",
654 "U Intercept Sigma (layer @layer, ladder @ladder, sensor @sensor)",
655 100, 0, m_interSigmaMax);
656 h_sigmaU.GetXaxis()->SetTitle("Intercept U Error (cm)");
657
658 TH1F h_sigmaV("interSigmaV_L@layerL@ladderS@sensor@view",
659 "V Intercept Sigma (layer @layer, ladder @ladder, sensor @sensor)",
660 100, 0, m_interSigmaMax);
661 h_sigmaV.GetXaxis()->SetTitle("Intercept V Error (cm)");
662
663
664 m_interSigma = new SVDHistograms<TH1F>(h_sigmaU, h_sigmaV, h_sigmaU, h_sigmaV);
665}

◆ 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()

void endRun ( void  )
overridevirtual

write histogrmas

Reimplemented from Module.

Definition at line 298 of file SVDClusterEvaluationModule.cc.

299{
300
302 ms_run = meta->getRun();
303 ms_experiment = meta->getExperiment();
304
305 if (m_rootFilePtr != nullptr) {
306 m_rootFilePtr->cd();
307
308 m_tree->Write();
309
310 const int Nsensors = 172;//L6
311 // float sensors[Nsensors]; //sensor identificator
312 // float sensorsErr[Nsensors]; //sensor identificator
313 float residU[Nsensors]; //U residuals
314 float residV[Nsensors]; //V residuals
315 float misU[Nsensors]; //U misalignment
316 float misV[Nsensors]; //V misalignment
317 // float resolU[Nsensors]; //U residuals
318 // float resolV[Nsensors]; //V residuals
319 float effU[Nsensors];
320 float effV[Nsensors];
321 float effUErr[Nsensors];
322 float effVErr[Nsensors];
323 TString sensorU[Nsensors];
324 TString sensorV[Nsensors];
325
326 for (int i = 0; i < Nsensors; i++) {
327 // sensors[i] = i;
328 // sensorsErr[i] = 0;
329 residU[i] = 0;
330 residV[i] = 0;
331 misU[i] = 0;
332 misV[i] = 0;
333 // resolU[i] = 0;
334 // resolV[i] = 0;
335 effU[i] = -1;
336 effV[i] = -1;
337 effUErr[i] = 0;
338 effVErr[i] = 0;
339 sensorU[i] = "";
340 sensorV[i] = "";
341 }
342
343 TH1F* h_residU = new TH1F("hResidU", "U Residuals", 1, 0, 1);
344 h_residU->SetCanExtend(TH1::kAllAxes);
345 h_residU->SetStats(0);
346 h_residU->GetXaxis()->SetTitle("sensor");
347 h_residU->GetYaxis()->SetTitle("U residuals (#mum)");
348 TH1F* h_residV = new TH1F("hResidV", "V Residuals", 1, 0, 1);
349 h_residV->SetCanExtend(TH1::kAllAxes);
350 h_residV->SetStats(0);
351 h_residV->GetXaxis()->SetTitle("sensor");
352 h_residV->GetYaxis()->SetTitle("V residuals (#mum)");
353
354 TH1F* h_statU = new TH1F("hStatU", "U Intercept Statistical Error", 1, 0, 1);
355 h_statU->SetCanExtend(TH1::kAllAxes);
356 h_statU->SetStats(0);
357 h_statU->GetXaxis()->SetTitle("sensor");
358 h_statU->GetYaxis()->SetTitle("U extrap. error (#mum)");
359 TH1F* h_statV = new TH1F("hStatV", "V Intercept Statistical Error", 1, 0, 1);
360 h_statV->SetCanExtend(TH1::kAllAxes);
361 h_statV->SetStats(0);
362 h_statV->GetXaxis()->SetTitle("sensor");
363 h_statV->GetYaxis()->SetTitle("V extrap. error (#mum)");
364
365 TH1F* h_misU = new TH1F("hMisU", "U Residual Misalignment", 1, 0, 1);
366 h_misU->SetCanExtend(TH1::kAllAxes);
367 h_misU->SetStats(0);
368 h_misU->GetXaxis()->SetTitle("sensor");
369 h_misU->GetYaxis()->SetTitle("U misalignment (#mum)");
370 TH1F* h_misV = new TH1F("hMisV", "V Residual Misalignment", 1, 0, 1);
371 h_misV->SetCanExtend(TH1::kAllAxes);
372 h_misV->SetStats(0);
373 h_misV->GetXaxis()->SetTitle("sensor");
374 h_misV->GetYaxis()->SetTitle("V misalignment (#mum)");
375
376
377 TH1F* h_effU = new TH1F("hEffU", Form("U-Side Summary, %.1f#sigma or #pm%.1f mm", m_nSigma, m_halfWidth * 10), 1, 0, 1);
378 h_effU->SetCanExtend(TH1::kAllAxes);
379 h_effU->SetStats(0);
380 h_effU->GetXaxis()->SetTitle("sensor");
381 h_effU->GetYaxis()->SetTitle("U efficiency");
382 TH1F* h_effV = new TH1F("hEffV", Form("V-Side Summary, %.1f#sigma or #pm%.1f mm", m_nSigma, m_halfWidth * 10), 1, 0, 1);
383 h_effV->SetCanExtend(TH1::kAllAxes);
384 h_effV->SetStats(0);
385 h_effV->GetXaxis()->SetTitle("sensor");
386 h_effV->GetYaxis()->SetTitle("V efficiency");
387
388 TDirectory* oldDir = gDirectory;
389
390 int s = 0; //sensor counter;
391
392 for (auto layer : m_geoCache.getLayers(VXD::SensorInfoBase::SVD)) {
393 int currentLayer = layer.getLayerNumber();
394 ms_layer = currentLayer;
395
396 if (m_theLayer != 0 && currentLayer != m_theLayer)
397 continue;
398
399 TString interName = Form("interceptsL%d", layer.getLayerNumber());
400 TString clsName = Form("clustersL%d", layer.getLayerNumber());
401 TString residName = Form("residualsL%d", layer.getLayerNumber());
402 TDirectory* dir_inter = oldDir->mkdir(interName.Data());
403 TDirectory* dir_cls = oldDir->mkdir(clsName.Data());
404 TDirectory* dir_resid = oldDir->mkdir(residName.Data());
405 for (auto ladder : m_geoCache.getLadders(layer))
406 for (Belle2::VxdID sensor : m_geoCache.getSensors(ladder)) {
407 ms_ladder = (VxdID)sensor.getLadderNumber();
408 ms_sensor = (VxdID)sensor.getSensorNumber();
409
410 dir_inter->cd();
411 (m_interCoor->getHistogram(sensor, 1))->Write();
412 for (int view = SVDHistograms<TH1F>::VIndex ; view < SVDHistograms<TH1F>::UIndex + 1; view++) {
413 dir_cls->cd();
414 (m_clsCoor->getHistogram(sensor, view))->Write();
415
416 dir_inter->cd();
417 float stat = (m_interSigma->getHistogram(sensor, view))->GetMean();
418 ms_nIntercepts = (m_interSigma->getHistogram(sensor, view))->GetEntries();
419 (m_interSigma->getHistogram(sensor, view))->Write();
420
421 dir_resid->cd();
422 TH1F* res = m_clsMinResid->getHistogram(sensor, view);
423 Double_t median, q;
424 q = 0.5; // 0.5 for "median"
425 {
426 if (view == SVDHistograms<TH1F>::UIndex) {
427 sensorU[s] = Form("%d.%d.%dU", currentLayer, ladder.getLadderNumber(), sensor.getSensorNumber());
428 B2DEBUG(10, "U-side efficiency for " << currentLayer << "." << ladder.getLadderNumber() << "." << sensor.getSensorNumber());
429
430 if (res->GetEntries() > 0) {
431
432 res->GetQuantiles(1, &median, &q);
433
434 residU[s] = getOneSigma(res);
435 misU[s] = median;
436
437 float halfWindow = m_nSigma * residU[s];
438 if (m_nSigma == 0)
439 halfWindow = m_halfWidth;
440
441 int binMin = res->FindBin(misU[s] - halfWindow);
442 int binMax = res->FindBin(misU[s] + halfWindow);
443 B2DEBUG(10, "from " << misU[s] - halfWindow << " -> binMin = " << binMin);
444 B2DEBUG(10, "to " << misU[s] + halfWindow << " -> binMax = " << binMax);
445
446 int num = 0;
447 for (int bin = binMin; bin < binMax + 1; bin++)
448 num = num + res->GetBinContent(bin);
449
450 float bkg = 0;
451 for (int bin = 1; bin < binMin; bin++)
452 bkg = bkg + res->GetBinContent(bin);
453 for (int bin = binMax; bin < res->GetNbinsX() + 1; bin++)
454 bkg = bkg + res->GetBinContent(bin);
455 //remove background clusters estimated from sidebands
456 num = num - bkg * (binMax - binMin + 1.) / (binMin + res->GetNbinsX() - binMax - 1);
457
458 if (ms_nIntercepts > 0) {
459 effU[s] = 1.*num / ms_nIntercepts;
460 //filling efficiency histogram
461 h_effU->Fill(sensorU[s], effU[s]);
462 if (effU[s] > 1)
463 B2WARNING("something is wrong! efficiency greater than 1: " << num << "/" << ms_nIntercepts);
464 effUErr[s] = sqrt(effU[s] * (1 - effU[s]) / ms_nIntercepts);
465 }
466 B2DEBUG(10, "num = " << num);
467 B2DEBUG(10, "den = " << ms_nIntercepts);
468 B2RESULT("U-side efficiency for " << currentLayer << "." << ladder.getLadderNumber() << "." << sensor.getSensorNumber() << " = " <<
469 effU[s] << " ± " << effUErr[s]);
470
471 //filling summary Histograms for the U side
472 h_statU->Fill(sensorU[s], stat * m_cmTomicron);
473 h_residU->Fill(sensorU[s], residU[s]*m_cmTomicron);
474 h_misU->Fill(sensorU[s], misU[s]*m_cmTomicron);
475
476 //finally set branch values
477 ms_residU = residU[s];
478 ms_misU = misU[s];
479 ms_effU = effU[s];
480 ms_effErrU = effUErr[s];
481 ms_statU = stat;
482 } else {
483 //set to some values if residual histogram is empty
484 ms_residU = -99;
485 ms_misU = -99;
486 ms_effU = -99;
487 ms_effErrU = -99;
488 ms_statU = -99;
489 }
490
491
492 } else { // V-side
493 sensorV[s] = Form("%d.%d.%dV", currentLayer, ladder.getLadderNumber(), sensor.getSensorNumber());
494 B2DEBUG(10, "V-side efficiency for " << currentLayer << "." << ladder.getLadderNumber() << "." << sensor.getSensorNumber());
495
496 if (res->GetEntries() > 0) {
497
498 res->GetQuantiles(1, &median, &q);
499
500 residV[s] = getOneSigma(res);
501 misV[s] = median;
502 ms_misV = misV[s];
503
504 float halfWindow = m_nSigma * residV[s];
505 if (m_nSigma == 0)
506 halfWindow = m_halfWidth;
507
508 int binMin = res->FindBin(misV[s] - halfWindow);
509 int binMax = res->FindBin(misV[s] + halfWindow);
510 B2DEBUG(10, "from " << misV[s] - halfWindow << " -> binMin = " << binMin);
511 B2DEBUG(10, "to " << misV[s] + halfWindow << " -> binMax = " << binMax);
512
513 //determine signal clusters
514 int num = 0;
515 for (int bin = binMin; bin < binMax + 1; bin++)
516 num = num + res->GetBinContent(bin);
517
518 float bkg = 0;
519 for (int bin = 1; bin < binMin; bin++)
520 bkg = bkg + res->GetBinContent(bin);
521 for (int bin = binMax; bin < res->GetNbinsX() + 1; bin++)
522 bkg = bkg + res->GetBinContent(bin);
523 //remove background clusters estimated from sidebands
524 num = num - bkg * (binMax - binMin + 1.) / (binMin + res->GetNbinsX() - binMax - 1);
525
526 if (ms_nIntercepts > 0) {
527 effV[s] = 1.*num / ms_nIntercepts;
528 //filling efficiency histogram
529 h_effV->Fill(sensorV[s], effV[s]);
530 if (effV[s] > 1)
531 B2WARNING("something is wrong! efficiency greater than 1: " << num << "/" << ms_nIntercepts);
532 effVErr[s] = sqrt(effV[s] * (1 - effV[s]) / ms_nIntercepts);
533 }
534 B2DEBUG(10, "num = " << num);
535 B2DEBUG(10, "den = " << ms_nIntercepts);
536 B2RESULT("V-side efficiency for " << currentLayer << "." << ladder.getLadderNumber() << "." << sensor.getSensorNumber() << " = " <<
537 effV[s] << " ± " << effVErr[s]);
538
539 //filling summary Histograms for the V side
540 h_statV->Fill(sensorV[s], stat * m_cmTomicron);
541 h_residV->Fill(sensorV[s], residV[s]*m_cmTomicron);
542 h_misV->Fill(sensorV[s], misV[s]*m_cmTomicron);
543
544 //finally set branch values
545 ms_residV = residV[s];
546 ms_misV = misV[s];
547 ms_effV = effV[s];
548 ms_effErrV = effVErr[s];
549 ms_statV = stat;
550 } else {
551 //set to some values if residual histogram is empty
552 ms_residV = -99;
553 ms_misV = -99;
554 ms_effV = -99;
555 ms_effErrV = -99;
556 ms_statV = -99;
557 }
558
559 }
560
561 }
562 B2DEBUG(50, "writing out resid histograms for " << sensor.getLayerNumber() << "." << sensor.getLadderNumber() << "." <<
563 sensor.getSensorNumber() << "." << view);
564 (m_clsResid->getHistogram(sensor, view))->Write();
565 (res)->Write();
566 (m_clsResid2D->getHistogram(sensor, view))->Write();
567
568
569 }
570 m_treeSummary->Fill();
571 s++;
572 }
573 }
574
575
576
577 oldDir->cd();
578 m_treeSummary->Write();
579
580 for (int bin = 0; bin < h_residU->GetNbinsX(); bin++)
581 h_residU->SetBinError(bin, 0.);
582 h_residU->Write();
583 for (int bin = 0; bin < h_residV->GetNbinsX(); bin++)
584 h_residV->SetBinError(bin, 0.);
585 h_residV->Write();
586 for (int bin = 0; bin < h_statU->GetNbinsX(); bin++)
587 h_statU->SetBinError(bin, 0.);
588 h_statU->Write();
589 for (int bin = 0; bin < h_statV->GetNbinsX(); bin++)
590 h_statV->SetBinError(bin, 0.);
591 h_statV->Write();
592 for (int bin = 0; bin < h_misU->GetNbinsX(); bin++)
593 h_misU->SetBinError(bin, 0.);
594 h_misU->Write();
595 for (int bin = 0; bin < h_misV->GetNbinsX(); bin++)
596 h_misV->SetBinError(bin, 0.);
597 h_misV->Write();
598 for (int bin = 0; bin < h_effU->GetNbinsX(); bin++)
599 h_effU->SetBinError(bin, 0.);
600 h_effU->Write();
601 for (int bin = 0; bin < h_effV->GetNbinsX(); bin++)
602 h_effV->SetBinError(bin, 0.);
603 h_effV->Write();
604
605 m_rootFilePtr->Close();
606 }
607}
TTree * m_tree
pointer at tree containing the parameters
VXD::GeoCache & m_geoCache
the geo cache instance
double getOneSigma(TH1F *h)
returns one sigma using quantiles
TTree * m_treeSummary
pointer at tree containing the summary parameters
TFile * m_rootFilePtr
pointer at root file used for storing histograms
H * getHistogram(const VxdID &vxdID, int view)
get a reference to the histogram for
Definition: SVDHistograms.h:56
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
const std::set< Belle2::VxdID > getLayers(SensorInfoBase::SensorType sensortype=SensorInfoBase::VXD)
Return a set of all known Layers.
Definition: GeoCache.cc:176
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
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
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
double sqrt(double a)
sqrt for double
Definition: beamHelpers.h:28

◆ 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

fill histograms

Reimplemented from Module.

Definition at line 158 of file SVDClusterEvaluationModule.cc.

159{
160
161 //tree variables - event
163 m_run = meta->getRun();
164 m_experiment = meta->getExperiment();
165
166 // int nEvent = m_eventMetaData->getEvent();
167 // B2DEBUG(10, "nEvent = " << nEvent << ": n intercepts = " << m_svdIntercepts.getEntries() << "n clusters DUT = " << m_svdClusters.getEntries());
168 bool isU = true;
169
170 //intercepts
171 for (int inter = 0 ; inter < m_svdIntercepts.getEntries(); inter++) {
172
174 continue;
175
176 B2DEBUG(10, "this intercept is related to a good track");
177
178 VxdID::baseType theVxdID = (VxdID::baseType)m_svdIntercepts[inter]->getSensorID();
179 double coorU = m_svdIntercepts[inter]->getCoorU();
180 double coorV = m_svdIntercepts[inter]->getCoorV();
181 double sigmaU = m_svdIntercepts[inter]->getSigmaU();
182 double sigmaV = m_svdIntercepts[inter]->getSigmaV();
183
184 //tree variables - sensor
185 m_layer = VxdID(theVxdID).getLayerNumber();
186 m_ladder = VxdID(theVxdID).getLadderNumber();
187 m_sensor = VxdID(theVxdID).getSensorNumber();
188 //tree variables - intercept
189 m_interU = coorU;
190 m_interV = coorV;
191 m_interErrU = sigmaU;
192 m_interErrV = sigmaV;
193 m_interUprime = m_svdIntercepts[inter]->getUprime();
194 m_interVprime = m_svdIntercepts[inter]->getVprime();
195 m_interErrUprime = m_svdIntercepts[inter]->getSigmaUprime();
196 m_interErrVprime = m_svdIntercepts[inter]->getSigmaVprime();
197
198 const VXD::SensorInfoBase& theSensorInfo = m_geoCache.getSensorInfo(theVxdID);
199 if (theSensorInfo.inside(coorU, coorV, -m_uFiducial, -m_vFiducial)) {
200 B2DEBUG(10, "intercept is inside fiducial area");
201
202 m_interCoor->fill(theVxdID, isU, coorU, coorV);
203 m_interSigma->fill(theVxdID, isU, sigmaU);
204 m_interSigma->fill(theVxdID, !isU, sigmaV);
205
206 double minresidU = 999;
207 bool minfoundU = false;
208 double minresidV = 999;
209 bool minfoundV = false;
210 int idU = -99;
211 int idV = -99;
212 m_residU = -99;
213 m_clUpos = -99;
214 m_clUcharge = -99;
215 m_clUsnr = -99;
216 m_clUsize = -99;
217 m_clUtime = -99;
218 m_residV = -99;
219 m_clVpos = -99;
220 m_clVcharge = -99;
221 m_clVsnr = -99;
222 m_clVsize = -99;
223 m_clVtime = -99;
224
225 //loop on clusters
226 for (int cls = 0 ; cls < m_svdClusters.getEntries(); cls++) {
227
228 VxdID::baseType clVxdID = (VxdID::baseType)m_svdClusters[cls]->getSensorID();
229 if (clVxdID != theVxdID)
230 continue;
231
232 double interCoor = coorV;
233 double clPos = m_svdClusters[cls]->getPosition();
234 // double interSigma = sigmaV;
235 if (m_svdClusters[cls]->isUCluster()) {
236 interCoor = coorU;
237 //interSigma = sigmaU;
238 clPos = m_svdClusters[cls]->getPosition(coorV);
239 }
240 double resid = interCoor - clPos;
241 m_clsResid->fill(theVxdID, m_svdClusters[cls]->isUCluster(), resid);
242 m_clsResid2D->fill(theVxdID, m_svdClusters[cls]->isUCluster(), clPos, resid);
243
244 //looking for the minimal residual
245 if (m_svdClusters[cls]->isUCluster()) {
246 if (fabs(resid) < fabs(minresidU)) {
247 minfoundU = true;
248 minresidU = resid;
249 idU = cls;
250 }
251 } else {
252 if (fabs(resid) < fabs(minresidV)) {
253 minfoundV = true;
254 minresidV = resid;
255 idV = cls;
256 }
257 }
258 }
259 if (minfoundU) {
260 m_clsMinResid->fill(theVxdID, true, minresidU);
261 m_residU = minresidU;
262 m_clUpos = m_svdClusters[idU]->getPosition(coorV);
263 m_clUcharge = m_svdClusters[idU]->getCharge();
264 m_clUsnr = m_svdClusters[idU]->getSNR();
265 m_clUsize = (int)m_svdClusters[idU]->getSize();
266 m_clUtime = m_svdClusters[idU]->getClsTime();
267 }
268 if (minfoundV) {
269 m_clsMinResid->fill(theVxdID, false, minresidV);
270 m_residV = minresidV;
271 m_clVpos = m_svdClusters[idV]->getPosition();
272 m_clVcharge = m_svdClusters[idV]->getCharge();
273 m_clVsnr = m_svdClusters[idV]->getSNR();
274 m_clVsize = (int)m_svdClusters[idV]->getSize();
275 m_clVtime = m_svdClusters[idV]->getClsTime();
276 }
277
278 //fill only if inside fiducial area
279 m_tree->Fill();
280
281 }
282
283
284 }
285
286 //clusters
287 for (int cls = 0 ; cls < m_svdClusters.getEntries(); cls++) {
288
289 VxdID::baseType theVxdID = (VxdID::baseType)m_svdClusters[cls]->getSensorID();
290 m_clsCoor->fill(theVxdID, m_svdClusters[cls]->isUCluster(), m_svdClusters[cls]->getPosition());
291
292 }
293
294
295}
StoreArray< SVDCluster > m_svdClusters
clusters
bool isRelatedToTrack(SVDIntercept *inter)
is the intercept related to a track
float m_interErrUprime
intercept U prime error
float m_interErrVprime
intercept V prime error
float m_interErrU
intercept U position error
StoreArray< SVDIntercept > m_svdIntercepts
intercepts
float m_interErrV
intercept V position error
void fill(const VxdID &vxdID, int view, Types ... args)
fill the histogram for
Definition: SVDHistograms.h:77
int getEntries() const
Get the number of objects in the array.
Definition: StoreArray.h:216
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
Definition: GeoCache.cc:67
Base class to provide Sensor Information for PXD and SVD.
bool inside(double u, double v, double uTolerance=DBL_EPSILON, double vTolerance=DBL_EPSILON) const
Check wether a given point is inside the active area.
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:36
baseType getLadderNumber() const
Get the ladder id.
Definition: VxdID.h:98
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96

◆ 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

◆ getOneSigma()

double getOneSigma ( TH1F *  h)
private

returns one sigma using quantiles

Definition at line 800 of file SVDClusterEvaluationModule.cc.

801{
802
803 TH1F* h1_res = (TH1F*)h1->Clone("h1_res");
804 double probs[2] = {0.16, 1 - 0.16};
805 double quant[2] = {0, 0};
806 int nbinsHisto = h1_res->GetNbinsX();
807 h1_res->SetBinContent(1, h1_res->GetBinContent(0) + h1_res->GetBinContent(1));
808 h1_res->SetBinContent(nbinsHisto, h1_res->GetBinContent(nbinsHisto) + h1_res->GetBinContent(nbinsHisto + 1));
809 h1_res->SetBinContent(0, 0);
810 h1_res->SetBinContent(nbinsHisto + 1, 0);
811 h1_res->GetQuantiles(2, quant, probs);
812
813 return (-quant[0] + quant[1]) / 2;
814}

◆ 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

◆ 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()

void initialize ( void  )
overridevirtual

check StoreArrays & create rootfile

Reimplemented from Module.

Definition at line 48 of file SVDClusterEvaluationModule.cc.

49{
50
51 m_eventMetaData.isRequired();
54 m_tracks.isRequired(m_TrackName);
55
56 m_rootFilePtr = new TFile(m_rootFileName.c_str(), "RECREATE");
57
60
65
70
71 // create new root file
72 m_rootFilePtr = new TFile(m_rootFileName.c_str(), "RECREATE");
73
74 //tree initialization
75 m_tree = new TTree("tree", "RECREATE");
76 b_experiment = m_tree->Branch("exp", &m_experiment, "exp/i");
77 b_run = m_tree->Branch("run", &m_run, "run/i");
78 b_layer = m_tree->Branch("layer", &m_layer, "layer/i");
79 b_ladder = m_tree->Branch("ladder", &m_ladder, "ladder/i");
80 b_sensor = m_tree->Branch("sensor", &m_sensor, "sensor/i");
81 b_interU = m_tree->Branch("interU", &m_interU, "interU/F");
82 b_interV = m_tree->Branch("interV", &m_interV, "interV/F");
83 b_interErrU = m_tree->Branch("interErrU", &m_interErrU, "interErrU/F");
84 b_interErrV = m_tree->Branch("interErrV", &m_interErrV, "interErrV/F");
85 b_interUprime = m_tree->Branch("interUprime", &m_interUprime, "interUprime/F");
86 b_interVprime = m_tree->Branch("interVprime", &m_interVprime, "interVprime/F");
87 b_interErrUprime = m_tree->Branch("interErrUprime", &m_interErrUprime, "interErrUprime/F");
88 b_interErrVprime = m_tree->Branch("interErrVprime", &m_interErrVprime, "interErrVprime/F");
89 b_residU = m_tree->Branch("residU", &m_residU, "residU/F");
90 b_residV = m_tree->Branch("residV", &m_residV, "residV/F");
91 b_clUpos = m_tree->Branch("clUpos", &m_clUpos, "clUpos/F");
92 b_clVpos = m_tree->Branch("clVpos", &m_clVpos, "clVpos/F");
93 b_clUcharge = m_tree->Branch("clUcharge", &m_clUcharge, "clUcharge/F");
94 b_clVcharge = m_tree->Branch("clVcharge", &m_clVcharge, "clVcharge/F");
95 b_clUsnr = m_tree->Branch("clUsnr", &m_clUsnr, "clUsnr/F");
96 b_clVsnr = m_tree->Branch("clVsnr", &m_clVsnr, "clVsnr/F");
97 b_clUsize = m_tree->Branch("clUsize", &m_clUsize, "clUsize/i");
98 b_clVsize = m_tree->Branch("clVsize", &m_clVsize, "clVsize/i");
99 b_clUtime = m_tree->Branch("clUtime", &m_clUtime, "clUtime/F");
100 b_clVtime = m_tree->Branch("clVtime", &m_clVtime, "clVtime/F");
101
102 //tree initialization
103 m_treeSummary = new TTree("summary", "RECREATE");
104 bs_experiment = m_treeSummary->Branch("exp", &m_experiment, "exp/i");
105 bs_run = m_treeSummary->Branch("run", &ms_run, "run/i");
106 bs_layer = m_treeSummary->Branch("layer", &ms_layer, "layer/i");
107 bs_ladder = m_treeSummary->Branch("ladder", &ms_ladder, "ladder/i");
108 bs_sensor = m_treeSummary->Branch("sensor", &ms_sensor, "sensor/i");
109 bs_effU = m_treeSummary->Branch("effU", &ms_effU, "effU/F");
110 bs_effV = m_treeSummary->Branch("effV", &ms_effV, "effU/F");
111 bs_effErrU = m_treeSummary->Branch("effErrU", &ms_effErrU, "effErrU/F");
112 bs_effErrV = m_treeSummary->Branch("effErrV", &ms_effErrV, "effErrU/F");
113 bs_nIntercepts = m_treeSummary->Branch("nIntercepts", &ms_nIntercepts, "nIntercepts/i");
114 bs_residU = m_treeSummary->Branch("residU", &ms_residU, "residU/F");
115 bs_residV = m_treeSummary->Branch("residV", &ms_residV, "residU/F");
116 bs_misU = m_treeSummary->Branch("misU", &ms_misU, "misU/F");
117 bs_misV = m_treeSummary->Branch("misV", &ms_misV, "misU/F");
118 bs_statU = m_treeSummary->Branch("statU", &ms_statU, "statU/F");
119 bs_statV = m_treeSummary->Branch("statV", &ms_statV, "statU/F");
120
121}
TBranch * b_interErrV
intercept V position error
TBranch * bs_statV
intercept stat error V
TBranch * b_interV
intercept V position
TBranch * b_interErrUprime
intercept U prime error
TBranch * b_interU
intercept U position
TBranch * b_interErrU
intercept U position error
StoreObjPtr< EventMetaData > m_eventMetaData
event meta data
TBranch * bs_statU
intercept stat error U
TBranch * b_interErrVprime
intercept V prime error
TBranch * bs_nIntercepts
number of intercepts
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.

◆ isRelatedToTrack()

bool isRelatedToTrack ( SVDIntercept inter)
private

is the intercept related to a track

Definition at line 611 of file SVDClusterEvaluationModule.cc.

612{
613
614 RelationVector<RecoTrack> theRC = DataStore::getRelationsWithObj<RecoTrack>(inter);
615 if (theRC.size() == 0)
616 return false;
617
618 RelationVector<Track> theTrack = theRC[0]->getRelationsWith<Track>(m_TrackName);
619
620 if (theTrack.size() == 0)
621 return false;
622
623 return true;
624
625}
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
Class that bundles various TrackFitResults.
Definition: Track.h:25

◆ 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

◆ 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_clUcharge

TBranch* b_clUcharge = nullptr

cluster U charge

Definition at line 85 of file SVDClusterEvaluationModule.h.

◆ b_clUpos

TBranch* b_clUpos = nullptr

cluster U position

Definition at line 83 of file SVDClusterEvaluationModule.h.

◆ b_clUsize

TBranch* b_clUsize = nullptr

cluster U size

Definition at line 89 of file SVDClusterEvaluationModule.h.

◆ b_clUsnr

TBranch* b_clUsnr = nullptr

cluster U snr

Definition at line 87 of file SVDClusterEvaluationModule.h.

◆ b_clUtime

TBranch* b_clUtime = nullptr

cluster U time

Definition at line 91 of file SVDClusterEvaluationModule.h.

◆ b_clVcharge

TBranch* b_clVcharge = nullptr

cluster V charge

Definition at line 86 of file SVDClusterEvaluationModule.h.

◆ b_clVpos

TBranch* b_clVpos = nullptr

cluster V position

Definition at line 84 of file SVDClusterEvaluationModule.h.

◆ b_clVsize

TBranch* b_clVsize = nullptr

cluster V size

Definition at line 90 of file SVDClusterEvaluationModule.h.

◆ b_clVsnr

TBranch* b_clVsnr = nullptr

cluster V snr

Definition at line 88 of file SVDClusterEvaluationModule.h.

◆ b_clVtime

TBranch* b_clVtime = nullptr

cluster V time

Definition at line 92 of file SVDClusterEvaluationModule.h.

◆ b_experiment

TBranch* b_experiment = nullptr

experiment number

Definition at line 68 of file SVDClusterEvaluationModule.h.

◆ b_interErrU

TBranch* b_interErrU = nullptr

intercept U position error

Definition at line 75 of file SVDClusterEvaluationModule.h.

◆ b_interErrUprime

TBranch* b_interErrUprime = nullptr

intercept U prime error

Definition at line 79 of file SVDClusterEvaluationModule.h.

◆ b_interErrV

TBranch* b_interErrV = nullptr

intercept V position error

Definition at line 76 of file SVDClusterEvaluationModule.h.

◆ b_interErrVprime

TBranch* b_interErrVprime = nullptr

intercept V prime error

Definition at line 80 of file SVDClusterEvaluationModule.h.

◆ b_interU

TBranch* b_interU = nullptr

intercept U position

Definition at line 73 of file SVDClusterEvaluationModule.h.

◆ b_interUprime

TBranch* b_interUprime = nullptr

intercept U prime

Definition at line 77 of file SVDClusterEvaluationModule.h.

◆ b_interV

TBranch* b_interV = nullptr

intercept V position

Definition at line 74 of file SVDClusterEvaluationModule.h.

◆ b_interVprime

TBranch* b_interVprime = nullptr

intercept V prime

Definition at line 78 of file SVDClusterEvaluationModule.h.

◆ b_ladder

TBranch* b_ladder = nullptr

ladder number

Definition at line 70 of file SVDClusterEvaluationModule.h.

◆ b_layer

TBranch* b_layer = nullptr

layer number

Definition at line 71 of file SVDClusterEvaluationModule.h.

◆ b_residU

TBranch* b_residU = nullptr

U residual.

Definition at line 81 of file SVDClusterEvaluationModule.h.

◆ b_residV

TBranch* b_residV = nullptr

V residual.

Definition at line 82 of file SVDClusterEvaluationModule.h.

◆ b_run

TBranch* b_run = nullptr

run number

Definition at line 69 of file SVDClusterEvaluationModule.h.

◆ b_sensor

TBranch* b_sensor = nullptr

sensor number

Definition at line 72 of file SVDClusterEvaluationModule.h.

◆ bs_effErrU

TBranch* bs_effErrU = nullptr

efficiency error U

Definition at line 129 of file SVDClusterEvaluationModule.h.

◆ bs_effErrV

TBranch* bs_effErrV = nullptr

efficiency error V

Definition at line 130 of file SVDClusterEvaluationModule.h.

◆ bs_effU

TBranch* bs_effU = nullptr

efficiency U

Definition at line 127 of file SVDClusterEvaluationModule.h.

◆ bs_effV

TBranch* bs_effV = nullptr

efficiency V

Definition at line 128 of file SVDClusterEvaluationModule.h.

◆ bs_experiment

TBranch* bs_experiment = nullptr

experiment number

Definition at line 122 of file SVDClusterEvaluationModule.h.

◆ bs_ladder

TBranch* bs_ladder = nullptr

ladder number

Definition at line 124 of file SVDClusterEvaluationModule.h.

◆ bs_layer

TBranch* bs_layer = nullptr

layer number

Definition at line 125 of file SVDClusterEvaluationModule.h.

◆ bs_misU

TBranch* bs_misU = nullptr

misalignment U

Definition at line 134 of file SVDClusterEvaluationModule.h.

◆ bs_misV

TBranch* bs_misV = nullptr

misalignment V

Definition at line 135 of file SVDClusterEvaluationModule.h.

◆ bs_nIntercepts

TBranch* bs_nIntercepts = nullptr

number of intercepts

Definition at line 131 of file SVDClusterEvaluationModule.h.

◆ bs_residU

TBranch* bs_residU = nullptr

residual U

Definition at line 132 of file SVDClusterEvaluationModule.h.

◆ bs_residV

TBranch* bs_residV = nullptr

residual V

Definition at line 133 of file SVDClusterEvaluationModule.h.

◆ bs_run

TBranch* bs_run = nullptr

run number

Definition at line 123 of file SVDClusterEvaluationModule.h.

◆ bs_sensor

TBranch* bs_sensor = nullptr

sensor number

Definition at line 126 of file SVDClusterEvaluationModule.h.

◆ bs_statU

TBranch* bs_statU = nullptr

intercept stat error U

Definition at line 136 of file SVDClusterEvaluationModule.h.

◆ bs_statV

TBranch* bs_statV = nullptr

intercept stat error V

Definition at line 137 of file SVDClusterEvaluationModule.h.

◆ m_abs_LargeS_U

float m_abs_LargeS_U = 1
private

half width including safety margin, large sensor U

Definition at line 194 of file SVDClusterEvaluationModule.h.

◆ m_abs_LargeS_V

float m_abs_LargeS_V = 1
private

half width including safety margin, large sensor V

Definition at line 195 of file SVDClusterEvaluationModule.h.

◆ m_abs_SmallS_U

float m_abs_SmallS_U = 1
private

half width including safety margin, small sensor U

Definition at line 196 of file SVDClusterEvaluationModule.h.

◆ m_abs_SmallS_V

float m_abs_SmallS_V = 1
private

half width including safety margin, small sensor V

Definition at line 197 of file SVDClusterEvaluationModule.h.

◆ m_clsCoor

SVDHistograms<TH1F>* m_clsCoor
private

cluster coordinates plots

Definition at line 177 of file SVDClusterEvaluationModule.h.

◆ m_clsMinResid

SVDHistograms<TH1F>* m_clsMinResid
private

cluster minimum resid plots

Definition at line 179 of file SVDClusterEvaluationModule.h.

◆ m_clsResid

SVDHistograms<TH1F>* m_clsResid
private

cluster resid plots

Definition at line 178 of file SVDClusterEvaluationModule.h.

◆ m_clsResid2D

SVDHistograms<TH2F>* m_clsResid2D
private

2D resid plots

Definition at line 180 of file SVDClusterEvaluationModule.h.

◆ m_clUcharge

float m_clUcharge = -1

cluster U charge

Definition at line 112 of file SVDClusterEvaluationModule.h.

◆ m_clUpos

float m_clUpos = -1

cluster U position

Definition at line 110 of file SVDClusterEvaluationModule.h.

◆ m_clUsize

int m_clUsize = -1

cluster U size

Definition at line 116 of file SVDClusterEvaluationModule.h.

◆ m_clUsnr

float m_clUsnr = -1

cluster U snr

Definition at line 114 of file SVDClusterEvaluationModule.h.

◆ m_ClusterName

std::string m_ClusterName

SVDCluster StoreArray name.

Definition at line 55 of file SVDClusterEvaluationModule.h.

◆ m_clUtime

float m_clUtime = -1

cluster U time

Definition at line 118 of file SVDClusterEvaluationModule.h.

◆ m_clVcharge

float m_clVcharge = -1

cluster V charge

Definition at line 113 of file SVDClusterEvaluationModule.h.

◆ m_clVpos

float m_clVpos = -1

cluster V position

Definition at line 111 of file SVDClusterEvaluationModule.h.

◆ m_clVsize

int m_clVsize = -1

cluster V size

Definition at line 117 of file SVDClusterEvaluationModule.h.

◆ m_clVsnr

float m_clVsnr = -1

cluster V snr

Definition at line 115 of file SVDClusterEvaluationModule.h.

◆ m_clVtime

float m_clVtime = -1

cluster V time

Definition at line 119 of file SVDClusterEvaluationModule.h.

◆ m_cmTomicron

double m_cmTomicron = 10000
private

factor cm -> micron

Definition at line 159 of file SVDClusterEvaluationModule.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_description

std::string m_description
privateinherited

The description of the module.

Definition at line 511 of file Module.h.

◆ m_eventMetaData

StoreObjPtr<EventMetaData> m_eventMetaData
private

event meta data

Definition at line 170 of file SVDClusterEvaluationModule.h.

◆ m_experiment

int m_experiment = -1

experiment number

Definition at line 95 of file SVDClusterEvaluationModule.h.

◆ m_geoCache

VXD::GeoCache& m_geoCache = VXD::GeoCache::getInstance()
private

the geo cache instance

Definition at line 168 of file SVDClusterEvaluationModule.h.

◆ m_groupNstrips

int m_groupNstrips = -1
private

number of strip in the group in 2D resid vs position

Definition at line 166 of file SVDClusterEvaluationModule.h.

◆ m_halfWidth

float m_halfWidth = -1
private

window half width for efficiency computation

Definition at line 165 of file SVDClusterEvaluationModule.h.

◆ m_hasReturnValue

bool m_hasReturnValue
privateinherited

True, if the return value is set.

Definition at line 518 of file Module.h.

◆ m_InterceptName

std::string m_InterceptName

SVDIntercept StoreArray name.

Definition at line 56 of file SVDClusterEvaluationModule.h.

◆ m_interCoor

SVDHistograms<TH2F>* m_interCoor
private

intercept coordinates plots

Definition at line 175 of file SVDClusterEvaluationModule.h.

◆ m_interErrU

float m_interErrU = -1

intercept U position error

Definition at line 102 of file SVDClusterEvaluationModule.h.

◆ m_interErrUprime

float m_interErrUprime = -1

intercept U prime error

Definition at line 106 of file SVDClusterEvaluationModule.h.

◆ m_interErrV

float m_interErrV = -1

intercept V position error

Definition at line 103 of file SVDClusterEvaluationModule.h.

◆ m_interErrVprime

float m_interErrVprime = -1

intercept V prime error

Definition at line 107 of file SVDClusterEvaluationModule.h.

◆ m_interSigma

SVDHistograms<TH1F>* m_interSigma
private

intercept stat error plots

Definition at line 176 of file SVDClusterEvaluationModule.h.

◆ m_interSigmaMax

double m_interSigmaMax = -1
private

max of the histo of the intercept stat error

Definition at line 161 of file SVDClusterEvaluationModule.h.

◆ m_interU

float m_interU = -1

intercept U position

Definition at line 100 of file SVDClusterEvaluationModule.h.

◆ m_interUprime

float m_interUprime = -1

intercept U prime

Definition at line 104 of file SVDClusterEvaluationModule.h.

◆ m_interV

float m_interV = -1

intercept V position

Definition at line 101 of file SVDClusterEvaluationModule.h.

◆ m_interVprime

float m_interVprime = -1

intercept V prime

Definition at line 105 of file SVDClusterEvaluationModule.h.

◆ m_ladder

int m_ladder = -1

ladder number

Definition at line 97 of file SVDClusterEvaluationModule.h.

◆ m_layer

int m_layer = -1

layer number

Definition at line 98 of file SVDClusterEvaluationModule.h.

◆ m_logConfig

LogConfig m_logConfig
privateinherited

The log system configuration of the module.

Definition at line 514 of file Module.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_nBins_LargeS_U

int m_nBins_LargeS_U = 100
private

number of bins for large sensor U

Definition at line 189 of file SVDClusterEvaluationModule.h.

◆ m_nBins_LargeS_V

int m_nBins_LargeS_V = 100
private

number of bins for large sensor V

Definition at line 190 of file SVDClusterEvaluationModule.h.

◆ m_nBins_SmallS_U

int m_nBins_SmallS_U = 100
private

number of bins for small sensor U

Definition at line 191 of file SVDClusterEvaluationModule.h.

◆ m_nBins_SmallS_V

int m_nBins_SmallS_V = 100
private

number of bins for small sensor V

Definition at line 192 of file SVDClusterEvaluationModule.h.

◆ m_nSigma

float m_nSigma = -1
private

number of sigmas for efficiency computation

Definition at line 164 of file SVDClusterEvaluationModule.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_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_residU

float m_residU = -1

U residual.

Definition at line 108 of file SVDClusterEvaluationModule.h.

◆ m_residV

float m_residV = -1

V residual.

Definition at line 109 of file SVDClusterEvaluationModule.h.

◆ m_returnValue

int m_returnValue
privateinherited

The return value.

Definition at line 519 of file Module.h.

◆ m_rootFileName

std::string m_rootFileName

root file name

Definition at line 54 of file SVDClusterEvaluationModule.h.

◆ m_rootFilePtr

TFile* m_rootFilePtr = nullptr

pointer at root file used for storing histograms

Definition at line 60 of file SVDClusterEvaluationModule.h.

◆ m_run

int m_run = -1

run number

Definition at line 96 of file SVDClusterEvaluationModule.h.

◆ m_safety_margin

float m_safety_margin = 0.2
private

safety margin

Definition at line 187 of file SVDClusterEvaluationModule.h.

◆ m_sensor

int m_sensor = -1

sensor number

Definition at line 99 of file SVDClusterEvaluationModule.h.

◆ m_svdClusters

StoreArray<SVDCluster> m_svdClusters
private

clusters

Definition at line 171 of file SVDClusterEvaluationModule.h.

◆ m_svdIntercepts

StoreArray<SVDIntercept> m_svdIntercepts
private

intercepts

Definition at line 173 of file SVDClusterEvaluationModule.h.

◆ m_theLayer

int m_theLayer = -1
private

layer under study

Definition at line 160 of file SVDClusterEvaluationModule.h.

◆ m_TrackName

std::string m_TrackName

Track StoreArray name.

Definition at line 57 of file SVDClusterEvaluationModule.h.

◆ m_tracks

StoreArray<Track> m_tracks
private

tracks

Definition at line 172 of file SVDClusterEvaluationModule.h.

◆ m_tree

TTree* m_tree = nullptr

pointer at tree containing the parameters

Definition at line 61 of file SVDClusterEvaluationModule.h.

◆ m_treeSummary

TTree* m_treeSummary = nullptr

pointer at tree containing the summary parameters

Definition at line 62 of file SVDClusterEvaluationModule.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.

◆ m_UbinWidth

double m_UbinWidth

histogram u-bin width in microns

Definition at line 64 of file SVDClusterEvaluationModule.h.

◆ m_uFiducial

double m_uFiducial = -1
private

fiducial length u

Definition at line 162 of file SVDClusterEvaluationModule.h.

◆ m_VbinWidth

double m_VbinWidth

histogram v-bin width in microns

Definition at line 65 of file SVDClusterEvaluationModule.h.

◆ m_vFiducial

double m_vFiducial = -1
private

fiducial length v

Definition at line 163 of file SVDClusterEvaluationModule.h.

◆ m_width_LargeS_U

float m_width_LargeS_U = 5.772
private

width large sensor U

Definition at line 182 of file SVDClusterEvaluationModule.h.

◆ m_width_LargeS_V

float m_width_LargeS_V = 12.290
private

width large sensor V

Definition at line 183 of file SVDClusterEvaluationModule.h.

◆ m_width_SmallS_U

float m_width_SmallS_U = 3.855
private

width small sensor U

Definition at line 184 of file SVDClusterEvaluationModule.h.

◆ m_width_SmallS_V

float m_width_SmallS_V = m_width_LargeS_V
private

width small sensor V

Definition at line 185 of file SVDClusterEvaluationModule.h.

◆ ms_effErrU

float ms_effErrU = -1

efficiency error U

Definition at line 147 of file SVDClusterEvaluationModule.h.

◆ ms_effErrV

float ms_effErrV = -1

efficiency error V

Definition at line 148 of file SVDClusterEvaluationModule.h.

◆ ms_effU

float ms_effU = -1

efficiency U

Definition at line 145 of file SVDClusterEvaluationModule.h.

◆ ms_effV

float ms_effV = -1

efficiency V

Definition at line 146 of file SVDClusterEvaluationModule.h.

◆ ms_experiment

int ms_experiment = -1

experiment number

Definition at line 140 of file SVDClusterEvaluationModule.h.

◆ ms_ladder

int ms_ladder = -1

ladder number

Definition at line 142 of file SVDClusterEvaluationModule.h.

◆ ms_layer

int ms_layer = -1

layer number

Definition at line 143 of file SVDClusterEvaluationModule.h.

◆ ms_misU

float ms_misU = -1

misalignment U

Definition at line 152 of file SVDClusterEvaluationModule.h.

◆ ms_misV

float ms_misV = -1

misalignment V

Definition at line 153 of file SVDClusterEvaluationModule.h.

◆ ms_nIntercepts

int ms_nIntercepts = -1

number of intercepts

Definition at line 149 of file SVDClusterEvaluationModule.h.

◆ ms_residU

float ms_residU = -1

residual U

Definition at line 150 of file SVDClusterEvaluationModule.h.

◆ ms_residV

float ms_residV = -1

residual V

Definition at line 151 of file SVDClusterEvaluationModule.h.

◆ ms_run

int ms_run = -1

run number

Definition at line 141 of file SVDClusterEvaluationModule.h.

◆ ms_sensor

int ms_sensor = -1

sensor number

Definition at line 144 of file SVDClusterEvaluationModule.h.

◆ ms_statU

float ms_statU = -1

intercept stat error U

Definition at line 154 of file SVDClusterEvaluationModule.h.

◆ ms_statV

float ms_statV = -1

intercept stat error V

Definition at line 155 of file SVDClusterEvaluationModule.h.


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