51 tr->Branch(
"dom_id", &
obs.moduleID,
"dom_id/I");
52 tr->Branch(
"vetoIndex", &
obs.vetoIndex,
"vetoIndex/I");
53 tr->Branch(
"event_time", &
obs.time,
"event_time/D");
54 tr->Branch(
"timeslice_time_s", &
obs.timeslice_time,
"timeslice_time_s/D");
56 tr->Branch(
"multiplicity", &(
obs.multiplicity),
"multiplicity/I");
67 JLimit_t& numberOfEvents = inputFile.getLimit();
82 JParser<> zap(
"Example application to study supernova detection background");
97 catch(
const exception &error) {
112 TTree *
tr =
new TTree(
"singledom",
"SN coincidence info");
128 pts->configure(inputFile);
133 int fEnd =
pts->rbegin()->getFrameIndex();
134 int fStart =
pts->begin( )->getFrameIndex();
138 if (
fEnd > inputFile.getUpperLimit()) {
159 TH1D*
h_vtr =
new TH1D(
"VetoTimeRange",
"VetoTimeRange", 10000, 0, 10000);
165 for (;
evIn.hasNext(); ) {
171 if (!runNumber) { runNumber =
event->getRunNumber(); }
190 tr->SetDirectory(out);
192 for ( ;
pts->hasNext() && counter != inputFile.getLimit(); ++counter) {
Data structure for detector geometry and calibration.
int main(int argc, char **argv)
int initialize_root_tree(JCoincidenceSN &obs, int *frame_number, TTree *tr)
Initialize the output ROOT file with CCSN candidate information.
General purpose messaging.
#define DEBUG(A)
Message macros.
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
I/O formatting auxiliaries.
ROOT TTree parameter settings of various packages.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
Router for direct addressing of module data in detector data structure.
Template definition of a multi-dimensional oscillation probability interpolation table.
Auxiliary class to store reduced information of a coincidence on an optical module This class allows ...
Auxiliary class to build the supernova trigger dataset.
SN filter based on veto window.
SN filter based on multiplicity selection optional suppression of multi-module coincidences WARNING: ...
Auxiliary class to apply the supernova trigger to SN data.
Auxiliary class to manage a set of vetoes.
Auxiliary class to define a veto time window on a set of optical modules.
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
int getFrameIndex() const
Get frame index.
Data structure for UTC time.
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).
Auxiliary classes and methods for ROOT I/O.
KM3NeT DAQ data structures and auxiliaries.
Type definition of range.
Auxiliary class to select ROOT class based on class name.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary class to select DAQ hits based on time-over-treshold value.