Jpp in_tag_pdf_generation
the software that should make you happy
Loading...
Searching...
No Matches
JRECONSTRUCTION::JWeight Struct Reference

Auxiliary data structure to get weight of given fit. More...

#include <JEvtToolkit.hh>

Inheritance diagram for JRECONSTRUCTION::JWeight:
std::map< std::string, int >

Public Member Functions

 JWeight ()
 Default constructor.
 
bool operator() (const std::string &key) const
 Has weight.
 
double operator() (const JFit &fit, const std::string &key, const double value) const
 Get weight.
 

Detailed Description

Auxiliary data structure to get weight of given fit.

Definition at line 71 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JWeight()

JRECONSTRUCTION::JWeight::JWeight ( )
inline

Default constructor.

Definition at line 77 of file JReconstruction/JEvtToolkit.hh.

78 {
79#define MAKE_ENTRY(A) std::make_pair(#A, A)
80
81 this->insert(MAKE_ENTRY(JGANDALF_BETA0_RAD));
82 this->insert(MAKE_ENTRY(JGANDALF_BETA1_RAD));
83 this->insert(MAKE_ENTRY(JGANDALF_CHI2));
85 this->insert(MAKE_ENTRY(JENERGY_ENERGY));
86 this->insert(MAKE_ENTRY(JENERGY_CHI2));
87 this->insert(MAKE_ENTRY(JGANDALF_LAMBDA));
89 this->insert(MAKE_ENTRY(JSTART_NPE_MIP));
90 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_TOTAL));
91 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_MISSED));
92 this->insert(MAKE_ENTRY(JSTART_LENGTH_METRES));
93 this->insert(MAKE_ENTRY(JVETO_NPE));
94 this->insert(MAKE_ENTRY(JVETO_NUMBER_OF_HITS));
97 this->insert(MAKE_ENTRY(JENERGY_NDF));
99 this->insert(MAKE_ENTRY(JCOPY_Z_M));
101 this->insert(MAKE_ENTRY(JPP_COVERAGE_POSITION));
102 this->insert(MAKE_ENTRY(JENERGY_MINIMAL_ENERGY));
103 this->insert(MAKE_ENTRY(JENERGY_MAXIMAL_ENERGY));
104 this->insert(MAKE_ENTRY(JSHOWERFIT_ENERGY));
105 this->insert(MAKE_ENTRY(AASHOWERFIT_ENERGY));
107
108#undef MAKE_ENTRY
109 }
#define MAKE_ENTRY(A)
static const int JENERGY_NDF
number of degrees of freedom from JEnergy.cc
static const int JGANDALF_LAMBDA
control parameter from JGandalf.cc
static const int JENERGY_ENERGY
uncorrected energy [GeV] from JEnergy.cc
static const int AASHOWERFIT_NUMBER_OF_HITS
number of hits used
static const int JENERGY_NOISE_LIKELIHOOD
log likelihood of every hit being K40 from JEnergy.cc
static const int JENERGY_CHI2
chi2 from JEnergy.cc
static const int JSTART_NPE_MIP_TOTAL
number of photo-electrons along the whole track from JStart.cc
static const int JENERGY_MUON_RANGE_METRES
range of a muon with the reconstructed energy [m] from JEnergy.cc
static const int JCOPY_Z_M
true vertex position along track [m] from JCopy.cc
static const int JVETO_NPE
number of photo-electrons from JVeto.cc
static const int JPP_COVERAGE_POSITION
coverage of dynamic position calibration from any Jpp application
static const int JENERGY_NUMBER_OF_HITS
number of hits from JEnergy.cc
static const int JSTART_LENGTH_METRES
distance between projected positions on the track of optical modules for which the response does not ...
static const int JGANDALF_BETA0_RAD
KM3NeT Data Definitions v3.6.0 https://git.km3net.de/common/km3net-dataformat.
static const int JGANDALF_NUMBER_OF_ITERATIONS
number of iterations from JGandalf.cc
static const int JVETO_NUMBER_OF_HITS
number of hits from JVeto.cc
static const int JSHOWERFIT_ENERGY
uncorrected energy [GeV] from JShowerFit.cc
static const int JPP_COVERAGE_ORIENTATION
coverage of dynamic orientation calibration from any Jpp application
static const int JGANDALF_BETA1_RAD
angular resolution [rad] from JGandalf.cc
static const int JENERGY_MINIMAL_ENERGY
minimal energy [GeV] from JEnergy.cc
static const int AASHOWERFIT_ENERGY
uncorrected energy [GeV]
static const int JSTART_NPE_MIP_MISSED
number of photo-electrons missed from JStart.cc
static const int JENERGY_MAXIMAL_ENERGY
maximal energy [GeV] from JEnergy.cc
static const int JSTART_NPE_MIP
number of photo-electrons up to the barycentre from JStart.cc
static const int JGANDALF_NUMBER_OF_HITS
number of hits from JGandalf.cc
static const int JGANDALF_CHI2
chi2 from JGandalf.cc

Member Function Documentation

◆ operator()() [1/2]

bool JRECONSTRUCTION::JWeight::operator() ( const std::string & key) const
inline

Has weight.

Parameters
keykey
Returns
true if valid key; else false

Definition at line 118 of file JReconstruction/JEvtToolkit.hh.

119 {
120 return this->count(key) != 0;
121 }

◆ operator()() [2/2]

double JRECONSTRUCTION::JWeight::operator() ( const JFit & fit,
const std::string & key,
const double value ) const
inline

Get weight.

Parameters
fitfit
keykey
valuedefault value
Returns
value

Definition at line 132 of file JReconstruction/JEvtToolkit.hh.

133 {
134 const_iterator p = this->find(key);
135
136 if (p != this->end() && fit.hasW(p->second))
137 return fit.getW(p->second);
138 else
139 return value;
140 }

The documentation for this struct was generated from the following file: