53 int main(
int argc,
char **argv)
61 typedef JParallelFileScanner_t::multi_pointer_type multi_pointer_type;
64 JParallelFileScanner_t inputFile;
70 size_t numberOfPrefits;
77 JParser<> zap(
"Program to determine veto of muon trajectory.");
82 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
83 zap[
'R'] =
make_field(roadWidth_m) = numeric_limits<double>::max();
92 catch(
const exception& error) {
93 FATAL(error.what() << endl);
114 VS +=
vs->getLength() * 1.0e-9;
122 while (inputFile.hasNext()) {
124 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
126 multi_pointer_type ps = inputFile.next();
139 buildL0(*tev, router,
true, back_inserter(dataL0));
142 for (JEvt::iterator track = cp.begin(); track != cp.end(); ++track) {
151 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
157 bool is_veto =
false;
161 const double t1 = hit.
getT() - tz.
getT(hit);
177 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
185 for (
unsigned int i = 0; i != module->size(); ++i) {
190 count += top.count(
id);
197 out.rbegin()->setW(track->getW());
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
Reduced data structure for L1 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
int main(int argc, char **argv)
Parallel scanning of objects from a single file or multiple files according a format that follows fro...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Scanning of objects from a single file according a format that follows from the extension of each fil...
ROOT TTree parameter settings of various packages.
Basic data structure for time and time over threshold information of hit.
Router for direct addressing of module data in detector data structure.
JFit & add(const int type)
Add event to history.
Data structure for fit of straight line paralel to z-axis.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
double getDistance(const JVector3D &pos) const
Get distance.
JAxis3D & rotate(const JRotation3D &R)
Rotate axis.
Data structure for position in three dimensions.
JPosition3D & rotate(const JRotation3D &R)
Rotate.
Utility class to parse command line options.
General purpose class for parallel reading of objects from a single file or multiple files.
Object reading from a list of files.
Template specialisation of L0 builder for JHitL0 data type.
Data structure for L0 hit.
double getT() const
Get calibrated time of hit.
const JDAQPMTIdentifier & getPMTIdentifier() const
Get PMT identifier.
static const int JMUONVETO
static const int JVETO_NPE
number of photo-electrons from JVeto.cc
static const int JVETO_NUMBER_OF_HITS
number of hits from JVeto.cc
JDirection3D getDirection(const Vec &dir)
Get direction.
JPosition3D getPosition(const Vec &pos)
Get position.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
KM3NeT DAQ data structures and auxiliaries.
Auxiliary class for defining the range of iterations of objects.
const JLimit & getLimit() const
Get limit.