1 #ifndef __JSUPPORT__JSUPPORTTOOLKIT__
2 #define __JSUPPORT__JSUPPORTTOOLKIT__
7 #include "TDirectory.h"
31 namespace JPP {
using namespace JSUPPORT; }
77 return in.next()->getRunNumber();
93 return JFrameIndexRange(in.begin()->getFrameIndex(), in.rbegin()->getFrameIndex());
110 TDirectory* dir = TDirectory::CurrentDirectory();
122 while (
in.hasNext()) {
123 result.
include(
in.next()->getFrameIndex());
156 return JDAQUTCTimeRange(in.begin()->getTimesliceStart(), in.rbegin()->getTimesliceStart());
173 TDirectory* dir = TDirectory::CurrentDirectory();
184 result.
include(
in.next()->getTimesliceStart());
209 for (
T i = __begin;
i != __end; ++
i) {
214 buffer = getUTCTimeRange<KM3NETDAQ::JDAQTimeslice>(*i);
232 using namespace KM3NETDAQ;
233 using namespace JTRIGGER;
235 TDirectory* dir = TDirectory::CurrentDirectory();
250 catch(
const std::exception& error) {}
272 for (
T i = __begin;
i != __end; ++
i) {
288 return getLivetime(file_list.begin(), file_list.end());
JDAQUTCTimeRange getUTCTimeRange()
Get UTC time range.
JFrameIndexRange getFrameIndexRange(JTreeScannerInterface< T, KM3NETDAQ::JDAQEvaluator > &in)
Get range of frame indices.
JTOOLS::JRange< int > JFrameIndexRange
Type definition for frame index range.
Data structure for all trigger parameters.
Auxiliary interface for direct access of elements in ROOT TChain.
*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
Data structure for UTC time.
Template definition for direct access of elements in ROOT TChain.
ROOT TTree parameter settings.
bool isROOTFile(const char *file_name)
Check file format.
double getTimeDuration(const JDAQUTCTimeRange &utc)
Get time duration of given UTC time range.
JPrescaler writeSummary
write JDAQSummaryslice
double getFrameTime()
Get frame time duration.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
int getRunNumber(const std::string &file_name)
Get run number for given file name of data taking run.
JTOOLS::JRange< JDAQUTCExtended > JDAQUTCTimeRange
Type definition for DAQ UTC time range.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Auxiliary base class for list of file names.
Normalisation of MUPAGE events.
Auxiliary class to define a range between two values.
double getLivetime(const std::string &file_name)
Get data taking live time.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Object reading from file.
Specifications of file name extensions.
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.