Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JTrigger3DShower.hh
Go to the documentation of this file.
1#ifndef __JTRIGGER__JTRIGGER3DSHOWER__
2#define __JTRIGGER__JTRIGGER3DSHOWER__
3
8
9
10/**
11 * \author mdejong
12 */
13
14namespace JTRIGGER {}
15namespace JPP { using namespace JTRIGGER; }
16
17namespace JTRIGGER {
18
19 /**
20 * Shower trigger.
21 */
23 public JTrigger3D
24 {
25 public:
26 /**
27 * Constructor.
28 *
29 * \param input trigger parameters
30 */
34
35
36 /**
37 * Convert trigger parameters.
38 *
39 * \param input trigger parameters
40 * \return trigger parameters
41 */
43 {
44 using namespace JTOOLS;
45
46 const double TMaxEvent_ns = input.DMax_m * getIndexOfRefraction() * getInverseSpeedOfLight();
47
49 input.numberOfHits,
50 input.numberOfModules,
51 TMaxEvent_ns + input.TMaxExtra_ns,
53 input.factoryLimit);
54 }
55 };
56}
57
58#endif
Match operator for Cherenkov light from shower in any direction.
Physics constants.
3G match criterion.
Definition JMatch3G.hh:31
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger
double DMax_m
maximal distance between PMTs [m]
int numberOfModules
minimal number of modules to trigger event
int numberOfHits
minimal number of hits to trigger event
static JTrigger3D::JParameters getParameters(const JTrigger3DShower_t::JParameters &input)
Convert trigger parameters.
JTrigger3DShower(const JTrigger3DShower_t::JParameters &input)
Constructor.
General purpose majority trigger.
Definition JTrigger3D.hh:32
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
const double getInverseSpeedOfLight()
Get inverse speed of light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for multi-dimensional interpolations and histograms.
Auxiliary classes and methods for triggering.