Belle II Software development
PXDROIFinderAnalysisModule Class Reference

The PXD Data Reduction Analysis Module. More...

#include <PXDROIFinderAnalysisModule.h>

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

 PXDROIFinderAnalysisModule ()
 Constructor of the module.
 
virtual std::vector< std::string > getFileNames (bool outputFiles)
 Return a list of output filenames for this modules.
 
virtual void endRun ()
 This method is called if the current run ends.
 
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.
 

Protected Member Functions

virtual void def_initialize ()
 Wrappers to make the methods without "def_" prefix callable from Python.
 
virtual void def_beginRun ()
 Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python.
 
virtual void def_event ()
 Wrapper method for the virtual function event() that has the implementation to be used in a call from Python.
 
virtual void def_endRun ()
 This method can receive that the current run ends as a call from the Python side.
 
virtual void def_terminate ()
 Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python.
 
void setDescription (const std::string &description)
 Sets the description of the module.
 
void setType (const std::string &type)
 Set the module type.
 
template<typename T >
void addParam (const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
 Adds a new parameter to the module.
 
template<typename T >
void addParam (const std::string &name, T &paramVariable, const std::string &description)
 Adds a new enforced parameter to the module.
 
void setReturnValue (int value)
 Sets the return value for this module as integer.
 
void setReturnValue (bool value)
 Sets the return value for this module as bool.
 
void setParamList (const ModuleParamList &params)
 Replace existing parameter list.
 

Private Member Functions

void initialize () override final
 Initializes the Module.
 
void beginRun () override final
 Called when entering a new run.
 
void event () override final
 This method is called for each event.
 
void terminate () override final
 Termination action.
 
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

StoreArray< RecoTrackm_recoTracks
 RecoTrack StoreArray.
 
StoreArray< ROIidm_ROIs
 ROIid StoreArray.
 
StoreArray< PXDInterceptm_PXDIntercepts
 PXDIntercept StoreArray.
 
StoreArray< MCParticlem_MCParticles
 MCParticle StoreArray.
 
std::string m_recoTrackListName
 RecoTrack list name.
 
std::string m_PXDInterceptListName
 Intercept list name.
 
std::string m_ROIListName
 ROI list name.
 
TFile * m_rootFilePtr = nullptr
 pointer at root file used for storing infos for debugging and validating purposes
 
std::string m_rootFileName
 root file name
 
bool m_writeToRoot
 if true, a rootFile named by m_rootFileName will be filled with info
 
int m_rootEvent
 event number
 
Int_t m_nSensorsL1
 number of sensors on L1
 
Int_t m_nSensorsL2
 number of sensors on L2
 
Double_t pt [6] = {0.05, 0.15, 0.25, 0.4, 0.75, 1.5}
 bin edges (in pt = transverse momentum)
 
Double_t ptErr [6] = { 0.05, 0.05, 0.05, 0.1, 0.25, 0.5}
 bin widths (transverse momentum)
 
TGraphErrors * m_gEff2 = nullptr
 efficiency graph
 
TGraphErrors * m_gEff = nullptr
 efficiency graph
 
TH1F * m_h1DigitsPerParticle = nullptr
 number of digits per particle
 
TH1F * m_h1RecoTracksPerParticle = nullptr
 number of RecoTracks per particle
 
TH1F * m_h1digiIn = nullptr
 digits contained in ROI histogram
 
TH1F * m_h1digiOut2 = nullptr
 lost digit: ROI exist with right vxdID
 
TH1F * m_h1digiOut3 = nullptr
 lost digit: ROI exist with wrong vxdID
 
TH1F * m_h1digiOut4 = nullptr
 lost digit: ROI does not exist, intercept with right vxdID
 
TH1F * m_h1digiOut5 = nullptr
 lost digit: ROI does not exist, intercept with wrong vxdID
 
TH1F * m_h1TrackOneDigiIn = nullptr
 tracks with at least digit contained in ROI
 
TH1F * m_h1nnotINtrack2 = nullptr
 tracks with lost digit: ROI exist with right vxdID
 
TH1F * m_h1nnotINtrack3 = nullptr
 lost digit: ROI exist with wrong vxdID
 
TH1F * m_h1nnotINtrack4 = nullptr
 lost digit: ROI does not exist, intercept with right vxdID
 
TH1F * m_h1nnotINtrack5 = nullptr
 lost digit: ROI does not exist, intercept with wrong vxdID
 
TH1F * m_h1Track = nullptr
 denominator track

 
TH1F * m_h1Track_pt = nullptr
 denominator track pT
 
TH1F * m_h1Track_phi = nullptr
 denominator track phi
 
TH1F * m_h1Track_lambda = nullptr
 denominator track lambda
 
TH1F * m_h1Track_cosTheta = nullptr
 denominator track cosTheta
 
TH1F * m_h1Track_pVal = nullptr
 denominator track pVal
 
TH1F * m_h1Track_nSVDhits = nullptr
 denominator track pVal
 
TH1F * m_h1Track_nCDChits = nullptr
 denominator track pVal
 
TH1F * m_h1INtrack1 = nullptr
 track with no intercept

 
TH1F * m_h1INtrack1_pt = nullptr
 track with no intercept pT
 
TH1F * m_h1INtrack1_phi = nullptr
 track with no intercept phi
 
TH1F * m_h1INtrack1_lambda = nullptr
 track with no intercept lambda
 
TH1F * m_h1INtrack1_cosTheta = nullptr
 track with no intercept costheta
 
TH1F * m_h1INtrack1_pVal = nullptr
 denominator track pVal
 
TH1F * m_h1INtrack1_nSVDhits = nullptr
 denominator track pVal
 
TH1F * m_h1INtrack1_nCDChits = nullptr
 denominator track pVal
 
TH1F * m_h1notINtrack5 = nullptr
 track with no intercept

 
TH1F * m_h1notINtrack5_pt = nullptr
 track with no intercept pT
 
TH1F * m_h1notINtrack5_phi = nullptr
 track with no intercept phi
 
TH1F * m_h1notINtrack5_lambda = nullptr
 track with no intercept lambda
 
TH1F * m_h1notINtrack5_cosTheta = nullptr
 track with no intercept costheta
 
TH1F * m_h1notINtrack5_pVal = nullptr
 denominator track pVal
 
TH1F * m_h1notINtrack5_nSVDhits = nullptr
 denominator track pVal
 
TH1F * m_h1notINtrack5_nCDChits = nullptr
 denominator track pVal
 
TH1F * m_h1PullU = nullptr
 distribution of U pulls for PDXDigits contained in a ROI
 
TH1F * m_h1PullV = nullptr
 distribution of V pulls for PDXDigits contained in a ROI
 
TH2F * m_h2sigmaUphi = nullptr
 distribution of sigmaU VS phi for PDXDigits contained in a ROI
 
TH2F * m_h2sigmaVphi = nullptr
 distribution of sigmaV VS phi for PDXDigits contained in a ROI
 
TH1F * m_h1ResidU = nullptr
 distribution of U resid for PXDDigits contained in a ROI
 
TH1F * m_h1ResidV = nullptr
 distribution of V resid for PXDDigits contained in a ROI
 
TH2F * m_h2ResidUV = nullptr
 distribution of V resid for PXDDigits contained in a ROI
 
TH1F * m_h1SigmaU = nullptr
 distribution of sigmaU for PXDDigits contained in a ROI
 
TH1F * m_h1SigmaV = nullptr
 distribution of sigmaV for PXDDigits contained in a ROI
 
TH1F * m_h1GlobalTime = nullptr
 distribution of global time for PDXDigits contained in a ROI
 
TH2F * m_h2Mapglob = nullptr
 sensor perp,phi
 
TH2F * m_h2MaplocL1 = nullptr
 L1 ladder u,v.
 
TH2F * m_h2MaplocL2 = nullptr
 L2 ladder u,v.
 
TH2F * m_h2sigmaUphi_out2 = nullptr
 distribution of sigmaU VS phi for PDXDigits not contained in a ROI
 
TH2F * m_h2sigmaVphi_out2 = nullptr
 distribution of sigmaV VS phi for PDXDigits not contained in a ROI
 
TH1F * m_h1ResidU_out2 = nullptr
 distribution of U resid for PXDDigits not contained in a ROI
 
TH1F * m_h1ResidV_out2 = nullptr
 distribution of V resid for PXDDigits not contained in a ROI
 
TH2F * m_h2ResidUV_out2 = nullptr
 distribution of V resid for PXDDigits not contained in a ROI
 
TH1F * m_h1SigmaU_out2 = nullptr
 distribution of sigmaU for PXDDigits not contained in a ROI
 
TH1F * m_h1SigmaV_out2 = nullptr
 distribution of sigmaV for PXDDigits not contained in a ROI
 
TH1F * m_h1GlobalTime_out2 = nullptr
 distribution of global time for PDXDigits not contained in a ROI
 
TH2F * m_h2Mapglob_out2 = nullptr
 sensor perp,phi
 
TH2F * m_h2MaplocL1_out2 = nullptr
 L1 ladder u,v.
 
TH2F * m_h2MaplocL2_out2 = nullptr
 L2 ladder u,v.
 
TH2F * m_h2sigmaUphi_out3 = nullptr
 distribution of sigmaU VS phi for PDXDigits not contained in a ROI
 
TH2F * m_h2sigmaVphi_out3 = nullptr
 distribution of sigmaV VS phi for PDXDigits not contained in a ROI
 
TH1F * m_h1ResidU_out3 = nullptr
 distribution of U resid for PXDDigits not contained in a ROI
 
TH1F * m_h1ResidV_out3 = nullptr
 distribution of V resid for PXDDigits not contained in a ROI
 
TH2F * m_h2ResidUV_out3 = nullptr
 distribution of V resid for PXDDigits not contained in a ROI
 
TH1F * m_h1SigmaU_out3 = nullptr
 distribution of sigmaU for PXDDigits not contained in a ROI
 
TH1F * m_h1SigmaV_out3 = nullptr
 distribution of sigmaV for PXDDigits not contained in a ROI
 
TH1F * m_h1GlobalTime_out3 = nullptr
 distribution of global time for PDXDigits not contained in a ROI
 
TH2F * m_h2Mapglob_out3 = nullptr
 sensor perp,phi
 
TH2F * m_h2MaplocL1_out3 = nullptr
 L1 ladder u,v.
 
TH2F * m_h2MaplocL2_out3 = nullptr
 L2 ladder u,v.
 
TH2F * m_h2sigmaUphi_out4 = nullptr
 distribution of sigmaU VS phi for PDXDigits not contained in a ROI
 
TH2F * m_h2sigmaVphi_out4 = nullptr
 distribution of sigmaV VS phi for PDXDigits not contained in a ROI
 
TH1F * m_h1SigmaU_out4 = nullptr
 distribution of sigmaU for PXDDigits not contained in a ROI
 
TH1F * m_h1SigmaV_out4 = nullptr
 distribution of sigmaV for PXDDigits not contained in a ROI
 
TH1F * m_h1GlobalTime_out4 = nullptr
 distribution of global time for PDXDigits not contained in a ROI
 
TH2F * m_h2Mapglob_out4 = nullptr
 sensor perp,phi
 
TH2F * m_h2MaplocL1_out4 = nullptr
 L1 ladder u,v.
 
TH2F * m_h2MaplocL2_out4 = nullptr
 L2 ladder u,v.
 
TH1F * m_h1GlobalTime_out5 = nullptr
 distribution of global time for PDXDigits not contained in a ROI
 
TH2F * m_h2Mapglob_out5 = nullptr
 sensor perp,phi
 
TH2F * m_h2MaplocL1_out5 = nullptr
 L1 ladder u,v.
 
TH2F * m_h2MaplocL2_out5 = nullptr
 L2 ladder u,v.
 
TH2F * m_h2ROIbottomLeft = nullptr
 u,v coordinates of the bottom left pixel
 
TH2F * m_h2ROItopRight = nullptr
 u,v coordinates of the top right pixel
 
TH2F * m_h2ROIuMinMax = nullptr
 u-coordinate Min vs Max
 
TH2F * m_h2ROIvMinMax = nullptr
 v-coordinate Min vs Max
 
TH1F * m_h1totROIs = nullptr
 distribution of number of all ROIs
 
TH1F * m_h1okROIs = nullptr
 distribution of number of ROIs containing a PXDDigit
 
TH1F * m_h1okROIfrac = nullptr
 distribution of number of ROIsreduction factor
 
TH1F * m_h1redFactor = nullptr
 distribution of number of ROIsreduction factor
 
TH1F * m_h1redFactor_L1 = nullptr
 distribution of number of ROIsreduction factor
 
TH1F * m_h1redFactor_L2 = nullptr
 distribution of number of ROIsreduction factor
 
TH1F * m_h1totArea = nullptr
 distribution of Area of all ROIs
 
TH1F * m_h1okArea = nullptr
 distribution of Area of ROIs containing a PXDDigit
 
TH1F * m_h1effPerTrack = nullptr
 fraction of digits in ROI per track
 
double m_globalTime
 global hit time
 
double m_coorU
 intercept U coordinate
 
double m_coorV
 intercept V coordinate
 
double m_sigmaU
 intercept U stat error
 
double m_sigmaV
 intercept V stat error
 
int m_vxdID
 VXD ID.
 
double m_coorUmc
 true intercept U coordinate
 
double m_coorVmc
 true intercept V coordinate
 
int m_Uidmc
 true intercept U id

 
int m_Vidmc
 true intercept V id

 
int m_vxdIDmc
 true intercept VXD id

 
double m_pTmc
 transverse momentum
 
double m_momXmc
 true p along X
 
double m_momYmc
 true p along Y
 
double m_momZmc
 true p along Z
 
double m_thetamc
 true theta
 
double m_costhetamc
 true cos theta
 
double m_phimc
 true phi
 
double m_lambdamc
 true lambda = pi/2 - theta
 
unsigned int Ntrack
 number of tracks with pxd digits
 
unsigned int NtrackHit
 number of tracks with hits
 
unsigned int n_notINtrack2
 number of tracks with no digits in ROI (correct vxdID)
 
unsigned int n_notINtrack3
 number of tracks with no digits in ROI (wrong vxdID)
 
unsigned int n_notINtrack4
 number of tracks with no ROI (intercept with correct vxdID)
 
unsigned int n_notINtrack5
 number of tracks with no ROI (intercept with wrong vxdID)
 
unsigned int n_rois
 number of ROIs
 
unsigned int n_intercepts
 number of PXDIntercepts
 
unsigned int n_tracks
 number of tracks
 
unsigned int n_tracksWithDigits
 number of tracks with digits
 
unsigned int n_tracksWithDigitsInROI
 number of tracks with digits in ROI
 
unsigned int n_pxdDigit
 number of pxd digits
 
unsigned int n_pxdDigitInROI
 number of pxd digits in ROIs
 
unsigned int n_notINdigit2
 number of lost digits: no hit, correct vxdID
 
unsigned int n_notINdigit3
 number of lost digits: no hit, wrong vxdID
 
unsigned int n_notINdigit4
 number of lost digits: no ROI, intercepts with correct vxdID
 
unsigned int n_notINdigit5
 number of lost digits: no ROI, intercepts with wrong vxdID
 
unsigned int npxdDigit [6]
 number of pxd digits in bins of pt
 
unsigned int npxdDigitInROI [6]
 number of pxd digits inside ROI in bins of pt
 
unsigned int nnotINdigit2 [6]
 number of lost digits in bins of pt: no hit, correct vxdID
 
unsigned int nnotINdigit3 [6]
 number of lost digits in bins of pt: no hit, wrong vxdID
 
unsigned int nnotINdigit4 [6]
 number of lost digits in bins of pt: no ROI, intercepts with correct vxdID
 
unsigned int nnotINdigit5 [6]
 number of lost digits in bins of pt: no ROI, intercepts with wrong vxdID
 
unsigned int TrackOneDigiIn [6]
 number of tracks with one digit inside ROI in bins of pt
 
unsigned int nnotINtrack2 [6]
 number of tracks in bins of pt: no hit, correct vxdID
 
unsigned int nnotINtrack3 [6]
 number of tracks in bins of pt: no hit, wrong vxdID
 
unsigned int nnotINtrack4 [6]
 number of tracks in bins of pt: no ROI, intercepts with correct vxdID
 
unsigned int nnotINtrack5 [6]
 number of tracks in bins of pt: no ROI, intercepts with wrong vxdID
 
std::string m_name
 The name of the module, saved as a string (user-modifiable)
 
std::string m_type
 The type of the module, saved as a string.
 
std::string m_package
 Package this module is found in (may be empty).
 
std::string m_description
 The description of the module.
 
unsigned int m_propertyFlags
 The properties of the module as bitwise or (with |) of EModulePropFlags.
 
LogConfig m_logConfig
 The log system configuration of the module.
 
ModuleParamList m_moduleParamList
 List storing and managing all parameter of the module.
 
bool m_hasReturnValue
 True, if the return value is set.
 
int m_returnValue
 The return value.
 
std::vector< ModuleConditionm_conditions
 Module condition, only non-null if set.
 

Detailed Description

The PXD Data Reduction Analysis Module.

this module performs the analysis of the PXD data reduction module performances

Definition at line 36 of file PXDROIFinderAnalysisModule.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

◆ PXDROIFinderAnalysisModule()

Constructor of the module.

Definition at line 37 of file PXDROIFinderAnalysisModule.cc.

37 : Module()
38 , m_writeToRoot(false)
39 , m_rootEvent(-1)
40 //pxd sensors
41 , m_nSensorsL1(0)
42 , m_nSensorsL2(0)
43
44 //variables
45 , m_globalTime(0.)
46 , m_coorU(0.)
47 , m_coorV(0.)
48 , m_sigmaU(0.)
49 , m_sigmaV(0.)
50 , m_vxdID(-1)
51
52 , m_coorUmc(0.)
53 , m_coorVmc(0.)
54 , m_Uidmc(-1)
55 , m_Vidmc(-1)
56 , m_vxdIDmc(-1)
57 , m_pTmc(0.)
58 , m_momXmc(0.)
59 , m_momYmc(0.)
60 , m_momZmc(0.)
61 , m_thetamc(0.)
62 , m_costhetamc(0.)
63 , m_phimc(0.)
64 , m_lambdamc(0.)
65
66 , Ntrack(0)
67 , NtrackHit(0)
68 , n_notINtrack2(0)
69 , n_notINtrack3(0)
70 , n_notINtrack4(0)
71 , n_notINtrack5(0)
72
73 , n_rois(0)
74 , n_intercepts(0)
75 , n_tracks(0)
78
79
80 , n_pxdDigit(0)
82 , n_notINdigit2(0)
83 , n_notINdigit3(0)
84 , n_notINdigit4(0)
85 , n_notINdigit5(0)
86
87 //vectors
88 , npxdDigit{0}
90 , nnotINdigit2{0}
91 , nnotINdigit3{0}
92 , nnotINdigit4{0}
93 , nnotINdigit5{0}
95 , nnotINtrack2{0}
96 , nnotINtrack3{0}
97 , nnotINtrack4{0}
98 , nnotINtrack5{0}
99
100{
101 //Set module properties
102 setDescription("This module performs the analysis of the PXDROIFinder module output");
103
104 addParam("writeToRoot", m_writeToRoot,
105 "set true if you want to save the information in a root file named by parameter 'rootFileName'", bool(true));
106
107 addParam("rootFileName", m_rootFileName,
108 "fileName used for . Will be ignored if parameter 'writeToRoot' is false (standard)",
109 std::string("pxdDataRedAnalysis"));
110
111 addParam("recoTrackListName", m_recoTrackListName,
112 "name of the input collection of RecoTracks", std::string(""));
113
114 addParam("PXDInterceptListName", m_PXDInterceptListName,
115 "name of the list of interceptions", std::string(""));
116
117 addParam("ROIListName", m_ROIListName,
118 "name of the list of ROIs", std::string(""));
119
120 m_rootEvent = 0;
121}
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
Module()
Constructor.
Definition: Module.cc:30
unsigned int n_pxdDigit
number of pxd digits
unsigned int nnotINtrack3[6]
number of tracks in bins of pt: no hit, wrong vxdID
Int_t m_nSensorsL2
number of sensors on L2
unsigned int n_pxdDigitInROI
number of pxd digits in ROIs
Int_t m_nSensorsL1
number of sensors on L1
unsigned int n_notINdigit2
number of lost digits: no hit, correct vxdID
unsigned int n_notINtrack4
number of tracks with no ROI (intercept with correct vxdID)
double m_coorUmc
true intercept U coordinate
unsigned int n_intercepts
number of PXDIntercepts
std::string m_recoTrackListName
RecoTrack list name.
bool m_writeToRoot
if true, a rootFile named by m_rootFileName will be filled with info
unsigned int nnotINtrack2[6]
number of tracks in bins of pt: no hit, correct vxdID
std::string m_PXDInterceptListName
Intercept list name.
unsigned int nnotINdigit3[6]
number of lost digits in bins of pt: no hit, wrong vxdID
unsigned int nnotINtrack4[6]
number of tracks in bins of pt: no ROI, intercepts with correct vxdID
unsigned int n_notINtrack2
number of tracks with no digits in ROI (correct vxdID)
unsigned int n_notINdigit3
number of lost digits: no hit, wrong vxdID
unsigned int nnotINdigit4[6]
number of lost digits in bins of pt: no ROI, intercepts with correct vxdID
unsigned int nnotINdigit2[6]
number of lost digits in bins of pt: no hit, correct vxdID
unsigned int npxdDigit[6]
number of pxd digits in bins of pt
unsigned int nnotINtrack5[6]
number of tracks in bins of pt: no ROI, intercepts with wrong vxdID
unsigned int n_notINdigit5
number of lost digits: no ROI, intercepts with wrong vxdID
unsigned int NtrackHit
number of tracks with hits
unsigned int n_tracksWithDigitsInROI
number of tracks with digits in ROI
unsigned int Ntrack
number of tracks with pxd digits
unsigned int n_notINtrack5
number of tracks with no ROI (intercept with wrong vxdID)
unsigned int nnotINdigit5[6]
number of lost digits in bins of pt: no ROI, intercepts with wrong vxdID
unsigned int n_tracksWithDigits
number of tracks with digits
unsigned int n_notINdigit4
number of lost digits: no ROI, intercepts with correct vxdID
double m_lambdamc
true lambda = pi/2 - theta
double m_coorVmc
true intercept V coordinate
unsigned int npxdDigitInROI[6]
number of pxd digits inside ROI in bins of pt
unsigned int TrackOneDigiIn[6]
number of tracks with one digit inside ROI in bins of pt
unsigned int n_notINtrack3
number of tracks with no digits in ROI (wrong vxdID)
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:560

Member Function Documentation

◆ beginRun()

void beginRun ( void  )
finaloverrideprivatevirtual

Called when entering a new run.

Reimplemented from Module.

Definition at line 301 of file PXDROIFinderAnalysisModule.cc.

302{
303 m_rootEvent = 0;
304
306
307 std::set<Belle2::VxdID> pxdLayers = aGeometry.getLayers(VXD::SensorInfoBase::PXD);
308 std::set<Belle2::VxdID>::iterator itPxdLayers = pxdLayers.begin();
309
310 while ((itPxdLayers != pxdLayers.end()) && (itPxdLayers->getLayerNumber() != 7)) {
311
312 std::set<Belle2::VxdID> pxdLadders = aGeometry.getLadders(*itPxdLayers);
313 std::set<Belle2::VxdID>::iterator itPxdLadders = pxdLadders.begin();
314
315 while (itPxdLadders != pxdLadders.end()) {
316
317 std::set<Belle2::VxdID> pxdSensors = aGeometry.getSensors(*itPxdLadders);
318 std::set<Belle2::VxdID>::iterator itPxdSensors = pxdSensors.begin();
319
320 while (itPxdSensors != pxdSensors.end()) {
321
322 if (itPxdLadders->getLayerNumber() == 1)
323 m_nSensorsL1++;
324 if (itPxdLadders->getLayerNumber() == 2)
325 m_nSensorsL2++;
326
327 ++itPxdSensors;
328 }
329 ++itPxdLadders;
330 }
331 ++itPxdLayers;
332 }
333
334
335}
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
const std::set< Belle2::VxdID > getLayers(SensorInfoBase::SensorType sensortype=SensorInfoBase::VXD)
Return a set of all known Layers.
Definition: GeoCache.cc:176
const std::set< Belle2::VxdID > & getSensors(Belle2::VxdID ladder) const
Return a set of all sensor IDs belonging to a given ladder.
Definition: GeoCache.cc:204
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214
const std::set< Belle2::VxdID > & getLadders(Belle2::VxdID layer) const
Return a set of all ladder IDs belonging to a given layer.
Definition: GeoCache.cc:193

◆ clone()

std::shared_ptr< PathElement > clone ( ) const
overridevirtualinherited

Create an independent copy of this module.

Note that parameters are shared, so changing them on a cloned module will also affect the original module.

Implements PathElement.

Definition at line 179 of file Module.cc.

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

◆ def_beginRun()

virtual void def_beginRun ( )
inlineprotectedvirtualinherited

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

Reimplemented in PyModule.

Definition at line 426 of file Module.h.

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

◆ def_endRun()

virtual void def_endRun ( )
inlineprotectedvirtualinherited

This method can receive that the current run ends as a call from the Python side.

For regular C++-Modules that forwards the call to the regular endRun() method.

Reimplemented in PyModule.

Definition at line 439 of file Module.h.

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

◆ def_event()

virtual void def_event ( )
inlineprotectedvirtualinherited

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

Reimplemented in PyModule.

Definition at line 432 of file Module.h.

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

◆ def_initialize()

virtual void def_initialize ( )
inlineprotectedvirtualinherited

Wrappers to make the methods without "def_" prefix callable from Python.

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

Reimplemented in PyModule.

Definition at line 420 of file Module.h.

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

◆ def_terminate()

virtual void def_terminate ( )
inlineprotectedvirtualinherited

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

Reimplemented in PyModule.

Definition at line 445 of file Module.h.

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

◆ endRun()

virtual void endRun ( void  )
inlinevirtualinherited

This method is called if the current run ends.

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

This method can be implemented by subclasses.

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

Definition at line 166 of file Module.h.

166{};

◆ evalCondition()

bool evalCondition ( ) const
inherited

If at least one condition was set, it is evaluated and true returned if at least one condition returns true.

If no condition or result value was defined, the method returns false. Otherwise, the condition is evaluated and true returned, if at least one condition returns true. To speed up the evaluation, the condition strings were already parsed in the method if_value().

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

Definition at line 96 of file Module.cc.

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

◆ event()

void event ( void  )
finaloverrideprivatevirtual

This method is called for each event.

Reimplemented from Module.

Definition at line 338 of file PXDROIFinderAnalysisModule.cc.

339{
340
341 typedef RelationIndex < RecoTrack, PXDIntercept>::range_from PXDInterceptsFromRecoTracks;
342 typedef RelationIndex < RecoTrack, PXDIntercept>::iterator_from PXDInterceptIteratorType;
343 typedef RelationIndex < PXDDigit, PXDTrueHit>::range_from PXDTrueHitFromPXDDigit;
344 typedef RelationIndex < PXDDigit, PXDTrueHit>::iterator_from PXDTrueHitIteratorType;
345 RelationIndex < PXDDigit, PXDTrueHit >
346 relDigitTrueHit(DataStore::relationName(DataStore::arrayName<PXDDigit>(""),
347 DataStore::arrayName<PXDTrueHit>("")));
348 RelationIndex < RecoTrack, PXDIntercept >
350
351 double tmpGlobalTime;
352 int tmpNGlobalTime;
353
354 NtrackHit = 0;
355 Ntrack = 0;
356
357 B2DEBUG(1, " ++++++++++++++ PXDROIFinderAnalysisModule");
358
359 int nROIs = 0;
360 int okArea_L1 = 0;
361 int okArea_L2 = 0;
362 int totArea_L1 = 0;
363 int totArea_L2 = 0;
364
365 //MCParticles
366 StoreArray<MCParticle> mcParticles;
367
368
369 //ROIs general
370 for (int i = 0; i < (int)m_ROIs.getEntries(); i++) { //loop on ROIlist
371
372 m_h2ROIbottomLeft->Fill(m_ROIs[i]->getMinUid(), m_ROIs[i]->getMinVid());
373 m_h2ROItopRight->Fill(m_ROIs[i]->getMaxUid(), m_ROIs[i]->getMaxVid());
374 m_h2ROIuMinMax->Fill(m_ROIs[i]->getMinUid(), m_ROIs[i]->getMaxUid());
375 m_h2ROIvMinMax->Fill(m_ROIs[i]->getMinVid(), m_ROIs[i]->getMaxVid());
376 int tmpArea = (m_ROIs[i]->getMaxUid() - m_ROIs[i]->getMinUid()) * (m_ROIs[i]->getMaxVid() - m_ROIs[i]->getMinVid());
377 if ((m_ROIs[i]->getSensorID()).getLayerNumber() == 1)
378 totArea_L1 += tmpArea;
379 else
380 totArea_L2 += tmpArea;
381
382 bool isOK = false;
383
384 for (int j = 0; j < (int)mcParticles.getEntries(); j++) {
385 MCParticle* aMcParticle = mcParticles[j];
386
387 // continue only if MCParticle has a related PXDDigit and RecoTrack
388 RelationVector<PXDDigit> pxdDigits_MCParticle = aMcParticle->getRelationsFrom<PXDDigit>();
389
390 if (!isOK)
391 //loop on PXDDigits
392 for (unsigned int iPXDDigit = 0; iPXDDigit < pxdDigits_MCParticle.size(); iPXDDigit++)
393 if (m_ROIs[i]->Contains(*(pxdDigits_MCParticle[iPXDDigit]))) {
394 nROIs++;
395 isOK = true;
396 break;
397 }
398 }
399 }
400
401 m_h1totArea->Fill(totArea_L1 + totArea_L2);
402 double redFactor_L1 = totArea_L1 / 768. / 250. / m_nSensorsL1; //16
403 double redFactor_L2 = totArea_L2 / 768. / 250. / m_nSensorsL2; //24
404 m_h1redFactor->Fill((double)(totArea_L1 + totArea_L2) / 768. / 250. / (m_nSensorsL1 + m_nSensorsL2));
405 m_h1redFactor_L1->Fill((double) redFactor_L1);
406 m_h1redFactor_L2->Fill((double) redFactor_L2);
407
408 m_h1totROIs->Fill(m_ROIs.getEntries());
409 n_rois += m_ROIs.getEntries();
410
411 //RecoTrack general
413
414 //PXDIntercepts general
415 n_intercepts += m_PXDIntercepts.getEntries();
416
417 Int_t n_NoInterceptTracks = 0;
418
419 // bool hasDigits = false;
420 // bool hasRecoTrack = false;
421
422 //loop on MCParticles
423 for (int j = 0; j < (int)mcParticles.getEntries(); j++) {
424
425 MCParticle* aMcParticle = mcParticles[j];
426
427 // continue only if MCParticle has a related PXDDigit and RecoTrack
428 RelationVector<PXDDigit> pxdDigits_MCParticle = aMcParticle->getRelationsFrom<PXDDigit>();
429 RelationVector<RecoTrack> recoTracks_MCParticle = aMcParticle->getRelationsWith<RecoTrack>();
430
431 m_h1DigitsPerParticle->Fill(pxdDigits_MCParticle.size());
432 if (pxdDigits_MCParticle.size() == 0)
433 continue;
434
435 // hasDigits = true;
436
437 m_h1RecoTracksPerParticle->Fill(recoTracks_MCParticle.size());
438 if (recoTracks_MCParticle.size() == 0)
439 continue;
440
441 // hasRecoTrack = true;
442
443 Ntrack++;
444
445 B2DEBUG(1, "Number of RecoTracks = " << recoTracks_MCParticle.size() << " and PXDDigits = " << pxdDigits_MCParticle.size() <<
446 " related to this MCParticle");
447
448 //retrieve general information about MCParticle
449 m_momXmc = (aMcParticle->getMomentum()).X();
450 m_momYmc = (aMcParticle->getMomentum()).Y();
451 m_momZmc = (aMcParticle->getMomentum()).Z();
452 m_phimc = (aMcParticle->getMomentum()).Phi() * TMath::RadToDeg();
453 m_thetamc = (aMcParticle->getMomentum()).Theta() * TMath::RadToDeg();
454 m_costhetamc = cos((aMcParticle->getMomentum()).Theta());
455 m_lambdamc = 90 - m_thetamc;
456 m_pTmc = (aMcParticle->getMomentum()).Rho();
457
458 //SVDhits
459 RelationVector<SVDCluster> svdRelations = aMcParticle->getRelationsFrom<SVDCluster>();
460
461 /* Int_t nMCPartSVDhits = 0;
462 Int_t nSVDhitLadder[4] = {0};
463 if((int)svdRelations.size() > 0){
464 nMCPartSVDhits = svdRelations.size();
465 for(int s=0; s<(int)svdRelations.size();s++)
466 nSVDhitLadder[ (svdRelations[s]->getSensorID()).getLayerNumber()-3 ]++;
467 }
468 */
469
470 bool part_outsideROI = false;
471 bool part_noROI = false;
472 bool part_wrongVxdID = false;
473 bool part_noInter = false;
474 bool hasOneDigitInROI = false;
475
476 double tmpArea = 0;
477
478 Int_t nDigitsInRoiPerTrack = 0;
479 Int_t nDigitsPerTrack = 0;
480
481 //loop on PXDDigits
482 for (unsigned int iPXDDigit = 0; iPXDDigit < pxdDigits_MCParticle.size(); iPXDDigit++) {
483
484 bool hasIntercept = false;
485 bool hasROI = false;
486 bool interceptRightVxdID = false;
487 bool MissingHit = true;
488
489 n_pxdDigit ++ ;
490 nDigitsPerTrack++;
491
492 PXDTrueHitFromPXDDigit PXDTrueHits = relDigitTrueHit.getElementsFrom(*pxdDigits_MCParticle[iPXDDigit]);
493 PXDTrueHitIteratorType thePXDTrueHitIterator = PXDTrueHits.begin();
494 PXDTrueHitIteratorType thePXDTrueHitIteratorEnd = PXDTrueHits.end();
495 tmpGlobalTime = 0;
496 tmpNGlobalTime = 0;
497
498 for (; thePXDTrueHitIterator != thePXDTrueHitIteratorEnd; thePXDTrueHitIterator++) {
499 tmpGlobalTime = tmpGlobalTime + thePXDTrueHitIterator->to->getGlobalTime();
500 tmpNGlobalTime++;
501 }
502 m_globalTime = tmpGlobalTime / tmpNGlobalTime;
503
504
505 m_Uidmc = pxdDigits_MCParticle[iPXDDigit]->getUCellID();
506 m_Vidmc = pxdDigits_MCParticle[iPXDDigit]->getVCellID();
507 m_vxdIDmc = pxdDigits_MCParticle[iPXDDigit]->getSensorID();
508
509 int u2 = -999;
510 int v2 = -999;
511 if (VxdID(m_vxdIDmc).getSensorNumber() == 2) { //BKW
512 u2 = m_Uidmc;
513 v2 = -(767 - m_Vidmc);
514 } else if (VxdID(m_vxdIDmc).getSensorNumber() == 1) { //FWD
515 u2 = m_Uidmc;
516 v2 = m_Vidmc;
517 }
518
520 const VXD::SensorInfoBase& aSensorInfo = aGeometry.getSensorInfo(m_vxdIDmc);
521
522 m_coorUmc = aSensorInfo.getUCellPosition(m_Uidmc); //pxdDigits_MCParticle[iPXDDigit]->getUCellPosition();
523 m_coorVmc = aSensorInfo.getVCellPosition(m_Vidmc); //pxdDigits_MCParticle[iPXDDigit]->getVCellPosition();
524
525 ROOT::Math::XYZVector local(m_coorUmc, m_coorVmc, 0);
526 ROOT::Math::XYZVector globalSensorPos = aSensorInfo.pointToGlobal(local, true);
527
528
529 if (m_pTmc > 1) npxdDigit[5]++;
530 if (m_pTmc <= 1 && m_pTmc > 0.5) npxdDigit[4]++;
531 if (m_pTmc <= 0.5 && m_pTmc > 0.3) npxdDigit[3]++;
532 if (m_pTmc <= 0.3 && m_pTmc > 0.2) npxdDigit[2]++;
533 if (m_pTmc <= 0.2 && m_pTmc > 0.1) npxdDigit[1]++;
534 if (m_pTmc <= 0.1) npxdDigit[0]++;
535
536
537 for (int i = 0; i < (int)recoTracks_MCParticle.size(); i++) { //loop on input RecoTracks
538
539 PXDInterceptsFromRecoTracks PXDIntercepts = recoTrackToPXDIntercept.getElementsFrom(recoTracks_MCParticle[i]);
540
541 PXDInterceptIteratorType thePXDInterceptIterator = PXDIntercepts.begin();
542 PXDInterceptIteratorType thePXDInterceptIteratorEnd = PXDIntercepts.end();
543
544
545 for (; thePXDInterceptIterator != thePXDInterceptIteratorEnd; thePXDInterceptIterator++) {
546
547 const PXDIntercept* theIntercept = thePXDInterceptIterator->to;
548
549 if (theIntercept) {
550
551 hasIntercept = true;
552
553 m_coorU = theIntercept->getCoorU();
554 m_coorV = theIntercept->getCoorV();
555 m_sigmaU = theIntercept->getSigmaU();
556 m_sigmaV = theIntercept->getSigmaV();
557 m_vxdID = theIntercept->getSensorID();
558
559 if (m_vxdID == m_vxdIDmc)
560 interceptRightVxdID = true;
561 else
562 continue;
563
564 const ROIid* theROIid = theIntercept->getRelatedTo<ROIid>(m_ROIListName);
565
566 if (theROIid) {
567
568 hasROI = true;
569
570 tmpArea = (theROIid->getMaxUid() - theROIid->getMinUid()) * (theROIid->getMaxVid() - theROIid->getMinVid());
571
572 if (theROIid->Contains(*(pxdDigits_MCParticle[iPXDDigit]))) { //CASO1
573
574 if (MissingHit) {
575 nDigitsInRoiPerTrack++;
576
578 m_h1PullU->Fill((m_coorU - m_coorUmc) / m_sigmaU);
579 m_h1PullV->Fill((m_coorV - m_coorVmc) / m_sigmaV);
585 m_h1SigmaU->Fill(m_sigmaU);
586 m_h1SigmaV->Fill(m_sigmaV);
587 m_h2Mapglob->Fill(globalSensorPos.Rho(), globalSensorPos.Phi());
588
589
590 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
591 m_h2MaplocL1->Fill(v2, u2);
592 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
593 m_h2MaplocL2->Fill(v2, u2);
594
595
596 m_h1okArea->Fill(tmpArea);
597 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
598 okArea_L1 = okArea_L1 + tmpArea;
599 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
600 okArea_L2 = okArea_L2 + tmpArea;
601
602
603 hasOneDigitInROI = true;
605
606 if (m_pTmc > 1) npxdDigitInROI[5]++;
607 if (m_pTmc <= 1 && m_pTmc > 0.5) npxdDigitInROI[4]++;
608 if (m_pTmc <= 0.5 && m_pTmc > 0.3) npxdDigitInROI[3]++;
609 if (m_pTmc <= 0.3 && m_pTmc > 0.2) npxdDigitInROI[2]++;
610 if (m_pTmc <= 0.2 && m_pTmc > 0.1) npxdDigitInROI[1]++;
611 if (m_pTmc <= 0.1) npxdDigitInROI[0]++;
612
613 MissingHit = false;
614 }
615
616
617 break; // To avoid double counting (intercepts)
618 } //if theROIid contains
619 } //if (theROIid)
620 } //if (theintercept)
621 } //(end loop on intercept list)
622
623 if (!MissingHit)
624 break;// To avoid double counting (recoTracks)
625
626 } //(end loop on recoTracks)
627
628
629 if (MissingHit) {
630
631 if (hasROI && hasIntercept && interceptRightVxdID) {
632 part_outsideROI = true;
633
634 n_notINdigit2 ++;
635
644 m_h2Mapglob_out2->Fill(globalSensorPos.Rho(), globalSensorPos.Phi());
645 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
646 m_h2MaplocL1_out2->Fill(v2, u2);
647 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
648 m_h2MaplocL2_out2->Fill(v2, u2);
649
650 if (m_pTmc > 1) nnotINdigit2[5]++;
651 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINdigit2[4]++;
652 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINdigit2[3]++;
653 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINdigit2[2]++;
654 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINdigit2[1]++;
655 if (m_pTmc <= 0.1) nnotINdigit2[0]++;
656
657 } else if (!hasROI && hasIntercept && interceptRightVxdID) {
658 part_noROI = true;
659
660 n_notINdigit3 ++;
661
670 m_h2Mapglob_out3->Fill(globalSensorPos.Rho(), globalSensorPos.Phi());
671 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
672 m_h2MaplocL1_out3->Fill(v2, u2);
673
674 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
675 m_h2MaplocL2_out3->Fill(v2, u2);
676
677
678 if (m_pTmc > 1) nnotINdigit3[5]++;
679 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINdigit3[4]++;
680 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINdigit3[3]++;
681 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINdigit3[2]++;
682 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINdigit3[1]++;
683 if (m_pTmc <= 0.1) nnotINdigit3[0]++;
684
685 } else if (hasIntercept && !interceptRightVxdID) {
686 part_wrongVxdID = true;
687
688 n_notINdigit4 ++;
689
695 m_h2Mapglob_out4->Fill(globalSensorPos.Rho(), globalSensorPos.Phi());
696 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
697 m_h2MaplocL1_out4->Fill(v2, u2);
698 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
699 m_h2MaplocL2_out4->Fill(v2, u2);
700
701 if (m_pTmc > 1) nnotINdigit4[5]++;
702 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINdigit4[4]++;
703 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINdigit4[3]++;
704 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINdigit4[2]++;
705 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINdigit4[1]++;
706 if (m_pTmc <= 0.1) nnotINdigit4[0]++;
707
708 } else if (!hasIntercept) {
709 part_noInter = true;
710
711 n_notINdigit5 ++;
712
714 m_h2Mapglob_out5->Fill(globalSensorPos.Rho(), globalSensorPos.Phi());
715 if (VxdID(m_vxdIDmc).getLayerNumber() == 1) //L1
716 m_h2MaplocL1_out5->Fill(v2, u2);
717 if (VxdID(m_vxdIDmc).getLayerNumber() == 2) //L2
718 m_h2MaplocL2_out5->Fill(v2, u2);
719
720 if (m_pTmc > 1) nnotINdigit5[5]++;
721 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINdigit5[4]++;
722 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINdigit5[3]++;
723 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINdigit5[2]++;
724 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINdigit5[1]++;
725 if (m_pTmc <= 0.1) nnotINdigit5[0]++;
726 }
727 }
728 } //end loop on digits
729
730 m_h1effPerTrack->Fill((float) nDigitsInRoiPerTrack / nDigitsPerTrack);
731 m_h1Track_pt->Fill(m_pTmc);
732 m_h1Track_phi->Fill(m_phimc);
735
736 if (hasOneDigitInROI) {
737 NtrackHit++;
738 if (m_pTmc > 1) TrackOneDigiIn[5]++;
739 if (m_pTmc <= 1 && m_pTmc > 0.5) TrackOneDigiIn[4]++;
740 if (m_pTmc <= 0.5 && m_pTmc > 0.3) TrackOneDigiIn[3]++;
741 if (m_pTmc <= 0.3 && m_pTmc > 0.2) TrackOneDigiIn[2]++;
742 if (m_pTmc <= 0.2 && m_pTmc > 0.1) TrackOneDigiIn[1]++;
743 if (m_pTmc <= 0.1) TrackOneDigiIn[0]++;
744
745 m_h1INtrack1_pt->Fill(m_pTmc);
749 } else if (part_outsideROI) { //CASO2
751 if (m_pTmc > 1) nnotINtrack2[5]++;
752 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINtrack2[4]++;
753 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINtrack2[3]++;
754 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINtrack2[2]++;
755 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINtrack2[1]++;
756 if (m_pTmc <= 0.1) nnotINtrack2[0]++;
757 } else if (part_noROI) { //CASO3
759 if (m_pTmc > 1) nnotINtrack3[5]++;
760 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINtrack3[4]++;
761 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINtrack3[3]++;
762 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINtrack3[2]++;
763 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINtrack3[1]++;
764 if (m_pTmc <= 0.1) nnotINtrack3[0]++;
765 } else if (part_wrongVxdID) { //CASO4
767 if (m_pTmc > 1) nnotINtrack4[5]++;
768 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINtrack4[4]++;
769 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINtrack4[3]++;
770 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINtrack4[2]++;
771 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINtrack4[1]++;
772 if (m_pTmc <= 0.1) nnotINtrack4[0]++;
773 } else if (part_noInter) { //CASO5
775 if (m_pTmc > 1) nnotINtrack5[5]++;
776 if (m_pTmc <= 1 && m_pTmc > 0.5) nnotINtrack5[4]++;
777 if (m_pTmc <= 0.5 && m_pTmc > 0.3) nnotINtrack5[3]++;
778 if (m_pTmc <= 0.3 && m_pTmc > 0.2) nnotINtrack5[2]++;
779 if (m_pTmc <= 0.2 && m_pTmc > 0.1) nnotINtrack5[1]++;
780 if (m_pTmc <= 0.1) nnotINtrack5[0]++;
781
782 n_NoInterceptTracks++;
787 }
788
789 } // close loop on MCParticlet
790
791
792 m_h1notINtrack5->Fill(n_NoInterceptTracks);
793 m_h1Track->Fill(Ntrack);
794 m_h1INtrack1->Fill(NtrackHit);
795
798
799 m_rootEvent++;
800 B2INFO(" o PXDROIFinder ANALYSIS: tot ROIs = " << m_ROIs.getEntries() << ", ok ROIs = " << nROIs);
801 B2INFO(" o : NtrackHit/Ntrack = " << NtrackHit << "/ " << Ntrack << " = " <<
802 (double)NtrackHit / Ntrack);
803 if (nROIs > m_ROIs.getEntries()) B2INFO(" HOUSTON WE HAVE A PROBLEM!");
804
805 m_h1okROIs->Fill(nROIs);
806 m_h1okROIfrac->Fill(1.*nROIs / m_ROIs.getEntries());
807
808}
static std::string relationName(const std::string &fromName, const std::string &toName, std::string const &namedRelation="")
Return storage name for a relation between two arrays of the given names.
Definition: DataStore.h:180
A Class to store the Monte Carlo particle information.
Definition: MCParticle.h:32
ROOT::Math::XYZVector getMomentum() const
Return momentum.
Definition: MCParticle.h:198
The PXD digit class.
Definition: PXDDigit.h:27
PXDIntercept stores the U,V coordinates and uncertainties of the intersection of a track with an PXD ...
Definition: PXDIntercept.h:22
TH1F * m_h1SigmaU_out4
distribution of sigmaU for PXDDigits not contained in a ROI
TH1F * m_h1GlobalTime_out3
distribution of global time for PDXDigits not contained in a ROI
TH1F * m_h1GlobalTime_out4
distribution of global time for PDXDigits not contained in a ROI
TH1F * m_h1ResidU_out2
distribution of U resid for PXDDigits not contained in a ROI
TH1F * m_h1INtrack1
track with no intercept
TH2F * m_h2sigmaVphi_out2
distribution of sigmaV VS phi for PDXDigits not contained in a ROI
TH1F * m_h1SigmaV_out4
distribution of sigmaV for PXDDigits not contained in a ROI
TH1F * m_h1redFactor_L1
distribution of number of ROIsreduction factor
TH2F * m_h2ResidUV_out3
distribution of V resid for PXDDigits not contained in a ROI
TH1F * m_h1ResidV
distribution of V resid for PXDDigits contained in a ROI
TH1F * m_h1redFactor_L2
distribution of number of ROIsreduction factor
TH1F * m_h1INtrack1_pt
track with no intercept pT
TH1F * m_h1INtrack1_lambda
track with no intercept lambda
TH1F * m_h1SigmaV_out3
distribution of sigmaV for PXDDigits not contained in a ROI
TH1F * m_h1redFactor
distribution of number of ROIsreduction factor
TH1F * m_h1INtrack1_phi
track with no intercept phi
TH1F * m_h1PullV
distribution of V pulls for PDXDigits contained in a ROI
TH1F * m_h1ResidV_out2
distribution of V resid for PXDDigits not contained in a ROI
TH1F * m_h1PullU
distribution of U pulls for PDXDigits contained in a ROI
TH1F * m_h1okROIs
distribution of number of ROIs containing a PXDDigit
TH1F * m_h1Track_cosTheta
denominator track cosTheta
TH1F * m_h1notINtrack5_phi
track with no intercept phi
TH2F * m_h2ResidUV_out2
distribution of V resid for PXDDigits not contained in a ROI
TH1F * m_h1Track_lambda
denominator track lambda
TH1F * m_h1notINtrack5_lambda
track with no intercept lambda
TH1F * m_h1totROIs
distribution of number of all ROIs
TH2F * m_h2sigmaUphi_out2
distribution of sigmaU VS phi for PDXDigits not contained in a ROI
TH1F * m_h1ResidU_out3
distribution of U resid for PXDDigits not contained in a ROI
TH1F * m_h1okROIfrac
distribution of number of ROIsreduction factor
TH1F * m_h1GlobalTime
distribution of global time for PDXDigits contained in a ROI
TH2F * m_h2ROItopRight
u,v coordinates of the top right pixel
TH1F * m_h1SigmaU_out2
distribution of sigmaU for PXDDigits not contained in a ROI
TH1F * m_h1effPerTrack
fraction of digits in ROI per track
TH1F * m_h1SigmaV
distribution of sigmaV for PXDDigits contained in a ROI
TH1F * m_h1GlobalTime_out2
distribution of global time for PDXDigits not contained in a ROI
TH1F * m_h1INtrack1_cosTheta
track with no intercept costheta
TH2F * m_h2sigmaUphi_out4
distribution of sigmaU VS phi for PDXDigits not contained in a ROI
TH1F * m_h1RecoTracksPerParticle
number of RecoTracks per particle
TH1F * m_h1SigmaU
distribution of sigmaU for PXDDigits contained in a ROI
TH1F * m_h1GlobalTime_out5
distribution of global time for PDXDigits not contained in a ROI
TH1F * m_h1ResidV_out3
distribution of V resid for PXDDigits not contained in a ROI
TH1F * m_h1ResidU
distribution of U resid for PXDDigits contained in a ROI
TH2F * m_h2ResidUV
distribution of V resid for PXDDigits contained in a ROI
TH2F * m_h2sigmaVphi_out3
distribution of sigmaV VS phi for PDXDigits not contained in a ROI
TH1F * m_h1notINtrack5_pt
track with no intercept pT
TH2F * m_h2sigmaVphi_out4
distribution of sigmaV VS phi for PDXDigits not contained in a ROI
TH1F * m_h1okArea
distribution of Area of ROIs containing a PXDDigit
TH1F * m_h1notINtrack5
track with no intercept
StoreArray< PXDIntercept > m_PXDIntercepts
PXDIntercept StoreArray.
TH2F * m_h2sigmaUphi
distribution of sigmaU VS phi for PDXDigits contained in a ROI
TH2F * m_h2ROIbottomLeft
u,v coordinates of the bottom left pixel
TH2F * m_h2ROIvMinMax
v-coordinate Min vs Max
TH1F * m_h1SigmaV_out2
distribution of sigmaV for PXDDigits not contained in a ROI
TH1F * m_h1DigitsPerParticle
number of digits per particle
StoreArray< RecoTrack > m_recoTracks
RecoTrack StoreArray.
TH1F * m_h1totArea
distribution of Area of all ROIs
TH2F * m_h2sigmaVphi
distribution of sigmaV VS phi for PDXDigits contained in a ROI
TH2F * m_h2sigmaUphi_out3
distribution of sigmaU VS phi for PDXDigits not contained in a ROI
TH2F * m_h2ROIuMinMax
u-coordinate Min vs Max
TH1F * m_h1SigmaU_out3
distribution of sigmaU for PXDDigits not contained in a ROI
StoreArray< ROIid > m_ROIs
ROIid StoreArray.
TH1F * m_h1notINtrack5_cosTheta
track with no intercept costheta
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
Definition: ROIid.h:25
bool Contains(const PXDRawHit &thePXDRawHit) const
true if the ROI contains the thePXDRawHit
Definition: ROIid.cc:25
int getMaxVid() const
return the maximum V id of the ROI
Definition: ROIid.h:47
int getMinVid() const
return the minimum V id of the ROI
Definition: ROIid.h:46
int getMinUid() const
return the minimum U id of the ROI
Definition: ROIid.h:44
int getMaxUid() const
return the maximum U id of the ROI
Definition: ROIid.h:45
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
index_from::const_iterator iterator_from
Element iterator of the from side index.
Definition: RelationIndex.h:95
boost::iterator_range< iterator_from > range_from
Iterator range [first,second) of the from side.
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
RelationVector< FROM > getRelationsFrom(const std::string &name="", const std::string &namedRelation="") const
Get the relations that point from another store array to this object.
RelationVector< T > getRelationsWith(const std::string &name="", const std::string &namedRelation="") const
Get the relations between this object and another store array.
The SVD Cluster class This class stores all information about reconstructed SVD clusters.
Definition: SVDCluster.h:29
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
int getEntries() const
Get the number of objects in the array.
Definition: StoreArray.h:216
double getSigmaV() const
return the statistical error on the V coordinate of the intercept
Definition: VXDIntercept.h:62
double getCoorV() const
return the V coordinate of the intercept
Definition: VXDIntercept.h:60
double getSigmaU() const
return the statistical error on the U coordinate of the intercept
Definition: VXDIntercept.h:61
VxdID::baseType getSensorID() const
return the sensor ID
Definition: VXDIntercept.h:68
double getCoorU() const
return the U coordinate of the intercept
Definition: VXDIntercept.h:59
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
Definition: GeoCache.cc:67
Base class to provide Sensor Information for PXD and SVD.
double getVCellPosition(int vID) const
Return the position of a specific strip/pixel in v direction.
double getUCellPosition(int uID, int vID=-1) const
Return the position of a specific strip/pixel in u direction.
ROOT::Math::XYZVector pointToGlobal(const ROOT::Math::XYZVector &local, bool reco=false) const
Convert a point from local to global coordinates.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96
const std::vector< double > v2
MATLAB generated random vector.

◆ exposePythonAPI()

void exposePythonAPI ( )
staticinherited

Exposes methods of the Module class to Python.

Definition at line 325 of file Module.cc.

326{
327 // to avoid confusion between std::arg and boost::python::arg we want a shorthand namespace as well
328 namespace bp = boost::python;
329
330 docstring_options options(true, true, false); //userdef, py sigs, c++ sigs
331
332 void (Module::*setReturnValueInt)(int) = &Module::setReturnValue;
333
334 enum_<Module::EAfterConditionPath>("AfterConditionPath",
335 R"(Determines execution behaviour after a conditional path has been executed:
336
337.. attribute:: END
338
339 End processing of this path after the conditional path. (this is the default for if_value() etc.)
340
341.. attribute:: CONTINUE
342
343 After the conditional path, resume execution after this module.)")
344 .value("END", Module::EAfterConditionPath::c_End)
345 .value("CONTINUE", Module::EAfterConditionPath::c_Continue)
346 ;
347
348 /* Do not change the names of >, <, ... we use them to serialize conditional pathes */
349 enum_<Belle2::ModuleCondition::EConditionOperators>("ConditionOperator")
356 ;
357
358 enum_<Module::EModulePropFlags>("ModulePropFlags",
359 R"(Flags to indicate certain low-level features of modules, see :func:`Module.set_property_flags()`, :func:`Module.has_properties()`. Most useful flags are:
360
361.. attribute:: PARALLELPROCESSINGCERTIFIED
362
363 This module can be run in parallel processing mode safely (All I/O must be done through the data store, in particular, the module must not write any files.)
364
365.. attribute:: HISTOGRAMMANAGER
366
367 This module is used to manage histograms accumulated by other modules
368
369.. attribute:: TERMINATEINALLPROCESSES
370
371 When using parallel processing, call this module's terminate() function in all processes. This will also ensure that there is exactly one process (single-core if no parallel modules found) or at least one input, one main and one output process.
372)")
373 .value("INPUT", Module::EModulePropFlags::c_Input)
374 .value("OUTPUT", Module::EModulePropFlags::c_Output)
375 .value("PARALLELPROCESSINGCERTIFIED", Module::EModulePropFlags::c_ParallelProcessingCertified)
376 .value("HISTOGRAMMANAGER", Module::EModulePropFlags::c_HistogramManager)
377 .value("INTERNALSERIALIZER", Module::EModulePropFlags::c_InternalSerializer)
378 .value("TERMINATEINALLPROCESSES", Module::EModulePropFlags::c_TerminateInAllProcesses)
379 ;
380
381 //Python class definition
382 class_<Module, PyModule> module("Module", R"(
383Base class for Modules.
384
385A module is the smallest building block of the framework.
386A typical event processing chain consists of a Path containing
387modules. By inheriting from this base class, various types of
388modules can be created. To use a module, please refer to
389:func:`Path.add_module()`. A list of modules is available by running
390``basf2 -m`` or ``basf2 -m package``, detailed information on parameters is
391given by e.g. ``basf2 -m RootInput``.
392
393The 'Module Development' section in the manual provides detailed information
394on how to create modules, setting parameters, or using return values/conditions:
395https://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:225
void if_value(const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
Add a condition to the module.
Definition: Module.cc:79
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:208
void if_true(const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
A simplified version to set the condition of the module.
Definition: Module.cc:90
void setReturnValue(int value)
Sets the return value for this module as integer.
Definition: Module.cc:220
void setLogConfig(const LogConfig &logConfig)
Set the log system configuration.
Definition: Module.h:230
const std::string & getDescription() const
Returns the description of the module.
Definition: Module.h:202
void if_false(const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
A simplified version to add a condition to the module.
Definition: Module.cc:85
bool hasCondition() const
Returns true if at least one condition was set for the module.
Definition: Module.h:311
const std::string & getPackage() const
Returns the package this module is in.
Definition: Module.h:197
void setName(const std::string &name)
Set the name of the module.
Definition: Module.h:214
bool hasProperties(unsigned int propertyFlags) const
Returns true if all specified property flags are available in this module.
Definition: Module.cc:160
std::string getPathString() const override
return the module name.
Definition: Module.cc:192

◆ getAfterConditionPath()

Module::EAfterConditionPath getAfterConditionPath ( ) const
inherited

What to do after the conditional path is finished.

(defaults to c_End if no condition is set)

Definition at line 133 of file Module.cc.

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

◆ getAllConditionPaths()

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

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

Definition at line 150 of file Module.cc.

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

◆ getAllConditions()

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

Return all set conditions for this module.

Definition at line 324 of file Module.h.

325 {
326 return m_conditions;
327 }

◆ getCondition()

const ModuleCondition * getCondition ( ) const
inlineinherited

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

Definition at line 314 of file Module.h.

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

◆ getConditionPath()

std::shared_ptr< Path > getConditionPath ( ) const
inherited

Returns the path of the last true condition (if there is at least one, else reaturn a null pointer).


Definition at line 113 of file Module.cc.

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

◆ getDescription()

const std::string & getDescription ( ) const
inlineinherited

Returns the description of the module.

Definition at line 202 of file Module.h.

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

◆ getFileNames()

virtual std::vector< std::string > getFileNames ( bool  outputFiles)
inlinevirtualinherited

Return a list of output filenames for this modules.

This will be called when basf2 is run with "--dry-run" if the module has set either the c_Input or c_Output properties.

If the parameter outputFiles is false (for modules with c_Input) the list of input filenames should be returned (if any). If outputFiles is true (for modules with c_Output) the list of output files should be returned (if any).

If a module has sat both properties this member is called twice, once for each property.

The module should return the actual list of requested input or produced output filenames (including handling of input/output overrides) so that the grid system can handle input/output files correctly.

This function should return the same value when called multiple times. This is especially important when taking the input/output overrides from Environment as they get consumed when obtained so the finalized list of output files should be stored for subsequent calls.

Reimplemented in RootInputModule, StorageRootOutputModule, and RootOutputModule.

Definition at line 134 of file Module.h.

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

◆ getLogConfig()

LogConfig & getLogConfig ( )
inlineinherited

Returns the log system configuration.

Definition at line 225 of file Module.h.

225{return m_logConfig;}

◆ getModules()

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

no submodules, return empty list

Implements PathElement.

Definition at line 506 of file Module.h.

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

◆ getName()

const std::string & getName ( ) const
inlineinherited

Returns the name of the module.

This can be changed via e.g. set_name() in the steering file to give more useful names if there is more than one module of the same type.

For identifying the type of a module, using getType() (or type() in Python) is recommended.

Definition at line 187 of file Module.h.

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

◆ getPackage()

const std::string & getPackage ( ) const
inlineinherited

Returns the package this module is in.

Definition at line 197 of file Module.h.

197{return m_package;}

◆ getParamInfoListPython()

std::shared_ptr< boost::python::list > getParamInfoListPython ( ) const
inherited

Returns a python list of all parameters.

Each item in the list consists of the name of the parameter, a string describing its type, a python list of all default values and the description of the parameter.

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

Definition at line 279 of file Module.cc.

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

◆ getParamList()

const ModuleParamList & getParamList ( ) const
inlineinherited

Return module param list.

Definition at line 363 of file Module.h.

363{ return m_moduleParamList; }

◆ getPathString()

std::string getPathString ( ) const
overrideprivatevirtualinherited

return the module name.

Implements PathElement.

Definition at line 192 of file Module.cc.

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

◆ getReturnValue()

int getReturnValue ( ) const
inlineinherited

Return the return value set by this module.

This value is only meaningful if hasReturnValue() is true

Definition at line 381 of file Module.h.

381{ return m_returnValue; }

◆ getType()

const std::string & getType ( ) const
inherited

Returns the type of the module (i.e.

class name minus 'Module')

Definition at line 41 of file Module.cc.

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

◆ hasCondition()

bool hasCondition ( ) const
inlineinherited

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

Definition at line 311 of file Module.h.

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

◆ hasProperties()

bool hasProperties ( unsigned int  propertyFlags) const
inherited

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

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

Definition at line 160 of file Module.cc.

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

◆ hasReturnValue()

bool hasReturnValue ( ) const
inlineinherited

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

Definition at line 378 of file Module.h.

378{ return m_hasReturnValue; }

◆ hasUnsetForcedParams()

bool hasUnsetForcedParams ( ) const
inherited

Returns true and prints error message if the module has unset parameters which the user has to set in the steering file.

Definition at line 166 of file Module.cc.

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

◆ if_false()

void if_false ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

A simplified version to add a condition to the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

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

It is equivalent to the if_value() method, using the expression "<1". This method is meant to be used together with the setReturnValue(bool value) method.

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

Definition at line 85 of file Module.cc.

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

◆ if_true()

void if_true ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

A simplified version to set the condition of the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

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

It is equivalent to the if_value() method, using the expression ">=1". This method is meant to be used together with the setReturnValue(bool value) method.

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

Definition at line 90 of file Module.cc.

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

◆ if_value()

void if_value ( const std::string &  expression,
const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

Add a condition to the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

See https://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  )
finaloverrideprivatevirtual

Initializes the Module.

Reimplemented from Module.

Definition at line 124 of file PXDROIFinderAnalysisModule.cc.

125{
127 m_ROIs.isRequired(m_ROIListName);
130
131 n_rois = 0;
132 n_intercepts = 0;
133 n_tracks = 0;
134 n_pxdDigit = 0;
135 n_pxdDigitInROI = 0;
136
139 NtrackHit = 0;
140 n_notINtrack2 = 0;
141 n_notINtrack3 = 0;
142 n_notINtrack4 = 0;
143 n_notINtrack5 = 0;
144
145 for (int i = 0; i < 6; i++) {
146 npxdDigit[i] = 0;
147 npxdDigitInROI[i] = 0;
148 }
149
150 if (m_writeToRoot == true) {
151 m_rootFileName += ".root";
152 m_rootFilePtr = new TFile(m_rootFileName.c_str(), "RECREATE");
153 } else
154 m_rootFilePtr = nullptr;
155
156
157 m_h1GlobalTime = new TH1F("hGlobalTime", "global time for PXDDigits contained in ROI", 100, 0, 1);
158 m_h1PullU = new TH1F("hPullU", "U pulls for PXDDigits contained in ROI", 100, -6, 6);
159 m_h1PullV = new TH1F("hPullV", "V pulls for PXDDigits contained in ROI", 100, -6, 6);
160 m_h2sigmaUphi = new TH2F("hsigmaUvsPhi", "sigmaU vs phi digits in ROI", 100, -180, 180, 100, 0, 0.35);
161 m_h2sigmaVphi = new TH2F("hsigmaVvsPhi", "sigmaU vs phi digits in ROI", 100, -180, 180, 100, 0, 0.4);
162 m_h1ResidU = new TH1F("hResidU", "U resid for PXDDigits contained in ROI", 100, -0.5, 0.5);
163 m_h1ResidV = new TH1F("hResidV", "V resid for PXDDigits contained in ROI", 100, -0.5, 0.5);
164 m_h2ResidUV = new TH2F("hResidUV", "U,V resid for PXDDigits contained in ROI", 100, -0.5, 0.5, 100, -0.5, 0.5);
165 m_h1SigmaU = new TH1F("hSigmaU", "sigmaU for PXDDigits contained in ROI", 100, 0, 0.35);
166 m_h1SigmaV = new TH1F("hSigmaV", "sigmaV for PXDDigits contained in ROI", 100, 0, 0.35);
167 m_h2Mapglob = new TH2F("h2Mapglob", "global position, perp - phi", 500, 1.2, 2.6, 100, -TMath::Pi(), TMath::Pi());
168 m_h2MaplocL1 = new TH2F("h2MaplocL1", "L1 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
169 m_h2MaplocL2 = new TH2F("h2MaplocL2", "L2 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
170 m_h2MaplocL1->GetXaxis()->SetTitle("v ID");
171 m_h2MaplocL1->GetYaxis()->SetTitle("u ID");
172 m_h2MaplocL2->GetXaxis()->SetTitle("v ID");
173 m_h2MaplocL2->GetYaxis()->SetTitle("u ID");
174
175
176 m_h1GlobalTime_out2 = new TH1F("hGlobalTime_out2", "global time for PXDDigits not contained in ROI", 100, 0, 1);
177 m_h2sigmaUphi_out2 = new TH2F("hsigmaUvsPhi_out2", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.35);
178 m_h2sigmaVphi_out2 = new TH2F("hsigmaVvsPhi_out2", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.4);
179 m_h1ResidU_out2 = new TH1F("hResidU_out2", "U resid for PXDDigits not contained in ROI", 100, -2.5, 2.5);
180 m_h1ResidV_out2 = new TH1F("hResidV_out2", "V resid for PXDDigits not contained in ROI", 100, -2.5, 2.5);
181 m_h2ResidUV_out2 = new TH2F("hResidUV_out2", "U,V resid for PXDDigits contained in ROI", 100, -0.5, 0.5, 100, -0.5, 0.5);
182 m_h1SigmaU_out2 = new TH1F("hSigmaU_out2", "sigmaU for PXDDigits not contained in ROI", 100, 0, 0.35);
183 m_h1SigmaV_out2 = new TH1F("hSigmaV_out2", "sigmaV for PXDDigits not contained in ROI", 100, 0, 0.35);
184 m_h2Mapglob_out2 = new TH2F("h2Mapglob_out2", "global position, perp - phi", 500, 1.2, 2.6, 100, -TMath::Pi(), TMath::Pi());
185 m_h2MaplocL1_out2 = new TH2F("h2MaplocL1_out2", "L1 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
186 m_h2MaplocL2_out2 = new TH2F("h2MaplocL2_out2", "L2 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
187
188
189 m_h1GlobalTime_out3 = new TH1F("hGlobalTime_out3", "global time for PXDDigits not contained in ROI", 100, 0, 1);
190 m_h2sigmaUphi_out3 = new TH2F("hsigmaUvsPhi_out3", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.35);
191 m_h2sigmaVphi_out3 = new TH2F("hsigmaVvsPhi_out3", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.4);
192 m_h1ResidU_out3 = new TH1F("hResidU_out3", "U resid for PXDDigits not contained in ROI", 100, -2.5, 2.5);
193 m_h1ResidV_out3 = new TH1F("hResidV_out3", "V resid for PXDDigits not contained in ROI", 100, -2.5, 2.5);
194 m_h2ResidUV_out3 = new TH2F("hResidUV_out3", "U,V resid for PXDDigits contained in ROI", 100, -0.5, 0.5, 100, -0.5, 0.5);
195 m_h1SigmaU_out3 = new TH1F("hSigmaU_out3", "sigmaU for PXDDigits not contained in ROI", 100, 0, 0.35);
196 m_h1SigmaV_out3 = new TH1F("hSigmaV_out3", "sigmaV for PXDDigits not contained in ROI", 100, 0, 0.35);
197
198 m_h2Mapglob_out3 = new TH2F("h2Mapglob_out3", "global position, perp - phi", 500, 1.2, 2.6, 100, -TMath::Pi(), TMath::Pi());
199 m_h2MaplocL1_out3 = new TH2F("h2MaplocL1_out3", "L1 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
200 m_h2MaplocL2_out3 = new TH2F("h2MaplocL2_out3", "L2 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
201
202
203 m_h1GlobalTime_out4 = new TH1F("hGlobalTime_out4", "global time for PXDDigits not contained in ROI", 100, 0, 1);
204 m_h2sigmaUphi_out4 = new TH2F("hsigmaUvsPhi_out4", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.35);
205 m_h2sigmaVphi_out4 = new TH2F("hsigmaVvsPhi_out4", "sigmaU vs phi digits not contained in ROI", 100, -180, 180, 100, 0, 0.4);
206 m_h1SigmaU_out4 = new TH1F("hSigmaU_out4", "sigmaU for PXDDigits not contained in ROI", 100, 0, 0.35);
207 m_h1SigmaV_out4 = new TH1F("hSigmaV_out4", "sigmaV for PXDDigits not contained in ROI", 100, 0, 0.35);
208
209 m_h2Mapglob_out4 = new TH2F("h2Mapglob_out4", "global position, perp - phi", 500, 1.2, 2.6, 100, -TMath::Pi(), TMath::Pi());
210 m_h2MaplocL1_out4 = new TH2F("h2MaplocL1_out4", "L1 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
211 m_h2MaplocL2_out4 = new TH2F("h2MaplocL2_out4", "L2 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
212
213
214 m_h1GlobalTime_out5 = new TH1F("hGlobalTime_out5", "global time for PXDDigits not contained in ROI", 100, 0, 1);
215
216 m_h2Mapglob_out5 = new TH2F("h2Mapglob_out5", "global position, perp - phi", 500, 1.2, 2.6, 100, -TMath::Pi(), TMath::Pi());
217 m_h2MaplocL1_out5 = new TH2F("h2MaplocL1_out5", "L1 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
218 m_h2MaplocL2_out5 = new TH2F("h2MaplocL2_out5", "L2 local u v ID", 1535, -767.5, 767.5, 250, -0.5, 249.5);
219
220
221 m_h1redFactor = new TH1F("hRedFactor", "L1+L2reduction factor", 1000, 0, 1);
222 m_h1redFactor_L1 = new TH1F("hRedFactor_L1", "L1-only reduction factor", 1000, 0, 1);
223 m_h1redFactor_L2 = new TH1F("hRedFactor_L2", "L2-only reduction factor", 1000, 0, 1);
224
225 m_h1totROIs = new TH1F("h1TotNROIs", "number of all ROIs", 110, 0, 110);
226 m_h1okROIs = new TH1F("h1OkNROIs", "number of all ROIs containing a PXDDigit", 110, 0, 110);
227 m_h1okROIfrac = new TH1F("h1OkNROIfrac", "fraction of ROIs containing a PXDDigit", 100, 0, 1);
228
229 m_h1totArea = new TH1F("h1TotArea", "Area of all ROIs", 100, 0, 2500000);
230 m_h1okArea = new TH1F("h1OkArea", "Area of ROIs containing a PXDDigit", 100, 0, 75000);
231
232
233
234 m_h1effPerTrack = new TH1F("heffPerTrack", "fraction of digits in ROI per track", 100, -0.02, 1.02);
235
236
237
238 m_h2ROIbottomLeft = new TH2F("h2ROIbottomLeft", "u,v ID of the bottom left pixel", 650, -200, 450, 1300, -300, 1000);
239 m_h2ROItopRight = new TH2F("h2ROItopRight", "u,v ID of the top right pixel", 650, -200, 450, 1300, -300, 1000);
240
241 m_h2ROIuMinMax = new TH2F("h2ROIuMinMax", "u Min vs Max", 650, -200, 450, 650, -200, 450);
242 m_h2ROIvMinMax = new TH2F("h2ROIvMinMax", "v Min vs Max", 1300, -300, 1000, 1300, -300, 1000);
243
244
245 m_h1DigitsPerParticle = new TH1F("h1DigitsPerPart", "Number of PXDDigits per Particle", 50, 0, 50);
246 m_h1RecoTracksPerParticle = new TH1F("h1RecoTracksPerPart", "Number of RecoTracks per Particle", 10, 0, 10);
247
248
249 //analysis
250 Double_t lowBin[6 + 1];
251 for (int i = 0; i < 6; i++)
252 lowBin[i] = pt[i] - ptErr[i];
253 lowBin[6] = pt[5] + ptErr[5];
254
255 m_h1TrackOneDigiIn = new TH1F("hTracksDigiIn", "Tracks with at least one digit contained in a ROI", 6, lowBin);
256 m_h1nnotINtrack2 = new TH1F("h1outROITrack", "Tracks with ROI with correct VxdID but no digits inside ROI", 6, lowBin);
257 m_h1nnotINtrack3 = new TH1F("h1noROITrack", "Tracks with ROI with wrong VxdID but no digits inside ROI", 6, lowBin);
258 m_h1nnotINtrack4 = new TH1F("h1wrongVxdIDTrack", "Tracks with no ROI, Intercept with correct VxdID", 6, lowBin);
259 m_h1nnotINtrack5 = new TH1F("h1noInterTrack", "Tracks with no Intercept matching a VxdID of digits", 6, lowBin);
260
261 m_h1notINtrack5 = new TH1F("hNoInterTrack", "track with no intercepts", 20, 0, 20);
262 m_h1notINtrack5_pt = new TH1F("hNoInterTrack_pT", "track with no intercepts", 100, 0, 6);
263 m_h1notINtrack5_phi = new TH1F("h1NoInterTrack_phi", "hNoInterTrack_phi", 100, -180, 180);
264 m_h1notINtrack5_lambda = new TH1F("h1NoInterTrack_lambda", "hNoInterTrack_lambda", 100, -180, 180);
265 m_h1notINtrack5_cosTheta = new TH1F("h1NoInterTrack_cosTheta", "hNoInterTrack_cosTheta", 100, -1, 1);
266 m_h1notINtrack5_pVal = new TH1F("hNoInterTrack_pVal", "track with no intercepts", 100, 0, 1);
267 m_h1notINtrack5_nSVDhits = new TH1F("hNoInterTrack_nSVDhits", "track with no intercepts", 50, 0, 50);
268 m_h1notINtrack5_nCDChits = new TH1F("hNoInterTrack_nCDChits", "track with no intercepts", 100, 0, 100);
269
270 m_h1INtrack1 = new TH1F("hINTrack", "track with at least one digit inside ROI", 20, 0, 20);
271 m_h1INtrack1_pt = new TH1F("hINTrack_pT", "track with at least one digit inside ROI", 100, 0, 6);
272 m_h1INtrack1_phi = new TH1F("h1INTrack_phi", "hINTrack_phi", 100, -180, 180);
273 m_h1INtrack1_lambda = new TH1F("h1INTrack_lambda", "hINTrack_lambda", 100, -180, 180);
274 m_h1INtrack1_cosTheta = new TH1F("h1INTrack_cosTheta", "hINTrack_cosTheta", 100, -1, 1);
275 m_h1INtrack1_pVal = new TH1F("h1INTrack_pVal", "track with no intercepts", 100, 0, 1);
276 m_h1INtrack1_nSVDhits = new TH1F("h1INTrack_nSVDhits", "track with no intercepts", 50, 0, 50);
277 m_h1INtrack1_nCDChits = new TH1F("h1INTrack_nCDChits", "track with no intercepts", 100, 0, 100);
278
279 m_h1Track = new TH1F("hTrack", "all tracks", 20, 0, 20);
280 m_h1Track_pt = new TH1F("hTrack_pT", "all tracks with digits", 100, 0, 6);
281 m_h1Track_lambda = new TH1F("h1Track_lambda", "hTrack_lambda", 100, -180, 180);
282 m_h1Track_phi = new TH1F("h1Track_phi", "hTrack_phi", 100, -180, 180);
283 m_h1Track_cosTheta = new TH1F("h1Track_cosTheta", "hTrack_cos theta", 100, -1, 1);
284 m_h1Track_pVal = new TH1F("h1Track_pVal", "track with no intercepts", 100, 0, 1);
285 m_h1Track_nSVDhits = new TH1F("h1Track_nSVDhits", "track with no intercepts", 50, 0, 50);
286 m_h1Track_nCDChits = new TH1F("h1Track_nCDChits", "track with no intercepts", 100, 0, 100);
287
288 m_h1digiIn = new TH1F("hdigiIn", "digits inside ROI", 6, lowBin);
289 m_h1digiOut2 = new TH1F("hdigiOut2", "ROI exists with with correct VxdID but no digits inside ROI", 6, lowBin);
290 m_h1digiOut3 = new TH1F("hdigiOut3", "ROI exists with with wrong VxdID", 6, lowBin);
291 m_h1digiOut4 = new TH1F("hdigiOut4", "ROI does not exist, but intercept has correct VxdID", 6, lowBin);
292 m_h1digiOut5 = new TH1F("hdigiOut5", "no ROI, no Intercpets with correct VXDid", 6, lowBin);
293
294 // m_h2_VXDhitsPR_xy = new TH2F("hNoInteTrack_SVDhitsXY", "SVD Hits Missed by the VXDTF", 200, -15, 15, 200, -15, 15);
295
296 // m_h2_VXDhitsPR_rz = new TH2F("hNoInteTrack_SVDhitsRZ", "SVD Hits Missed by the VXDTF, r_{T} z", 200, -30, 40, 200, 0, 15);
297
298
299}
TH1F * m_h1notINtrack5_nCDChits
denominator track pVal
TH1F * m_h1nnotINtrack2
tracks with lost digit: ROI exist with right vxdID
TH1F * m_h1nnotINtrack3
lost digit: ROI exist with wrong vxdID
TH1F * m_h1nnotINtrack5
lost digit: ROI does not exist, intercept with wrong vxdID
TH1F * m_h1nnotINtrack4
lost digit: ROI does not exist, intercept with right vxdID
Double_t ptErr[6]
bin widths (transverse momentum)
TH1F * m_h1INtrack1_nCDChits
denominator track pVal
TH1F * m_h1Track_pVal
denominator track pVal
TH1F * m_h1INtrack1_nSVDhits
denominator track pVal
TH1F * m_h1Track_nCDChits
denominator track pVal
TH1F * m_h1digiOut5
lost digit: ROI does not exist, intercept with wrong vxdID
TH1F * m_h1TrackOneDigiIn
tracks with at least digit contained in ROI
TH1F * m_h1digiOut4
lost digit: ROI does not exist, intercept with right vxdID
TH1F * m_h1notINtrack5_pVal
denominator track pVal
TH1F * m_h1digiOut2
lost digit: ROI exist with right vxdID
TH1F * m_h1Track_nSVDhits
denominator track pVal
TH1F * m_h1notINtrack5_nSVDhits
denominator track pVal
TH1F * m_h1INtrack1_pVal
denominator track pVal
Double_t pt[6]
bin edges (in pt = transverse momentum)
TH1F * m_h1digiIn
digits contained in ROI histogram
TFile * m_rootFilePtr
pointer at root file used for storing infos for debugging and validating purposes
StoreArray< MCParticle > m_MCParticles
MCParticle StoreArray.
TH1F * m_h1digiOut3
lost digit: ROI exist with wrong vxdID
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 230 of file Module.h.

230{m_logConfig = logConfig;}

◆ setLogInfo()

void setLogInfo ( int  logLevel,
unsigned int  logInfo 
)
inherited

Configure the printed log information for the given level.

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

Definition at line 73 of file Module.cc.

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

◆ setLogLevel()

void setLogLevel ( int  logLevel)
inherited

Configure the log level.

Definition at line 55 of file Module.cc.

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

◆ setName()

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

Set the name of the module.

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

Definition at line 214 of file Module.h.

214{ m_name = name; };

◆ setParamList()

void setParamList ( const ModuleParamList params)
inlineprotectedinherited

Replace existing parameter list.

Definition at line 501 of file Module.h.

501{ m_moduleParamList = params; }

◆ setParamPython()

void setParamPython ( const std::string &  name,
const boost::python::object &  pyObj 
)
privateinherited

Implements a method for setting boost::python objects.

The method supports the following types: list, dict, int, double, string, bool The conversion of the python object to the C++ type and the final storage of the parameter value is done in the ModuleParam class.

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

Definition at line 234 of file Module.cc.

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

◆ setParamPythonDict()

void setParamPythonDict ( const boost::python::dict &  dictionary)
privateinherited

Implements a method for reading the parameter values from a boost::python dictionary.

The key of the dictionary has to be the name of the parameter and the value has to be of one of the supported parameter types.

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

Definition at line 249 of file Module.cc.

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

◆ setPropertyFlags()

void setPropertyFlags ( unsigned int  propertyFlags)
inherited

Sets the flags for the module properties.

Parameters
propertyFlagsbitwise OR of EModulePropFlags

Definition at line 208 of file Module.cc.

209{
210 m_propertyFlags = propertyFlags;
211}

◆ setReturnValue() [1/2]

void setReturnValue ( bool  value)
protectedinherited

Sets the return value for this module as bool.

The bool value is saved as an integer with the convention 1 meaning true and 0 meaning false. The value can be used in the steering file to divide the analysis chain into several paths.

Parameters
valueThe value of the return value.

Definition at line 227 of file Module.cc.

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

◆ setReturnValue() [2/2]

void setReturnValue ( int  value)
protectedinherited

Sets the return value for this module as integer.

The value can be used in the steering file to divide the analysis chain into several paths.

Parameters
valueThe value of the return value.

Definition at line 220 of file Module.cc.

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

◆ setType()

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

Set the module type.

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

Definition at line 48 of file Module.cc.

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

◆ terminate()

void terminate ( void  )
finaloverrideprivatevirtual

Termination action.

Reimplemented from Module.

Definition at line 811 of file PXDROIFinderAnalysisModule.cc.

812{
813
814 Double_t epsilon[6];
815 Double_t epsilonErr[6];
816 double epsilonTot = (double)n_pxdDigitInROI / (double) n_pxdDigit;
817 Double_t epsilon2[6];
818 Double_t epsilon2Err[6];
819 double epsilon2Tot = (double)n_tracksWithDigitsInROI / (double) n_tracksWithDigits;
820
821 for (int i = 0; i < 6; i++) {
822 m_h1digiOut2->SetBinContent(i + 1, nnotINdigit2[i]);
823 m_h1digiOut3->SetBinContent(i + 1, nnotINdigit3[i]);
824 m_h1digiOut4->SetBinContent(i + 1, nnotINdigit4[i]);
825 m_h1digiOut5->SetBinContent(i + 1, nnotINdigit5[i]);
826 m_h1digiIn->SetBinContent(i + 1, npxdDigitInROI[i]);
827 }
828
829 for (int i = 0; i < 6; i++) {
830 m_h1nnotINtrack2->SetBinContent(i + 1, nnotINtrack2[i]);
831 m_h1nnotINtrack3->SetBinContent(i + 1, nnotINtrack3[i]);
832 m_h1nnotINtrack4->SetBinContent(i + 1, nnotINtrack4[i]);
833 m_h1nnotINtrack5->SetBinContent(i + 1, nnotINtrack5[i]);
834 m_h1TrackOneDigiIn->SetBinContent(i + 1, TrackOneDigiIn[i]);
835 }
836
837 B2INFO(" ROI Analysis Summary ");
838 B2INFO("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
839 B2INFO("");
840 B2INFO(" number of tracks = " << n_tracks);
841 B2INFO(" number of Intercepts = " << n_intercepts);
842 B2INFO(" number of ROIs = " << n_rois);
843 B2INFO("");
844 B2INFO(" average number of ROIs = " << m_h1totROIs->GetMean() << ", average area " << m_h1totArea->GetMean() <<
845 " (not excluding overlaps!)");
846 B2INFO(" average number of ROIs w digits = " << m_h1okROIs->GetMean() << ", average tot area " << m_h1okArea->GetMean());
847 B2INFO("");
848 B2INFO(" red Factor = " << m_h1redFactor->GetMean() << ", RMS = " << m_h1redFactor->GetRMS());
849 B2INFO("");
850 B2INFO("tracks w digits: " << n_tracksWithDigits);
851 B2INFO("tracks w digits in ROI: " << n_tracksWithDigitsInROI);
852 B2INFO("efficiency PTD : " << epsilon2Tot << " +/- " << sqrt(epsilon2Tot * (1 - epsilon2Tot) / n_tracksWithDigits));
853
854 Int_t totTrackOneDigiIn = 0; //not used for the moment, added to double check
855 Int_t totnnotINtrack2 = 0;
856 Int_t totnnotINtrack3 = 0;
857 Int_t totnnotINtrack4 = 0;
858 Int_t totnnotINtrack5 = 0;
859
860 Int_t totTrack[6];
861
862 for (int j = 0; j < m_h1TrackOneDigiIn->GetNbinsX(); j++) {
863 totTrackOneDigiIn = totTrackOneDigiIn + m_h1TrackOneDigiIn->GetBinContent(j + 1);
864 totnnotINtrack2 = totnnotINtrack2 + m_h1nnotINtrack2->GetBinContent(j + 1);
865 totnnotINtrack3 = totnnotINtrack3 + m_h1nnotINtrack3->GetBinContent(j + 1);
866 totnnotINtrack4 = totnnotINtrack4 + m_h1nnotINtrack4->GetBinContent(j + 1);
867 totnnotINtrack5 = totnnotINtrack5 + m_h1nnotINtrack5->GetBinContent(j + 1);
868
869 totTrack[j] = m_h1nnotINtrack5->GetBinContent(j + 1) + m_h1nnotINtrack4->GetBinContent(j + 1) + m_h1nnotINtrack3->GetBinContent(
870 j + 1) + m_h1nnotINtrack2->GetBinContent(j + 1) + m_h1TrackOneDigiIn->GetBinContent(j + 1);
871 }
872
873 B2INFO(" out ROI = " << totnnotINtrack2);
874 B2INFO(" no ROI = " << totnnotINtrack3);
875 B2INFO(" wrongVxdID = " << totnnotINtrack4);
876 B2INFO(" no Inter = " << totnnotINtrack5);
877 B2INFO("");
878
879 B2INFO(" pxdDigit : " << n_pxdDigit);
880 B2INFO(" pxdDigitIn : " << n_pxdDigitInROI);
881
882 B2INFO(" eff DGT: " << epsilonTot << " +/- " << sqrt(epsilonTot * (1 - epsilonTot) / n_pxdDigit));
883 B2INFO(" inefficiency (PXDDigits): ");
884 B2INFO(" out ROI: " << n_notINdigit2);
885 B2INFO(" no ROI: " << n_notINdigit3);
886 B2INFO(" wrongVxdID: " << n_notINdigit4);
887 B2INFO(" noInter: " << n_notINdigit5);
888 B2INFO("");
889
890
891 B2INFO(" pT > 1 : " << pt[5]);
892 B2INFO(" out ROI: " << nnotINdigit2[5]);
893 B2INFO(" no ROI: " << nnotINdigit3[5]);
894 B2INFO(" wrongVxdID: " << nnotINdigit4[5]);
895 B2INFO(" noInter: " << nnotINdigit5[5]);
896 B2INFO(" pxdDigit : " << npxdDigit[5]);
897 B2INFO(" pxdDigitIn : " << npxdDigitInROI[5]);
898 if ((npxdDigit[5] - npxdDigitInROI[5]) != (nnotINdigit2[5] + nnotINdigit3[5] + nnotINdigit4[5] + nnotINdigit5[5]))
899 B2INFO(" pxdDigitOut : " << npxdDigit[5] - npxdDigitInROI[5] << " != " << nnotINdigit2[5] + nnotINdigit3[5] + nnotINdigit4[5] +
900 nnotINdigit5[5]);
901 epsilon[5] = (double)npxdDigitInROI[5] / (double) npxdDigit[5];
902 epsilonErr[5] = sqrt(epsilon[5] * (1 - epsilon[5]) / npxdDigit[5]);
903 B2INFO(" efficiency : " << epsilon[5] << " +/- " << epsilonErr[5]);
904 epsilon2[5] = (double)TrackOneDigiIn[5] / (double) totTrack[5] ;
905 epsilon2Err[5] = sqrt(epsilon2[5] * (1 - epsilon2[5]) / totTrack[5]);
906 B2INFO(" efficiency2 : " << epsilon2[5] << " +/- " << epsilon2Err[5]);
907 B2INFO("");
908
909 B2INFO(" 0.5 < pT < 1 : " << pt[4]);
910 B2INFO(" out ROI: " << nnotINdigit2[4]);
911 B2INFO(" no ROI: " << nnotINdigit3[4]);
912 B2INFO(" wrongVxdID: " << nnotINdigit4[4]);
913 B2INFO(" noInter: " << nnotINdigit5[4]);
914 B2INFO(" pxdDigit : " << npxdDigit[4]);
915 B2INFO(" pxdDigitIn : " << npxdDigitInROI[4]);
916 if ((npxdDigit[4] - npxdDigitInROI[4]) != (nnotINdigit2[4] + nnotINdigit3[4] + nnotINdigit4[4] + nnotINdigit5[4]))
917 B2INFO(" pxdDigitOut : " << npxdDigit[4] - npxdDigitInROI[4] << " != " << nnotINdigit2[4] + nnotINdigit3[4] + nnotINdigit4[4] +
918 nnotINdigit5[4]);
919 epsilon[4] = (double)npxdDigitInROI[4] / (double) npxdDigit[4];
920 epsilonErr[4] = sqrt(epsilon[4] * (1 - epsilon[4]) / npxdDigit[4]);
921 B2INFO(" efficiency : " << epsilon[4] << " +/- " << epsilonErr[4]);
922 epsilon2[4] = (double)TrackOneDigiIn[4] / (double) totTrack[4] ;
923 epsilon2Err[4] = sqrt(epsilon2[4] * (1 - epsilon2[4]) / totTrack[4]);
924 B2INFO(" efficiency2 : " << epsilon2[4] << " +/- " << epsilon2Err[4]);
925
926 B2INFO("");
927 B2INFO(" 0.3 < pT < 0.5 : " << pt[3]);
928 B2INFO(" out ROI: " << nnotINdigit2[3]);
929 B2INFO(" no ROI: " << nnotINdigit3[3]);
930 B2INFO(" wrongVxdID: " << nnotINdigit4[3]);
931 B2INFO(" noInter: " << nnotINdigit5[3]);
932 B2INFO(" pxdDigit : " << npxdDigit[3]);
933 B2INFO(" pxdDigitIn : " << npxdDigitInROI[3]);
934 if ((npxdDigit[3] - npxdDigitInROI[3]) != (nnotINdigit2[3] + nnotINdigit3[3] + nnotINdigit4[3] + nnotINdigit5[3]))
935 B2INFO(" pxdDigitOut : " << npxdDigit[3] - npxdDigitInROI[3] << " != " << nnotINdigit2[3] + nnotINdigit3[3] + nnotINdigit4[3] +
936 nnotINdigit5[3]);
937 epsilon[3] = (double)npxdDigitInROI[3] / (double) npxdDigit[3];
938 epsilonErr[3] = sqrt(epsilon[3] * (1 - epsilon[3]) / npxdDigit[3]);
939 B2INFO(" efficiency : " << epsilon[3] << " +/- " << epsilonErr[3]);
940 epsilon2[3] = (double)TrackOneDigiIn[3] / (double) totTrack[3];
941 epsilon2Err[3] = sqrt(epsilon2[3] * (1 - epsilon2[3]) / totTrack[3]);
942 B2INFO(" efficiency2 : " << epsilon2[3] << " +/- " << epsilon2Err[3]);
943
944 B2INFO("");
945 B2INFO(" 0.2 < pT < 0.3 : " << pt[2]);
946 B2INFO(" out ROI: " << nnotINdigit2[2]);
947 B2INFO(" no ROI: " << nnotINdigit3[2]);
948 B2INFO(" wrongVxdID: " << nnotINdigit4[2]);
949 B2INFO(" noInter: " << nnotINdigit5[2]);
950 B2INFO(" pxdDigit : " << npxdDigit[2]);
951 B2INFO(" pxdDigitIn : " << npxdDigitInROI[2]);
952 if ((npxdDigit[2] - npxdDigitInROI[2]) != (nnotINdigit2[2] + nnotINdigit3[2] + nnotINdigit4[2] + nnotINdigit5[2]))
953 B2INFO(" pxdDigitOut : " << npxdDigit[2] - npxdDigitInROI[2] << " != " << nnotINdigit2[2] + nnotINdigit3[2] + nnotINdigit4[2] +
954 nnotINdigit5[2]);
955 epsilon[2] = (double)npxdDigitInROI[2] / (double) npxdDigit[2];
956 epsilonErr[2] = sqrt(epsilon[2] * (1 - epsilon[2]) / npxdDigit[2]);
957 B2INFO(" efficiency : " << epsilon[2] << " +/- " << epsilonErr[2]);
958 epsilon2[2] = (double)TrackOneDigiIn[2] / (double) totTrack[2] ;
959 epsilon2Err[2] = sqrt(epsilon2[2] * (1 - epsilon2[2]) / totTrack[2]);
960 B2INFO(" efficiency2 : " << epsilon2[2] << " +/- " << epsilon2Err[2]);
961
962 B2INFO("");
963 B2INFO(" 0.1 < pT < 0.2 : " << pt[1]);
964 B2INFO(" out ROI: " << nnotINdigit2[1]);
965 B2INFO(" no ROI: " << nnotINdigit3[1]);
966 B2INFO(" wrongVxdID: " << nnotINdigit4[1]);
967 B2INFO(" noInter: " << nnotINdigit5[1]);
968 B2INFO(" pxdDigit : " << npxdDigit[1]);
969 B2INFO(" pxdDigitIn : " << npxdDigitInROI[1]);
970 if ((npxdDigit[1] - npxdDigitInROI[1]) != (nnotINdigit2[1] + nnotINdigit3[1] + nnotINdigit4[1] + nnotINdigit5[1]))
971 B2INFO(" pxdDigitOut : " << npxdDigit[1] - npxdDigitInROI[1] << " ?=? " << nnotINdigit2[1] + nnotINdigit3[1] + nnotINdigit4[1] +
972 nnotINdigit5[1]);
973 epsilon[1] = (double)npxdDigitInROI[1] / (double) npxdDigit[1];
974 epsilonErr[1] = sqrt(epsilon[1] * (1 - epsilon[1]) / npxdDigit[1]);
975 B2INFO(" efficiency : " << epsilon[1] << " +/- " << epsilonErr[1]);
976 epsilon2[1] = (double)TrackOneDigiIn[1] / (double) totTrack[1] ;
977 epsilon2Err[1] = sqrt(epsilon2[1] * (1 - epsilon2[1]) / totTrack[1]);
978 B2INFO(" efficiency2 : " << epsilon2[1] << " +/- " << epsilon2Err[1]);
979
980 B2INFO("");
981 B2INFO(" pT < 0.1 : " << pt[0]);
982 B2INFO(" out ROI: " << nnotINdigit2[0]);
983 B2INFO(" no ROI: " << nnotINdigit3[0]);
984 B2INFO(" wrongVxdID: " << nnotINdigit4[0]);
985 B2INFO(" noInter: " << nnotINdigit5[0]);
986 B2INFO(" pxdDigit : " << npxdDigit[0]);
987 B2INFO(" pxdDigitIn : " << npxdDigitInROI[0]);
988 if ((npxdDigit[0] - npxdDigitInROI[0]) != (nnotINdigit2[0] + nnotINdigit3[0] + nnotINdigit4[0] + nnotINdigit5[0]))
989 B2INFO(" pxdDigitOut : " << npxdDigit[0] - npxdDigitInROI[0] << " ?=? " << nnotINdigit2[0] + nnotINdigit3[0] + nnotINdigit4[0] +
990 nnotINdigit5[0]);
991 epsilon[0] = (double)npxdDigitInROI[0] / (double) npxdDigit[0];
992 epsilonErr[0] = sqrt(epsilon[0] * (1 - epsilon[0]) / npxdDigit[0]);
993 B2INFO(" efficiency : " << epsilon[0] << " +/- " << epsilonErr[0]);
994 epsilon2[0] = (double)TrackOneDigiIn[0] / (double) totTrack[0] ;
995 epsilon2Err[0] = sqrt(epsilon2[0] * (1 - epsilon2[0]) / totTrack[0]);
996 B2INFO(" efficiency2 : " << epsilon2[0] << " +/- " << epsilon2Err[0]);
997
998 B2INFO("legend:");
999 B2INFO(" CASO2: if (ROI exists but no PXDDigit inside)");
1000 B2INFO(" CASO3: if (ROI does not exist, intercept with correct VxdID)");
1001 B2INFO(" CASO4: if (intercept with wrong VxdID)");
1002 B2INFO(" CASO5: if (intercept does not exist)");
1003
1004
1005 m_gEff2 = new TGraphErrors(6, pt, epsilon2, ptErr, epsilon2Err);
1006 m_gEff2->SetName("g_eff2");
1007 m_gEff2->SetTitle("Normalized to MCParticles with digits and related track");
1008 m_gEff = new TGraphErrors(6, pt, epsilon, ptErr, epsilonErr);
1009 m_gEff->SetName("g_eff");
1010 m_gEff->SetTitle("Normalized to digits of MCParticles with digits and related track");
1011
1012
1013
1014 if (m_rootFilePtr != nullptr) {
1015 m_rootFilePtr->cd(); //important! without this the famework root I/O (SimpleOutput etc) could mix with the root I/O of this module
1016
1017 TDirectory* oldDir = gDirectory;
1018 TDirectory* m_digiDir = oldDir->mkdir("digits");
1019 TDirectory* m_tracksDir = oldDir->mkdir("tracks");
1020 TDirectory* m_notINtrack5 = oldDir->mkdir("notINtrack5");
1021 TDirectory* m_INtrack1 = oldDir->mkdir("INtrack1");
1022 TDirectory* m_alltracks = oldDir->mkdir("alltracks");
1023 TDirectory* m_in = oldDir->mkdir("digi_in");
1024 TDirectory* m_out2 = oldDir->mkdir("digi_out2");
1025 TDirectory* m_out3 = oldDir->mkdir("digi_out3");
1026 TDirectory* m_out4 = oldDir->mkdir("digi_out4");
1027 TDirectory* m_out5 = oldDir->mkdir("digi_out5");
1028 TDirectory* m_ROIDir = oldDir->mkdir("roi");
1029
1030 m_h1DigitsPerParticle->Write();
1032
1033 m_gEff->Write();
1034 m_gEff2->Write();
1035 m_h1effPerTrack->Write();
1036
1037
1038 m_digiDir->cd();
1039 m_h1digiIn->Write();
1040 m_h1digiOut2->Write();
1041 m_h1digiOut3->Write();
1042 m_h1digiOut4->Write();
1043 m_h1digiOut5->Write();
1044
1045 m_tracksDir->cd();
1046 m_h1TrackOneDigiIn->Write();
1047 m_h1nnotINtrack2->Write();
1048 m_h1nnotINtrack3->Write();
1049 m_h1nnotINtrack4->Write();
1050 m_h1nnotINtrack5->Write();
1051
1052 m_notINtrack5->cd();
1053 m_h1notINtrack5->Write();
1054 m_h1notINtrack5_pt->Write();
1055 m_h1notINtrack5_phi->Write();
1056 m_h1notINtrack5_lambda->Write();
1057 m_h1notINtrack5_cosTheta->Write();
1058
1059 m_INtrack1->cd();
1060 m_h1INtrack1->Write();
1061 m_h1INtrack1_pt->Write();
1062 m_h1INtrack1_phi->Write();
1063 m_h1INtrack1_lambda->Write();
1064 m_h1INtrack1_cosTheta->Write();
1065
1066 m_alltracks->cd();
1067 m_h1Track->Write();
1068 m_h1Track_pt->Write();
1069 m_h1Track_phi->Write();
1070 m_h1Track_lambda->Write();
1071 m_h1Track_cosTheta->Write();
1072
1073 m_in->cd();
1074 m_h1GlobalTime->Write();
1075 m_h1PullU->Write();
1076 m_h1PullV->Write();
1077 m_h1ResidU->Write();
1078 m_h1ResidV->Write();
1079 m_h2ResidUV->Write();
1080 m_h1SigmaU->Write();
1081 m_h1SigmaV->Write();
1082 m_h2sigmaUphi->Write();
1083 m_h2sigmaVphi->Write();
1084 m_h2Mapglob->Write();
1085 m_h2MaplocL1->Write();
1086 m_h2MaplocL2->Write();
1087
1088 m_out2->cd();
1089 m_h1GlobalTime_out2->Write();
1090 m_h1ResidU_out2->Write();
1091 m_h1ResidV_out2->Write();
1092 m_h2ResidUV_out2->Write();
1093 m_h1SigmaU_out2->Write();
1094 m_h1SigmaV_out2->Write();
1095 m_h2sigmaUphi_out2->Write();
1096 m_h2sigmaVphi_out2->Write();
1097 m_h2Mapglob_out2->Write();
1098 m_h2MaplocL1_out2->Write();
1099 m_h2MaplocL2_out2->Write();
1100
1101 m_out3->cd();
1102 m_h1GlobalTime_out3->Write();
1103 m_h1ResidU_out3->Write();
1104 m_h1ResidV_out3->Write();
1105 m_h2ResidUV_out3->Write();
1106 m_h1SigmaU_out3->Write();
1107 m_h1SigmaV_out3->Write();
1108 m_h2sigmaUphi_out3->Write();
1109 m_h2sigmaVphi_out3->Write();
1110 m_h2Mapglob_out3->Write();
1111 m_h2MaplocL1_out3->Write();
1112 m_h2MaplocL2_out3->Write();
1113
1114 m_out4->cd();
1115 m_h1GlobalTime_out4->Write();
1116 m_h1SigmaU_out4->Write();
1117 m_h1SigmaV_out4->Write();
1118 m_h2sigmaUphi_out4->Write();
1119 m_h2sigmaVphi_out4->Write();
1120 m_h2Mapglob_out4->Write();
1121 m_h2MaplocL1_out4->Write();
1122 m_h2MaplocL2_out4->Write();
1123
1124 m_out5->cd();
1125 m_h1GlobalTime_out5->Write();
1126 m_h2Mapglob_out5->Write();
1127 m_h2MaplocL1_out5->Write();
1128 m_h2MaplocL2_out5->Write();
1129
1130 m_ROIDir->cd();
1131 m_h1totArea->Write();
1132 m_h1okArea->Write();
1133 m_h1okROIs->Write();
1134 m_h1okROIfrac->Write();
1135 m_h1totROIs->Write();
1136 m_h1redFactor->Write();
1137 m_h1redFactor_L1->Write();
1138 m_h1redFactor_L2->Write();
1139
1140
1141 m_h2ROIbottomLeft->Write();
1142 m_h2ROItopRight->Write();
1143 m_h2ROIuMinMax->Write();
1144 m_h2ROIvMinMax->Write();
1145 m_rootFilePtr->Close();
1146
1147 }
1148
1149}
TGraphErrors * m_gEff
efficiency graph
TGraphErrors * m_gEff2
efficiency graph
double sqrt(double a)
sqrt for double
Definition: beamHelpers.h:28

Member Data Documentation

◆ m_conditions

std::vector<ModuleCondition> m_conditions
privateinherited

Module condition, only non-null if set.

Definition at line 521 of file Module.h.

◆ m_coorU

double m_coorU
private

intercept U coordinate

Definition at line 214 of file PXDROIFinderAnalysisModule.h.

◆ m_coorUmc

double m_coorUmc
private

true intercept U coordinate

Definition at line 220 of file PXDROIFinderAnalysisModule.h.

◆ m_coorV

double m_coorV
private

intercept V coordinate

Definition at line 215 of file PXDROIFinderAnalysisModule.h.

◆ m_coorVmc

double m_coorVmc
private

true intercept V coordinate

Definition at line 221 of file PXDROIFinderAnalysisModule.h.

◆ m_costhetamc

double m_costhetamc
private

true cos theta

Definition at line 230 of file PXDROIFinderAnalysisModule.h.

◆ m_description

std::string m_description
privateinherited

The description of the module.

Definition at line 511 of file Module.h.

◆ m_gEff

TGraphErrors* m_gEff = nullptr
private

efficiency graph

Definition at line 92 of file PXDROIFinderAnalysisModule.h.

◆ m_gEff2

TGraphErrors* m_gEff2 = nullptr
private

efficiency graph

Definition at line 91 of file PXDROIFinderAnalysisModule.h.

◆ m_globalTime

double m_globalTime
private

global hit time

Definition at line 213 of file PXDROIFinderAnalysisModule.h.

◆ m_h1digiIn

TH1F* m_h1digiIn = nullptr
private

digits contained in ROI histogram

Definition at line 97 of file PXDROIFinderAnalysisModule.h.

◆ m_h1digiOut2

TH1F* m_h1digiOut2 = nullptr
private

lost digit: ROI exist with right vxdID

Definition at line 98 of file PXDROIFinderAnalysisModule.h.

◆ m_h1digiOut3

TH1F* m_h1digiOut3 = nullptr
private

lost digit: ROI exist with wrong vxdID

Definition at line 99 of file PXDROIFinderAnalysisModule.h.

◆ m_h1digiOut4

TH1F* m_h1digiOut4 = nullptr
private

lost digit: ROI does not exist, intercept with right vxdID

Definition at line 100 of file PXDROIFinderAnalysisModule.h.

◆ m_h1digiOut5

TH1F* m_h1digiOut5 = nullptr
private

lost digit: ROI does not exist, intercept with wrong vxdID

Definition at line 101 of file PXDROIFinderAnalysisModule.h.

◆ m_h1DigitsPerParticle

TH1F* m_h1DigitsPerParticle = nullptr
private

number of digits per particle

Definition at line 94 of file PXDROIFinderAnalysisModule.h.

◆ m_h1effPerTrack

TH1F* m_h1effPerTrack = nullptr
private

fraction of digits in ROI per track

Definition at line 208 of file PXDROIFinderAnalysisModule.h.

◆ m_h1GlobalTime

TH1F* m_h1GlobalTime = nullptr
private

distribution of global time for PDXDigits contained in a ROI

Definition at line 147 of file PXDROIFinderAnalysisModule.h.

◆ m_h1GlobalTime_out2

TH1F* m_h1GlobalTime_out2 = nullptr
private

distribution of global time for PDXDigits not contained in a ROI

Definition at line 160 of file PXDROIFinderAnalysisModule.h.

◆ m_h1GlobalTime_out3

TH1F* m_h1GlobalTime_out3 = nullptr
private

distribution of global time for PDXDigits not contained in a ROI

Definition at line 173 of file PXDROIFinderAnalysisModule.h.

◆ m_h1GlobalTime_out4

TH1F* m_h1GlobalTime_out4 = nullptr
private

distribution of global time for PDXDigits not contained in a ROI

Definition at line 183 of file PXDROIFinderAnalysisModule.h.

◆ m_h1GlobalTime_out5

TH1F* m_h1GlobalTime_out5 = nullptr
private

distribution of global time for PDXDigits not contained in a ROI

Definition at line 189 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1

TH1F* m_h1INtrack1 = nullptr
private

track with no intercept

Definition at line 118 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_cosTheta

TH1F* m_h1INtrack1_cosTheta = nullptr
private

track with no intercept costheta

Definition at line 122 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_lambda

TH1F* m_h1INtrack1_lambda = nullptr
private

track with no intercept lambda

Definition at line 121 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_nCDChits

TH1F* m_h1INtrack1_nCDChits = nullptr
private

denominator track pVal

Definition at line 125 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_nSVDhits

TH1F* m_h1INtrack1_nSVDhits = nullptr
private

denominator track pVal

Definition at line 124 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_phi

TH1F* m_h1INtrack1_phi = nullptr
private

track with no intercept phi

Definition at line 120 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_pt

TH1F* m_h1INtrack1_pt = nullptr
private

track with no intercept pT

Definition at line 119 of file PXDROIFinderAnalysisModule.h.

◆ m_h1INtrack1_pVal

TH1F* m_h1INtrack1_pVal = nullptr
private

denominator track pVal

Definition at line 123 of file PXDROIFinderAnalysisModule.h.

◆ m_h1nnotINtrack2

TH1F* m_h1nnotINtrack2 = nullptr
private

tracks with lost digit: ROI exist with right vxdID

Definition at line 104 of file PXDROIFinderAnalysisModule.h.

◆ m_h1nnotINtrack3

TH1F* m_h1nnotINtrack3 = nullptr
private

lost digit: ROI exist with wrong vxdID

Definition at line 105 of file PXDROIFinderAnalysisModule.h.

◆ m_h1nnotINtrack4

TH1F* m_h1nnotINtrack4 = nullptr
private

lost digit: ROI does not exist, intercept with right vxdID

Definition at line 106 of file PXDROIFinderAnalysisModule.h.

◆ m_h1nnotINtrack5

TH1F* m_h1nnotINtrack5 = nullptr
private

lost digit: ROI does not exist, intercept with wrong vxdID

Definition at line 107 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5

TH1F* m_h1notINtrack5 = nullptr
private

track with no intercept

Definition at line 127 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_cosTheta

TH1F* m_h1notINtrack5_cosTheta = nullptr
private

track with no intercept costheta

Definition at line 131 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_lambda

TH1F* m_h1notINtrack5_lambda = nullptr
private

track with no intercept lambda

Definition at line 130 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_nCDChits

TH1F* m_h1notINtrack5_nCDChits = nullptr
private

denominator track pVal

Definition at line 134 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_nSVDhits

TH1F* m_h1notINtrack5_nSVDhits = nullptr
private

denominator track pVal

Definition at line 133 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_phi

TH1F* m_h1notINtrack5_phi = nullptr
private

track with no intercept phi

Definition at line 129 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_pt

TH1F* m_h1notINtrack5_pt = nullptr
private

track with no intercept pT

Definition at line 128 of file PXDROIFinderAnalysisModule.h.

◆ m_h1notINtrack5_pVal

TH1F* m_h1notINtrack5_pVal = nullptr
private

denominator track pVal

Definition at line 132 of file PXDROIFinderAnalysisModule.h.

◆ m_h1okArea

TH1F* m_h1okArea = nullptr
private

distribution of Area of ROIs containing a PXDDigit

Definition at line 206 of file PXDROIFinderAnalysisModule.h.

◆ m_h1okROIfrac

TH1F* m_h1okROIfrac = nullptr
private

distribution of number of ROIsreduction factor

Definition at line 201 of file PXDROIFinderAnalysisModule.h.

◆ m_h1okROIs

TH1F* m_h1okROIs = nullptr
private

distribution of number of ROIs containing a PXDDigit

Definition at line 200 of file PXDROIFinderAnalysisModule.h.

◆ m_h1PullU

TH1F* m_h1PullU = nullptr
private

distribution of U pulls for PDXDigits contained in a ROI

Definition at line 138 of file PXDROIFinderAnalysisModule.h.

◆ m_h1PullV

TH1F* m_h1PullV = nullptr
private

distribution of V pulls for PDXDigits contained in a ROI

Definition at line 139 of file PXDROIFinderAnalysisModule.h.

◆ m_h1RecoTracksPerParticle

TH1F* m_h1RecoTracksPerParticle = nullptr
private

number of RecoTracks per particle

Definition at line 95 of file PXDROIFinderAnalysisModule.h.

◆ m_h1redFactor

TH1F* m_h1redFactor = nullptr
private

distribution of number of ROIsreduction factor

Definition at line 202 of file PXDROIFinderAnalysisModule.h.

◆ m_h1redFactor_L1

TH1F* m_h1redFactor_L1 = nullptr
private

distribution of number of ROIsreduction factor

Definition at line 203 of file PXDROIFinderAnalysisModule.h.

◆ m_h1redFactor_L2

TH1F* m_h1redFactor_L2 = nullptr
private

distribution of number of ROIsreduction factor

Definition at line 204 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidU

TH1F* m_h1ResidU = nullptr
private

distribution of U resid for PXDDigits contained in a ROI

Definition at line 142 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidU_out2

TH1F* m_h1ResidU_out2 = nullptr
private

distribution of U resid for PXDDigits not contained in a ROI

Definition at line 155 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidU_out3

TH1F* m_h1ResidU_out3 = nullptr
private

distribution of U resid for PXDDigits not contained in a ROI

Definition at line 168 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidV

TH1F* m_h1ResidV = nullptr
private

distribution of V resid for PXDDigits contained in a ROI

Definition at line 143 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidV_out2

TH1F* m_h1ResidV_out2 = nullptr
private

distribution of V resid for PXDDigits not contained in a ROI

Definition at line 156 of file PXDROIFinderAnalysisModule.h.

◆ m_h1ResidV_out3

TH1F* m_h1ResidV_out3 = nullptr
private

distribution of V resid for PXDDigits not contained in a ROI

Definition at line 169 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaU

TH1F* m_h1SigmaU = nullptr
private

distribution of sigmaU for PXDDigits contained in a ROI

Definition at line 145 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaU_out2

TH1F* m_h1SigmaU_out2 = nullptr
private

distribution of sigmaU for PXDDigits not contained in a ROI

Definition at line 158 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaU_out3

TH1F* m_h1SigmaU_out3 = nullptr
private

distribution of sigmaU for PXDDigits not contained in a ROI

Definition at line 171 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaU_out4

TH1F* m_h1SigmaU_out4 = nullptr
private

distribution of sigmaU for PXDDigits not contained in a ROI

Definition at line 181 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaV

TH1F* m_h1SigmaV = nullptr
private

distribution of sigmaV for PXDDigits contained in a ROI

Definition at line 146 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaV_out2

TH1F* m_h1SigmaV_out2 = nullptr
private

distribution of sigmaV for PXDDigits not contained in a ROI

Definition at line 159 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaV_out3

TH1F* m_h1SigmaV_out3 = nullptr
private

distribution of sigmaV for PXDDigits not contained in a ROI

Definition at line 172 of file PXDROIFinderAnalysisModule.h.

◆ m_h1SigmaV_out4

TH1F* m_h1SigmaV_out4 = nullptr
private

distribution of sigmaV for PXDDigits not contained in a ROI

Definition at line 182 of file PXDROIFinderAnalysisModule.h.

◆ m_h1totArea

TH1F* m_h1totArea = nullptr
private

distribution of Area of all ROIs

Definition at line 205 of file PXDROIFinderAnalysisModule.h.

◆ m_h1totROIs

TH1F* m_h1totROIs = nullptr
private

distribution of number of all ROIs

Definition at line 199 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track

TH1F* m_h1Track = nullptr
private

denominator track

Definition at line 109 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_cosTheta

TH1F* m_h1Track_cosTheta = nullptr
private

denominator track cosTheta

Definition at line 113 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_lambda

TH1F* m_h1Track_lambda = nullptr
private

denominator track lambda

Definition at line 112 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_nCDChits

TH1F* m_h1Track_nCDChits = nullptr
private

denominator track pVal

Definition at line 116 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_nSVDhits

TH1F* m_h1Track_nSVDhits = nullptr
private

denominator track pVal

Definition at line 115 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_phi

TH1F* m_h1Track_phi = nullptr
private

denominator track phi

Definition at line 111 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_pt

TH1F* m_h1Track_pt = nullptr
private

denominator track pT

Definition at line 110 of file PXDROIFinderAnalysisModule.h.

◆ m_h1Track_pVal

TH1F* m_h1Track_pVal = nullptr
private

denominator track pVal

Definition at line 114 of file PXDROIFinderAnalysisModule.h.

◆ m_h1TrackOneDigiIn

TH1F* m_h1TrackOneDigiIn = nullptr
private

tracks with at least digit contained in ROI

Definition at line 103 of file PXDROIFinderAnalysisModule.h.

◆ m_h2Mapglob

TH2F* m_h2Mapglob = nullptr
private

sensor perp,phi

Definition at line 148 of file PXDROIFinderAnalysisModule.h.

◆ m_h2Mapglob_out2

TH2F* m_h2Mapglob_out2 = nullptr
private

sensor perp,phi

Definition at line 161 of file PXDROIFinderAnalysisModule.h.

◆ m_h2Mapglob_out3

TH2F* m_h2Mapglob_out3 = nullptr
private

sensor perp,phi

Definition at line 174 of file PXDROIFinderAnalysisModule.h.

◆ m_h2Mapglob_out4

TH2F* m_h2Mapglob_out4 = nullptr
private

sensor perp,phi

Definition at line 184 of file PXDROIFinderAnalysisModule.h.

◆ m_h2Mapglob_out5

TH2F* m_h2Mapglob_out5 = nullptr
private

sensor perp,phi

Definition at line 190 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL1

TH2F* m_h2MaplocL1 = nullptr
private

L1 ladder u,v.

Definition at line 149 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL1_out2

TH2F* m_h2MaplocL1_out2 = nullptr
private

L1 ladder u,v.

Definition at line 162 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL1_out3

TH2F* m_h2MaplocL1_out3 = nullptr
private

L1 ladder u,v.

Definition at line 175 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL1_out4

TH2F* m_h2MaplocL1_out4 = nullptr
private

L1 ladder u,v.

Definition at line 185 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL1_out5

TH2F* m_h2MaplocL1_out5 = nullptr
private

L1 ladder u,v.

Definition at line 191 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL2

TH2F* m_h2MaplocL2 = nullptr
private

L2 ladder u,v.

Definition at line 150 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL2_out2

TH2F* m_h2MaplocL2_out2 = nullptr
private

L2 ladder u,v.

Definition at line 163 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL2_out3

TH2F* m_h2MaplocL2_out3 = nullptr
private

L2 ladder u,v.

Definition at line 176 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL2_out4

TH2F* m_h2MaplocL2_out4 = nullptr
private

L2 ladder u,v.

Definition at line 186 of file PXDROIFinderAnalysisModule.h.

◆ m_h2MaplocL2_out5

TH2F* m_h2MaplocL2_out5 = nullptr
private

L2 ladder u,v.

Definition at line 192 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ResidUV

TH2F* m_h2ResidUV = nullptr
private

distribution of V resid for PXDDigits contained in a ROI

Definition at line 144 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ResidUV_out2

TH2F* m_h2ResidUV_out2 = nullptr
private

distribution of V resid for PXDDigits not contained in a ROI

Definition at line 157 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ResidUV_out3

TH2F* m_h2ResidUV_out3 = nullptr
private

distribution of V resid for PXDDigits not contained in a ROI

Definition at line 170 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ROIbottomLeft

TH2F* m_h2ROIbottomLeft = nullptr
private

u,v coordinates of the bottom left pixel

Definition at line 195 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ROItopRight

TH2F* m_h2ROItopRight = nullptr
private

u,v coordinates of the top right pixel

Definition at line 196 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ROIuMinMax

TH2F* m_h2ROIuMinMax = nullptr
private

u-coordinate Min vs Max

Definition at line 197 of file PXDROIFinderAnalysisModule.h.

◆ m_h2ROIvMinMax

TH2F* m_h2ROIvMinMax = nullptr
private

v-coordinate Min vs Max

Definition at line 198 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaUphi

TH2F* m_h2sigmaUphi = nullptr
private

distribution of sigmaU VS phi for PDXDigits contained in a ROI

Definition at line 140 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaUphi_out2

TH2F* m_h2sigmaUphi_out2 = nullptr
private

distribution of sigmaU VS phi for PDXDigits not contained in a ROI

Definition at line 153 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaUphi_out3

TH2F* m_h2sigmaUphi_out3 = nullptr
private

distribution of sigmaU VS phi for PDXDigits not contained in a ROI

Definition at line 166 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaUphi_out4

TH2F* m_h2sigmaUphi_out4 = nullptr
private

distribution of sigmaU VS phi for PDXDigits not contained in a ROI

Definition at line 179 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaVphi

TH2F* m_h2sigmaVphi = nullptr
private

distribution of sigmaV VS phi for PDXDigits contained in a ROI

Definition at line 141 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaVphi_out2

TH2F* m_h2sigmaVphi_out2 = nullptr
private

distribution of sigmaV VS phi for PDXDigits not contained in a ROI

Definition at line 154 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaVphi_out3

TH2F* m_h2sigmaVphi_out3 = nullptr
private

distribution of sigmaV VS phi for PDXDigits not contained in a ROI

Definition at line 167 of file PXDROIFinderAnalysisModule.h.

◆ m_h2sigmaVphi_out4

TH2F* m_h2sigmaVphi_out4 = nullptr
private

distribution of sigmaV VS phi for PDXDigits not contained in a ROI

Definition at line 180 of file PXDROIFinderAnalysisModule.h.

◆ m_hasReturnValue

bool m_hasReturnValue
privateinherited

True, if the return value is set.

Definition at line 518 of file Module.h.

◆ m_lambdamc

double m_lambdamc
private

true lambda = pi/2 - theta

Definition at line 232 of file PXDROIFinderAnalysisModule.h.

◆ m_logConfig

LogConfig m_logConfig
privateinherited

The log system configuration of the module.

Definition at line 514 of file Module.h.

◆ m_MCParticles

StoreArray<MCParticle> m_MCParticles
private

MCParticle StoreArray.

Definition at line 71 of file PXDROIFinderAnalysisModule.h.

◆ m_moduleParamList

ModuleParamList m_moduleParamList
privateinherited

List storing and managing all parameter of the module.

Definition at line 516 of file Module.h.

◆ m_momXmc

double m_momXmc
private

true p along X

Definition at line 226 of file PXDROIFinderAnalysisModule.h.

◆ m_momYmc

double m_momYmc
private

true p along Y

Definition at line 227 of file PXDROIFinderAnalysisModule.h.

◆ m_momZmc

double m_momZmc
private

true p along Z

Definition at line 228 of file PXDROIFinderAnalysisModule.h.

◆ m_name

std::string m_name
privateinherited

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

Definition at line 508 of file Module.h.

◆ m_nSensorsL1

Int_t m_nSensorsL1
private

number of sensors on L1

Definition at line 84 of file PXDROIFinderAnalysisModule.h.

◆ m_nSensorsL2

Int_t m_nSensorsL2
private

number of sensors on L2

Definition at line 85 of file PXDROIFinderAnalysisModule.h.

◆ m_package

std::string m_package
privateinherited

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

Definition at line 510 of file Module.h.

◆ m_phimc

double m_phimc
private

true phi

Definition at line 231 of file PXDROIFinderAnalysisModule.h.

◆ m_propertyFlags

unsigned int m_propertyFlags
privateinherited

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

Definition at line 512 of file Module.h.

◆ m_pTmc

double m_pTmc
private

transverse momentum

Definition at line 225 of file PXDROIFinderAnalysisModule.h.

◆ m_PXDInterceptListName

std::string m_PXDInterceptListName
private

Intercept list name.

Definition at line 74 of file PXDROIFinderAnalysisModule.h.

◆ m_PXDIntercepts

StoreArray<PXDIntercept> m_PXDIntercepts
private

◆ m_recoTrackListName

std::string m_recoTrackListName
private

RecoTrack list name.

Definition at line 73 of file PXDROIFinderAnalysisModule.h.

◆ m_recoTracks

StoreArray<RecoTrack> m_recoTracks
private

RecoTrack StoreArray.

Definition at line 68 of file PXDROIFinderAnalysisModule.h.

◆ m_returnValue

int m_returnValue
privateinherited

The return value.

Definition at line 519 of file Module.h.

◆ m_ROIListName

std::string m_ROIListName
private

ROI list name.

Definition at line 75 of file PXDROIFinderAnalysisModule.h.

◆ m_ROIs

StoreArray<ROIid> m_ROIs
private

ROIid StoreArray.

Definition at line 69 of file PXDROIFinderAnalysisModule.h.

◆ m_rootEvent

int m_rootEvent
private

event number

Definition at line 81 of file PXDROIFinderAnalysisModule.h.

◆ m_rootFileName

std::string m_rootFileName
private

root file name

Definition at line 78 of file PXDROIFinderAnalysisModule.h.

◆ m_rootFilePtr

TFile* m_rootFilePtr = nullptr
private

pointer at root file used for storing infos for debugging and validating purposes

Definition at line 77 of file PXDROIFinderAnalysisModule.h.

◆ m_sigmaU

double m_sigmaU
private

intercept U stat error

Definition at line 216 of file PXDROIFinderAnalysisModule.h.

◆ m_sigmaV

double m_sigmaV
private

intercept V stat error

Definition at line 217 of file PXDROIFinderAnalysisModule.h.

◆ m_thetamc

double m_thetamc
private

true theta

Definition at line 229 of file PXDROIFinderAnalysisModule.h.

◆ m_type

std::string m_type
privateinherited

The type of the module, saved as a string.

Definition at line 509 of file Module.h.

◆ m_Uidmc

int m_Uidmc
private

true intercept U id

Definition at line 222 of file PXDROIFinderAnalysisModule.h.

◆ m_Vidmc

int m_Vidmc
private

true intercept V id

Definition at line 223 of file PXDROIFinderAnalysisModule.h.

◆ m_vxdID

int m_vxdID
private

VXD ID.

Definition at line 218 of file PXDROIFinderAnalysisModule.h.

◆ m_vxdIDmc

int m_vxdIDmc
private

true intercept VXD id

Definition at line 224 of file PXDROIFinderAnalysisModule.h.

◆ m_writeToRoot

bool m_writeToRoot
private

if true, a rootFile named by m_rootFileName will be filled with info

Definition at line 79 of file PXDROIFinderAnalysisModule.h.

◆ n_intercepts

unsigned int n_intercepts
private

number of PXDIntercepts

Definition at line 243 of file PXDROIFinderAnalysisModule.h.

◆ n_notINdigit2

unsigned int n_notINdigit2
private

number of lost digits: no hit, correct vxdID

Definition at line 250 of file PXDROIFinderAnalysisModule.h.

◆ n_notINdigit3

unsigned int n_notINdigit3
private

number of lost digits: no hit, wrong vxdID

Definition at line 251 of file PXDROIFinderAnalysisModule.h.

◆ n_notINdigit4

unsigned int n_notINdigit4
private

number of lost digits: no ROI, intercepts with correct vxdID

Definition at line 252 of file PXDROIFinderAnalysisModule.h.

◆ n_notINdigit5

unsigned int n_notINdigit5
private

number of lost digits: no ROI, intercepts with wrong vxdID

Definition at line 253 of file PXDROIFinderAnalysisModule.h.

◆ n_notINtrack2

unsigned int n_notINtrack2
private

number of tracks with no digits in ROI (correct vxdID)

Definition at line 236 of file PXDROIFinderAnalysisModule.h.

◆ n_notINtrack3

unsigned int n_notINtrack3
private

number of tracks with no digits in ROI (wrong vxdID)

Definition at line 237 of file PXDROIFinderAnalysisModule.h.

◆ n_notINtrack4

unsigned int n_notINtrack4
private

number of tracks with no ROI (intercept with correct vxdID)

Definition at line 238 of file PXDROIFinderAnalysisModule.h.

◆ n_notINtrack5

unsigned int n_notINtrack5
private

number of tracks with no ROI (intercept with wrong vxdID)

Definition at line 239 of file PXDROIFinderAnalysisModule.h.

◆ n_pxdDigit

unsigned int n_pxdDigit
private

number of pxd digits

Definition at line 247 of file PXDROIFinderAnalysisModule.h.

◆ n_pxdDigitInROI

unsigned int n_pxdDigitInROI
private

number of pxd digits in ROIs

Definition at line 248 of file PXDROIFinderAnalysisModule.h.

◆ n_rois

unsigned int n_rois
private

number of ROIs

Definition at line 242 of file PXDROIFinderAnalysisModule.h.

◆ n_tracks

unsigned int n_tracks
private

number of tracks

Definition at line 244 of file PXDROIFinderAnalysisModule.h.

◆ n_tracksWithDigits

unsigned int n_tracksWithDigits
private

number of tracks with digits

Definition at line 245 of file PXDROIFinderAnalysisModule.h.

◆ n_tracksWithDigitsInROI

unsigned int n_tracksWithDigitsInROI
private

number of tracks with digits in ROI

Definition at line 246 of file PXDROIFinderAnalysisModule.h.

◆ nnotINdigit2

unsigned int nnotINdigit2[6]
private

number of lost digits in bins of pt: no hit, correct vxdID

Definition at line 257 of file PXDROIFinderAnalysisModule.h.

◆ nnotINdigit3

unsigned int nnotINdigit3[6]
private

number of lost digits in bins of pt: no hit, wrong vxdID

Definition at line 258 of file PXDROIFinderAnalysisModule.h.

◆ nnotINdigit4

unsigned int nnotINdigit4[6]
private

number of lost digits in bins of pt: no ROI, intercepts with correct vxdID

Definition at line 259 of file PXDROIFinderAnalysisModule.h.

◆ nnotINdigit5

unsigned int nnotINdigit5[6]
private

number of lost digits in bins of pt: no ROI, intercepts with wrong vxdID

Definition at line 260 of file PXDROIFinderAnalysisModule.h.

◆ nnotINtrack2

unsigned int nnotINtrack2[6]
private

number of tracks in bins of pt: no hit, correct vxdID

Definition at line 262 of file PXDROIFinderAnalysisModule.h.

◆ nnotINtrack3

unsigned int nnotINtrack3[6]
private

number of tracks in bins of pt: no hit, wrong vxdID

Definition at line 263 of file PXDROIFinderAnalysisModule.h.

◆ nnotINtrack4

unsigned int nnotINtrack4[6]
private

number of tracks in bins of pt: no ROI, intercepts with correct vxdID

Definition at line 264 of file PXDROIFinderAnalysisModule.h.

◆ nnotINtrack5

unsigned int nnotINtrack5[6]
private

number of tracks in bins of pt: no ROI, intercepts with wrong vxdID

Definition at line 265 of file PXDROIFinderAnalysisModule.h.

◆ npxdDigit

unsigned int npxdDigit[6]
private

number of pxd digits in bins of pt

Definition at line 255 of file PXDROIFinderAnalysisModule.h.

◆ npxdDigitInROI

unsigned int npxdDigitInROI[6]
private

number of pxd digits inside ROI in bins of pt

Definition at line 256 of file PXDROIFinderAnalysisModule.h.

◆ Ntrack

unsigned int Ntrack
private

number of tracks with pxd digits

Definition at line 234 of file PXDROIFinderAnalysisModule.h.

◆ NtrackHit

unsigned int NtrackHit
private

number of tracks with hits

Definition at line 235 of file PXDROIFinderAnalysisModule.h.

◆ pt

Double_t pt[6] = {0.05, 0.15, 0.25, 0.4, 0.75, 1.5}
private

bin edges (in pt = transverse momentum)

Definition at line 88 of file PXDROIFinderAnalysisModule.h.

◆ ptErr

Double_t ptErr[6] = { 0.05, 0.05, 0.05, 0.1, 0.25, 0.5}
private

bin widths (transverse momentum)

Definition at line 89 of file PXDROIFinderAnalysisModule.h.

◆ TrackOneDigiIn

unsigned int TrackOneDigiIn[6]
private

number of tracks with one digit inside ROI in bins of pt

Definition at line 261 of file PXDROIFinderAnalysisModule.h.


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