Jpp
Public Types | Public Member Functions | Public Attributes | List of all members
JTRIGGER::JBuild< JHit_t > Struct Template Reference

Auxiliary base class for hit building. More...

#include <JBuild.hh>

Inheritance diagram for JTRIGGER::JBuild< JHit_t >:
JTRIGGER::JBuildL0< JHit_t > JTRIGGER::JBuildL1< JHit_t > JTRIGGER::JBuildL2< JHit_t >

Public Types

typedef JHit_t value_type
 
typedef JMatch< value_typematch_type
 

Public Member Functions

 JBuild ()
 Default constructor. More...
 
void setPreprocessor (const JPreprocessor::JOption_t option, const match_type &match)
 Set pre-processor. More...
 
JSuperFrame2D< JHit_t > & demultiplex (const JDAQSuperFrame &input, const JModule &module) const
 Demultiplex and pre-process DAQ super frame. More...
 

Public Attributes

JPreprocessor::JOption_t option
 pre-processor option More...
 
JLANG::JSharedPointer< match_typematch
 match criterion More...
 

Detailed Description

template<class JHit_t>
struct JTRIGGER::JBuild< JHit_t >

Auxiliary base class for hit building.


This class provides for a configurable method to pre-process hits. The action is subsequently transferred to JSuperFrame2D.

Definition at line 31 of file JBuild.hh.

Member Typedef Documentation

◆ value_type

template<class JHit_t>
typedef JHit_t JTRIGGER::JBuild< JHit_t >::value_type

Definition at line 33 of file JBuild.hh.

◆ match_type

template<class JHit_t>
typedef JMatch<value_type> JTRIGGER::JBuild< JHit_t >::match_type

Definition at line 34 of file JBuild.hh.

Constructor & Destructor Documentation

◆ JBuild()

template<class JHit_t>
JTRIGGER::JBuild< JHit_t >::JBuild ( )
inline

Default constructor.

The default corresponds to no pre-processing of hits.

Definition at line 41 of file JBuild.hh.

41  :
43  {}

Member Function Documentation

◆ setPreprocessor()

template<class JHit_t>
void JTRIGGER::JBuild< JHit_t >::setPreprocessor ( const JPreprocessor::JOption_t  option,
const match_type match 
)
inline

Set pre-processor.

Parameters
optionoption
matchmatch criterion

Definition at line 52 of file JBuild.hh.

53  {
54  this->option = option;
55  this->match.reset(match.clone());
56  }

◆ demultiplex()

template<class JHit_t>
JSuperFrame2D<JHit_t>& JTRIGGER::JBuild< JHit_t >::demultiplex ( const JDAQSuperFrame input,
const JModule module 
) const
inline

Demultiplex and pre-process DAQ super frame.

Parameters
inputDAQ super frame
modulemodule data
Returns
2D super frame

Definition at line 66 of file JBuild.hh.

68  {
70 
71  if (match.is_valid()) {
72  buffer.preprocess(option, *match);
73  }
74 
75  return buffer;
76  }

Member Data Documentation

◆ option

template<class JHit_t>
JPreprocessor::JOption_t JTRIGGER::JBuild< JHit_t >::option

pre-processor option

Definition at line 78 of file JBuild.hh.

◆ match

template<class JHit_t>
JLANG::JSharedPointer<match_type> JTRIGGER::JBuild< JHit_t >::match

match criterion

Definition at line 79 of file JBuild.hh.


The documentation for this struct was generated from the following file:
JTRIGGER::JSuperFrame2D::preprocess
void preprocess(JPreprocessor::JOption_t option, const match_type &match)
Pre-process data.
Definition: JSuperFrame2D.hh:136
JTRIGGER::JSuperFrame2D::demultiplex
static JSuperFrame2D< JElement_t, JAllocator_t > demultiplex
Demultiplexer.
Definition: JSuperFrame2D.hh:161
JTRIGGER::JPreprocessor::none_t
no pre-processing
Definition: JPreprocessor.hh:38
JLANG::JSharedPointer::reset
virtual void reset()
Reset pointer.
Definition: JSharedPointer.hh:171
JTRIGGER::JBuild::match
JLANG::JSharedPointer< match_type > match
match criterion
Definition: JBuild.hh:79
JTRIGGER::JSuperFrame2D
2-dimensional frame with time calibrated data from one optical module.
Definition: JSuperFrame2D.hh:41
JLANG::JAbstractPointer::is_valid
bool is_valid() const
Check validity of pointer.
Definition: JAbstractPointer.hh:83
JTRIGGER::JBuild::option
JPreprocessor::JOption_t option
pre-processor option
Definition: JBuild.hh:78