Jpp test-rotations-old-533-g2bdbdb559
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 78 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JWeight()

JRECONSTRUCTION::JWeight::JWeight ( )
inline

Default constructor.

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

85 {
86#define MAKE_ENTRY(A) std::make_pair(#A, A)
87
88 this->insert(MAKE_ENTRY(JGANDALF_BETA0_RAD));
89 this->insert(MAKE_ENTRY(JGANDALF_BETA1_RAD));
92 this->insert(MAKE_ENTRY(JENERGY_ENERGY));
93 this->insert(MAKE_ENTRY(JENERGY_CHI2));
94 this->insert(MAKE_ENTRY(JGANDALF_LAMBDA));
96 this->insert(MAKE_ENTRY(JSTART_ZMIN_M));
97 this->insert(MAKE_ENTRY(JSTART_ZMAX_M));
98 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_TOTAL));
99 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_MISSED));
100 this->insert(MAKE_ENTRY(JSTART_LENGTH_METRES));
101 this->insert(MAKE_ENTRY(JSTART_BACKGROUND_LOGP));
102 this->insert(MAKE_ENTRY(JVETO_NPE));
103 this->insert(MAKE_ENTRY(JVETO_NUMBER_OF_HITS));
106 this->insert(MAKE_ENTRY(JENERGY_NDF));
107 this->insert(MAKE_ENTRY(JENERGY_NUMBER_OF_HITS));
108 this->insert(MAKE_ENTRY(JCOPY_Z_M));
110 this->insert(MAKE_ENTRY(JPP_COVERAGE_POSITION));
111 this->insert(MAKE_ENTRY(JENERGY_MINIMAL_ENERGY));
112 this->insert(MAKE_ENTRY(JENERGY_MAXIMAL_ENERGY));
113 this->insert(MAKE_ENTRY(JSHOWERFIT_ENERGY));
114 this->insert(MAKE_ENTRY(AASHOWERFIT_ENERGY));
116
117#undef MAKE_ENTRY
118 }
#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-21-g1b37f88 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
static const int JSTART_ZMAX_M
end position of track
static const int JSTART_ZMIN_M
start position of track

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

128 {
129 return this->count(key) != 0;
130 }

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

142 {
143 const_iterator p = this->find(key);
144
145 if (p != this->end() && fit.hasW(p->second))
146 return fit.getW(p->second);
147 else
148 return value;
149 }

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