1 #ifndef __JTRIGGER__JTRIGGER3D__
2 #define __JTRIGGER__JTRIGGER3D__
23 namespace JPP {
using namespace JTRIGGER; }
52 const int number_of_hits,
53 const int number_of_modules,
56 const int factory_limit) :
109 for (JTriggerInput::const_iterator p = input.begin(), q = p; p != input.end(); ) {
125 JTriggerInput::iterator
root =
buffer.begin();
126 JTriggerInput::iterator __p =
buffer.begin();
127 JTriggerInput::iterator __q =
buffer.begin();
134 for (JTriggerInput::const_iterator
i = p; ++
i != q; ) {
135 if (match3D(*p,*
i)) {
General purpose majority trigger.
std::vector< value_type > buffer
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.
JLANG::JSharedPointer< match_type > JMatch_t
Function object interface for hit matching.
static const int FACTORY_LIMIT
Bit indicating max nhits reached in trigger.
static const JModuleCounter getNumberOfModules
Function object to count unique modules.
Base class for match operations for cluster and hit-preprocessing methods.
void operator()(const JTriggerInput &input, std::back_insert_iterator< JTriggerOutput > out) const
Process trigger.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
JParameters(const bool option, const int number_of_hits, const int number_of_modules, const double Tmax_ns, const match_type &match3d, const int factory_limit)
Constructor.
JDAQTriggerMask & addTriggerBit(const unsigned int bit)
Add trigger bit.
JTrigger3D(const JParameters &input)
Constructor.
JTriggerbit_t getTriggerBit() const
Get the trigger bit.
static struct JTRIGGER::clusterize clusterize
do JPlot2D f $WORKDIR canberra[${EMITTER}] root