![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#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 PHObject * | CloneMe () const |
| Virtual copy constructor. | |
| virtual PHObject * | clone () const final |
| PHObject * | Clone (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 | 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 |
Definition at line 20 of file PHTimeStamp.h.
View newest version in sPHENIX GitHub at line 20 of file PHTimeStamp.h
| PHTimeStamp::PHTimeStamp | ( | ) |
Definition at line 27 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 27 of file PHTimeStamp.cc
References setTics(), and Acts::Test::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 34 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 34 of file PHTimeStamp.cc
| PHTimeStamp::PHTimeStamp | ( | const time_t | t | ) |
Definition at line 40 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 40 of file PHTimeStamp.cc
References setTics().
Here is the call graph for this function:
|
inlineoverride |
Definition at line 31 of file PHTimeStamp.h.
View newest version in sPHENIX GitHub at line 31 of file PHTimeStamp.h
|
private |
Definition at line 105 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 105 of file PHTimeStamp.cc
References ticFactor, and ticOffset.
Referenced by getTics().
Here is the caller graph for this function:| char * PHTimeStamp::formatTimeString | ( | ) | const |
Definition at line 169 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 169 of file PHTimeStamp.cc
References getTics(), line, and physmon_ckf_tracking::u.
Here is the call graph for this function:
|
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 |
Definition at line 85 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 85 of file PHTimeStamp.cc
References binaryTime, and binaryTimeToTics().
Referenced by OnCalServer::BeginRun(), PgPostBankBackupManager::CleanTable(), OnCalServer::ClosestGoodRun(), OnCalServer::CreateCalibrationUpdateStatus(), OnCalServer::End(), PgPostCalBankIterator::ValPeriod::end(), PgPostBankManager::fetchBank(), OnCalServer::FindClosestCalibratedRun(), formatTimeString(), PgPostBankBackupStorage::BankHeader::get_id_string(), OnCalServer::GetBeginValidityTS(), OnCalServer::GetEndValidityTS(), RunToTimePg::getRunNumber(), OnCalServer::GetRunTimeTicks(), operator-(), operator<<(), OnCalServer::SetEorTime(), PgPostBankManager::SetMaxInsertTime(), PgPostCalBankIterator::ValPeriod::start(), OnCalServer::SyncOncalTimeStampsToRunDB(), PHParametersContainer::WriteToFile(), PdbParameterMapContainer::WriteToFile(), and PHParameters::WriteToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| int PHTimeStamp::isInRange | ( | const PHTimeStamp & | t1, |
| const PHTimeStamp & | t2 | ||
| ) |
Definition at line 110 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 110 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| int PHTimeStamp::operator!= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 128 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 128 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| PHTimeStamp PHTimeStamp::operator+= | ( | time_t | t | ) |
Definition at line 153 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 153 of file PHTimeStamp.cc
References binaryTime, and ticFactor.
| PHTimeStamp PHTimeStamp::operator-= | ( | time_t | t | ) |
Definition at line 159 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 159 of file PHTimeStamp.cc
References binaryTime, and ticFactor.
| int PHTimeStamp::operator< | ( | const PHTimeStamp & | t | ) | const |
Definition at line 138 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 138 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| int PHTimeStamp::operator<= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 148 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 148 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| int PHTimeStamp::operator== | ( | const PHTimeStamp & | t | ) | const |
Definition at line 123 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 123 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| int PHTimeStamp::operator> | ( | const PHTimeStamp & | t | ) | const |
Definition at line 133 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 133 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| int PHTimeStamp::operator>= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 143 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 143 of file PHTimeStamp.cc
References binaryTime, and getBinaryTime().
Here is the call graph for this function:| void PHTimeStamp::print | ( | ) |
Definition at line 115 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 115 of file PHTimeStamp.cc
Referenced by Fun4AllServer::BeginRun(), Fun4AllServer::BeginRunTimeStamp(), OnCalServer::GetLastGoodRunTS(), OnCalServer::printStamps(), and OnCalServer::SetBorTime().
Here is the caller graph for this function:| void PHTimeStamp::print | ( | ) | const |
Definition at line 165 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 165 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 46 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 46 of file PHTimeStamp.cc
References binaryTime, and setTics().
Referenced by operator>>().
Here is the call graph for this function:
Here is the caller graph for this function:| void PHTimeStamp::set | ( | const char * | timeString | ) |
Definition at line 71 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 71 of file PHTimeStamp.cc
References setTics(), and strptime().
Here is the call graph for this function:| void PHTimeStamp::setBinTics | ( | const phtime_t | t | ) |
Definition at line 95 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 95 of file PHTimeStamp.cc
References binaryTime, and t.
| void PHTimeStamp::setTics | ( | const time_t | tics | ) |
Definition at line 90 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 90 of file PHTimeStamp.cc
References binaryTime, and ticsToBinaryTime().
Referenced by OnCalServer::OnCalServer(), PHTimeStamp(), set(), setToFarFuture(), and setToSystemTime().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 80 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 80 of file PHTimeStamp.cc
References setTics(), and Acts::Test::time.
Here is the call graph for this function:
|
private |
Definition at line 100 of file PHTimeStamp.cc.
View newest version in sPHENIX GitHub at line 100 of file PHTimeStamp.cc
References ticFactor, and ticOffset.
Referenced by setTics().
Here is the caller graph for this function:
|
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(), getTics(), isInRange(), operator!=(), operator+=(), operator-=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), set(), setBinTics(), and setTics().
|
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().