39 using namespace JLANG;
43 int main(
int argc ,
char** argv){
65 catch(
const exception &error) {
66 ERROR(error.what() << endl);
74 int pulse_period = 1e9/(frequency*1e3);
86 for(JDetector::iterator module =
detector.begin(); module !=
detector.end(); ++module){
88 int String = module->getString();
89 int Floor = module->getFloor();
94 int PMT =
static_cast<int>(hit->getPMT());
95 if(
PMT == PMTSelector){
96 double raw_time = hit->getT();
97 double time = raw_time - pulse_period * int(raw_time/pulse_period) - Stagger*(Floor - 1);
98 double ToT = hit->getToT();
106 cout <<
" Writing histograms to output" << endl;
107 TFile output(outFile.c_str() ,
"recreate") ;
108 Pulses -> Write(output);
JDAQPMTIdentifier PMT
Command line options.
KM3NeT DAQ constants, bit handling, etc.
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
Basic data structure for L0 hit.
Dynamic ROOT object management.
Direct access to module in detector data structure.
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
#define MAKE_STRING(A)
Make string.
ROOT TTree parameter settings of various packages.
Router for direct addressing of module data in detector data structure.
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
const_iterator end() const
const_iterator begin() const
Data frame of one optical module.
file Auxiliary data structures and methods for detector calibration.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Auxiliary classes and methods for language specific functionality.
std::string to_string(const T &value)
Convert value to string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Support classes and methods for experiment specific I/O.
KM3NeT DAQ data structures and auxiliaries.
General purpose string class.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.
void configure(const JDAQTimeslice ×lice)
Configure.
bool hasSuperFrame(const JDAQModuleIdentifier &module) const
Check presence of module.
Timeslice data structure for L0 data.