Jpp 20.0.0-195-g190c9e876
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 79 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JWeight()

JRECONSTRUCTION::JWeight::JWeight ( )
inline

Default constructor.

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

86 {
87#define MAKE_ENTRY(A) std::make_pair(#A, A)
88
89 this->insert(MAKE_ENTRY(JGANDALF_BETA0_RAD));
90 this->insert(MAKE_ENTRY(JGANDALF_BETA1_RAD));
93 this->insert(MAKE_ENTRY(JENERGY_ENERGY));
94 this->insert(MAKE_ENTRY(JENERGY_CHI2));
95 this->insert(MAKE_ENTRY(JGANDALF_LAMBDA));
97 this->insert(MAKE_ENTRY(JSTART_ZMIN_M));
98 this->insert(MAKE_ENTRY(JSTART_ZMAX_M));
99 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_TOTAL));
100 this->insert(MAKE_ENTRY(JSTART_NPE_MIP_MISSED));
101 this->insert(MAKE_ENTRY(JSTART_LENGTH_METRES));
102 this->insert(MAKE_ENTRY(JSTART_BACKGROUND_LOGP));
103 this->insert(MAKE_ENTRY(JVETO_NPE));
104 this->insert(MAKE_ENTRY(JVETO_NUMBER_OF_HITS));
107 this->insert(MAKE_ENTRY(JENERGY_NDF));
108 this->insert(MAKE_ENTRY(JENERGY_NUMBER_OF_HITS));
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 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-4-g8b3df20 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/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: