GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TPPGData Class Reference

Detailed Description

Definition at line 47 of file TPPG.h.

Public Member Functions

 TPPGData ()
 
 TPPGData (const TPPGData &)
 
 TPPGData (TPPGData &&)=default
 
 ~TPPGData ()=default
 
void Clear (Option_t *opt="") override
 
void Copy (TObject &rhs) const override
 
UInt_t GetHighTimeStamp () const
 
UInt_t GetLowTimeStamp () const
 
UInt_t GetNetworkPacketId () const
 
EPpgPattern GetNewPPG () const
 
EPpgPattern GetOldPPG () const
 
ULong64_t GetTimeStamp () const
 
TPPGDataoperator= (const TPPGData &)=default
 
TPPGDataoperator= (TPPGData &&)=default
 
void Print (Option_t *opt="") const override
 
void SetHighTimeStamp (UInt_t highTime)
 
void SetLowTimeStamp (UInt_t lowTime)
 
void SetNetworkPacketId (UInt_t packet)
 
void SetNewPPG (EPpgPattern newPpg)
 
void SetNewPPG (UInt_t newPpg)
 
void SetOldPPG (EPpgPattern oldPpg)
 
void SetOldPPG (UInt_t oldPpg)
 
void SetTimeStamp ()
 

Private Attributes

UInt_t fHighTimeStamp {0}
 
UInt_t fLowTimeStamp {0}
 
UInt_t fNetworkPacketId {0}
 
EPpgPattern fNewPpg {EPpgPattern::kJunk}
 
EPpgPattern fOldPpg {EPpgPattern::kJunk}
 
ULong64_t fTimeStamp {0}
 

Static Private Attributes

static int16_t fTimestampUnits = 10
 
+ Inheritance diagram for TPPGData:
+ Collaboration diagram for TPPGData:

Constructor & Destructor Documentation

◆ TPPGData() [1/3]

TPPGData::TPPGData ( )

Definition at line 10 of file TPPG.cxx.

References Clear().

◆ TPPGData() [2/3]

TPPGData::TPPGData ( const TPPGData & rhs)

Definition at line 15 of file TPPG.cxx.

References Copy().

◆ TPPGData() [3/3]

TPPGData::TPPGData ( TPPGData && )
default

◆ ~TPPGData()

TPPGData::~TPPGData ( )
default

Member Function Documentation

◆ Clear()

void TPPGData::Clear ( Option_t * opt = "")
override

Clears the TPPGData and leaves it a "junk" state. By junk, I just mean default so that we can tell that this PPG is no good.

Definition at line 39 of file TPPG.cxx.

References fHighTimeStamp, fLowTimeStamp, fNetworkPacketId, fNewPpg, fOldPpg, fTimeStamp, and kJunk.

Referenced by TPPGData().

◆ Copy()

void TPPGData::Copy ( TObject & rhs) const
override

Definition at line 21 of file TPPG.cxx.

References fHighTimeStamp, fLowTimeStamp, fNetworkPacketId, fNewPpg, fOldPpg, and fTimeStamp.

Referenced by TPPGData().

◆ GetHighTimeStamp()

UInt_t TPPGData::GetHighTimeStamp ( ) const
inline

Definition at line 111 of file TPPG.h.

References fHighTimeStamp.

Referenced by SetTimeStamp().

◆ GetLowTimeStamp()

UInt_t TPPGData::GetLowTimeStamp ( ) const
inline

Definition at line 110 of file TPPG.h.

References fLowTimeStamp.

Referenced by SetTimeStamp().

◆ GetNetworkPacketId()

UInt_t TPPGData::GetNetworkPacketId ( ) const
inline

Definition at line 114 of file TPPG.h.

References fNetworkPacketId.

◆ GetNewPPG()

EPpgPattern TPPGData::GetNewPPG ( ) const
inline

Definition at line 112 of file TPPG.h.

References fNewPpg.

◆ GetOldPPG()

EPpgPattern TPPGData::GetOldPPG ( ) const
inline

Definition at line 113 of file TPPG.h.

References fOldPpg.

◆ GetTimeStamp()

ULong64_t TPPGData::GetTimeStamp ( ) const
inline

Definition at line 116 of file TPPG.h.

References fTimeStamp.

Referenced by TPPG::AddData(), TPPG::GetNumberOfCycles(), and Print().

◆ operator=() [1/2]

TPPGData & TPPGData::operator= ( const TPPGData & )
default

