43 struct JK40DefaultSimulator_t :
49 JK40DefaultSimulator_t() :
62 friend inline std::istream&
operator>>(std::istream& in, JK40DefaultSimulator_t&
object)
102 JK40DefaultSimulator_t k40Simulator;
109 JParser<> zap(
"Example program to test hit coincidence building with random data.");
121 catch(
const exception &error) {
138 simbad.reset(k40Simulator.clone());
157 JSuperFrame2D_t buffer;
164 const int frame_index = 1;
176 const JModule&
module = detector.getModule(moduleRouter.getAddress(super_frame->getModuleID()));
185 if (!dataL1.empty()) {
192 for (
int i = 1; i <=
hn.GetNbinsX(); ++i) {
194 buildL2.numberOfHits = (
int)
hn.GetBinCenter(i);
200 hn.Fill((
double) buildL2.numberOfHits, (
double) d2.size() / (
double) dataL1.size());
207 if (!dataL1.empty()) {
214 for (
int i = 1; i <=
hc.GetNbinsX(); ++i) {
216 buildL2.ctMin =
hc.GetBinCenter(i);
222 hc.Fill(buildL2.ctMin, (
double) d2.size() / (
double) dataL1.size());
229 if (!dataL1.empty()) {
236 for (
int i =
ht.GetNbinsX(); i != 0; --i) {
238 buildL2.TMaxLocal_ns =
ht.GetBinCenter(i);
244 ht.Fill(buildL2.TMaxLocal_ns, (
double) d2.size() / (
double) dataL1.size());
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Direct access to module in detector data structure.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Basic data structure for time and time over threshold information of hit.
Default implementation of the simulation of K40 background.
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
Data structure for a composite optical module.
Auxiliary class for map of PMT parameters.
Template definition of a multi-dimensional oscillation probability interpolation table.
Data structure for UTC time.
std::istream & operator>>(std::istream &in, morphology_type &object)
Read morphology from input stream.
T & getInstance(const T &object)
Get static instance from temporary object.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
Transmission with position.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary data structure for L1 build parameters.
Data structure for L2 parameters.
Timeslice with random data.