Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JTRIGGER::JTimesliceClone< JElement_t > Class Template Reference

Clone of JTimeslice. More...

#include <JTimesliceClone.hh>

Inheritance diagram for JTRIGGER::JTimesliceClone< JElement_t >:
std::vector< JSuperFrameClone1D< JElement_t > > JTRIGGER::JHitToolkit< JElement_t >

Public Types

typedef JLANG::JClass< JElement_t >::argument_type argument_type
 
typedef JSuperFrameClone1D< JElement_t > value_type
 
typedef std::vector< value_type >::iterator iterator
 
typedef std::vector< value_type >::const_iterator const_iterator
 
typedef std::vector< value_type >::reverse_iterator reverse_iterator
 
typedef std::vector< value_type >::const_reverse_iterator const_reverse_iterator
 

Public Member Functions

 JTimesliceClone ()
 Default constructor.
 
 JTimesliceClone (const JTimeslice< JElement_t > &input)
 Constructor.
 
 JTimesliceClone (const JTimeslice< JElement_t > &input, const JModuleRouter &router)
 Constructor.
 
JTimesliceClone< JElement_t > & transform (const JMatrix3D &R)
 Transform.
 
JTimesliceClone< JElement_t > & rotate (const JRotation3D &R)
 Rotate.
 
JTimesliceClone< JElement_t > & rotate_back (const JRotation3D &R)
 Rotate back.
 

Detailed Description

template<class JElement_t>
class JTRIGGER::JTimesliceClone< JElement_t >

Clone of JTimeslice.

Definition at line 33 of file JTimesliceClone.hh.

Member Typedef Documentation

◆ argument_type

template<class JElement_t >
JLANG::JClass<JElement_t>::argument_type JTRIGGER::JTimesliceClone< JElement_t >::argument_type

Definition at line 39 of file JTimesliceClone.hh.

◆ value_type

template<class JElement_t >
JSuperFrameClone1D<JElement_t> JTRIGGER::JTimesliceClone< JElement_t >::value_type

Definition at line 40 of file JTimesliceClone.hh.

◆ iterator

template<class JElement_t >
std::vector<value_type>::iterator JTRIGGER::JTimesliceClone< JElement_t >::iterator

Definition at line 41 of file JTimesliceClone.hh.

◆ const_iterator

template<class JElement_t >
std::vector<value_type>::const_iterator JTRIGGER::JTimesliceClone< JElement_t >::const_iterator

Definition at line 42 of file JTimesliceClone.hh.

◆ reverse_iterator

template<class JElement_t >
std::vector<value_type>::reverse_iterator JTRIGGER::JTimesliceClone< JElement_t >::reverse_iterator

Definition at line 43 of file JTimesliceClone.hh.

◆ const_reverse_iterator

template<class JElement_t >
std::vector<value_type>::const_reverse_iterator JTRIGGER::JTimesliceClone< JElement_t >::const_reverse_iterator

Definition at line 44 of file JTimesliceClone.hh.

Constructor & Destructor Documentation

◆ JTimesliceClone() [1/3]

template<class JElement_t >
JTRIGGER::JTimesliceClone< JElement_t >::JTimesliceClone ( )
inline

Default constructor.

Definition at line 50 of file JTimesliceClone.hh.

51 {}

◆ JTimesliceClone() [2/3]

template<class JElement_t >
JTRIGGER::JTimesliceClone< JElement_t >::JTimesliceClone ( const JTimeslice< JElement_t > & input)
inline

Constructor.

The cloned data are organised according the input time slice.

Parameters
inputsuper frame

Definition at line 61 of file JTimesliceClone.hh.

62 {
63 for (typename JTimeslice<JElement_t>::const_iterator i = input.begin(); i != input.end(); ++i) {
64 this->push_back(JSuperFrameClone1D<JElement_t>(*i));
65 }
66 }
std::vector< value_type >::const_iterator const_iterator
Definition JTimeslice.hh:34

◆ JTimesliceClone() [3/3]

template<class JElement_t >
JTRIGGER::JTimesliceClone< JElement_t >::JTimesliceClone ( const JTimeslice< JElement_t > & input,
const JModuleRouter & router )
inline

Constructor.

The cloned data are organised according the module router.

Parameters
inputsuper frame
routermodule router

Definition at line 77 of file JTimesliceClone.hh.

79 {
80 this->resize(router.getReference().size());
81
82 for (typename JTimeslice<JElement_t>::const_iterator i = input.begin(); i != input.end(); ++i) {
83 (*this)[router.getAddress(i->getModuleID()).first] = JSuperFrameClone1D<JElement_t>(*i);
84 }
85 }
int first
index of module in detector data structure
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
const JClass_t & getReference() const
Get reference to object.
Definition JReference.hh:38

Member Function Documentation

◆ transform()

template<class JElement_t >
JTimesliceClone< JElement_t > & JTRIGGER::JTimesliceClone< JElement_t >::transform ( const JMatrix3D & R)
inline

Transform.

Parameters
Rmatrix

Definition at line 93 of file JTimesliceClone.hh.

94 {
95 for (iterator i = this->begin(); i != this->end(); ++i) {
96 i->transform(R);
97 }
98
99 return *this;
100 }

◆ rotate()

template<class JElement_t >
JTimesliceClone< JElement_t > & JTRIGGER::JTimesliceClone< JElement_t >::rotate ( const JRotation3D & R)
inline

Rotate.

Parameters
Rrotation matrix

Definition at line 108 of file JTimesliceClone.hh.

109 {
110 for (iterator i = this->begin(); i != this->end(); ++i) {
111 i->rotate(R);
112 }
113
114 return *this;
115 }

◆ rotate_back()

template<class JElement_t >
JTimesliceClone< JElement_t > & JTRIGGER::JTimesliceClone< JElement_t >::rotate_back ( const JRotation3D & R)
inline

Rotate back.

Parameters
Rrotation matrix

Definition at line 123 of file JTimesliceClone.hh.

124 {
125 for (iterator i = this->begin(); i != this->end(); ++i) {
126 i->rotate_back(R);
127 }
128
129 return *this;
130 }

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