Jpp  16.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
typedef JDAQHitSelector selector_type
 

Public Member Functions

 JBuild ()
 Default constructor. More...
 
void setPreprocessor (const JPreprocessor::JOption_t option, const match_type &match)
 Set pre-processor of consecutive hits. More...
 
void resetPreprocessor ()
 Reset pre-processor of consecutive hits. More...
 
void setDAQHitSelector (const JDAQHitSelector &selector)
 Set DAQ hit selector. More...
 
void resetDAQHitSelector ()
 Reset DAQ hit selector. 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
 pre-processor match criterion More...
 
JLANG::JSharedPointer
< selector_type
selector
 DAQ hit selector. More...
 

Detailed Description

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

Auxiliary base class for hit building.

This class provides for

The underlying action is subsequently transferred to JSuperFrame2D.

Definition at line 36 of file JBuild.hh.

Member Typedef Documentation

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

Definition at line 38 of file JBuild.hh.

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

Definition at line 39 of file JBuild.hh.

template<class JHit_t>
typedef JDAQHitSelector JTRIGGER::JBuild< JHit_t >::selector_type

Definition at line 40 of file JBuild.hh.

Constructor & Destructor Documentation

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

Default constructor.

The default corresponds to no pre-processing of hits.

Definition at line 47 of file JBuild.hh.

47  :
50  {}
JPreprocessor::JOption_t option
pre-processor option
Definition: JBuild.hh:115
JLANG::JSharedPointer< selector_type > selector
DAQ hit selector.
Definition: JBuild.hh:117
Default class to select DAQ hits.

Member Function Documentation

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

Set pre-processor of consecutive hits.

Parameters
optionoption
matchmatch criterion

Definition at line 59 of file JBuild.hh.

60  {
61  this->option = option;
62  this->match.reset(match.clone());
63  }
JPreprocessor::JOption_t option
pre-processor option
Definition: JBuild.hh:115
JLANG::JSharedPointer< match_type > match
pre-processor match criterion
Definition: JBuild.hh:116
virtual void reset() override
Reset pointer.
template<class JHit_t>
void JTRIGGER::JBuild< JHit_t >::resetPreprocessor ( )
inline

Reset pre-processor of consecutive hits.

Definition at line 69 of file JBuild.hh.

70  {
72  this->match.reset();
73  }
JPreprocessor::JOption_t option
pre-processor option
Definition: JBuild.hh:115
JLANG::JSharedPointer< match_type > match
pre-processor match criterion
Definition: JBuild.hh:116
virtual void reset() override
Reset pointer.
template<class JHit_t>
void JTRIGGER::JBuild< JHit_t >::setDAQHitSelector ( const JDAQHitSelector selector)
inline

Set DAQ hit selector.

Parameters
selectorDAQ hit selector

Definition at line 81 of file JBuild.hh.

82  {
83  this->selector.reset(selector.clone());
84  }
virtual clone_type clone() const override
Get clone of this object.
Definition: JClonable.hh:69
template<class JHit_t>
void JTRIGGER::JBuild< JHit_t >::resetDAQHitSelector ( )
inline

Reset DAQ hit selector.

Definition at line 90 of file JBuild.hh.

91  {
92  this->selector.reset(new JDAQHitDefaultSelector());
93  }
JLANG::JSharedPointer< selector_type > selector
DAQ hit selector.
Definition: JBuild.hh:117
Default class to select DAQ hits.
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 103 of file JBuild.hh.

105  {
107 
108  if (match.is_valid()) {
109  buffer.preprocess(option, *match);
110  }
111 
112  return buffer;
113  }
JPreprocessor::JOption_t option
pre-processor option
Definition: JBuild.hh:115
JLANG::JSharedPointer< selector_type > selector
DAQ hit selector.
Definition: JBuild.hh:117
JLANG::JSharedPointer< match_type > match
pre-processor match criterion
Definition: JBuild.hh:116
bool is_valid() const
Check validity of pointer.
void preprocess(JPreprocessor::JOption_t option, const match_type &match)
Pre-process data.
static JSuperFrame2D< JElement_t, JAllocator_t > demultiplex
Demultiplexer.
2-dimensional frame with time calibrated data from one optical module.

Member Data Documentation

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

pre-processor option

Definition at line 115 of file JBuild.hh.

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

pre-processor match criterion

Definition at line 116 of file JBuild.hh.

template<class JHit_t>
JLANG::JSharedPointer<selector_type> JTRIGGER::JBuild< JHit_t >::selector

DAQ hit selector.

Definition at line 117 of file JBuild.hh.


The documentation for this struct was generated from the following file: