1 #ifndef __JTRIGGER__JTRIGGERMXSHOWER__ 
    2 #define __JTRIGGER__JTRIGGERMXSHOWER__ 
   65     if      (d <= 0.5 * parameters.DMax_m)
 
   67     else if (d <= parameters.DMax_m)
 
  127     template<
class JElement_t>
 
  130                     std::back_insert_iterator<JTriggerOutput> out)
 const 
  133       typedef typename JTimeslice_t::value_type          
JFrame_t;
 
  138         JTimeslice_t clone(inputL0, 
mapper);
 
  140         for (JTriggerInput::const_iterator 
root = inputL1.begin(); 
root != inputL1.end(); ++
root) {
 
  146           for (
typename container_type::const_iterator mod = zip.begin(); mod != zip.end(); ++mod) {
 
  148             const double Tmin  = 
root->getT() + mod->Tmin_ns;
 
  149             const double Tmax  = 
root->getT() + mod->Tmax_ns;
 
  151             JFrame_t&    frame = clone[mod->first];
 
  153             if (!frame.empty()) {
 
  157               for (
typename JFrame_t::const_iterator i = frame.get(); *i <= Tmax; ++i) {
 
Algorithms for hit clustering and sorting.
 
Data structure for detector geometry and calibration.
 
Match operator for Cherenkov light from shower in any direction.
 
Map of associated modules in detector.
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
 
Mapper for directly addressing of associated modules in the detector data structure.
 
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
 
Data structure for a composite optical module.
 
const JPosition3D & getPosition() const
Get position.
 
Data frame with end marker.
 
Reduced data structure for L1 hit.
 
Time slice with calibrated data.
 
void operator()(const JTriggerInput &inputL1, const JTimeslice< JElement_t > inputL0, std::back_insert_iterator< JTriggerOutput > out) const
Process trigger.
 
std::vector< JHitR1 > buffer
 
JParametersHelper< JParameters > parameters
 
JTriggerMXShower(const JParameters &input, const JDetector &detector)
Constructor.
 
JModuleMapper< JAttributes > JModuleMapper_t
Type definition of module mapper.
 
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
 
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects.
 
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 triggering.
 
static const struct JTRIGGER::clusterize clusterize
 
static const JModuleCounter getNumberOfModules
Function object to count unique modules.
 
void setAttributes(const JModule &first, const JModule &second, JAttributes &attributes)
Set module attributes.
 
Auxiliary class to match modules according maximal distance.
 
double Tmin_ns
minimal time difference [ns]
 
double Tmax_ns
maximal time difference [ns]
 
static const JParameters_t & getParameters()
Get latest parameters.
 
Shower trigger parameters.
 
static const int FACTORY_LIMIT
Bit indicating max nhits reached in trigger.