51 typedef JTriggeredFileScanner_t::multi_pointer_type multi_pointer_type;
54 JLimit_t& numberOfEvents = inputFile.getLimit();
57 size_t numberOfPrefits;
67 JParser<> zap(
"Program to histogram fit results from reconstructed data.");
88 const double R_m = 700.0;
104 TH1D hq (
"hq",
"; quality parameter" , 200, -200.0, 800);
105 TH1D hb0 (
"hb0",
"; log(beta0)" , 60, -2.0, 3.5);
117 while (inputFile.hasNext()) {
121 multi_pointer_type ps = inputFile.next();
132 if (evt->begin() == __end) {
136 if (numberOfPrefits > 0) {
138 JEvt::iterator
__q = __end;
140 advance(__end = evt->begin(), min(numberOfPrefits, (
size_t)
distance(evt->begin(),
__q)));
149 if (numberOfPrefits > 0) {
150 advance(__end = evt->begin(), min(numberOfPrefits, evt->size()));
153 for (JEvt::const_iterator fit = evt->begin(); fit != __end; ++fit) {
161 const double overlays =
tev->getOverlays();
162 const double Efit = fit->getE();
166 hz .Fill(
track.getDZ());
170 hq .Fill(fit->getQ());
171 hzq.Fill(
track.getDZ(), fit->getQ() );
192 STATUS(
"Number of events input " <<
setw(8) << right <<
job.GetBinContent(1) <<
endl);
int main(int argc, char **argv)
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...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
ROOT TTree parameter settings of various packages.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
Template definition of a multi-dimensional oscillation probability interpolation table.
static const int JENERGY_NUMBER_OF_HITS
number of hits see JRECONSTRUCTION::JMuonEnergy
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
counter_type advance(counter_type &counter, const counter_type value, const counter_type limit=std::numeric_limits< counter_type >::max())
Advance counter.
KM3NeT DAQ data structures and auxiliaries.
Auxiliary class to test history.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
General purpose sorter of fit results.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Reconstruction type dependent comparison of track quality.