37 using namespace KM3NETDAQ ;
38 using namespace JSUPPORT;
39 using namespace JLANG;
40 using namespace JDETECTOR ;
43 int main(
int argc ,
char** argv){
65 catch(
const exception &error) {
66 ERROR(error.what() << endl);
69 load(detectorFile, detector);
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);
const JDAQSuperFrame & getSuperFrame(const JDAQModuleIdentifier &module) const
Get super frame.
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Basic data structure for L0 hit.
Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the op...
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
void configure(const JDAQTimeslice ×lice)
Configure.
bool hasSuperFrame(const JDAQModuleIdentifier &module) const
Check presence of module.
Router for direct addressing of module data in detector data structure.
Dynamic ROOT object management.
Data structure for detector geometry and calibration.
#define MAKE_STRING(A)
Make string.
Basic data structure for L0 hit.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
virtual bool hasNext() override
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const_iterator begin() const
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Direct access to module in detector data structure.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
General purpose string class.
std::string to_string(const T &value)
Convert value to string.
virtual const pointer_type & next() override
Get next element.
do set_variable DETECTOR_TXT $WORKDIR detector
KM3NeT DAQ constants, bit handling, etc.
Data frame of one optical module.
Timeslice data structure for L0 data.
const_iterator end() const