Belle II Software
development
V0findingPerformanceEvaluationModule.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#pragma once
10
11
#include <framework/core/Module.h>
12
#include <tracking/modules/trackingPerformanceEvaluation/PerformanceEvaluationBaseClass.h>
13
#include <tracking/dataobjects/V0ValidationVertex.h>
14
#include <mdst/dataobjects/MCParticle.h>
15
16
#include <TH1F.h>
17
#include <TH2F.h>
18
#include <TH3F.h>
19
20
21
// forward declarations
22
namespace
Belle2
{
32
class
V0findingPerformanceEvaluationModule
:
public
Module
,
PerformanceEvaluationBaseClass
{
33
34
public
:
35
39
V0findingPerformanceEvaluationModule
();
40
44
~V0findingPerformanceEvaluationModule
();
45
49
void
initialize
()
override
;
50
54
void
beginRun
()
override
;
55
59
void
event
()
override
;
60
64
void
endRun
()
override
;
65
69
void
terminate
()
override
;
70
71
private
:
72
73
bool
isV0
(
const
MCParticle
& the_mcParticle);
75
int
nMatchedDaughters
(
const
MCParticle
& the_mcParticle);
77
/* user-defined parameters */
78
std::string
m_MCParticlesName
;
79
std::string
m_V0sName
;
81
StoreArray<MCParticle>
m_MCParticles
;
82
StoreArray<V0ValidationVertex>
m_V0ValidationVertices
;
84
/* list of histograms filled per MCParticle found in the event */
85
86
TH1F*
m_multiplicityV0s
=
nullptr
;
87
TH1F*
m_multiplicityMCParticles
=
nullptr
;
88
TH1F*
m_MCParticlePDGcode
=
nullptr
;
90
//error on track parameters
91
TH1F*
m_h1_vtxX_err
=
nullptr
;
92
TH1F*
m_h1_vtxY_err
=
nullptr
;
93
TH1F*
m_h1_vtxZ_err
=
nullptr
;
94
TH2F*
m_h2_vtxTvsR_err
=
nullptr
;
95
// TH1F* m_h1_mom_err; /**< mom error*/
96
// TH1F* m_h1_mass_err; /**< mom error*/
97
//residuals on track parameters
98
TH1F*
m_h1_vtxX_res
=
nullptr
;
99
TH1F*
m_h1_vtxY_res
=
nullptr
;
100
TH1F*
m_h1_vtxZ_res
=
nullptr
;
101
TH1F*
m_h1_mom_res
=
nullptr
;
102
TH2F*
m_h2_mom
=
nullptr
;
103
TH1F*
m_h1_mass_res
=
nullptr
;
104
TH2F*
m_h2_mass
=
nullptr
;
105
//pulls on track parameters
106
TH1F*
m_h1_vtxX_pll
=
nullptr
;
107
TH1F*
m_h1_vtxY_pll
=
nullptr
;
108
TH1F*
m_h1_vtxZ_pll
=
nullptr
;
109
// TH1F* m_h1_mom_pll; /**< mom pull*/
110
// TH1F* m_h1_mass_pll; /**< mom pull*/
111
112
TH1F*
m_h1_ChiSquare
=
nullptr
;
114
TH1F*
m_h1_nMatchedDau
=
nullptr
;
116
//histograms used for efficiency plots
117
TH3F*
m_h3_MCParticle
=
nullptr
;
118
TH3F*
m_h3_V0sPerMCParticle
=
nullptr
;
119
TH1F*
m_h1_MCParticle_R
=
nullptr
;
120
TH1F*
m_h1_V0sPerMCParticle_R
=
nullptr
;
122
//histograms used for purity plots
123
TH3F*
m_h3_V0s
=
nullptr
;
124
TH3F*
m_h3_MCParticlesPerV0
=
nullptr
;
126
};
128
}
// end of namespace
Belle2::MCParticle
A Class to store the Monte Carlo particle information.
Definition:
MCParticle.h:32
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2::PerformanceEvaluationBaseClass
This module takes the MCParticles, the genfit Tracks, the genfit TrackCand, and the MCTrackCands inpu...
Definition:
PerformanceEvaluationBaseClass.h:30
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition:
StoreArray.h:113
Belle2::V0findingPerformanceEvaluationModule
This module takes the MCParticles, the V0 candidates input and produce a root file containing various...
Definition:
V0findingPerformanceEvaluationModule.h:32
Belle2::V0findingPerformanceEvaluationModule::m_h2_mom
TH2F * m_h2_mom
mom reco VS true
Definition:
V0findingPerformanceEvaluationModule.h:102
Belle2::V0findingPerformanceEvaluationModule::m_h1_MCParticle_R
TH1F * m_h1_MCParticle_R
V0-finding denominator by radius.
Definition:
V0findingPerformanceEvaluationModule.h:119
Belle2::V0findingPerformanceEvaluationModule::m_h1_nMatchedDau
TH1F * m_h1_nMatchedDau
TH1F n matched daughters.
Definition:
V0findingPerformanceEvaluationModule.h:114
Belle2::V0findingPerformanceEvaluationModule::m_MCParticlePDGcode
TH1F * m_MCParticlePDGcode
MCParticle PDG code.
Definition:
V0findingPerformanceEvaluationModule.h:88
Belle2::V0findingPerformanceEvaluationModule::isV0
bool isV0(const MCParticle &the_mcParticle)
is V0
Definition:
V0findingPerformanceEvaluationModule.cc:352
Belle2::V0findingPerformanceEvaluationModule::initialize
void initialize() override
Initializer.
Definition:
V0findingPerformanceEvaluationModule.cc:52
Belle2::V0findingPerformanceEvaluationModule::m_h2_vtxTvsR_err
TH2F * m_h2_vtxTvsR_err
vtx error on transverse plane VS transverse flight length
Definition:
V0findingPerformanceEvaluationModule.h:94
Belle2::V0findingPerformanceEvaluationModule::m_h3_V0s
TH3F * m_h3_V0s
V0-finding purity denominator.
Definition:
V0findingPerformanceEvaluationModule.h:123
Belle2::V0findingPerformanceEvaluationModule::event
void event() override
This method is called for each event.
Definition:
V0findingPerformanceEvaluationModule.cc:151
Belle2::V0findingPerformanceEvaluationModule::m_h1_ChiSquare
TH1F * m_h1_ChiSquare
TH1F chi square.
Definition:
V0findingPerformanceEvaluationModule.h:112
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxZ_err
TH1F * m_h1_vtxZ_err
vtx error
Definition:
V0findingPerformanceEvaluationModule.h:93
Belle2::V0findingPerformanceEvaluationModule::m_h1_V0sPerMCParticle_R
TH1F * m_h1_V0sPerMCParticle_R
V0-finding numerator by radius.
Definition:
V0findingPerformanceEvaluationModule.h:120
Belle2::V0findingPerformanceEvaluationModule::endRun
void endRun() override
This method is called if the current run ends.
Definition:
V0findingPerformanceEvaluationModule.cc:256
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxX_res
TH1F * m_h1_vtxX_res
vtx resid
Definition:
V0findingPerformanceEvaluationModule.h:98
Belle2::V0findingPerformanceEvaluationModule::terminate
void terminate() override
This method is called at the end of the event processing.
Definition:
V0findingPerformanceEvaluationModule.cc:285
Belle2::V0findingPerformanceEvaluationModule::m_h3_V0sPerMCParticle
TH3F * m_h3_V0sPerMCParticle
V0-finding numerator.
Definition:
V0findingPerformanceEvaluationModule.h:118
Belle2::V0findingPerformanceEvaluationModule::nMatchedDaughters
int nMatchedDaughters(const MCParticle &the_mcParticle)
number of truth matched dauhters
Definition:
V0findingPerformanceEvaluationModule.cc:385
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxZ_res
TH1F * m_h1_vtxZ_res
vtx resid
Definition:
V0findingPerformanceEvaluationModule.h:100
Belle2::V0findingPerformanceEvaluationModule::m_V0sName
std::string m_V0sName
MCTrackCand StoreArray name.
Definition:
V0findingPerformanceEvaluationModule.h:79
Belle2::V0findingPerformanceEvaluationModule::V0findingPerformanceEvaluationModule
V0findingPerformanceEvaluationModule()
Constructor.
Definition:
V0findingPerformanceEvaluationModule.cc:34
Belle2::V0findingPerformanceEvaluationModule::beginRun
void beginRun() override
Called when entering a new run.
Definition:
V0findingPerformanceEvaluationModule.cc:146
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxY_res
TH1F * m_h1_vtxY_res
vtx resid
Definition:
V0findingPerformanceEvaluationModule.h:99
Belle2::V0findingPerformanceEvaluationModule::m_V0ValidationVertices
StoreArray< V0ValidationVertex > m_V0ValidationVertices
V0ValidationVertices StoreArray.
Definition:
V0findingPerformanceEvaluationModule.h:82
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxZ_pll
TH1F * m_h1_vtxZ_pll
vtx pull
Definition:
V0findingPerformanceEvaluationModule.h:108
Belle2::V0findingPerformanceEvaluationModule::m_h1_mom_res
TH1F * m_h1_mom_res
mom resid
Definition:
V0findingPerformanceEvaluationModule.h:101
Belle2::V0findingPerformanceEvaluationModule::~V0findingPerformanceEvaluationModule
~V0findingPerformanceEvaluationModule()
Destructor.
Definition:
V0findingPerformanceEvaluationModule.cc:47
Belle2::V0findingPerformanceEvaluationModule::m_h3_MCParticlesPerV0
TH3F * m_h3_MCParticlesPerV0
V0-finding numerator.
Definition:
V0findingPerformanceEvaluationModule.h:124
Belle2::V0findingPerformanceEvaluationModule::m_h2_mass
TH2F * m_h2_mass
mass reco VS true
Definition:
V0findingPerformanceEvaluationModule.h:104
Belle2::V0findingPerformanceEvaluationModule::m_multiplicityMCParticles
TH1F * m_multiplicityMCParticles
number of MCParticles per fitted Track
Definition:
V0findingPerformanceEvaluationModule.h:87
Belle2::V0findingPerformanceEvaluationModule::m_MCParticlesName
std::string m_MCParticlesName
MCParticle StoreArray name.
Definition:
V0findingPerformanceEvaluationModule.h:78
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxX_err
TH1F * m_h1_vtxX_err
vtx error
Definition:
V0findingPerformanceEvaluationModule.h:91
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxY_err
TH1F * m_h1_vtxY_err
vtx error
Definition:
V0findingPerformanceEvaluationModule.h:92
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxX_pll
TH1F * m_h1_vtxX_pll
vtx pull
Definition:
V0findingPerformanceEvaluationModule.h:106
Belle2::V0findingPerformanceEvaluationModule::m_MCParticles
StoreArray< MCParticle > m_MCParticles
MCParticles StoreArray.
Definition:
V0findingPerformanceEvaluationModule.h:81
Belle2::V0findingPerformanceEvaluationModule::m_h3_MCParticle
TH3F * m_h3_MCParticle
V0-finding denominator.
Definition:
V0findingPerformanceEvaluationModule.h:117
Belle2::V0findingPerformanceEvaluationModule::m_multiplicityV0s
TH1F * m_multiplicityV0s
number of V0s per MCParticles
Definition:
V0findingPerformanceEvaluationModule.h:86
Belle2::V0findingPerformanceEvaluationModule::m_h1_vtxY_pll
TH1F * m_h1_vtxY_pll
vtx pull
Definition:
V0findingPerformanceEvaluationModule.h:107
Belle2::V0findingPerformanceEvaluationModule::m_h1_mass_res
TH1F * m_h1_mass_res
mom resid
Definition:
V0findingPerformanceEvaluationModule.h:103
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
tracking
modules
trackingPerformanceEvaluation
include
V0findingPerformanceEvaluationModule.h
Generated on Fri Nov 8 2024 02:48:04 for Belle II Software by
1.9.6