◆ operator=() [2/2]

TPPGData & TPPGData::operator= ( TPPGData && )
default

◆ Print()

void TPPGData::Print ( Option_t * opt = "") const
override

Definition at line 51 of file TPPG.cxx.

References fNewPpg, fOldPpg, GetTimeStamp(), and hex().

◆ SetHighTimeStamp()

void TPPGData::SetHighTimeStamp ( UInt_t highTime)
inline

Definition at line 68 of file TPPG.h.

References fHighTimeStamp, and SetTimeStamp().

Referenced by TGRSIDataParser::SetPPGHighTimeStamp().

◆ SetLowTimeStamp()

void TPPGData::SetLowTimeStamp ( UInt_t lowTime)
inline

Definition at line 63 of file TPPG.h.

References fLowTimeStamp, and SetTimeStamp().

Referenced by TGRSIDataParser::SetPPGLowTimeStamp(), and TTdrDataParser::TdrToFragment().

◆ SetNetworkPacketId()

void TPPGData::SetNetworkPacketId ( UInt_t packet)
inline

Definition at line 105 of file TPPG.h.

References fNetworkPacketId.

Referenced by TGRSIDataParser::SetPPGNetworkPacket().

◆ SetNewPPG() [1/2]

void TPPGData::SetNewPPG ( EPpgPattern newPpg)
inline

Definition at line 73 of file TPPG.h.

References fNewPpg.

Referenced by TGRSIDataParser::SetNewPPGPattern().

◆ SetNewPPG() [2/2]

void TPPGData::SetNewPPG ( UInt_t newPpg)
inline

Definition at line 74 of file TPPG.h.

References fNewPpg, hex(), kBackground, kBeamOn, kDecay, kJunk, and kTapeMove.

◆ SetOldPPG() [1/2]

void TPPGData::SetOldPPG ( EPpgPattern oldPpg)
inline

Definition at line 89 of file TPPG.h.

References fOldPpg.

Referenced by TGRSIDataParser::SetOldPPGPattern().

◆ SetOldPPG() [2/2]

void TPPGData::SetOldPPG ( UInt_t oldPpg)
inline

Definition at line 90 of file TPPG.h.

References fOldPpg, hex(), kBackground, kBeamOn, kDecay, kJunk, and kTapeMove.

◆ SetTimeStamp()

void TPPGData::SetTimeStamp ( )

Definition at line 31 of file TPPG.cxx.

References fTimeStamp, fTimestampUnits, GetHighTimeStamp(), and GetLowTimeStamp().

Referenced by SetHighTimeStamp(), and SetLowTimeStamp().

Member Data Documentation

◆ fHighTimeStamp

UInt_t TPPGData::fHighTimeStamp {0}
private

high bits of time stamp in 10 ns

Definition at line 125 of file TPPG.h.

Referenced by Clear(), Copy(), GetHighTimeStamp(), and SetHighTimeStamp().

◆ fLowTimeStamp

UInt_t TPPGData::fLowTimeStamp {0}
private

low bits of time stamp in 10 ns

Definition at line 124 of file TPPG.h.

Referenced by Clear(), Copy(), GetLowTimeStamp(), and SetLowTimeStamp().

◆ fNetworkPacketId

UInt_t TPPGData::fNetworkPacketId {0}
private

Definition at line 123 of file TPPG.h.

Referenced by Clear(), Copy(), GetNetworkPacketId(), and SetNetworkPacketId().

◆ fNewPpg

EPpgPattern TPPGData::fNewPpg {EPpgPattern::kJunk}
private

Definition at line 122 of file TPPG.h.

Referenced by Clear(), Copy(), GetNewPPG(), Print(), SetNewPPG(), and SetNewPPG().

◆ fOldPpg

EPpgPattern TPPGData::fOldPpg {EPpgPattern::kJunk}
private

Definition at line 121 of file TPPG.h.

Referenced by Clear(), Copy(), GetOldPPG(), Print(), SetOldPPG(), and SetOldPPG().

◆ fTimeStamp

ULong64_t TPPGData::fTimeStamp {0}
private

time stamp in ns

Definition at line 120 of file TPPG.h.

Referenced by Clear(), Copy(), GetTimeStamp(), and SetTimeStamp().

◆ fTimestampUnits

int16_t TPPGData::fTimestampUnits = 10
staticprivate

timestamp units of the PPG (10 ns)

Definition at line 119 of file TPPG.h.

Referenced by SetTimeStamp().