Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
ARS_Hit< T > Class Template Reference

Template hit. More...

#include <PhysicsEvent.hh>

Inheritance diagram for ARS_Hit< T >:

Public Types

typedef T data_type
 

Public Member Functions

 ARS_Hit ()
 Default constructor.
 
 ClassDef (ARS_Hit, 2)
 

Public Attributes

unsigned short lcm_id
 LCM identifier.
 
unsigned char ars_id
 ARS identifier.
 

Friends

std::ostream & operator<< (std::ostream &out, const ARS_Hit &object)
 print ASCII
 

Detailed Description

template<class T>
class ARS_Hit< T >

Template hit.

Definition at line 21 of file PhysicsEvent.hh.

Member Typedef Documentation

◆ data_type

template<class T >
T ARS_Hit< T >::data_type

Definition at line 23 of file PhysicsEvent.hh.

Constructor & Destructor Documentation

◆ ARS_Hit()

template<class T >
ARS_Hit< T >::ARS_Hit ( )
inline

Default constructor.

Definition at line 33 of file PhysicsEvent.hh.

33 :
34 T(),
35 lcm_id(0),
36 ars_id(0)
37 {}
unsigned short lcm_id
LCM identifier.
unsigned char ars_id
ARS identifier.

Member Function Documentation

◆ ClassDef()

template<class T >
ARS_Hit< T >::ClassDef ( ARS_Hit< T > ,
2  )

Friends And Related Symbol Documentation

◆ operator<<

template<class T >
std::ostream & operator<< ( std::ostream & out,
const ARS_Hit< T > & object )
friend

print ASCII

Parameters
outoutput stream
objecthit
Returns
output stream

Definition at line 45 of file PhysicsEvent.hh.

46 {
47 using namespace std;
48
49 out << setw(5) << (int) object. lcm_id << ' '
50 << setw(2) << (int) object. ars_id << ' ';
51 out << static_cast<const T&>(object);
52
53 return out;
54 }

Member Data Documentation

◆ lcm_id

template<class T >
unsigned short ARS_Hit< T >::lcm_id

LCM identifier.

Definition at line 26 of file PhysicsEvent.hh.

◆ ars_id

template<class T >
unsigned char ARS_Hit< T >::ars_id

ARS identifier.

Definition at line 28 of file PhysicsEvent.hh.


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