Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
ExtendedSummary_TimeSlice Class Reference

ExtendedSummary time slices. More...

#include <TimeSlice.hh>

Inheritance diagram for ExtendedSummary_TimeSlice:
TimeSlice< ExtendedSummary_Frame > TimeSlice< ExtendedSummary_Frame > std::vector< ExtendedSummary_Frame > EventPreamble std::vector< ExtendedSummary_Frame > EventPreamble std::vector< ExtendedSummary_Frame > EventPreamble std::vector< ExtendedSummary_Frame > EventPreamble

Public Types

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

Public Member Functions

 ExtendedSummary_TimeSlice ()
 Default constructor.
 
template<class T >
 ExtendedSummary_TimeSlice (const TimeSlice< T > &object)
 Constructor.
 
 ClassDef (ExtendedSummary_TimeSlice, 2)
 ROOT class definition.
 
 ExtendedSummary_TimeSlice ()
 Default constructor.
 
template<class T >
 ExtendedSummary_TimeSlice (const TimeSlice< T > &object)
 Constructor.
 
 ClassDef (ExtendedSummary_TimeSlice, 2)
 ROOT class definition.
 
TimeSlice< ExtendedSummary_Frame > & operator+= (const TimeSlice< ExtendedSummary_Frame > &object)
 operator +=
 
TimeSlice< ExtendedSummary_Frame > & operator+= (const TimeSlice< ExtendedSummary_Frame > &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.
 

Detailed Description

ExtendedSummary time slices.

Definition at line 642 of file build/antares-dataformat/TimeSlice.hh.

Member Typedef Documentation

◆ frame_type

typedef ExtendedSummary_Frame TimeSlice< ExtendedSummary_Frame >::frame_type
inherited

item type definition

Definition at line 401 of file build/antares-dataformat/TimeSlice.hh.

◆ item_type

typedef frame_type::item_type TimeSlice< ExtendedSummary_Frame >::item_type
inherited

item sub-type definition

Definition at line 402 of file build/antares-dataformat/TimeSlice.hh.

Constructor & Destructor Documentation

◆ ExtendedSummary_TimeSlice() [1/4]

ExtendedSummary_TimeSlice::ExtendedSummary_TimeSlice ( )
inline

Default constructor.

Definition at line 649 of file build/antares-dataformat/TimeSlice.hh.

◆ ExtendedSummary_TimeSlice() [2/4]

template<class T >
ExtendedSummary_TimeSlice::ExtendedSummary_TimeSlice ( const TimeSlice< T > & object)
inline

Constructor.

param object time slice

Definition at line 657 of file build/antares-dataformat/TimeSlice.hh.

657 :
659 {
660 for (typename TimeSlice<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
661 this->push_back(ExtendedSummary_Frame(i->LCM_ID,
662 i->ARS_ID,
663 i->dataType,
664 i->nbItems,
665 0));
666 }
667 }
Interface for event classes.

◆ ExtendedSummary_TimeSlice() [3/4]

ExtendedSummary_TimeSlice::ExtendedSummary_TimeSlice ( )
inline

Default constructor.

Definition at line 649 of file TimeSlice.hh.

◆ ExtendedSummary_TimeSlice() [4/4]

template<class T >
ExtendedSummary_TimeSlice::ExtendedSummary_TimeSlice ( const TimeSlice< T > & object)
inline

Constructor.

param object time slice

Definition at line 657 of file TimeSlice.hh.

657 :
659 {
660 for (typename TimeSlice<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
661 this->push_back(ExtendedSummary_Frame(i->LCM_ID,
662 i->ARS_ID,
663 i->dataType,
664 i->nbItems,
665 0));
666 }
667 }

Member Function Documentation

◆ ClassDef() [1/4]

ExtendedSummary_TimeSlice::ClassDef ( ExtendedSummary_TimeSlice ,
2  )

ROOT class definition.

◆ ClassDef() [2/4]

ExtendedSummary_TimeSlice::ClassDef ( ExtendedSummary_TimeSlice ,
2  )

ROOT class definition.

◆ operator+=() [1/2]

TimeSlice< ExtendedSummary_Frame > & TimeSlice< ExtendedSummary_Frame >::operator+= ( const TimeSlice< ExtendedSummary_Frame > & object)
inlineinherited

operator +=

Parameters
objecttime slice
Returns
this time slice

Definition at line 446 of file build/antares-dataformat/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 }

◆ operator+=() [2/2]

TimeSlice< ExtendedSummary_Frame > & TimeSlice< ExtendedSummary_Frame >::operator+= ( const TimeSlice< ExtendedSummary_Frame > & object)
inlineinherited

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 }

◆ ClassDef() [3/4]

TimeSlice< ExtendedSummary_Frame >::ClassDef ( TimeSlice< ExtendedSummary_Frame > ,
2  )
inherited

ROOT class definition.

◆ ClassDef() [4/4]

EventPreamble::ClassDef ( EventPreamble ,
2  )
inherited

Member Data Documentation

◆ frameTarget

unsigned short EventPreamble::frameTarget
inherited

Unique code representing the shore station for this frame.

Definition at line 26 of file build/antares-dataformat/EventPreamble.hh.

◆ frameTime1

unsigned int EventPreamble::frameTime1
inherited

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

Definition at line 29 of file build/antares-dataformat/EventPreamble.hh.

◆ frameTime2

unsigned int EventPreamble::frameTime2
inherited

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

Definition at line 31 of file build/antares-dataformat/EventPreamble.hh.

◆ frameIndex

unsigned int EventPreamble::frameIndex
inherited

Number of frames since start of the run.

Definition at line 34 of file build/antares-dataformat/EventPreamble.hh.

◆ runNumber

unsigned int EventPreamble::runNumber
inherited

Run-number as given by the RunControl.

Definition at line 37 of file build/antares-dataformat/EventPreamble.hh.


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