51 inline std::ostream&
operator<<(std::ostream& out,
const bits_t&
object)
53#define PRINT_BIT(OUT, A) OUT << (int) A << " -> " << #A << std::endl;
82 typedef JTriggeredFileScanner_t::multi_pointer_type multi_pointer_type;
85 JLimit_t& numberOfEvents = inputFile.getLimit();
104 catch(
const exception& error) {
117 multi_pointer_type ps = inputFile.next();
135 __end =
partition(__end, event->mc_trks.end(), [
id](
const Trk&
trk) { return is_lepton(trk) && trk.mother_id == id; });
138 event->mc_trks.erase(__end, event->mc_trks.end());
151 __end = next(evt->begin());
155 for (JEvt::iterator i = evt->begin(),
__q = __end; i !=
__q; ++i) {
156 __end =
partition(__end, evt->end(), [i,
keep](
const JFit& fit) { return i->getHistory().match(fit.getHistory()) && keep.count(fit.getHistory().rbegin()->type) != 0; });
160 evt->erase(__end, evt->end());
165 tev->setCounter(counter);
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
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.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
int getStatus() const
Get status of the fit; negative values should refer to a bad fit.
Template definition of a multi-dimensional oscillation probability interpolation table.
int main(int argc, char **argv)
#define PRINT_BIT(OUT, A)
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
std::ostream & operator<<(std::ostream &out, const morphology_type &object)
Write morphology to output stream.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Hit > mc_hits
MC: list of MC truth hits.
Auxiliary class for handling status.
bool has(const int bit) const
Test PMT status.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.