64 return first.
t < second.
t;
103 return(
abs(A.first - A.second) >
abs(B.first - B.second) ) ;
128 unsigned int multiplicity;
135 JParser<> zap(
"Program to create L1 hit time difference histograms from raw data.");
144 zap[
'm'] =
make_field(multiplicity,
"minimal multiplicity of the L1 hits") = 2;
146 zap[
'L'] =
make_field(livetime_s,
"livetime of the data, set to positive value") = -1.0;
152 catch(
const exception &error) {
174 const double ctMin = -1;
181 const double xmin = -0.5;
182 const double xmax =
nx - 0.5;
197 NOTICE(
"Running JMonitorL1dt: Monitoring L1 time differences and creating histograms." <<
endl);
213 for (JDetector::iterator mod =
detector.begin(); mod !=
detector.end(); ++mod) {
226 for ( ; in.
hasNext() && counter != inputFile.getLimit(); ++counter) {
240 const JModule&
module = detector.getModule(address);
256 for (
unsigned int i = 0; i <
detector.size(); ++i) {
262 sort(buffer.begin(), buffer.end());
269 while (++q != buffer.end() && q->t - p->t <=
Timewindow_ns ) {
293 if (livetime_s > 0.0) {
297 hl->SetBinContent(
ibin, livetime_s);
298 hl->SetBinError(
ibin, 0.0000001);
KM3NeT DAQ constants, bit handling, etc.
Data structure for detector geometry and calibration.
Basic data structure for L1 hit.
Dynamic ROOT object management.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
int main(int argc, char **argv)
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.
Address of module in detector data structure.
int first
index of module in detector data structure
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
Data structure for a composite optical module.
Auxiliary class for multiplexing object iterators.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
Wrapper class around STL string class.
Template definition of a multi-dimensional oscillation probability interpolation table.
JReader & read(JReader &in) override final
Read from input.
Data structure for hit time and DOM identifier.
JElement(const int __id, const double __t)
int getNumberOfFloors(const JDetector &detector)
Get number of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects.
const double getSpeedOfLight()
Get speed of light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double getFrameTime()
Get frame time duration.
bool operator<(const JElement &first, const JElement &second)
Sort JElement in time.
bool comparepair(const pair_type &A, const pair_type &B)
JCombinatorics::pair_type pair_type
Auxiliary class to select ROOT class based on class name.
Data structure for L2 parameters.
Auxiliary data structure for histogram management.
JHistogram(TH2D *__h2s, TH1D *__h1l)
Constructor.
JHistogram()
Default constructor.