41 int main(
int argc,
char **argv)
45 using namespace KM3NETDAQ;
59 JParser<> zap(
"Program to perform pre-fit of muon trajectory to data.");
64 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
70 catch(
const exception& error) {
71 FATAL(error.what() << endl);
92 while (inputFile.hasNext()) {
94 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
106 JEvt::iterator __end = out.end();
108 if (
parameters.numberOfPrefits < out.size()) {
125 JEvt::iterator __p = __end;
140 out.erase(__end, out.end());
Utility class to parse command line options.
Wrapper class to make pre-fit of muon trajectory.
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
ROOT TTree parameter settings of various packages.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Recording of objects on file according a format that follows from the file name extension.
Router for direct addressing of module data in detector data structure.
Data structure for fit parameters.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Data structure for detector geometry and calibration.
Auxiliary base class for file name.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliary class for defining the range of iterations of objects.
Auxiliary class for recursive type list generation.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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.
Direct access to module in detector data structure.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Utility class to parse command line options.
Object reading from a list of files.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
bool qualitySorter(const JRECONSTRUCTION::JFit &first, const JRECONSTRUCTION::JFit &second)
Comparison of fit results.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])