Data structure for L1 hit.  
 More...
#include <JHitL1.hh>
Data structure for L1 hit. 
Definition at line 34 of file JHitL1.hh.
 
  
  
      
        
          | JTRIGGER::JHitL1::JHitL1  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 42 of file JHitL1.hh.
JDAQModuleIdentifier()
Default constructor. 
 
 
 
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 53 of file JHitL1.hh.
JDAQModuleIdentifier()
Default constructor. 
 
 
 
 
  
  
      
        
          | JTRIGGER::JHitL1::JHitL1  | 
          ( | 
          const JHitL0 &  | 
          hit | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 64 of file JHitL1.hh.
JDAQModuleIdentifier()
Default constructor. 
 
const JDAQModuleIdentifier & getModuleIdentifier() const 
Get Module identifier. 
 
 
 
 
Constructor. 
- Parameters
 - 
  
    | id | module identifier  | 
    | __begin | begin of L0 hits  | 
    | __end | end of L0 hits  | 
  
   
Definition at line 78 of file JHitL1.hh.
   83       for (
T i = __begin; i != __end; ++i) {
 
JDAQModuleIdentifier()
Default constructor. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
const JHitL1 & sort()
Sort L0 hits. 
 
 
 
 
  
  
      
        
          | const JHitL1& JTRIGGER::JHitL1::sort  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sort L0 hits. 
Following the default sort operation, the time slewing implemented in method getT() is applicaple.
- Returns
 - this hit 
 
Definition at line 97 of file JHitL1.hh.
   99       std::sort(this->begin(), this->end(), std::less<JHit>());
 
 
 
 
  
  
      
        
          | JTRIGGER::JHitL1::operator const JPosition3D &  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Type conversion operator. 
- Returns
 - position 
 
Definition at line 110 of file JHitL1.hh.
  112       return *(this->begin());
 
 
 
 
  
  
      
        
          | JTRIGGER::JHitL1::operator const JAxis3D &  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Type conversion operator. 
- Returns
 - axis 
 
Definition at line 121 of file JHitL1.hh.
  123       return *(this->begin());
 
 
 
 
  
  
      
        
          | const JPosition3D& JTRIGGER::JHitL1::getPosition  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get position. 
- Returns
 - position 
 
Definition at line 132 of file JHitL1.hh.
  134       return this->begin()->getPosition();
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getX  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get x position. 
The x position is taken from the first L0 hit.
- Returns
 - x position [m] 
 
Definition at line 144 of file JHitL1.hh.
  146       return this->begin()->getX();
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get y position. 
The y position is taken from the first L0 hit.
- Returns
 - y position [m] 
 
Definition at line 156 of file JHitL1.hh.
  158       return this->begin()->getY();
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getZ  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get z position. 
The z position is taken from the first L0 hit.
- Returns
 - z position [m] 
 
Definition at line 168 of file JHitL1.hh.
  170       return this->begin()->getZ();
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getT  | 
          ( | 
          const unsigned int  | 
          i | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get time of hit i. 
Note that the time is corrected for the average time slewing.
- Parameters
 - 
  
  
 
- Returns
 - time [ns] 
 
Definition at line 181 of file JHitL1.hh.
  183       static const double t0 = 1.29;  
 
  185       return at(i).getT() - t0;
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getT  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get time. 
The time is taken from the first L0 hit corrected for time slewing.
- Returns
 - time [ns] 
 
Definition at line 195 of file JHitL1.hh.
  235       if (this->size() >= t0.size())
 
  236         return this->begin()->getT() - t0.back();
 
  238         return this->begin()->getT() - t0[this->size()];
 
 
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getToT  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get overall time over threshold. 
- Returns
 - time over threshold [ns] 
 
Definition at line 247 of file JHitL1.hh.
  249       return JHit(this->begin(), this->end()).getToT();
 
 
 
 
  
  
      
        
          | int JTRIGGER::JHitL1::getN  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get count. 
- Returns
 - count 
 
Definition at line 258 of file JHitL1.hh.
 
 
  
  
      
        
          | double JTRIGGER::JHitL1::getW  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get weight. 
The weight is equal to the number of L0 hits.
- Returns
 - weight 
 
Definition at line 270 of file JHitL1.hh.
 
 
Add position. 
- Parameters
 - 
  
  
 
- Returns
 - this hit 
 
Definition at line 282 of file JHitL1.hh.
  284       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
 
 
 
Subtract position. 
- Parameters
 - 
  
  
 
- Returns
 - this hit 
 
Definition at line 298 of file JHitL1.hh.
  300       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
 
 
 
Rotate hit. 
- Parameters
 - 
  
  
 
- Returns
 - this hit 
 
Definition at line 314 of file JHitL1.hh.
  316       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
 
 
 
Rotate back hit. 
- Parameters
 - 
  
  
 
- Returns
 - this hit 
 
Definition at line 330 of file JHitL1.hh.
  332       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
 
 
 
Transform hit. 
- Parameters
 - 
  
    | R | rotation matrix  | 
    | pos | position of origin (after rotation)  | 
  
   
Definition at line 346 of file JHitL1.hh.
  349       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
  350         i->transform(R, pos);
 
 
 
 
Transform back hit. 
- Parameters
 - 
  
    | R | rotation matrix  | 
    | pos | position of origin (before rotation)  | 
  
   
Definition at line 361 of file JHitL1.hh.
  364       for (
iterator i = this->begin(); i != this->end(); ++i) {
 
  365         i->transform_back(R, pos);
 
 
 
 
  
  
      
        
          | int KM3NETDAQ::JDAQModuleIdentifier::getModuleID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
  
  
      
        
          | int KM3NETDAQ::JDAQModuleIdentifier::id | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: