39 int main(
int argc, 
char **argv)
 
   43   using namespace KM3NETDAQ;
 
   46   typedef JTriggeredFileScanner_t::multi_pointer_type     multi_pointer_type;
 
   48   JTriggeredFileScanner_t inputFile;
 
   52   size_t                  numberOfPrefits;
 
   61     JParser<> zap(
"Example program to histogram fit results.");
 
   66     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   69     zap[
'Q'] = 
make_field(quality)             = numeric_limits<double>::min();
 
   76   catch(
const exception& error) {
 
   77     FATAL(error.what() << endl);
 
   95   const double Xmax = E_GeV.is_valid() ? volume.
getX(E_GeV.getMaximum()) :  volume.
getXmax();
 
   96   const double Xmin = E_GeV.is_valid() ? volume.
getX(E_GeV.getMinimum()) :  volume.
getXmin();
 
  100   TH1D* hN = 
new TH1D(
"hN", NULL, 25, Xmin, Xmax);
 
  101   TH1D* he = 
new TH1D(
"he", NULL, 25, Xmin, Xmax);
 
  117   STATUS(
"Detector Geometry:" << endl);
 
  118   STATUS(
"Zmin: "     << cylinder.getZmin() << endl);
 
  119   STATUS(
"Zmax: "     << cylinder.getZmax() << endl);
 
  120   STATUS(
"Z origin: " << 0.5 * (cylinder.getZmax() + cylinder.getZmin()) << endl);
 
  121   STATUS(
"Radius: "   << cylinder.getRadius() << endl);
 
  123   while (inputFile.hasNext()) {
 
  125     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  127     multi_pointer_type ps = inputFile.next();
 
  136       const double X = volume.
getX(neutrino.
E);
 
  142         JEvt::iterator __end = evt->end();
 
  144         if (numberOfPrefits > 0) {      
 
  146           advance(__end = evt->begin(), min(numberOfPrefits, evt->size()));
 
  148           partial_sort(evt->begin(), __end, evt->end(), 
qualitySorter);
 
  152         for(JEvt::const_iterator track = evt->begin(); track != __end; ++track) {
 
  158           if ((pos.
getZ() > cylinder.getZmin()
 
  159           &&   pos.
getZ() < cylinder.getZmax()
 
  160           &&   R < cylinder.getRadius())
 
  180       WARNING(
"No neutrino." << endl);
 
Utility class to parse command line options. 
 
Double_t getXmin() const 
Get minimal abscissa value. 
 
Q(UTCMax_s-UTCMin_s)-livetime_s
 
int main(int argc, char *argv[])
 
ROOT TTree parameter settings of various packages. 
 
Synchronously read DAQ events and Monte Carlo events (and optionally other events). 
 
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino. 
 
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
 
Double_t getXmax() const 
Get maximal abscissa value. 
 
Double_t getX(const Double_t E, double constrain=false) const 
Get abscissa value. 
 
double E
Energy [GeV] (either MC truth or reconstructed) 
 
Data structure for detector geometry and calibration. 
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header. 
 
Auxiliary class for histogramming of effective volume. 
 
Auxiliary class for defining the range of iterations of objects. 
 
static const int JGANDALF_NUMBER_OF_HITS
number of hits from JGandalf.cc 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
then break fi done getCenter read X Y Z let X
 
double getY() const 
Get y position. 
 
then usage $script[distance] fi case set_variable R
 
General purpose messaging. 
 
counter_type advance(counter_type &counter, const counter_type value, const counter_type limit=std::numeric_limits< counter_type >::max())
Advance counter. 
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
Auxiliary class to define a range between two values. 
 
Utility class to parse command line options. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
double getX() const 
Get x position. 
 
Data structure for position in three dimensions. 
 
const JLimit & getLimit() const 
Get limit. 
 
static const int JGANDALF_CHI2
chi2 from JGandalf.cc 
 
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. 
 
double getZ() const 
Get z position. 
 
bool qualitySorter(const JRECONSTRUCTION::JFit &first, const JRECONSTRUCTION::JFit &second)
Comparison of fit results. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.