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

Template TimeSlice. More...

#include <TimeSlice.hh>

Inheritance diagram for TimeSlice< T >:
EventPreamble std::vector< T > TObject

Public Types

typedef T frame_type
 item type definition
 
typedef frame_type::item_type item_type
 item sub-type definition
 

Public Member Functions

 TimeSlice ()
 Default constructor.
 
 TimeSlice (const EventPreamble &header)
 Constructor.
 
TimeSlice< T > & operator+= (const TimeSlice< T > &object)
 operator +=
 
 ClassDef (TimeSlice, 2)
 ROOT class definition.
 
 ClassDef (EventPreamble, 2)
 

Public Attributes

unsigned short frameTarget
 Unique code representing the shore station for this frame.
 
unsigned int frameTime1
 Frame 'time stamp' in units of 50ns (MSW)
 
unsigned int frameTime2
 Frame 'time stamp' in units of 50ns (LSW)
 
unsigned int frameIndex
 Number of frames since start of the run.
 
unsigned int runNumber
 Run-number as given by the RunControl.
 

Friends

std::ostream & operator<< (std::ostream &out, const TimeSlice< T > &object)
 Print ASCII.
 

Detailed Description

template<class T>
class TimeSlice< T >

Template TimeSlice.

Definition at line 396 of file TimeSlice.hh.

Member Typedef Documentation

◆ frame_type

template<class T >
T TimeSlice< T >::frame_type

item type definition

Definition at line 401 of file TimeSlice.hh.

◆ item_type

template<class T >
frame_type::item_type TimeSlice< T >::item_type

item sub-type definition

Definition at line 402 of file TimeSlice.hh.

Constructor & Destructor Documentation

◆ TimeSlice() [1/2]

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

Default constructor.

Definition at line 407 of file TimeSlice.hh.

407 :
410 {}
EventPreamble()
Default constructor.

◆ TimeSlice() [2/2]

template<class T >
TimeSlice< T >::TimeSlice ( const EventPreamble & header)
inline

Constructor.

Parameters
headerevent preamble

Definition at line 417 of file TimeSlice.hh.

417 :
418 EventPreamble(header),
420 {}

Member Function Documentation

◆ operator+=()

template<class T >
TimeSlice< T > & TimeSlice< T >::operator+= ( const TimeSlice< T > & object)
inline

operator +=

Parameters
objecttime slice
Returns
this time slice

Definition at line 446 of file TimeSlice.hh.

447 {
448 if ((EventPreamble&) *this == (EventPreamble&) object) {
449
450 typename TimeSlice<T>::const_iterator from;
451 typename TimeSlice<T>::iterator to;
452
453 for (from = object.begin(); from != object.end(); ++from) {
454
455 for (to = std::vector<T>::begin(); to != std::vector<T>::end(); ++to) {
456 if (*to == *from) {
457 *to += *from;
458 break;
459 }
460 }
461
462 if (to == std::vector<T>::end()) {
463 this->push_back(*from);
464 }
465 }
466 }
467
468 return *this;
469 }
Interface for event classes.
Template TimeSlice.
Definition TimeSlice.hh:399

◆ ClassDef() [1/2]

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

ROOT class definition.

◆ ClassDef() [2/2]

EventPreamble::ClassDef ( EventPreamble ,
2  )
inherited

Friends And Related Symbol Documentation

◆ operator<<

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

Print ASCII.

Parameters
outoutput stream
objecttime slice
Returns
output stream

Definition at line 429 of file TimeSlice.hh.

430 {
431 out << static_cast<const EventPreamble&>(object);
432
433 for (typename TimeSlice<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
434 out << *i;
435 }
436
437 return out;
438 }

Member Data Documentation

◆ frameTarget

unsigned short EventPreamble::frameTarget
inherited

Unique code representing the shore station for this frame.

Definition at line 26 of file EventPreamble.hh.

◆ frameTime1

unsigned int EventPreamble::frameTime1
inherited

Frame 'time stamp' in units of 50ns (MSW)

Definition at line 29 of file EventPreamble.hh.

◆ frameTime2

unsigned int EventPreamble::frameTime2
inherited

Frame 'time stamp' in units of 50ns (LSW)

Definition at line 31 of file EventPreamble.hh.

◆ frameIndex

unsigned int EventPreamble::frameIndex
inherited

Number of frames since start of the run.

Definition at line 34 of file EventPreamble.hh.

◆ runNumber

unsigned int EventPreamble::runNumber
inherited

Run-number as given by the RunControl.

Definition at line 37 of file EventPreamble.hh.


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