ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTimeStamp Class Reference

#include <coresoftware/blob/master/offline/framework/phool/PHTimeStamp.h>

+ Inheritance diagram for PHTimeStamp:
+ Collaboration diagram for PHTimeStamp:

Public Member Functions

 PHTimeStamp ()
 
 PHTimeStamp (const int, const int, const int, const int, const int, const int, const int=0)
 
 PHTimeStamp (const time_t)
 
void setBinTics (const phtime_t t)
 
 ~PHTimeStamp () override
 
void set (const int, const int, const int, const int, const int, const int, const int=0)
 
void set (const char *)
 
void setToSystemTime ()
 
void setToFarFuture ()
 
phtime_t getBinaryTime () const
 
time_t getTics () const
 
void setTics (const time_t)
 
int isInRange (const PHTimeStamp &, const PHTimeStamp &)
 
void print ()
 
int operator== (const PHTimeStamp &) const
 
int operator!= (const PHTimeStamp &) const
 
int operator> (const PHTimeStamp &) const
 
int operator>= (const PHTimeStamp &) const
 
int operator< (const PHTimeStamp &) const
 
int operator<= (const PHTimeStamp &) const
 
PHTimeStamp operator+= (time_t)
 
PHTimeStamp operator-= (time_t)
 
char * formatTimeString () const
 
void print () const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual void identify (std::ostream &os=std::cout) const
 
virtual void Reset ()
 Clear Event.
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Static Public Attributes

static const unsigned long long PHFarFuture = ULLONG_MAX
 

Protected Attributes

phtime_t binaryTime
 

Private Member Functions

phtime_t ticsToBinaryTime (time_t) const
 
time_t binaryTimeToTics (phtime_t) const
 

Detailed Description

Definition at line 20 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 20 of file PHTimeStamp.h

Constructor & Destructor Documentation

PHTimeStamp::PHTimeStamp ( )

Definition at line 29 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 29 of file PHTimeStamp.cc

References Acts::VectorHelpers::time().

+ Here is the call graph for this function:

PHTimeStamp::PHTimeStamp ( const int  year,
const int  month,
const int  day,
const int  hour,
const int  minute,
const int  second,
const int  fraction = 0 
)

Definition at line 36 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 36 of file PHTimeStamp.cc

References second.

PHTimeStamp::PHTimeStamp ( const time_t  t)

Definition at line 42 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 42 of file PHTimeStamp.cc

PHTimeStamp::~PHTimeStamp ( )
inlineoverride

Definition at line 31 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 31 of file PHTimeStamp.h

Member Function Documentation

time_t PHTimeStamp::binaryTimeToTics ( phtime_t  bt) const
private

Definition at line 107 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 107 of file PHTimeStamp.cc

References ticFactor, and ticOffset.

char * PHTimeStamp::formatTimeString ( ) const

Definition at line 171 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 171 of file PHTimeStamp.cc

References Acts::UnitConstants::u.

phtime_t PHTimeStamp::getBinaryTime ( ) const
inline

Definition at line 40 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 40 of file PHTimeStamp.h

References binaryTime.

Referenced by isInRange(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

+ Here is the caller graph for this function:

time_t PHTimeStamp::getTics ( ) const
int PHTimeStamp::isInRange ( const PHTimeStamp t1,
const PHTimeStamp t2 
)

Definition at line 112 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 112 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

int PHTimeStamp::operator!= ( const PHTimeStamp t) const

Definition at line 130 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 130 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

PHTimeStamp PHTimeStamp::operator+= ( time_t  t)

Definition at line 155 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 155 of file PHTimeStamp.cc

References ticFactor.

PHTimeStamp PHTimeStamp::operator-= ( time_t  t)

Definition at line 161 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 161 of file PHTimeStamp.cc

References ticFactor.

int PHTimeStamp::operator< ( const PHTimeStamp t) const

Definition at line 140 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 140 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

int PHTimeStamp::operator<= ( const PHTimeStamp t) const

Definition at line 150 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 150 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

int PHTimeStamp::operator== ( const PHTimeStamp t) const

Definition at line 125 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 125 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

int PHTimeStamp::operator> ( const PHTimeStamp t) const

Definition at line 135 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 135 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

int PHTimeStamp::operator>= ( const PHTimeStamp t) const

Definition at line 145 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 145 of file PHTimeStamp.cc

References getBinaryTime().

+ Here is the call graph for this function:

void PHTimeStamp::print ( )

Definition at line 117 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 117 of file PHTimeStamp.cc

Referenced by Fun4AllServer::BeginRun(), Fun4AllServer::BeginRunTimeStamp(), and Fun4AllServer::setRun().

+ Here is the caller graph for this function:

void PHTimeStamp::print ( ) const

Definition at line 167 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 167 of file PHTimeStamp.cc

void PHTimeStamp::set ( const int  year,
const int  month,
const int  day,
const int  hour,
const int  minute,
const int  second,
const int  fraction = 0 
)

Definition at line 48 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 48 of file PHTimeStamp.cc

References second, and G4InuclParticleNames::tm.

Referenced by operator>>().

+ Here is the caller graph for this function:

void PHTimeStamp::set ( const char *  timeString)

Definition at line 73 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 73 of file PHTimeStamp.cc

References strptime(), and G4InuclParticleNames::tm.

+ Here is the call graph for this function:

void PHTimeStamp::setBinTics ( const phtime_t  t)

Definition at line 97 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 97 of file PHTimeStamp.cc

References t.

void PHTimeStamp::setTics ( const time_t  tics)

Definition at line 92 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 92 of file PHTimeStamp.cc

Referenced by setToFarFuture().

+ Here is the caller graph for this function:

void PHTimeStamp::setToFarFuture ( )
inline

Definition at line 39 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 39 of file PHTimeStamp.h

References PHFarFuture, and setTics().

+ Here is the call graph for this function:

void PHTimeStamp::setToSystemTime ( )

Definition at line 82 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 82 of file PHTimeStamp.cc

References Acts::VectorHelpers::time().

+ Here is the call graph for this function:

phtime_t PHTimeStamp::ticsToBinaryTime ( time_t  tics) const
private

Definition at line 102 of file PHTimeStamp.cc.

View newest version in sPHENIX GitHub at line 102 of file PHTimeStamp.cc

References ticFactor, and ticOffset.

Member Data Documentation

phtime_t PHTimeStamp::binaryTime
protected

Definition at line 65 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 65 of file PHTimeStamp.h

Referenced by getBinaryTime().

const unsigned long long PHTimeStamp::PHFarFuture = ULLONG_MAX
static

Definition at line 23 of file PHTimeStamp.h.

View newest version in sPHENIX GitHub at line 23 of file PHTimeStamp.h

Referenced by setToFarFuture().


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