1 #ifndef __JTRIGGER__JTRIGGERMXSHOWER__
2 #define __JTRIGGER__JTRIGGERMXSHOWER__
23 namespace JPP {
using namespace JTRIGGER; }
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) {
Data frame with end marker.
Data structure for a composite optical module.
Shower trigger parameters.
Algorithms for hit clustering and sorting.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
static const JParameters_t & getParameters()
Get latest parameters.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
static const int FACTORY_LIMIT
Bit indicating max nhits reached in trigger.
static const JModuleCounter getNumberOfModules
Function object to count unique modules.
Data structure for detector geometry and calibration.
do JPlot2D f $WORKDIR canberra[${EMITTER}\] root
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects.
double Tmin_ns
minimal time difference [ns]
Auxiliary class to match modules according maximal distance.
JModuleMapper< JAttributes > JModuleMapper_t
Type definition of module mapper.
std::vector< JHitR1 > buffer
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
JDAQTriggerMask & addTriggerBit(const unsigned int bit)
Add trigger bit.
const JPosition3D & getPosition() const
Get position.
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
void setAttributes(const JModule &first, const JModule &second, JAttributes_t &attributes)
Template method to set module attributes.
double Tmax_ns
maximal time difference [ns]
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
void operator()(const JTriggerInput &inputL1, const JTimeslice< JElement_t > inputL0, std::back_insert_iterator< JTriggerOutput > out) const
Process trigger.
JParametersHelper< JParameters > parameters
Mapper for directly addressing of associated modules in the detector data structure.
Map of associated modules in detector.
const double getInverseSpeedOfLight()
Get inverse speed of light.
JTriggerbit_t getTriggerBit() const
Get the trigger bit.
Reduced data structure for L1 hit.
static struct JTRIGGER::clusterize clusterize
JTriggerMXShower(const JParameters &input, const JDetector &detector)
Constructor.
Match operator for Cherenkov light from shower in any direction.
Time slice with calibrated data.