46 inline const char*
const track_t() {
return "track"; }
47 inline const char*
const shower_t() {
return "shower"; }
92 JParser<> zap(
"Example program to analyse track fit results from Evt formatted data.");
114 catch(
const exception& error) {
119 FATAL(
"Cannot apply weighting to limited number of events.");
142 const Trk& (*get_best_fit)(
const Evt&);
294 const Evt* evt = in.next();
296 const double weight = (
useWeights ? scanner->getWeight(*evt) : 1.0);
313 const double logE =
log10(
tb.getE());
326 RIGHT (15) << in.getCounter() <<
331 hz .Fill(
tb.getDZ(), weight);
332 he .Fill(logE, weight);
337 hze.Fill(
tb.getDZ(), logE, weight);
344 hxy.Fill(
tb.getX(),
tb.getY(), weight);
370 const double t0 =
tb.getT(pmt);
373 ht .Fill(t1 - t0, weight);
375 hzt.Fill(
tb.getDZ(), t1 - t0, weight);
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
Auxiliaries for defining the range of iterations of objects.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Direct access to PMT in detector data structure.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_CSTRING(A)
Make C-string.
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Auxiliary class to define a range between two values.
ROOT TTree parameter settings of various packages.
Template specialisation for a map between event categories and event-weight factor products.
Router for direct addressing of PMT data in detector data structure.
bool hasPMT(const JObjectID &id) const
Has PMT.
const JPMT & getPMT(const JPMTAddress &address) const
Get PMT.
Data structure for PMT geometry, calibration and status.
Utility class to parse parameter values.
Template definition of a multi-dimensional oscillation probability interpolation table.
double getBaseline(const double costh) const override final
Get baseline for a given cosine zenith angle.
static const int JGANDALF_BETA0_RAD
ile KM3NeT Data Definitions v3.6.2 https://git.km3net.de/common/km3net-dataformat
JTrack3E getTrack(const Trk &track)
Get track.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const JCylinder3D getMaximumContainmentVolume()
Forward function declarations.
const char * getTime()
Get current local time conform ISO-8601 standard.
KM3NeT DAQ data structures and auxiliaries.
const char *const track_t
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Hit > hits
list of hits
unsigned int overlays
number of overlaying triggered events
ULong64_t trig
non-zero if the hit is a trigger hit.
double t
hit time (from tdc+calibration or MC truth)
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary base class for list of file names.
Auxiliary data structure for alignment of data.
Auxiliary data structure for floating point format specification.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.