Belle II Software development
SVDPerformanceModule Class Reference

The (TB) SVD Performance Module. More...

#include <SVDPerformanceModule.h>

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

 SVDPerformanceModule ()
 constructor
 
virtual ~SVDPerformanceModule ()
 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_ShaperDigitName = "SVDShaperDigits"
 ShaperDigits Store Array name.
 
std::string m_RecoDigitName = "SVDRecoDigits"
 SVDRecoDigits Store Array name.
 
std::string m_ClusterName = "SVDClusters"
 SVDCluster StoreArray name.
 
std::string m_TrackFitResultName = "TrackFitResults"
 TrackFitResult StoreArray name.
 
std::string m_TrackName = "Tracks"
 Track StoreArray name.
 
bool m_is2017TBanalysis = false
 true if we analyze 2017 TB data
 
bool m_isSimulation = false
 true if we analyze Simulated data
 
float m_debugLowTime = - 100
 cluster Time below this number will produce a printout
 
std::string m_rootFileName = ""
 root file name
 
TFile * m_rootFilePtr = nullptr
 pointer at root file used for storing histograms
 

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

int getSensor (int layer, int sensor, bool isTB)
 get sensor number
 
TH1F * createHistogram1D (const char *name, const char *title, Int_t nbins, Double_t min, Double_t max, const char *xtitle, TList *histoList=nullptr)
 Function returning a TH1F.
 
TH2F * createHistogram2D (const char *name, const char *title, Int_t nbinsX, Double_t minX, Double_t maxX, const char *titleX, Int_t nbinsY, Double_t minY, Double_t maxY, const char *titleY, TList *histoList=nullptr)
 Function returning TH2F.
 
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

int m_nEvents = 0
 number of events
 
SVDNoiseCalibrations m_NoiseCal
 SVDNoise calibration db object.
 
SVDPulseShapeCalibrations m_PulseShapeCal
 SVDPulseShape calibration db object.
 
StoreArray< SVDShaperDigitm_svdShapers
 SVDShaperDigit store array.
 
StoreArray< SVDRecoDigitm_svdRecos
 SVDRecoDigits store array.
 
StoreArray< SVDClusterm_svdClusters
 SVDCluster store array.
 
StoreArray< RecoTrackm_recoTracks
 RecoTracks store array.
 
StoreArray< Trackm_Tracks
 Tracks store array.
 
StoreArray< TrackFitResultm_tfr
 TrackFitResult store array.
 
StoreObjPtr< SVDEventInfom_storeSVDEvtInfo
 Storage for SVDEventInfo object.
 
std::string m_svdEventInfoName
 Name of the SVDEventInfo object.
 
int m_ntracks = 0
 number of tracks
 
unsigned int sensorsOnLayer [4] = {0}
 sensors on layer i
 
TList * m_histoList_track = nullptr
 histo list tracks
 
TList * m_histoList_corr = nullptr
 histo list correlations
 
TList * m_histoList_clTRK [m_nLayers] = {nullptr}
 histo list clusters related to tracks
 
TList * m_histoList_cluster [m_nLayers] = {nullptr}
 histo list clusters
 
TList * m_histoList_shaper [m_nLayers] = {nullptr}
 histo list shaper digits
 
TList * m_histoList_reco [m_nLayers] = {nullptr}
 histo list reco digits
 
TH1F * m_nTracks = nullptr
 number of tracks
 
TH1F * m_Pvalue = nullptr
 track p value
 
TH1F * m_mom = nullptr
 track momentum
 
TH1F * m_nSVDhits = nullptr
 track momentum
 
TH1F * h_nShaper [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 number per event
 
TH1F * h_nReco [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 number per event
 
TH1F * h_recoCharge [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge
 
TH1F * h_recoEnergy [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy
 
TH1F * h_stripNoise [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 strip noise
 
TH1F * h_recoTime [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH1F * h_nCl [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 number per event
 
TH1F * h_clSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 size
 
TH1F * h_clCharge [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge
 
TH1F * h_clEnergy [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy
 
TH1F * h_clSeedMaxbin [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 maxbin seed
 
TH2F * h_clEnergyVSMaxbin [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS maxbin seed
 
TH2F * h_clEnergyVSCoorU [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS position U
 
TH2F * h_clEnergyVSCoorV [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS position V
 
TH2F * h_clNuVSNv [m_nLayers][m_nSensors] = {{nullptr}}
 N U culsters VS N V clusters.
 
TH2F * h_clCoorUVSCoorV [m_nLayers][m_nSensors] = {{nullptr}}
 energy VS position
 
TH1F * h_clCoor1VSCoor2 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 coor1 VS coor2
 
TH2F * h_clEnergy12VSdelta [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 coor1 VS coor2
 
TH1F * h_clCellID1VSCellID2 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 coor1 VS coor2
 
TH2F * h_clEnergyUVSEnergyV [m_nLayers][m_nSensors] = {{nullptr}}
 energy VS position
 
TH1F * h_clSN [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 signal over noise
 
TH1F * h_clTime [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH2F * h_clChargeVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_clEnergyVSSize_mb12 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS size, maxbin == 1,2
 
TH2F * h_clEnergyVSSize_mb345 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS size, maxbin == 3,4,5
 
TH2F * h_clEnergyVSSize_mb6 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy VS size, max bin == 6
 
TH2F * h_clSNVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_clTimeVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_clTimeVSTrueTime [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time VS true time
 
TH1F * h_nCltrk [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 number per event
 
TH1F * h_cltrkSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 size
 
TH1F * h_cltrkCharge [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge
 
TH1F * h_cltrkEnergy [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 energy
 
TH1F * h_cltrkSN [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 signal over noise
 
TH1F * h_cltrkTime [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH1F * h_cltrkTime_TB1 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH1F * h_cltrkTime_TB2 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH1F * h_cltrkTime_TB3 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH1F * h_cltrkTime_TB4 [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time
 
TH2F * h_cltrkChargeVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_cltrkSNVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_cltrkTimeVSSize [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge VS size
 
TH2F * h_cltrkTimeVSTrueTime [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 time VS true time
 
TH1F * h_1cltrkCharge [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge
 
TH1F * h_1cltrkSN [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 signal over noise
 
TH1F * h_2cltrkCharge [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 charge
 
TH1F * h_2cltrkSN [m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
 signal over noise
 
TH1F * h_cltrk_UU = nullptr
 U time vs U time.
 
TH1F * h_cltrk_VV = nullptr
 V time vs V time.
 
TH1F * h_cltrk_UV = nullptr
 U time vs V time.
 
TH2F * h_cltrkTime_L4uL5u = nullptr
 L4U time VS L5U time.
 
TH2F * h_cltrkTime_L4vL5v = nullptr
 L4V time VS L5V time.
 
TH2F * h_cltrkTime_L5uL5v = nullptr
 L5U time VS L5V time.
 
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.
 

Static Private Attributes

static const int m_nLayers = 4
 max number of layers
 
static const int m_nSensors = 5
 max number of sensors
 
static const int m_nSides = 2
 max number of sides
 

Detailed Description

The (TB) SVD Performance Module.

Definition at line 41 of file SVDPerformanceModule.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

◆ SVDPerformanceModule()

constructor

Definition at line 21 of file SVDPerformanceModule.cc.

21 : Module()
22 , m_nTracks(0), m_Pvalue(), m_mom(0), m_nSVDhits(0)
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("SVDPerformance_output.root"));
28 addParam("SVDEventInfo", m_svdEventInfoName, "Defines the name of the EventInfo", string(""));
29
30 addParam("is2017TBanalysis", m_is2017TBanalysis, "True if analyzing 2017 TB data.", bool(false));
31 addParam("isSimulation", m_isSimulation, "True if analyzing simulated data.", bool(false));
32
33 addParam("debugLowTime", m_debugLowTime, "Cluster Time below this number will produce a printout.", float(0.));
34
35 addParam("ShaperDigitsName", m_ShaperDigitName, "Name of ShaperDigit Store Array.", std::string(""));
36 addParam("RecoDigitsName", m_RecoDigitName, "Name of RecoDigit Store Array.", std::string(""));
37 addParam("ClustersName", m_ClusterName, "Name of Cluster Store Array.", std::string(""));
38 addParam("TrackListName", m_TrackName, "Name of Track Store Array.", std::string(""));
39 addParam("TrackFitResultListName", m_TrackFitResultName, "Name of TracksFitResult Store Array.", std::string(""));
40}
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
Module()
Constructor.
Definition: Module.cc:30
std::string m_rootFileName
root file name
float m_debugLowTime
cluster Time below this number will produce a printout
std::string m_ShaperDigitName
ShaperDigits Store Array name.
std::string m_TrackName
Track StoreArray name.
std::string m_RecoDigitName
SVDRecoDigits Store Array name.
std::string m_svdEventInfoName
Name of the SVDEventInfo object.
bool m_isSimulation
true if we analyze Simulated data
std::string m_TrackFitResultName
TrackFitResult StoreArray name.
TH1F * m_nTracks
number of tracks
std::string m_ClusterName
SVDCluster StoreArray name.
bool m_is2017TBanalysis
true if we analyze 2017 TB data
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:559

◆ ~SVDPerformanceModule()

virtual ~SVDPerformanceModule ( )
inlinevirtual

destructor

Definition at line 49 of file SVDPerformanceModule.h.

49{};

Member Function Documentation

◆ beginRun()

void beginRun ( void  )
overridevirtual

create histograms

Reimplemented from Module.

Definition at line 419 of file SVDPerformanceModule.cc.

420{
421 m_nEvents = 0;
422}

◆ 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:362
const std::string & getName() const
Returns the name of the module.
Definition: Module.h:186
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:511
LogConfig m_logConfig
The log system configuration of the module.
Definition: Module.h:513
std::vector< ModuleCondition > m_conditions
Module condition, only non-null if set.
Definition: Module.h:520
std::string m_package
Package this module is found in (may be empty).
Definition: Module.h:509
std::shared_ptr< Module > ModulePtr
Defines a pointer to a module object as a boost shared pointer.
Definition: Module.h:43

◆ createHistogram1D()

TH1F * createHistogram1D ( const char *  name,
const char *  title,
Int_t  nbins,
Double_t  min,
Double_t  max,
const char *  xtitle,
TList *  histoList = nullptr 
)
private

Function returning a TH1F.

Definition at line 899 of file SVDPerformanceModule.cc.

902{
903
904 TH1F* h = new TH1F(name, title, nbins, min, max);
905
906 h->GetXaxis()->SetTitle(xtitle);
907
908 if (histoList)
909 histoList->Add(h);
910
911 return h;
912}

◆ createHistogram2D()

TH2F * createHistogram2D ( const char *  name,
const char *  title,
Int_t  nbinsX,
Double_t  minX,
Double_t  maxX,
const char *  titleX,
Int_t  nbinsY,
Double_t  minY,
Double_t  maxY,
const char *  titleY,
TList *  histoList = nullptr 
)
private

Function returning TH2F.

Definition at line 915 of file SVDPerformanceModule.cc.

920{
921
922 TH2F* h = new TH2F(name, title, nbinsX, minX, maxX, nbinsY, minY, maxY);
923
924 h->GetXaxis()->SetTitle(titleX);
925 h->GetYaxis()->SetTitle(titleY);
926
927 if (histoList)
928 histoList->Add(h);
929
930 return h;
931}

◆ 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 425 of file Module.h.

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

◆ 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 438 of file Module.h.

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

◆ 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 431 of file Module.h.

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

◆ 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 419 of file Module.h.

419{ 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 444 of file Module.h.

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

◆ endRun()

void endRun ( void  )
overridevirtual

write histogrmas

Reimplemented from Module.

Definition at line 795 of file SVDPerformanceModule.cc.

796{
797
798 /*
799 B2RESULT(" number tracks = " << m_ntracks);
800 B2RESULT(" average number of cluster per layer:");
801 B2RESULT(" Layer 3, u = " << h_nCl_L3u->GetMean() << ", v = " << h_nCl_L3v->GetMean());
802 B2RESULT(" Layer 4, u = " << h_nCl_L4u->GetMean() << ", v = " << h_nCl_L4v->GetMean());
803 B2RESULT(" Layer 5, u = " << h_nCl_L5u->GetMean() << ", v = " << h_nCl_L5v->GetMean());
804 B2RESULT(" Layer 6, u = " << h_nCl_L6u->GetMean() << ", v = " << h_nCl_L6v->GetMean());
805 B2RESULT(" average cluster size per layer:");
806 B2RESULT(" Layer 3, u = " << h_clSize_L3u->GetMean() << ", v = " << h_clSize_L3v->GetMean());
807 B2RESULT(" Layer 4, u = " << h_clSize_L4u->GetMean() << ", v = " << h_clSize_L4v->GetMean());
808 */
809 if (m_rootFilePtr != nullptr) {
810 m_rootFilePtr->cd();
811
812 TDirectory* oldDir = gDirectory;
813 TObject* obj;
814
815 TDirectory* dir_track = oldDir->mkdir("tracks");
816 dir_track->cd();
817 TIter nextH_track(m_histoList_track);
818 while ((obj = nextH_track())) {
819 if (obj->InheritsFrom("TH1F"))((TH1F*)obj)->Scale(1. / m_nEvents);
820 obj->Write();
821 }
822
823
824 TDirectory* dir_shaper = oldDir->mkdir("shaper");
825 dir_shaper->cd();
826 for (int i = 0; i < m_nLayers; i++) {
827 TString layerName = "shaperL";
828 layerName += i + 3;
829 TDirectory* dir_layer = dir_shaper->mkdir(layerName.Data());
830 dir_layer->cd();
831 TIter nextH_shaper(m_histoList_shaper[i]);
832 while ((obj = nextH_shaper())) {
833 if (obj->InheritsFrom("TH1F"))((TH1F*)obj)->Scale(1. / m_nEvents);
834 obj->Write();
835 }
836 }
837
838
839 TDirectory* dir_reco = oldDir->mkdir("reco");
840 dir_reco->cd();
841 for (int i = 0; i < m_nLayers; i++) {
842 TString layerName = "recoL";
843 layerName += i + 3;
844 TDirectory* dir_layer = dir_reco->mkdir(layerName.Data());
845 dir_layer->cd();
846 TIter nextH_reco(m_histoList_reco[i]);
847 while ((obj = nextH_reco())) {
848 if (obj->InheritsFrom("TH1F"))((TH1F*)obj)->Scale(1. / m_nEvents);
849 obj->Write();
850 }
851 }
852
853 TDirectory* dir_cluster = oldDir->mkdir("clusters");
854 dir_cluster->cd();
855 for (int i = 0; i < m_nLayers; i++) {
856 TString layerName = "clusterL";
857 layerName += i + 3;
858 TDirectory* dir_layer = dir_cluster->mkdir(layerName.Data());
859 dir_layer->cd();
860 TIter nextH_cluster(m_histoList_cluster[i]);
861 while ((obj = nextH_cluster())) {
862 if (obj->InheritsFrom("TH1F"))((TH1F*)obj)->Scale(1. / m_nEvents);
863 obj->Write();
864 }
865 }
866
867 TDirectory* dir_clTRK = oldDir->mkdir("clustersTrk");
868 dir_clTRK->cd();
869 for (int i = 0; i < m_nLayers; i++) {
870 TString layerName = "clstrkL";
871 layerName += i + 3;
872 TDirectory* dir_layer = dir_clTRK->mkdir(layerName.Data());
873 dir_layer->cd();
874 TIter nextH_clTRK(m_histoList_clTRK[i]);
875 while ((obj = nextH_clTRK())) {
876 if (obj->InheritsFrom("TH1F"))((TH1F*)obj)->Scale(1. / m_nEvents);
877 obj->Write();
878 }
879 }
880
881 oldDir->cd();
882 TIter nextH_corr(m_histoList_corr);
883 while ((obj = nextH_corr())) {
884 if (obj->InheritsFrom("TH1F"))
885 ((TH1F*)obj)->Scale(1. / m_nEvents);
886 obj->Write();
887 }
888
889 m_rootFilePtr->Close();
890
891
892 }
893
894
895
896}
TList * m_histoList_reco[m_nLayers]
histo list reco digits
TList * m_histoList_corr
histo list correlations
static const int m_nLayers
max number of layers
TList * m_histoList_track
histo list tracks
TList * m_histoList_clTRK[m_nLayers]
histo list clusters related to tracks
TList * m_histoList_shaper[m_nLayers]
histo list shaper digits
TFile * m_rootFilePtr
pointer at root file used for storing histograms
TList * m_histoList_cluster[m_nLayers]
histo list clusters

◆ 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:518
bool m_hasReturnValue
True, if the return value is set.
Definition: Module.h:517

◆ event()

void event ( void  )
overridevirtual

fill histograms

Reimplemented from Module.

Definition at line 424 of file SVDPerformanceModule.cc.

425{
426
427 SVDModeByte modeByte = m_storeSVDEvtInfo->getModeByte();
428
429 m_nEvents++;
430 float c_eTOkeV = 3.6 / 1000; //keV = e * c_eTOkeV
431
432 // StoreObjPtr<EventMetaData> eventMetaDataPtr;
433
434 //ShaperDigits
435 int nShaperDigi[m_nLayers][m_nSensors][m_nSides];
436
437 //RecoDigits
438 int nRecoDigi[m_nLayers][m_nSensors][m_nSides];
439
440 // SVD clusters
441 int nCl[m_nLayers][m_nSensors][m_nSides];
442 int nCl345[m_nLayers][m_nSensors][m_nSides];
443 int nCltrk[m_nLayers][m_nSensors][m_nSides];
444
445 for (int i = 0; i < m_nLayers; i ++) //loop on Layers
446 for (int j = 0; j < m_nSensors; j ++) //loop on Sensors
447 for (int k = 0; k < m_nSides; k ++) { //loop on Sides
448 nShaperDigi[i][j][k] = 0;
449 nRecoDigi[i][j][k] = 0;
450 nCl[i][j][k] = 0;
451 nCl345[i][j][k] = 0;
452 nCltrk[i][j][k] = 0;
453 }
454
455 //tracks
456 if (m_Tracks) {
457 m_nTracks->Fill(m_Tracks.getEntries());
458 m_ntracks += m_Tracks.getEntries();
459 }
460
461 for (Track& track : m_Tracks) {
462
463 const TrackFitResult* tfr = nullptr;
465 tfr = track.getTrackFitResultWithClosestMass(Const::electron);
466 else
467 tfr = track.getTrackFitResultWithClosestMass(Const::pion);
468 if (tfr) {
469 m_Pvalue->Fill(tfr->getPValue());
470 m_mom->Fill(tfr->getMomentum().R());
471 m_nSVDhits->Fill((tfr->getHitPatternVXD()).getNSVDHits());
472
473 if (m_is2017TBanalysis) {
474 if ((tfr->getPValue() < 0.001) || (tfr->getMomentum().R() < 1))
475 continue;
476 }
477 }
478 RelationVector<RecoTrack> theRC = DataStore::getRelationsWithObj<RecoTrack>(&track);
479 RelationVector<SVDCluster> svdClustersTrack = DataStore::getRelationsWithObj<SVDCluster>(theRC[0]);
480
481
482 for (int cl = 0 ; cl < (int)svdClustersTrack.size(); cl++) {
483
484 float clCharge = svdClustersTrack[cl]->getCharge();
485 float clEnergy = svdClustersTrack[cl]->getCharge() * c_eTOkeV;
486 int clSize = svdClustersTrack[cl]->getSize();
487 float clSN = svdClustersTrack[cl]->getSNR();
488 float clTime = svdClustersTrack[cl]->getClsTime();
489 VxdID::baseType theVxdID = (VxdID::baseType)svdClustersTrack[cl]->getSensorID();
490 int layer = VxdID(theVxdID).getLayerNumber() - 3;
491 int sensor = getSensor(layer, VxdID(theVxdID).getSensorNumber(), m_is2017TBanalysis);
492 int side = svdClustersTrack[cl]->isUCluster();
493
494 nCltrk[layer][sensor][side]++;
495 h_cltrkCharge[layer][sensor][side]->Fill(clCharge);
496 h_cltrkEnergy[layer][sensor][side]->Fill(clEnergy);
497 h_cltrkSize[layer][sensor][side]->Fill(clSize);
498 h_cltrkSN[layer][sensor][side]->Fill(clSN);
499 h_cltrkTime[layer][sensor][side]->Fill(clTime);
500
501 SVDModeByte::baseType tb = modeByte.getTriggerBin();
502 if ((int) tb == 0) h_cltrkTime_TB1[layer][sensor][side]->Fill(clTime);
503 if ((int) tb == 1) h_cltrkTime_TB2[layer][sensor][side]->Fill(clTime);
504 if ((int) tb == 2) h_cltrkTime_TB3[layer][sensor][side]->Fill(clTime);
505 if ((int) tb == 3) h_cltrkTime_TB4[layer][sensor][side]->Fill(clTime);
506
507 h_cltrkChargeVSSize[layer][sensor][side]->Fill(clCharge, clSize);
508 h_cltrkSNVSSize[layer][sensor][side]->Fill(clSN, clSize);
509 h_cltrkTimeVSSize[layer][sensor][side]->Fill(clTime, clSize);
510
511 if (layer == 2) //layer5
512 for (int cll = 0 ; cll < cl; cll++) {
513 VxdID::baseType theVxdID2 = (VxdID::baseType)svdClustersTrack[cll]->getSensorID();
514 int side2 = svdClustersTrack[cll]->isUCluster();
515
516 if ((VxdID(theVxdID2).getLayerNumber() == 5) && (side2 != side)) { //L5uL5v
517 if (side)
518 h_cltrkTime_L5uL5v->Fill(svdClustersTrack[cl]->getClsTime(), svdClustersTrack[cll]->getClsTime());
519 else
520 h_cltrkTime_L5uL5v->Fill(svdClustersTrack[cll]->getClsTime(), svdClustersTrack[cl]->getClsTime());
521 }
522
523 if (VxdID(theVxdID2).getLayerNumber() == 4) { //L4
524
525 if (side2 && side2 == side) //L4uL5u
526 h_cltrkTime_L4uL5u->Fill(svdClustersTrack[cl]->getClsTime(), svdClustersTrack[cll]->getClsTime());
527
528 if (!side2 && side2 == side) //L4vL5v
529 h_cltrkTime_L4vL5v->Fill(svdClustersTrack[cl]->getClsTime(), svdClustersTrack[cll]->getClsTime());
530
531 }
532 }
533
534 //fill time difference
535 for (int cl2 = 0 ; cl2 < cl ; cl2++) {
536
537 int layerDist = abs(VxdID(theVxdID).getLayerNumber() - svdClustersTrack[cl2]->getSensorID().getLayerNumber());
538
539 int side2 = svdClustersTrack[cl2]->isUCluster();
540
541 if (layerDist == 0) {
542 if ((side == 0) && (side2 == 1))
543 h_cltrk_UV -> Fill(svdClustersTrack[cl2]->getClsTime() - svdClustersTrack[cl]->getClsTime());
544
545 if ((side == 1) && (side2 == 0))
546 h_cltrk_UV -> Fill(svdClustersTrack[cl]->getClsTime() - svdClustersTrack[cl2]->getClsTime());
547 } else if (layerDist == 1) {
548 if ((side == 1) && (side2 == 1))
549 h_cltrk_UU -> Fill(svdClustersTrack[cl]->getClsTime() - svdClustersTrack[cl2]->getClsTime());
550
551 if ((side == 0) && (side2 == 0))
552 h_cltrk_VV -> Fill(svdClustersTrack[cl]->getClsTime() - svdClustersTrack[cl2]->getClsTime());
553 }
554
555
556
557 }
558
559 if (svdClustersTrack[cl]->getClsTime() < m_debugLowTime) {
560
561 B2DEBUG(10, "CLUSTER WITH A TIME BELOW " << m_debugLowTime << "ns");
562 B2DEBUG(10, "size = " << svdClustersTrack[cl]->getSize() << ", SNR = " << svdClustersTrack[cl]->getSNR() << " charge = " <<
563 svdClustersTrack[cl]->getCharge() << ", SeedCharge = " << svdClustersTrack[cl]->getSeedCharge() << ", time = " <<
564 svdClustersTrack[cl]->getClsTime());
565 }
566
567
568 if (m_isSimulation) {
569 RelationVector<SVDTrueHit> svdTrueHitsTrack = DataStore::getRelationsWithObj<SVDTrueHit>(svdClustersTrack[cl]);
570
571 for (int i = 0; i < (int)svdTrueHitsTrack.size(); i++) {
572 // if(svdTrueHitsTrack.size()>0){
573 h_cltrkTimeVSTrueTime[layer][sensor][side]->Fill(svdClustersTrack[cl]->getClsTime(), svdTrueHitsTrack[i]->getGlobalTime());
574 if (svdClustersTrack[cl]->getClsTime() < m_debugLowTime)
575 B2DEBUG(10, "True Hit Time = " << svdTrueHitsTrack[i]->getGlobalTime() << ", EnergyDep = " << svdTrueHitsTrack[i]->getEnergyDep() <<
576 ", size = " << svdTrueHitsTrack.size());
577 }
578
579
580 RelationVector<MCParticle> mcParticleTrack = DataStore::getRelationsWithObj<MCParticle>(svdClustersTrack[cl]);
581
582 if (svdClustersTrack[cl]->getClsTime() < m_debugLowTime)
583 if ((int)mcParticleTrack.size() > 0)
584 B2DEBUG(10, "MCParticle PDG = " << mcParticleTrack[0]->getPDG() << ", energy = " << mcParticleTrack[0]->getEnergy() << ", size = "
585 << mcParticleTrack.size());
586
587
588 }
589
590 if (clSize == 1) {
591 h_1cltrkCharge[layer][sensor][side]->Fill(clCharge);
592 h_1cltrkSN[layer][sensor][side]->Fill(svdClustersTrack[cl]->getSNR());
593 }
594
595 if (clSize == 2) {
596 h_2cltrkCharge[layer][sensor][side]->Fill(clCharge);
597 h_2cltrkSN[layer][sensor][side]->Fill(svdClustersTrack[cl]->getSNR());
598 }
599 }
600
601 }
602
603 if (m_Tracks)
604 B2DEBUG(1, "%%%%%%%% NEW EVENT, number of Tracks = " << m_Tracks.getEntries());
605
606 //shaper digits
607 for (int digi = 0 ; digi < m_svdShapers.getEntries(); digi++) {
608
609
610 VxdID::baseType theVxdID = (VxdID::baseType)m_svdShapers[digi]->getSensorID();
611 int layer = VxdID(theVxdID).getLayerNumber() - 3;
612 int sensor = getSensor(layer, VxdID(theVxdID).getSensorNumber(), m_is2017TBanalysis);
613 int side = m_svdShapers[digi]->isUStrip();
614 nShaperDigi[layer][sensor][side]++;
615
616
617 if (!m_svdShapers[digi]->isUStrip()) {
618 if (((layer == 0) && (m_svdShapers[digi]->getCellID() > 767)) ||
619 ((layer != 0) && (m_svdShapers[digi]->getCellID() > 511)))
620 B2WARNING(" SVDShaperDigits: unexpected cellID for Layer " << layer << " Ladder " << VxdID(theVxdID).getLadderNumber() <<
621 " Sensor " << VxdID(theVxdID).getSensorNumber() << " V side, strip = " << m_svdShapers[digi]->getCellID());
622 } else {
623 if (m_svdShapers[digi]->getCellID() > 767)
624 B2WARNING(" SVDShaperDigits: unexpected cellID for Layer " << layer << " Ladder " << VxdID(theVxdID).getLadderNumber() <<
625 " Sensor " << VxdID(theVxdID).getSensorNumber() << " U side, strip = " << m_svdShapers[digi]->getCellID());
626 }
627
628 }
629
630 //reco digits
631 if (m_svdRecos.isValid()) {
632 for (int digi = 0 ; digi < m_svdRecos.getEntries(); digi++) {
633
634 VxdID::baseType theVxdID = (VxdID::baseType)m_svdRecos[digi]->getSensorID();
635 int layer = VxdID(theVxdID).getLayerNumber() - 3;
636 int sensor = getSensor(layer, VxdID(theVxdID).getSensorNumber(), m_is2017TBanalysis);
637 int side = m_svdRecos[digi]->isUStrip();
638 int cellID = m_svdRecos[digi]->getCellID();
639
640 float thisNoise = m_NoiseCal.getNoiseInElectrons(theVxdID, side, cellID);
641
642 h_stripNoise[layer][sensor][side]->Fill(thisNoise);
643 h_recoCharge[layer][sensor][side]->Fill(m_svdRecos[digi]->getCharge());
644 h_recoEnergy[layer][sensor][side]->Fill(m_svdRecos[digi]->getCharge()*c_eTOkeV);
645 h_recoTime[layer][sensor][side]->Fill(m_svdRecos[digi]->getTime());
646 nRecoDigi[layer][sensor][side]++;
647 }
648 }
649
650 //clusters NOT related to tracks
651 for (int cl = 0 ; cl < m_svdClusters.getEntries(); cl++) {
652
653 float clCharge = m_svdClusters[cl]->getCharge();
654 float clEnergy = m_svdClusters[cl]->getCharge() * c_eTOkeV;
655 float clCoor = m_svdClusters[cl]->getPosition();
656 int clSize = m_svdClusters[cl]->getSize();
657 float clTime = m_svdClusters[cl]->getClsTime();
658 float clSN = m_svdClusters[cl]->getSNR();
659 float seed_maxbin = -1;
660
661 RelationVector<RecoTrack> theRC = DataStore::getRelationsWithObj<RecoTrack>(m_svdClusters[cl]);
662
663 if ((int)theRC.size() > 0)
664 continue;
665
666 //look for the max bin of the seed
667 RelationVector<SVDRecoDigit> theRecoDigits = DataStore::getRelationsWithObj<SVDRecoDigit>(m_svdClusters[cl]);
668 int index_seed = 0;
669 float charge = 0;
670 for (int r = 0; r < (int)theRecoDigits.size(); r++)
671 if (theRecoDigits.weight(r) > charge) {
672 index_seed = r;
673 charge = theRecoDigits[r]->getCharge();
674 }
675
676 if (index_seed > -1) {
677 RelationVector<SVDShaperDigit> theSeedShaperDigits = DataStore::getRelationsWithObj<SVDShaperDigit>(theRecoDigits[index_seed]);
678
680 samples = theSeedShaperDigits[0]->getSamples();
681 float amplitude = 0;
682 const int nAPVSamples = 6;
683 for (int k = 0; k < nAPVSamples; k ++) {
684 if (samples[k] > amplitude) {
685 amplitude = samples[k];
686 seed_maxbin = k;
687 }
688 }
689 }
690
691 VxdID::baseType theVxdID = (VxdID::baseType)m_svdClusters[cl]->getSensorID();
692 int side = m_svdClusters[cl]->isUCluster();
693 int layer = VxdID(theVxdID).getLayerNumber() - 3;
694 int sensor = getSensor(layer, VxdID(theVxdID).getSensorNumber(), m_is2017TBanalysis);
695
696 for (int cl2 = 0 ; cl2 < cl; cl2++) {
697 if (clSize > 1)
698 break;
699
700 VxdID::baseType theVxdID2 = (VxdID::baseType)m_svdClusters[cl2]->getSensorID();
701 int side2 = m_svdClusters[cl2]->isUCluster();
702 int layer2 = VxdID(theVxdID2).getLayerNumber() - 3;
703 int sensor2 = getSensor(layer, VxdID(theVxdID2).getSensorNumber(), m_is2017TBanalysis);
704
705 float clCoor1 = m_svdClusters[cl]->getPosition();
706 float clCoor2 = m_svdClusters[cl2]->getPosition();
707 float clEnergy1 = m_svdClusters[cl]->getCharge() * c_eTOkeV;
708 float clEnergy2 = m_svdClusters[cl2]->getCharge() * c_eTOkeV;
709 if ((layer != layer2) || (sensor != sensor2))
710 continue;
711
712 if (seed_maxbin < 2 || seed_maxbin > 4)
713 continue;
714
715 int cellID1 = -1;
716 for (int r = 0; r < (int)theRecoDigits.size(); r++)
717 if (cellID1 < theRecoDigits[r]->getCellID())
718 cellID1 = theRecoDigits[r]->getCellID();
719
720 RelationVector<SVDRecoDigit> theRecoDigits2 = DataStore::getRelationsWithObj<SVDRecoDigit>(m_svdClusters[cl2]);
721 int dist = 768;
722 for (int r = 0; r < (int)theRecoDigits2.size(); r++)
723 if (cellID1 - theRecoDigits2[r]->getCellID() < dist)
724 dist = cellID1 - theRecoDigits2[r]->getCellID();
725
726 if (side == 1 && side2 == 1) {
727 h_clCoor1VSCoor2[layer][sensor][1]->Fill(clCoor1 - clCoor2); //
728 h_clCellID1VSCellID2[layer][sensor][1]->Fill(dist);
729 h_clEnergy12VSdelta[layer][sensor][1]->Fill(clEnergy1 + clEnergy2, dist); //
730 }
731 if (side == 0 && side2 == 0) {
732 h_clCoor1VSCoor2[layer][sensor][0]->Fill(clCoor1 - clCoor2); //
733 h_clCellID1VSCellID2[layer][sensor][0]->Fill(dist);
734 h_clEnergy12VSdelta[layer][sensor][0]->Fill(clEnergy1 + clEnergy2, dist); //
735 }
736
737 if (side == 1 && side2 == 0) {
738 h_clCoorUVSCoorV[layer][sensor]->Fill(clCoor2, clCoor1); //V, U
739 h_clEnergyUVSEnergyV[layer][sensor]->Fill(clEnergy2, clEnergy1); //V, U
740 }
741 if (side == 0 && side2 == 1) {
742 h_clCoorUVSCoorV[layer][sensor]->Fill(clCoor1, clCoor2);
743 h_clEnergyUVSEnergyV[layer][sensor]->Fill(clEnergy1, clEnergy2);
744 }
745 }
746
747 nCl[layer][sensor][side]++;
748
749
750 h_clCharge[layer][sensor][side]->Fill(clCharge);
751 h_clEnergy[layer][sensor][side]->Fill(clEnergy);
752 h_clSeedMaxbin[layer][sensor][side]->Fill(seed_maxbin);
753 h_clEnergyVSMaxbin[layer][sensor][side]->Fill(clEnergy, seed_maxbin);
754 if (seed_maxbin < 2)
755 h_clEnergyVSSize_mb12[layer][sensor][side]->Fill(clEnergy, clSize);
756 else if (seed_maxbin == 5)
757 h_clEnergyVSSize_mb6[layer][sensor][side]->Fill(clEnergy, clSize);
758 else {
759 h_clEnergyVSSize_mb345[layer][sensor][side]->Fill(clEnergy, clSize);
760 nCl345[layer][sensor][side]++;
761 if (m_svdClusters[cl]->isUCluster())
762 h_clEnergyVSCoorU[layer][sensor][side]->Fill(clEnergy, clCoor);
763 else
764 h_clEnergyVSCoorV[layer][sensor][side]->Fill(clEnergy, clCoor);
765 }
766 h_clSize[layer][sensor][side]->Fill(clSize);
767 h_clSN[layer][sensor][side]->Fill(clSN);
768 h_clTime[layer][sensor][side]->Fill(clTime);
769
770 h_clChargeVSSize[layer][sensor][side]->Fill(clCharge, clSize);
771 h_clSNVSSize[layer][sensor][side]->Fill(clSN, clSize);
772 h_clTimeVSSize[layer][sensor][side]->Fill(clTime, clSize);
773
774 if (m_isSimulation) {
775 RelationVector<SVDTrueHit> svdTrueHits = DataStore::getRelationsWithObj<SVDTrueHit>(m_svdClusters[cl]);
776 if (svdTrueHits.size() > 0)
777 h_clTimeVSTrueTime[layer][sensor][side]->Fill(m_svdClusters[cl]->getClsTime(), svdTrueHits[0]->getGlobalTime());
778 }
779
780 }
781
782 for (int i = 0; i < m_nLayers; i ++) //loop on Layers
783 for (int j = 0; j < (int)sensorsOnLayer[i]; j ++) //loop on Sensors
784 for (int k = 0; k < m_nSides; k ++) { //loop on Sides
785 h_nShaper[i][j][k]->Fill(nShaperDigi[i][j][k]);
786 h_nReco[i][j][k]->Fill(nRecoDigi[i][j][k]);
787 h_nCl[i][j][k]->Fill(nCl[i][j][k]);
788 h_clNuVSNv[i][j]->Fill(nCl345[i][j][0], nCl345[i][j][1]);
789 h_nCltrk[i][j][k]->Fill(nCltrk[i][j][k]);
790 }
791}
static const ChargedStable pion
charged pion particle
Definition: Const.h:661
static const ChargedStable electron
electron particle
Definition: Const.h:659
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
float weight(int index) const
Get weight with index.
Class to store SVD mode information.
Definition: SVDModeByte.h:69
baseType getTriggerBin() const
Get the triggerBin id.
Definition: SVDModeByte.h:140
uint8_t baseType
The base integer type for SVDModeByte.
Definition: SVDModeByte.h:72
float getNoiseInElectrons(const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
This method provides the correct noise conversion into electrons, taking into account that the noise ...
TH2F * h_cltrkTimeVSTrueTime[m_nLayers][m_nSensors][m_nSides]
time VS true time
TH1F * h_cltrk_UU
U time vs U time.
TH1F * h_recoTime[m_nLayers][m_nSensors][m_nSides]
time
TH2F * h_cltrkChargeVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
TH2F * h_cltrkSNVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
TH1F * h_clTime[m_nLayers][m_nSensors][m_nSides]
time
TH2F * h_clEnergyVSSize_mb6[m_nLayers][m_nSensors][m_nSides]
energy VS size, max bin == 6
TH1F * h_clCoor1VSCoor2[m_nLayers][m_nSensors][m_nSides]
coor1 VS coor2
TH2F * h_clEnergyUVSEnergyV[m_nLayers][m_nSensors]
energy VS position
TH1F * h_cltrkEnergy[m_nLayers][m_nSensors][m_nSides]
energy
TH2F * h_clNuVSNv[m_nLayers][m_nSensors]
N U culsters VS N V clusters.
TH2F * h_clEnergyVSCoorV[m_nLayers][m_nSensors][m_nSides]
energy VS position V
StoreArray< SVDCluster > m_svdClusters
SVDCluster store array.
TH1F * h_clCharge[m_nLayers][m_nSensors][m_nSides]
charge
unsigned int sensorsOnLayer[4]
sensors on layer i
TH2F * h_clEnergyVSMaxbin[m_nLayers][m_nSensors][m_nSides]
energy VS maxbin seed
TH1F * h_nCltrk[m_nLayers][m_nSensors][m_nSides]
number per event
TH1F * h_cltrk_VV
V time vs V time.
SVDNoiseCalibrations m_NoiseCal
SVDNoise calibration db object.
TH1F * h_cltrkCharge[m_nLayers][m_nSensors][m_nSides]
charge
TH1F * h_recoCharge[m_nLayers][m_nSensors][m_nSides]
charge
TH2F * h_cltrkTime_L4uL5u
L4U time VS L5U time.
TH1F * h_cltrkTime_TB3[m_nLayers][m_nSensors][m_nSides]
time
TH2F * h_cltrkTimeVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
TH2F * h_clEnergyVSSize_mb12[m_nLayers][m_nSensors][m_nSides]
energy VS size, maxbin == 1,2
TH1F * h_2cltrkCharge[m_nLayers][m_nSensors][m_nSides]
charge
TH1F * h_nShaper[m_nLayers][m_nSensors][m_nSides]
number per event
static const int m_nSides
max number of sides
TH2F * h_cltrkTime_L5uL5v
L5U time VS L5V time.
TH1F * h_cltrkTime_TB4[m_nLayers][m_nSensors][m_nSides]
time
TH2F * h_clTimeVSTrueTime[m_nLayers][m_nSensors][m_nSides]
time VS true time
TH1F * h_1cltrkCharge[m_nLayers][m_nSensors][m_nSides]
charge
TH2F * h_clEnergyVSSize_mb345[m_nLayers][m_nSensors][m_nSides]
energy VS size, maxbin == 3,4,5
TH1F * h_nCl[m_nLayers][m_nSensors][m_nSides]
number per event
TH2F * h_clEnergyVSCoorU[m_nLayers][m_nSensors][m_nSides]
energy VS position U
TH1F * h_1cltrkSN[m_nLayers][m_nSensors][m_nSides]
signal over noise
TH1F * h_clCellID1VSCellID2[m_nLayers][m_nSensors][m_nSides]
coor1 VS coor2
TH1F * h_2cltrkSN[m_nLayers][m_nSensors][m_nSides]
signal over noise
TH1F * h_cltrkTime_TB2[m_nLayers][m_nSensors][m_nSides]
time
TH1F * h_cltrk_UV
U time vs V time.
TH2F * h_clEnergy12VSdelta[m_nLayers][m_nSensors][m_nSides]
coor1 VS coor2
TH2F * h_clCoorUVSCoorV[m_nLayers][m_nSensors]
energy VS position
TH1F * h_clEnergy[m_nLayers][m_nSensors][m_nSides]
energy
TH1F * h_clSN[m_nLayers][m_nSensors][m_nSides]
signal over noise
static const int m_nSensors
max number of sensors
TH2F * h_clChargeVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
TH1F * h_cltrkSize[m_nLayers][m_nSensors][m_nSides]
size
TH1F * h_stripNoise[m_nLayers][m_nSensors][m_nSides]
strip noise
TH1F * h_clSeedMaxbin[m_nLayers][m_nSensors][m_nSides]
maxbin seed
TH1F * h_nReco[m_nLayers][m_nSensors][m_nSides]
number per event
StoreArray< SVDRecoDigit > m_svdRecos
SVDRecoDigits store array.
TH2F * h_clSNVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
TH2F * h_clTimeVSSize[m_nLayers][m_nSensors][m_nSides]
charge VS size
StoreArray< Track > m_Tracks
Tracks store array.
TH1F * h_recoEnergy[m_nLayers][m_nSensors][m_nSides]
energy
StoreObjPtr< SVDEventInfo > m_storeSVDEvtInfo
Storage for SVDEventInfo object.
TH2F * h_cltrkTime_L4vL5v
L4V time VS L5V time.
int getSensor(int layer, int sensor, bool isTB)
get sensor number
TH1F * h_cltrkTime[m_nLayers][m_nSensors][m_nSides]
time
TH1F * h_clSize[m_nLayers][m_nSensors][m_nSides]
size
StoreArray< SVDShaperDigit > m_svdShapers
SVDShaperDigit store array.
TH1F * h_cltrkTime_TB1[m_nLayers][m_nSensors][m_nSides]
time
TH1F * h_cltrkSN[m_nLayers][m_nSensors][m_nSides]
signal over noise
std::array< APVFloatSampleType, c_nAPVSamples > APVFloatSamples
array of APVFloatSampleType objects
int getEntries() const
Get the number of objects in the array.
Definition: StoreArray.h:216
Values of the result of a track fit with a given particle hypothesis.
double getPValue() const
Getter for Chi2 Probability of the track fit.
ROOT::Math::XYZVector getMomentum() const
Getter for vector of momentum at closest approach of track in r/phi projection.
HitPatternVXD getHitPatternVXD() const
Getter for the hit pattern in the VXD;.
Class that bundles various TrackFitResults.
Definition: Track.h:25
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
unsigned short baseType
The base integer type for VxdID.
Definition: VxdID.h:36
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96
double charge(int pdgCode)
Returns electric charge of a particle with given pdg code.
Definition: EvtPDLUtil.cc:44
const std::size_t nAPVSamples
Number of APV samples.

◆ 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 paths */
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://xwiki.desy.de/xwiki/rest/p/f4fa4/#HModuleDevelopment
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:224
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:229
const std::string & getDescription() const
Returns the description of the module.
Definition: Module.h:201
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:310
const std::string & getPackage() const
Returns the package this module is in.
Definition: Module.h:196
void setName(const std::string &name)
Set the name of the module.
Definition: Module.h:213
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 323 of file Module.h.

324 {
325 return m_conditions;
326 }

◆ getCondition()

const ModuleCondition * getCondition ( ) const
inlineinherited

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

Definition at line 313 of file Module.h.

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

◆ 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 201 of file Module.h.

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

◆ 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 133 of file Module.h.

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

◆ getLogConfig()

LogConfig & getLogConfig ( )
inlineinherited

Returns the log system configuration.

Definition at line 224 of file Module.h.

224{return m_logConfig;}

◆ getModules()

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

no submodules, return empty list

Implements PathElement.

Definition at line 505 of file Module.h.

505{ 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 186 of file Module.h.

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

◆ getPackage()

const std::string & getPackage ( ) const
inlineinherited

Returns the package this module is in.

Definition at line 196 of file Module.h.

196{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:515

◆ getParamList()

const ModuleParamList & getParamList ( ) const
inlineinherited

Return module param list.

Definition at line 362 of file Module.h.

362{ 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 380 of file Module.h.

380{ return m_returnValue; }

◆ getSensor()

int getSensor ( int  layer,
int  sensor,
bool  isTB 
)
inlineprivate

get sensor number

Definition at line 183 of file SVDPerformanceModule.h.

184 {
185 int result = 0;
186 if (isTB) {
187 if (layer == 0)
188 result = sensor - 1;
189 else if (layer == 1 || layer == 2)
190 result = sensor - 2;
191 else if (layer == 3)
192 result = sensor - 3;
193 } else result = sensor - 1;
194
195 return result;
196 }

◆ 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:508

◆ hasCondition()

bool hasCondition ( ) const
inlineinherited

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

Definition at line 310 of file Module.h.

310{ 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 377 of file Module.h.

377{ 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://xwiki.desy.de/xwiki/rest/p/a94f2 or ModuleCondition for a description of the syntax.

Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.

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 43 of file SVDPerformanceModule.cc.

44{
45
47 m_svdRecos.isOptional(m_RecoDigitName);
49 // m_Tracks.isRequired(m_TrackName);
50 // m_recoTracks.isRequired();
51 // m_tfr.isRequired(m_TrackFitResultName);
52
53 if (!m_storeSVDEvtInfo.isOptional(m_svdEventInfoName)) m_svdEventInfoName = "SVDEventInfoSim";
55
56 B2INFO(" ShaperDigits: " << m_ShaperDigitName);
57 B2INFO(" RecoDigits: " << m_RecoDigitName);
58 B2INFO(" Clusters: " << m_ClusterName);
59 B2INFO(" Tracks: " << m_TrackName);
60 B2INFO(" TrackFitResults: " << m_TrackFitResultName);
61
62
63 //create list of histograms to be saved in the rootfile
64 m_histoList_track = new TList;
65 m_histoList_corr = new TList;
66
67 for (int i = 0; i < m_nLayers; i++) {
68 m_histoList_cluster[i] = new TList;
69 m_histoList_clTRK[i] = new TList;
70 m_histoList_reco[i] = new TList;
71 m_histoList_shaper[i] = new TList;
72 }
73
74 m_rootFilePtr = new TFile(m_rootFileName.c_str(), "RECREATE");
75
76 for (int s = 0; s < m_nLayers; s++)
78 sensorsOnLayer[s] = 2;
79 else
80 sensorsOnLayer[s] = s + 2;
81
82 //create histograms
83 for (int i = 0; i < m_nLayers; i ++) //loop on Layers
84 for (int j = 0; j < (int)sensorsOnLayer[i]; j ++) { //loop on Sensors
85
86 TString nameLayer = "";
87 nameLayer += i + 3;
88
89 TString nameSensor = "";
91 if (i == 0)
92 nameSensor += j + 1;
93 else if (i == 1 || i == 2)
94 nameSensor += j + 2;
95 else if (i == 3)
96 nameSensor += j + 3;
97 } else
98 nameSensor += j + 1;
99
100 for (int k = 0; k < m_nSides; k ++) { //loop on Sides
101
102
103 TString nameSide = "";
104 if (k == 1)
105 nameSide = "U";
106 else if (k == 0)
107 nameSide = "V";
108
109 //SHAPER DIGITS
110 TString NameOfHisto = "shaper_N_L" + nameLayer + "S" + nameSensor + "" + nameSide;
111 TString TitleOfHisto = "number of ShaperDigits (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
112 h_nShaper[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 100, 0, 100, "n ShaperDigits", m_histoList_shaper[i]);
113
114
115 //RECO DIGITS
116 NameOfHisto = "reco_N_L" + nameLayer + "S" + nameSensor + "" + nameSide;
117 TitleOfHisto = "number of RecoDigits (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
118 h_nReco[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 100, 0, 100, "n RecoDigits", m_histoList_reco[i]);
119
120 NameOfHisto = "reco_charge_L" + nameLayer + "S" + nameSensor + "" + nameSide;
121 TitleOfHisto = "charge of RecoDigits (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
122 h_recoCharge[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 100, 0, 100000, "charge (e-)", m_histoList_reco[i]);
123
124 NameOfHisto = "reco_energy_L" + nameLayer + "S" + nameSensor + "" + nameSide;
125 TitleOfHisto = "energy collected by RecoDigits (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
126 h_recoEnergy[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 100, 0, 360, "energy (keV)", m_histoList_reco[i]);
127
128 NameOfHisto = "reco_noise_L" + nameLayer + "S" + nameSensor + "" + nameSide;
129 TitleOfHisto = "strip noise (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
130 h_stripNoise[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, 300, 1800, "strip noise", m_histoList_reco[i]);
131
132 NameOfHisto = "reco_time_L" + nameLayer + "S" + nameSensor + "" + nameSide;
133 TitleOfHisto = "strip time (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
134 h_recoTime[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "strip time", m_histoList_reco[i]);
135
136
137 //CLUSTERS RELATED TO TRACKS
138 NameOfHisto = "clTRK_N_L" + nameLayer + "S" + nameSensor + "" + nameSide;
139 TitleOfHisto = "number of clusters related to Tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
140 h_nCltrk[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 50, 0, 50, "n clusters", m_histoList_clTRK[i]);
141
142 NameOfHisto = "clTRK_size_L" + nameLayer + "S" + nameSensor + "" + nameSide;
143 TitleOfHisto = "cluster size (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
144 h_cltrkSize[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 15, 0, 15, "cluster size", m_histoList_clTRK[i]);
145
146 NameOfHisto = "clTRK_charge_L" + nameLayer + "S" + nameSensor + "" + nameSide;
147 TitleOfHisto = "cluster Charge (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
148 h_cltrkCharge[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge(e-)", m_histoList_clTRK[i]);
149
150 NameOfHisto = "clTRK_energy_L" + nameLayer + "S" + nameSensor + "" + nameSide;
151 TitleOfHisto = "cluster Energy (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
152 h_cltrkEnergy[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", m_histoList_clTRK[i]);
153
154 NameOfHisto = "clTRK_SN_L" + nameLayer + "S" + nameSensor + "" + nameSide;
155 TitleOfHisto = "cluster S/N (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
156 h_cltrkSN[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", m_histoList_clTRK[i]);
157
158 NameOfHisto = "clTRK_chrgVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
159 TitleOfHisto = "cluster charge VS size (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
160 h_cltrkChargeVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge (e-)", 15, 0, 15, "cl size",
162
163 NameOfHisto = "clTRK_SNVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
164 TitleOfHisto = "cluster SN ratio VS size (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
165 h_cltrkSNVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", 15, 0, 15, "cl size",
167
168 NameOfHisto = "clTRK_TimeVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
169 TitleOfHisto = "cluster time VS size (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
170 h_cltrkTimeVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", 15, 0, 15, "cl size",
172
173 NameOfHisto = "clTRK_time_L" + nameLayer + "S" + nameSensor + "" + nameSide;
174 TitleOfHisto = "cluster time (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
175 h_cltrkTime[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", m_histoList_clTRK[i]);
176
177 NameOfHisto = "clTRK_timeTB1_L" + nameLayer + "S" + nameSensor + "" + nameSide;
178 TitleOfHisto = "cluster time - TB = 1 (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
179 h_cltrkTime_TB1[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", m_histoList_clTRK[i]);
180
181 NameOfHisto = "clTRK_timeTB2_L" + nameLayer + "S" + nameSensor + "" + nameSide;
182 TitleOfHisto = "cluster time - TB = 2 (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
183 h_cltrkTime_TB2[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", m_histoList_clTRK[i]);
184
185 NameOfHisto = "clTRK_timeTB3_L" + nameLayer + "S" + nameSensor + "" + nameSide;
186 TitleOfHisto = "cluster time - TB = 3 (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
187 h_cltrkTime_TB3[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", m_histoList_clTRK[i]);
188
189 NameOfHisto = "clTRK_timeTB4_L" + nameLayer + "S" + nameSensor + "" + nameSide;
190 TitleOfHisto = "cluster time - TB = 4 (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
191 h_cltrkTime_TB4[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", m_histoList_clTRK[i]);
192
193 if (m_isSimulation) {
194 NameOfHisto = "clTRK_timeVStrueTime_L" + nameLayer + "S" + nameSensor + "" + nameSide;
195 TitleOfHisto = "cluster time VS true hit time (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
196 h_cltrkTimeVSTrueTime[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time", 60, -30, 30,
197 "true time", m_histoList_clTRK[i]);
198 }
199
200 //1 STRIP CLUSTERS RELATED TO TRACKS
201 NameOfHisto = "1clTRK_charge_L" + nameLayer + "S" + nameSensor + "" + nameSide;
202 TitleOfHisto = "1-strip cluster Charge (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
203 h_1cltrkCharge[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge(e-)", m_histoList_clTRK[i]);
204
205
206 NameOfHisto = "1clTRK_SN_L" + nameLayer + "S" + nameSensor + "" + nameSide;
207 TitleOfHisto = "1-strip cluster S/N (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
208 h_1cltrkSN[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", m_histoList_clTRK[i]);
209
210 //2-STRIP CLUSTERS RELATED TO TRACKS
211 NameOfHisto = "2clTRK_charge_L" + nameLayer + "S" + nameSensor + "" + nameSide;
212 TitleOfHisto = "2-strip cluster Charge (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
213 h_2cltrkCharge[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge(e-)", m_histoList_clTRK[i]);
214
215
216 NameOfHisto = "2clTRK_SN_L" + nameLayer + "S" + nameSensor + "" + nameSide;
217 TitleOfHisto = "2-strip cluster S/N (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
218 h_2cltrkSN[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", m_histoList_clTRK[i]);
219
220 //CLUSTERS NOT RELATED TO TRACKS
221 NameOfHisto = "clNOtrk_N_L" + nameLayer + "S" + nameSensor + "" + nameSide;
222 TitleOfHisto = "number of clusters NOT related to Tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
223 h_nCl[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 50, 0, 50, "n clusters", m_histoList_cluster[i]);
224
225 NameOfHisto = "clNOtrk_size_L" + nameLayer + "S" + nameSensor + "" + nameSide;
226 TitleOfHisto = "cluster size, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
227 h_clSize[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 15, 0, 15, "cluster size", m_histoList_cluster[i]);
228
229 NameOfHisto = "clNOtrk_charge_L" + nameLayer + "S" + nameSensor + "" + nameSide;
230 TitleOfHisto = "cluster Charge, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
231 h_clCharge[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge (e-)", m_histoList_cluster[i]);
232
233 NameOfHisto = "clNOtrk_energy_L" + nameLayer + "S" + nameSensor + "" + nameSide;
234 TitleOfHisto = "cluster Energy, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
235 h_clEnergy[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", m_histoList_cluster[i]);
236
237 NameOfHisto = "clNOtrk_maxbin_L" + nameLayer + "S" + nameSensor + "" + nameSide;
238 TitleOfHisto = "cluster Seed maxbin, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
239 h_clSeedMaxbin[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 6, 0, 6, "max bin", m_histoList_cluster[i]);
240
241 NameOfHisto = "clNOtrk_energyVSmaxbin_L" + nameLayer + "S" + nameSensor + "" + nameSide;
242 TitleOfHisto = "cluster Energy vs seed max bin U, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide +
243 " side)";
244 h_clEnergyVSMaxbin[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 6, 0, 6, "seed max bin",
246
247
248 NameOfHisto = "clNOtrk_energyVSsizeMB12_L" + nameLayer + "S" + nameSensor + "" + nameSide;
249 TitleOfHisto = "cluster Energy vs Size, maxbin = 1,2 U, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
250 nameSide +
251 " side)";
252 h_clEnergyVSSize_mb12[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 15, 0, 15, "cl size",
254
255 NameOfHisto = "clNOtrk_energyVSsizeMB345_L" + nameLayer + "S" + nameSensor + "" + nameSide;
256 TitleOfHisto = "cluster Energy vs Size, maxbin = 3,4,5 U, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
257 nameSide +
258 " side)";
259 h_clEnergyVSSize_mb345[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 15, 0, 15, "cl size",
261
262 NameOfHisto = "clNOtrk_energyVSsizeMB6_L" + nameLayer + "S" + nameSensor + "" + nameSide;
263 TitleOfHisto = "cluster Energy vs Size, maxbin = 6 U, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
264 nameSide +
265 " side)";
266 h_clEnergyVSSize_mb6[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 15, 0, 15, "cl size",
268
269 if (k == 1) {
270 NameOfHisto = "clNOtrk_energyVScoorU_L" + nameLayer + "S" + nameSensor + "" + nameSide;
271 TitleOfHisto = "cluster Energy vs coor U, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide
272 +
273 " side)";
274 h_clEnergyVSCoorU[i][j][1] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 200, -3, 3, "coor U (cm)",
276
277 NameOfHisto = "clNOtrk_coorU1VScoorU2_L" + nameLayer + "S" + nameSensor + "" + nameSide;
278 TitleOfHisto = "cluster coor1 U vs coor2 U, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
279 nameSide +
280 " side)";
281 h_clCoor1VSCoor2[i][j][1] = createHistogram1D(NameOfHisto, TitleOfHisto, 400, 0, 4, "delta U (cm)",
283
284 NameOfHisto = "clNOtrk_cellIDU1VScellIDU2_L" + nameLayer + "S" + nameSensor + "" + nameSide;
285 TitleOfHisto = "cluster cellID1 U vs cellID2 U, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
286 nameSide +
287 " side)";
288 h_clCellID1VSCellID2[i][j][1] = createHistogram1D(NameOfHisto, TitleOfHisto, 768, 0, 768, "delta U (# of cells)",
290
291 NameOfHisto = "clNOtrk_energy12VSdeltaU_L" + nameLayer + "S" + nameSensor + "" + nameSide;
292 TitleOfHisto = "cluster energy1+2 U vs delta U, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
293 nameSide +
294 " side)";
295 h_clEnergy12VSdelta[i][j][1] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 768, 0, 768,
296 "delta U (# of cells)",
298
299 } else {
300 NameOfHisto = "clNOtrk_energyVScoorV_L" + nameLayer + "S" + nameSensor + "" + nameSide;
301 TitleOfHisto = "cluster Energy vs coor V, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide
302 +
303 " side)";
304 h_clEnergyVSCoorV[i][j][0] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 200, -6.5, 6.5,
305 "coor V (cm)", m_histoList_cluster[i]);
306
307 NameOfHisto = "clNOtrk_coorV1VScoorV2_L" + nameLayer + "S" + nameSensor + "" + nameSide;
308 TitleOfHisto = "cluster coor1 V vs coor2 V, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
309 nameSide +
310 " side)";
311 h_clCoor1VSCoor2[i][j][0] = createHistogram1D(NameOfHisto, TitleOfHisto, 400, 0, 6, "delta V (cm)",
313 NameOfHisto = "clNOtrk_cellIDV1VScellIDV2_L" + nameLayer + "S" + nameSensor + "" + nameSide;
314 TitleOfHisto = "cluster cellID1 V vs cellID2 V, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
315 nameSide +
316 " side)";
317 h_clCellID1VSCellID2[i][j][0] = createHistogram1D(NameOfHisto, TitleOfHisto, 768, 0, 768, "delta V (# of cells)",
319
320 NameOfHisto = "clNOtrk_energy12VSdeltaV_L" + nameLayer + "S" + nameSensor + "" + nameSide;
321 TitleOfHisto = "cluster energy1+2 V vs delta V, TB=3,4,5 NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," +
322 nameSide +
323 " side)";
324 h_clEnergy12VSdelta[i][j][0] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy (keV)", 768, 0, 768,
325 "delta V (# of cells)",
327
328 }
329
330 NameOfHisto = "clNOtrk_SN_L" + nameLayer + "S" + nameSensor + "" + nameSide;
331 TitleOfHisto = "cluster S/N, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
332 h_clSN[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", m_histoList_cluster[i]);
333
334 NameOfHisto = "clNOtrk_chrgVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
335 TitleOfHisto = "cluster charge VS size, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
336 h_clChargeVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 500, 0, 100000, "charge (e-)", 15, 0, 15, "cl size",
338 NameOfHisto = "clNOtrk_SNVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
339 TitleOfHisto = "cluster S/N ratio VS size, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide +
340 " side)";
341 h_clSNVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 150, 0, 150, "S/N", 15, 0, 15, "cl size",
343
344 NameOfHisto = "clNOtrk_TimeVSsize_L" + nameLayer + "S" + nameSensor + "" + nameSide;
345 TitleOfHisto = "cluster time VS size, NOT related to tracks (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
346 h_clTimeVSSize[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time (ns)", 15, 0, 15, "cl size",
348
349 NameOfHisto = "clNOtrk_time_L" + nameLayer + "S" + nameSensor + "" + nameSide;
350 TitleOfHisto = "cluster time (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
351 h_clTime[i][j][k] = createHistogram1D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time", m_histoList_cluster[i]);
352
353
354 if (m_isSimulation) {
355 NameOfHisto = "clNOtrk_timeVStrueTime_L" + nameLayer + "S" + nameSensor + "" + nameSide;
356 TitleOfHisto = "cluster time VS true hit time (L" + nameLayer + ", sensor" + nameSensor + "," + nameSide + " side)";
357 h_clTimeVSTrueTime[i][j][k] = createHistogram2D(NameOfHisto, TitleOfHisto, 200, -100, 100, "cluster time", 60, -30, 30, "true time",
359 }
360
361 }
362 TString NameOfHisto = "clNOtrk_nUVSnV_L" + nameLayer + "S" + nameSensor;
363 TString TitleOfHisto = "Number of U clusters VS number of V cluster, TB=3,4,5 (L" + nameLayer + ", sensor" + nameSensor + ")";
364 h_clNuVSNv[i][j] = createHistogram2D(NameOfHisto, TitleOfHisto, 50, 0, 50, "# V cluster", 50, 0, 50, "# U clusters",
366
367 NameOfHisto = "clNOtrk_coorUVScoorV_L" + nameLayer + "S" + nameSensor;
368 TitleOfHisto = "cluster coor U VS cluster coor V, TB=3,4,5 (L" + nameLayer + ", sensor" + nameSensor + ")";
369 h_clCoorUVSCoorV[i][j] = createHistogram2D(NameOfHisto, TitleOfHisto, 200, -6.5, 6.5, "coor V", 200, -3, 3, "coor U",
371
372 NameOfHisto = "clNOtrk_energyUVSenergyV_L" + nameLayer + "S" + nameSensor;
373 TitleOfHisto = "cluster energy U VS cluster energy V, TB=3,4,5 (L" + nameLayer + ", sensor" + nameSensor + ")";
374 h_clEnergyUVSEnergyV[i][j] = createHistogram2D(NameOfHisto, TitleOfHisto, 360, 0, 360, "energy V(keV)", 360, 0, 360,
375 "energy U (keV)",
377 //QUI
378 }
379
380 //correlations
381 h_cltrk_UU = createHistogram1D("clTRK_dt_UU", "track-related U-U clusters time difference", 200, -100, 100, "time difference (ns)",
383 h_cltrk_VV = createHistogram1D("clTRK_dt_VV", "track-related V-V clusters time difference", 200, -100, 100, "time difference (ns)",
385 h_cltrk_UV = createHistogram1D("clTRK_dt_UV", "track-related U-V clusters time difference", 200, -100, 100, "time difference (ns)",
387
388 h_cltrkTime_L4uL5u = createHistogram2D("clTRK_time_L4uL5u", "track-related cluster times on L4 and L5 U sides", 200, -100, 100,
389 "L4u cluster time", 200, -100, 100, "L5u cluster time",
391
392 h_cltrkTime_L4vL5v = createHistogram2D("clTRK_time_L4vL5v", "track-related cluster times on L4 and L5 V sides", 200, -100, 100,
393 "L4v cluster time", 200, -100, 100, "L5v cluster time",
395
396 h_cltrkTime_L5uL5v = createHistogram2D("clTRK_time_L5uL5v", "track-related cluster times on L5 U vs V sides", 200, -100, 100,
397 "L5u cluster time", 200, -100, 100, "L5v cluster time",
399
400
401
402 // //correlations
403 // h_cl_UU = createHistogram1D("clNOTRK_dt_UU", "track-related U-U clusters time difference", 200, -100, 100, "time difference (ns)",
404 // m_histoList_corr);
405 // h_cl_VV = createHistogram1D("clNOTRK_dt_VV", "track-related V-V clusters time difference", 200, -100, 100, "time difference (ns)",
406 // m_histoList_corr);
407 // h_cl_UV = createHistogram1D("clNOTRK_dt_UV", "track-related U-V clusters time difference", 200, -100, 100, "time difference (ns)",
408 // m_histoList_corr);
409
410 //tracks
411 m_nTracks = createHistogram1D("h1nTracks", "number of Tracks per event", 50, 0, 50, "n Tracks", m_histoList_track);
412 m_Pvalue = createHistogram1D("h1pValue", "Tracks p value", 100, 0, 1, "p value", m_histoList_track);
413 m_mom = createHistogram1D("h1momentum", " Tracks Momentum", 200, 0, 10, "p (GeV/c)", m_histoList_track);
414 m_nSVDhits = createHistogram1D("h1nSVDhits", "# SVD hits per track", 20, 0, 20, "# SVD hits", m_histoList_track);
415
416 m_ntracks = 0;
417}
TH1F * createHistogram1D(const char *name, const char *title, Int_t nbins, Double_t min, Double_t max, const char *xtitle, TList *histoList=nullptr)
Function returning a TH1F.
TH2F * createHistogram2D(const char *name, const char *title, Int_t nbinsX, Double_t minX, Double_t maxX, const char *titleX, Int_t nbinsY, Double_t minY, Double_t maxY, const char *titleY, TList *histoList=nullptr)
Function returning TH2F.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.

◆ 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 229 of file Module.h.

229{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 213 of file Module.h.

213{ m_name = name; };

◆ setParamList()

void setParamList ( const ModuleParamList params)
inlineprotectedinherited

Replace existing parameter list.

Definition at line 500 of file Module.h.

500{ 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:28
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, CDCDedxCorrectionModule, CDCDedxDQMModule, CDCDedxPIDModule, CDCDedxScanModule, CDCDedxSkimModule, CDCDedxSkimCDSTModule, CDCDedxValidationModule, CDCDigitizerModule, cdcDQM7Module, CDCDQMModule, ScanCDCGeoModule, CDCInitialT0DeterminationModule, CDCPackerModule, CDCRecoTrackFilterModule, CDCUnpackerModule, HitLevelInfoWriterModule, 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, 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, KLMTrackingModule, KLMUnpackerModule, MasterClassModule, MVAExpertModule, MVAMultipleExpertsModule, AWESOMEBasicModule, PXDBackgroundModule, PXDClustersFromTracksModule, PXDPerformanceModule, PXDSpacePointCreatorModule, CheckErrorEventModule, Convert2RawDetModule, Root2BinaryModule, BeamSpotMonitorModule, 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, 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< CDCTrackingEventLevelMdstInfoFillerFromHitsFindlet >, FindletModule< CDCTrackingEventLevelMdstInfoFillerFromSegmentsFindlet >, 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, TRGEFFDQMModule, TRGGDLDQMModule, TRGGDLDSTModule, TRGGDLSummaryModule, TRGGDLUnpackerModule, TRGGRLMatchModule, TRGGRLModule, TRGGRLProjectsModule, TRGGRLDQMModule, GRLNeuroModule, GRLNeuroTrainerModule, TRGGRLUnpackerModule, KLMTriggerModule, TRGTOPDQMModule, TRGTOPTRD2TTSConverterModule, TRGTOPUnpackerModule, TRGTOPUnpackerWaveformModule, TRGTOPWaveformPlotterModule, TRGRAWDATAModule, VXDMisalignmentModule, DQMHistAnalysisARICHModule, DQMHistAnalysisARICHMonObjModule, DQMHistAnalysisCDCDedxModule, DQMHistAnalysisCDCEpicsModule, DQMHistAnalysisCDCMonObjModule, DQMHistAnalysisDAQMonObjModule, DQMHistAnalysisECLModule, DQMHistAnalysisECLConnectedRegionsModule, DQMHistAnalysisECLOutOfTimeDigitsModule, DQMHistAnalysisECLShapersModule, DQMHistAnalysisECLSummaryModule, DQMHistAnalysisEpicsExampleModule, DQMHistAnalysisEventT0EfficiencyModule, DQMHistAnalysisEventT0TriggerJitterModule, DQMHistAnalysisExampleModule, DQMHistAnalysisExampleFlagsModule, DQMHistAnalysisHLTModule, DQMHistAnalysisHLTMonObjModule, DQMHistAnalysisInput2Module, DQMHistAnalysisInputPVSrvModule, DQMHistAnalysisInputTestModule, DQMHistAnalysisKLMModule, DQMHistAnalysisMiraBelleModule, DQMHistAnalysisMonObjModule, DQMHistAnalysisOutputFileModule, DQMHistAnalysisOutputMonObjModule, DQMHistAnalysisOutputRelayMsgModule, DQMHistAnalysisPeakModule, DQMHistAnalysisPXDFitsModule, DQMHistAnalysisSVDClustersOnTrackModule, DQMHistAnalysisSVDEfficiencyModule, DQMHistAnalysisSVDGeneralModule, DQMHistAnalysisSVDOccupancyModule, DQMHistAnalysisSVDOnMiraBelleModule, DQMHistAnalysisSVDUnpackerModule, DQMHistAnalysisTOPModule, DQMHistAnalysisTrackingAbortModule, DQMHistAnalysisTRGECLModule, DQMHistAnalysisTRGEFFModule, 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 175 of file Module.h.

175{};

Member Data Documentation

◆ h_1cltrkCharge

TH1F* h_1cltrkCharge[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge

Definition at line 166 of file SVDPerformanceModule.h.

◆ h_1cltrkSN

TH1F* h_1cltrkSN[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

signal over noise

Definition at line 167 of file SVDPerformanceModule.h.

◆ h_2cltrkCharge

TH1F* h_2cltrkCharge[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge

Definition at line 170 of file SVDPerformanceModule.h.

◆ h_2cltrkSN

TH1F* h_2cltrkSN[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

signal over noise

Definition at line 171 of file SVDPerformanceModule.h.

◆ h_clCellID1VSCellID2

TH1F* h_clCellID1VSCellID2[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

coor1 VS coor2

Definition at line 137 of file SVDPerformanceModule.h.

◆ h_clCharge

TH1F* h_clCharge[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge

Definition at line 127 of file SVDPerformanceModule.h.

◆ h_clChargeVSSize

TH2F* h_clChargeVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 141 of file SVDPerformanceModule.h.

◆ h_clCoor1VSCoor2

TH1F* h_clCoor1VSCoor2[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

coor1 VS coor2

Definition at line 135 of file SVDPerformanceModule.h.

◆ h_clCoorUVSCoorV

TH2F* h_clCoorUVSCoorV[m_nLayers][m_nSensors] = {{nullptr}}
private

energy VS position

Definition at line 134 of file SVDPerformanceModule.h.

◆ h_clEnergy

TH1F* h_clEnergy[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy

Definition at line 128 of file SVDPerformanceModule.h.

◆ h_clEnergy12VSdelta

TH2F* h_clEnergy12VSdelta[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

coor1 VS coor2

Definition at line 136 of file SVDPerformanceModule.h.

◆ h_clEnergyUVSEnergyV

TH2F* h_clEnergyUVSEnergyV[m_nLayers][m_nSensors] = {{nullptr}}
private

energy VS position

Definition at line 138 of file SVDPerformanceModule.h.

◆ h_clEnergyVSCoorU

TH2F* h_clEnergyVSCoorU[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS position U

Definition at line 131 of file SVDPerformanceModule.h.

◆ h_clEnergyVSCoorV

TH2F* h_clEnergyVSCoorV[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS position V

Definition at line 132 of file SVDPerformanceModule.h.

◆ h_clEnergyVSMaxbin

TH2F* h_clEnergyVSMaxbin[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS maxbin seed

Definition at line 130 of file SVDPerformanceModule.h.

◆ h_clEnergyVSSize_mb12

TH2F* h_clEnergyVSSize_mb12[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS size, maxbin == 1,2

Definition at line 142 of file SVDPerformanceModule.h.

◆ h_clEnergyVSSize_mb345

TH2F* h_clEnergyVSSize_mb345[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS size, maxbin == 3,4,5

Definition at line 143 of file SVDPerformanceModule.h.

◆ h_clEnergyVSSize_mb6

TH2F* h_clEnergyVSSize_mb6[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy VS size, max bin == 6

Definition at line 144 of file SVDPerformanceModule.h.

◆ h_clNuVSNv

TH2F* h_clNuVSNv[m_nLayers][m_nSensors] = {{nullptr}}
private

N U culsters VS N V clusters.

Definition at line 133 of file SVDPerformanceModule.h.

◆ h_clSeedMaxbin

TH1F* h_clSeedMaxbin[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

maxbin seed

Definition at line 129 of file SVDPerformanceModule.h.

◆ h_clSize

TH1F* h_clSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

size

Definition at line 126 of file SVDPerformanceModule.h.

◆ h_clSN

TH1F* h_clSN[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

signal over noise

Definition at line 139 of file SVDPerformanceModule.h.

◆ h_clSNVSSize

TH2F* h_clSNVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 145 of file SVDPerformanceModule.h.

◆ h_clTime

TH1F* h_clTime[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 140 of file SVDPerformanceModule.h.

◆ h_clTimeVSSize

TH2F* h_clTimeVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 146 of file SVDPerformanceModule.h.

◆ h_clTimeVSTrueTime

TH2F* h_clTimeVSTrueTime[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time VS true time

Definition at line 147 of file SVDPerformanceModule.h.

◆ h_cltrk_UU

TH1F* h_cltrk_UU = nullptr
private

U time vs U time.

Definition at line 174 of file SVDPerformanceModule.h.

◆ h_cltrk_UV

TH1F* h_cltrk_UV = nullptr
private

U time vs V time.

Definition at line 176 of file SVDPerformanceModule.h.

◆ h_cltrk_VV

TH1F* h_cltrk_VV = nullptr
private

V time vs V time.

Definition at line 175 of file SVDPerformanceModule.h.

◆ h_cltrkCharge

TH1F* h_cltrkCharge[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge

Definition at line 152 of file SVDPerformanceModule.h.

◆ h_cltrkChargeVSSize

TH2F* h_cltrkChargeVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 160 of file SVDPerformanceModule.h.

◆ h_cltrkEnergy

TH1F* h_cltrkEnergy[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy

Definition at line 153 of file SVDPerformanceModule.h.

◆ h_cltrkSize

TH1F* h_cltrkSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

size

Definition at line 151 of file SVDPerformanceModule.h.

◆ h_cltrkSN

TH1F* h_cltrkSN[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

signal over noise

Definition at line 154 of file SVDPerformanceModule.h.

◆ h_cltrkSNVSSize

TH2F* h_cltrkSNVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 161 of file SVDPerformanceModule.h.

◆ h_cltrkTime

TH1F* h_cltrkTime[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 155 of file SVDPerformanceModule.h.

◆ h_cltrkTime_L4uL5u

TH2F* h_cltrkTime_L4uL5u = nullptr
private

L4U time VS L5U time.

Definition at line 178 of file SVDPerformanceModule.h.

◆ h_cltrkTime_L4vL5v

TH2F* h_cltrkTime_L4vL5v = nullptr
private

L4V time VS L5V time.

Definition at line 179 of file SVDPerformanceModule.h.

◆ h_cltrkTime_L5uL5v

TH2F* h_cltrkTime_L5uL5v = nullptr
private

L5U time VS L5V time.

Definition at line 180 of file SVDPerformanceModule.h.

◆ h_cltrkTime_TB1

TH1F* h_cltrkTime_TB1[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 156 of file SVDPerformanceModule.h.

◆ h_cltrkTime_TB2

TH1F* h_cltrkTime_TB2[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 157 of file SVDPerformanceModule.h.

◆ h_cltrkTime_TB3

TH1F* h_cltrkTime_TB3[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 158 of file SVDPerformanceModule.h.

◆ h_cltrkTime_TB4

TH1F* h_cltrkTime_TB4[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 159 of file SVDPerformanceModule.h.

◆ h_cltrkTimeVSSize

TH2F* h_cltrkTimeVSSize[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge VS size

Definition at line 162 of file SVDPerformanceModule.h.

◆ h_cltrkTimeVSTrueTime

TH2F* h_cltrkTimeVSTrueTime[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time VS true time

Definition at line 163 of file SVDPerformanceModule.h.

◆ h_nCl

TH1F* h_nCl[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

number per event

Definition at line 125 of file SVDPerformanceModule.h.

◆ h_nCltrk

TH1F* h_nCltrk[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

number per event

Definition at line 150 of file SVDPerformanceModule.h.

◆ h_nReco

TH1F* h_nReco[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

number per event

Definition at line 118 of file SVDPerformanceModule.h.

◆ h_nShaper

TH1F* h_nShaper[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

number per event

Definition at line 115 of file SVDPerformanceModule.h.

◆ h_recoCharge

TH1F* h_recoCharge[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

charge

Definition at line 119 of file SVDPerformanceModule.h.

◆ h_recoEnergy

TH1F* h_recoEnergy[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

energy

Definition at line 120 of file SVDPerformanceModule.h.

◆ h_recoTime

TH1F* h_recoTime[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

time

Definition at line 122 of file SVDPerformanceModule.h.

◆ h_stripNoise

TH1F* h_stripNoise[m_nLayers][m_nSensors][m_nSides] = {{{nullptr}}}
private

strip noise

Definition at line 121 of file SVDPerformanceModule.h.

◆ m_ClusterName

std::string m_ClusterName = "SVDClusters"

SVDCluster StoreArray name.

Definition at line 58 of file SVDPerformanceModule.h.

◆ m_conditions

std::vector<ModuleCondition> m_conditions
privateinherited

Module condition, only non-null if set.

Definition at line 520 of file Module.h.

◆ m_debugLowTime

float m_debugLowTime = - 100

cluster Time below this number will produce a printout

Definition at line 64 of file SVDPerformanceModule.h.

◆ m_description

std::string m_description
privateinherited

The description of the module.

Definition at line 510 of file Module.h.

◆ m_hasReturnValue

bool m_hasReturnValue
privateinherited

True, if the return value is set.

Definition at line 517 of file Module.h.

◆ m_histoList_clTRK

TList* m_histoList_clTRK[m_nLayers] = {nullptr}
private

histo list clusters related to tracks

Definition at line 103 of file SVDPerformanceModule.h.

◆ m_histoList_cluster

TList* m_histoList_cluster[m_nLayers] = {nullptr}
private

histo list clusters

Definition at line 104 of file SVDPerformanceModule.h.

◆ m_histoList_corr

TList* m_histoList_corr = nullptr
private

histo list correlations

Definition at line 102 of file SVDPerformanceModule.h.

◆ m_histoList_reco

TList* m_histoList_reco[m_nLayers] = {nullptr}
private

histo list reco digits

Definition at line 106 of file SVDPerformanceModule.h.

◆ m_histoList_shaper

TList* m_histoList_shaper[m_nLayers] = {nullptr}
private

histo list shaper digits

Definition at line 105 of file SVDPerformanceModule.h.

◆ m_histoList_track

TList* m_histoList_track = nullptr
private

histo list tracks

Definition at line 101 of file SVDPerformanceModule.h.

◆ m_is2017TBanalysis

bool m_is2017TBanalysis = false

true if we analyze 2017 TB data

Definition at line 61 of file SVDPerformanceModule.h.

◆ m_isSimulation

bool m_isSimulation = false

true if we analyze Simulated data

Definition at line 62 of file SVDPerformanceModule.h.

◆ m_logConfig

LogConfig m_logConfig
privateinherited

The log system configuration of the module.

Definition at line 513 of file Module.h.

◆ m_moduleParamList

ModuleParamList m_moduleParamList
privateinherited

List storing and managing all parameter of the module.

Definition at line 515 of file Module.h.

◆ m_mom

TH1F* m_mom = nullptr
private

track momentum

Definition at line 111 of file SVDPerformanceModule.h.

◆ m_name

std::string m_name
privateinherited

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

Definition at line 507 of file Module.h.

◆ m_nEvents

int m_nEvents = 0
private

number of events

Definition at line 75 of file SVDPerformanceModule.h.

◆ m_nLayers

const int m_nLayers = 4
staticprivate

max number of layers

Definition at line 95 of file SVDPerformanceModule.h.

◆ m_NoiseCal

SVDNoiseCalibrations m_NoiseCal
private

SVDNoise calibration db object.

Definition at line 77 of file SVDPerformanceModule.h.

◆ m_nSensors

const int m_nSensors = 5
staticprivate

max number of sensors

Definition at line 96 of file SVDPerformanceModule.h.

◆ m_nSides

const int m_nSides = 2
staticprivate

max number of sides

Definition at line 97 of file SVDPerformanceModule.h.

◆ m_nSVDhits

TH1F* m_nSVDhits = nullptr
private

track momentum

Definition at line 112 of file SVDPerformanceModule.h.

◆ m_ntracks

int m_ntracks = 0
private

number of tracks

Definition at line 93 of file SVDPerformanceModule.h.

◆ m_nTracks

TH1F* m_nTracks = nullptr
private

number of tracks

Definition at line 109 of file SVDPerformanceModule.h.

◆ m_package

std::string m_package
privateinherited

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

Definition at line 509 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 511 of file Module.h.

◆ m_PulseShapeCal

SVDPulseShapeCalibrations m_PulseShapeCal
private

SVDPulseShape calibration db object.

Definition at line 78 of file SVDPerformanceModule.h.

◆ m_Pvalue

TH1F* m_Pvalue = nullptr
private

track p value

Definition at line 110 of file SVDPerformanceModule.h.

◆ m_RecoDigitName

std::string m_RecoDigitName = "SVDRecoDigits"

SVDRecoDigits Store Array name.

Definition at line 57 of file SVDPerformanceModule.h.

◆ m_recoTracks

StoreArray<RecoTrack> m_recoTracks
private

RecoTracks store array.

Definition at line 83 of file SVDPerformanceModule.h.

◆ m_returnValue

int m_returnValue
privateinherited

The return value.

Definition at line 518 of file Module.h.

◆ m_rootFileName

std::string m_rootFileName = ""

root file name

Definition at line 68 of file SVDPerformanceModule.h.

◆ m_rootFilePtr

TFile* m_rootFilePtr = nullptr

pointer at root file used for storing histograms

Definition at line 71 of file SVDPerformanceModule.h.

◆ m_ShaperDigitName

std::string m_ShaperDigitName = "SVDShaperDigits"

ShaperDigits Store Array name.

Definition at line 56 of file SVDPerformanceModule.h.

◆ m_storeSVDEvtInfo

StoreObjPtr<SVDEventInfo> m_storeSVDEvtInfo
private

Storage for SVDEventInfo object.

Definition at line 88 of file SVDPerformanceModule.h.

◆ m_svdClusters

StoreArray<SVDCluster> m_svdClusters
private

SVDCluster store array.

Definition at line 82 of file SVDPerformanceModule.h.

◆ m_svdEventInfoName

std::string m_svdEventInfoName
private

Name of the SVDEventInfo object.

Definition at line 91 of file SVDPerformanceModule.h.

◆ m_svdRecos

StoreArray<SVDRecoDigit> m_svdRecos
private

SVDRecoDigits store array.

Definition at line 81 of file SVDPerformanceModule.h.

◆ m_svdShapers

StoreArray<SVDShaperDigit> m_svdShapers
private

SVDShaperDigit store array.

Definition at line 80 of file SVDPerformanceModule.h.

◆ m_tfr

StoreArray<TrackFitResult> m_tfr
private

TrackFitResult store array.

Definition at line 85 of file SVDPerformanceModule.h.

◆ m_TrackFitResultName

std::string m_TrackFitResultName = "TrackFitResults"

TrackFitResult StoreArray name.

Definition at line 59 of file SVDPerformanceModule.h.

◆ m_TrackName

std::string m_TrackName = "Tracks"

Track StoreArray name.

Definition at line 60 of file SVDPerformanceModule.h.

◆ m_Tracks

StoreArray<Track> m_Tracks
private

Tracks store array.

Definition at line 84 of file SVDPerformanceModule.h.

◆ m_type

std::string m_type
privateinherited

The type of the module, saved as a string.

Definition at line 508 of file Module.h.

◆ sensorsOnLayer

unsigned int sensorsOnLayer[4] = {0}
private

sensors on layer i

Definition at line 99 of file SVDPerformanceModule.h.


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