Jpp 20.0.0-rc.2
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 74 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JWeight()

JRECONSTRUCTION::JWeight::JWeight ( )
inline

Default constructor.

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

81 {
82#define MAKE_ENTRY(A) std::make_pair(#A, A)
83
84 this->insert(MAKE_ENTRY(JGANDALF_BETA0_RAD));
85 this->insert(MAKE_ENTRY(JGANDALF_BETA1_RAD));
88 this->insert(MAKE_ENTRY(JENERGY_ENERGY));
89 this->insert(MAKE_ENTRY(JENERGY_CHI2));
90 this->insert(MAKE_ENTRY(JGANDALF_LAMBDA));
92 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_TOTAL));
93 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_MISSED));
94 this->insert(MAKE_ENTRY(JSTART_LENGTH_METRES));
96 this->insert(MAKE_ENTRY(JVETO_NPE));
97 this->insert(MAKE_ENTRY(JVETO_NUMBER_OF_HITS));
100 this->insert(MAKE_ENTRY(JENERGY_NDF));
101 this->insert(MAKE_ENTRY(JENERGY_NUMBER_OF_HITS));
102 this->insert(MAKE_ENTRY(JCOPY_Z_M));
104 this->insert(MAKE_ENTRY(JPP_COVERAGE_POSITION));
105 this->insert(MAKE_ENTRY(JENERGY_MINIMAL_ENERGY));
106 this->insert(MAKE_ENTRY(JENERGY_MAXIMAL_ENERGY));
107 this->insert(MAKE_ENTRY(JSHOWERFIT_ENERGY));
108 this->insert(MAKE_ENTRY(AASHOWERFIT_ENERGY));
110
111#undef MAKE_ENTRY
112 }
#define MAKE_ENTRY(A)
static const int JGANDALF_LIKELIHOOD_RATIO
likelihood ratio between this and best alternative fit from JMuonGandalf
static const int JENERGY_NDF
number of degrees of freedom from JMuonEnergy
static const int JGANDALF_LAMBDA
largest eigenvalue of error matrix from JMuonGandalf
static const int JENERGY_ENERGY
uncorrected energy [GeV] from JMuonEnergy
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 JMuonEnergy
static const int JENERGY_CHI2
chi2 from JMuonEnergy
static const int JSTART_NPE_MIP_TOTAL
number of photo-electrons along the whole track from JMuonStart
static const int JENERGY_MUON_RANGE_METRES
range of a muon with the reconstructed energy [m] from JMuonEnergy
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 JMuonEnergy
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.1-2-g905a24d https://git.km3net.de/common/km3net-dataformat.
static const int JGANDALF_NUMBER_OF_ITERATIONS
number of iterations from JMuonGandalf
static const int JVETO_NUMBER_OF_HITS
number of hits from JVeto.cc
static const int JSHOWERFIT_ENERGY
uncorrected energy [GeV] from JShowerFit
static const int JPP_COVERAGE_ORIENTATION
coverage of dynamic orientation calibration from any Jpp application
static const int JSTART_BACKGROUND_LOGP
summed logarithm of background probabilities from JMuonStart
static const int JGANDALF_BETA1_RAD
uncertainty on the reconstructed track direction from the error matrix [rad] (to be deprecated) from ...
static const int JENERGY_MINIMAL_ENERGY
minimal energy [GeV] from JMuonEnergy
static const int AASHOWERFIT_ENERGY
uncorrected energy [GeV]
static const int JSTART_NPE_MIP_MISSED
number of photo-electrons missed from JMuonStart
static const int JENERGY_MAXIMAL_ENERGY
maximal energy [GeV] from JMuonEnergy
static const int JGANDALF_NUMBER_OF_HITS
number of hits from JMuonGandalf

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 121 of file JReconstruction/JEvtToolkit.hh.

122 {
123 return this->count(key) != 0;
124 }

◆ 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 135 of file JReconstruction/JEvtToolkit.hh.

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

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