Shower trigger.
More...
#include <JTriggerMXShower.hh>
Shower trigger.
Definition at line 76 of file JTriggerMXShower.hh.
JTRIGGER::JTriggerMXShower::JTriggerMXShower |
( |
const JParameters & |
input, |
|
|
const JDetector & |
detector |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
input | trigger parameters |
detector | detector; |
Definition at line 94 of file JTriggerMXShower.hh.
100 using namespace JTOOLS;
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
Auxiliary class to match modules according maximal distance.
JParametersHelper< JParameters > parameters
const double getInverseSpeedOfLight()
Get inverse speed of light.
template<class JElement_t >
Process trigger.
- Parameters
-
inputL1 | input L1 data |
inputL0 | input L0 data |
out | output data |
Definition at line 126 of file JTriggerMXShower.hh.
131 typedef typename JTimeslice_t::value_type JFrame_t;
136 JTimeslice_t clone(inputL0,
mapper);
138 for (JTriggerInput::const_iterator
root = inputL1.begin();
root != inputL1.end(); ++
root) {
144 for (
typename container_type::const_iterator mod = zip.begin(); mod != zip.end(); ++mod) {
146 const double Tmin =
root->getT() + mod->Tmin_ns;
147 const double Tmax =
root->getT() + mod->Tmax_ns;
149 JFrame_t& frame = clone[mod->first];
151 if (!frame.empty()) {
155 for (
typename JFrame_t::const_iterator i = frame.get(); *i <= Tmax; ++i) {
static struct JTRIGGER::@74 clusterize
Anonymous structure for clustering of hits.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
then JPlot1D f $WORKDIR postfit[prefit\] root
static const int FACTORY_LIMIT
Bit indicating max nhits reached in trigger.
static const JModuleCounter getNumberOfModules
Function object to count unique modules.
std::vector< moduleattributes_type > container_type
Type definition of a list with module data.
std::vector< JHitR1 > buffer
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
JParametersHelper< JParameters > parameters
JTriggerbit_t getTriggerBit() const
Get the trigger bit.
Reduced data structure for L1 hit.
template<JTriggerbit_t N>
bool JTRIGGER::JTriggerInterface::checkTriggerBit |
( |
| ) |
const |
|
inlineprotectedinherited |
Test whether specific trigger bit correponds to derived trigger class.
This method will be specialised using the marco setTriggerBit() so that it will return true if this triggered event corresponds to bit N.
This method will be repeatedly called by method find_trigger_bit() which in turn is called by the member method JTriggerInterface::getTriggerBit() so that it returns the correct trigger bit.
- Returns
- false
Definition at line 76 of file JTriggerInterface.hh.
template<JTriggerbit_t N>
Recursive method to find the trigger bit of the given trigger data.
- Parameters
-
- Returns
- trigger bit
Definition at line 89 of file JTriggerInterface.hh.
91 if (checkTriggerBit<N>())
JTriggerbit_t find_trigger_bit(JBit< N > bit) const
Recursive method to find the trigger bit of the given trigger data.
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
Auxiliary data structure for single bit.
JTriggerbit_t JTRIGGER::JTriggerInterface::find_trigger_bit |
( |
JBit< NUMBER_OF_TRIGGER_BITS > |
bit | ) |
const |
|
inlineprotectedinherited |
Termination method of recursive method to find the trigger bit of the given trigger data.
This method throws an error.
- Parameters
-
- Returns
- trigger bit
Definition at line 105 of file JTriggerInterface.hh.
107 throw JTriggerException(
"Method find_trigger_bit<>(): no corresponding trigger bit found.");
template<JTriggerbit_t N>
static const char* JTRIGGER::JTriggerInterface::getTriggerName |
( |
| ) |
|
|
inlinestaticprotectedinherited |
static const char* JTRIGGER::JTriggerInterface::getTriggerName |
( |
JTriggerbit_t |
bit | ) |
|
|
inlinestaticinherited |
Get trigger name.
param bit trigger bit
- Returns
- trigger name
Definition at line 182 of file JTriggerInterface.hh.
Auxiliary data structure for single bit.
static const char * get_trigger_name(JBit< N > bit, JTriggerbit_t value)
Recursive method to get trigger name for given trigger bit.
template<JTriggerbit_t N>
static const char* JTRIGGER::JTriggerInterface::get_trigger_name |
( |
JBit< N > |
bit, |
|
|
JTriggerbit_t |
value |
|
) |
| |
|
inlinestaticprotectedinherited |
Recursive method to get trigger name for given trigger bit.
- Parameters
-
bit | trigger bit |
value | trigger bit |
- Returns
- trigger name
Definition at line 138 of file JTriggerInterface.hh.
140 if (bit.value == value)
141 return getTriggerName<N>();
Auxiliary data structure for single bit.
static const char * get_trigger_name(JBit< N > bit, JTriggerbit_t value)
Recursive method to get trigger name for given trigger bit.
static const char* JTRIGGER::JTriggerInterface::get_trigger_name |
( |
JBit< NUMBER_OF_TRIGGER_BITS > |
bit, |
|
|
JTriggerbit_t |
value |
|
) |
| |
|
inlinestaticprotectedinherited |
Termination method of recursive method to get trigger name.
- Parameters
-
bit | trigger bit |
value | trigger bit |
- Returns
- NULL
Definition at line 154 of file JTriggerInterface.hh.
JTriggerbit_t JTRIGGER::JTriggerInterface::getTriggerBit |
( |
| ) |
const |
|
inlineinherited |
Get the trigger bit.
- Returns
- trigger bit
Definition at line 170 of file JTriggerInterface.hh.
JTriggerbit_t find_trigger_bit(JBit< N > bit) const
Recursive method to find the trigger bit of the given trigger data.
Auxiliary data structure for single bit.
double JTRIGGER::JTriggerMXShower::TMaxEvent_ns |
|
private |
The documentation for this class was generated from the following file: