Jpp 21.0.0-rc.1
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.
 
double operator() (const Trk &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 80 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JWeight()

JRECONSTRUCTION::JWeight::JWeight ( )
inline

Default constructor.

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

87 {
88#define MAKE_ENTRY(A) std::make_pair(#A, A)
89
90 this->insert(MAKE_ENTRY(JGANDALF_BETA0_RAD));
91 this->insert(MAKE_ENTRY(JGANDALF_BETA1_RAD));
94 this->insert(MAKE_ENTRY(JENERGY_ENERGY));
95 this->insert(MAKE_ENTRY(JENERGY_CHI2));
96 this->insert(MAKE_ENTRY(JGANDALF_LAMBDA));
98 this->insert(MAKE_ENTRY(JSTART_ZMIN_M));
99 this->insert(MAKE_ENTRY(JSTART_ZMAX_M));
100 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_TOTAL));
101 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_MISSED));
102 this->insert(MAKE_ENTRY(JSTART_LENGTH_METRES));
103 this->insert(MAKE_ENTRY(JSTART_BACKGROUND_LOGP));
104 this->insert(MAKE_ENTRY(JVETO_NPE));
105 this->insert(MAKE_ENTRY(JVETO_NUMBER_OF_HITS));
108 this->insert(MAKE_ENTRY(JENERGY_NDF));
109 this->insert(MAKE_ENTRY(JENERGY_NUMBER_OF_HITS));
111 this->insert(MAKE_ENTRY(JPP_COVERAGE_POSITION));
112 this->insert(MAKE_ENTRY(JENERGY_MINIMAL_ENERGY));
113 this->insert(MAKE_ENTRY(JENERGY_MAXIMAL_ENERGY));
114 this->insert(MAKE_ENTRY(JSHOWERFIT_ENERGY));
115 this->insert(MAKE_ENTRY(AASHOWERFIT_ENERGY));
117
118#undef MAKE_ENTRY
119 }
#define MAKE_ENTRY(A)
static const int JGANDALF_LIKELIHOOD_RATIO
likelihood ratio between this and best alternative fit see JRECONSTRUCTION::JMuonGandalf
static const int JSTART_ZMAX_M
end position of track see JRECONSTRUCTION::JMuonStart
static const int JENERGY_NDF
number of degrees of freedom see JRECONSTRUCTION::JMuonEnergy
static const int JGANDALF_LAMBDA
largest eigenvalue of error matrix see JRECONSTRUCTION::JMuonGandalf
static const int JENERGY_ENERGY
uncorrected energy [GeV] see JRECONSTRUCTION::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 see JRECONSTRUCTION::JMuonEnergy
static const int JENERGY_CHI2
chi2 see JRECONSTRUCTION::JMuonEnergy
static const int JSTART_NPE_MIP_TOTAL
number of photo-electrons along the whole track see JRECONSTRUCTION::JMuonStart
static const int JENERGY_MUON_RANGE_METRES
range of a muon with the reconstructed energy [m] see JRECONSTRUCTION::JMuonEnergy
static const int JPP_COVERAGE_POSITION
coverage of dynamic position calibration of this event
static const int JENERGY_NUMBER_OF_HITS
number of hits see JRECONSTRUCTION::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 JSTART_ZMIN_M
start position of track see JRECONSTRUCTION::JMuonStart
static const int JGANDALF_BETA0_RAD
ile KM3NeT Data Definitions v3.6.2-10-g294bec6 https://git.km3net.de/common/km3net-dataformat
static const int JGANDALF_NUMBER_OF_ITERATIONS
number of iterations see JRECONSTRUCTION::JMuonGandalf
static const int JSHOWERFIT_ENERGY
uncorrected energy [GeV] see JRECONSTRUCTION::JShowerFit
static const int JPP_COVERAGE_ORIENTATION
coverage of dynamic orientation calibration of this event
static const int JSTART_BACKGROUND_LOGP
summed logarithm of background probabilities see JRECONSTRUCTION::JMuonStart
static const int JGANDALF_BETA1_RAD
uncertainty on the reconstructed track direction from the error matrix [rad] see JRECONSTRUCTION::JMu...
static const int JENERGY_MINIMAL_ENERGY
minimal energy [GeV] see JRECONSTRUCTION::JMuonEnergy
static const int AASHOWERFIT_ENERGY
uncorrected energy [GeV]
static const int JSTART_NPE_MIP_MISSED
number of photo-electrons missed see JRECONSTRUCTION::JMuonStart
static const int JENERGY_MAXIMAL_ENERGY
maximal energy [GeV] see JRECONSTRUCTION::JMuonEnergy
static const int JGANDALF_NUMBER_OF_HITS
number of hits see JRECONSTRUCTION::JMuonGandalf
static const int JVETO_NPE
number of photo-electrons
static const int JVETO_NUMBER_OF_HITS
number of hits

Member Function Documentation

◆ operator()() [1/3]

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

Has weight.

Parameters
keykey
Returns
true if valid key; else false

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

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

◆ operator()() [2/3]

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

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

◆ operator()() [3/3]

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

Get weight.

Parameters
fitfir
keykey
valuedefault value
Returns
value

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

162 {
163 const_iterator p = this->find(key);
164
165 if (p != this->end() && fit.fitinf.size() > (size_t) p->second)
166 return fit.fitinf[p->second];
167 else
168 return value;
169 }
std::vector< double > fitinf
place to store additional fit info, see km3net-dataformat/definitions/fitparameters....
Definition Trk.hh:32

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