EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairTimeStamp.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairTimeStamp.cxx
1 #include "FairTimeStamp.h"
2 
3 // ----- Default constructor -------------------------------------------
6  fTimeStamp(-1),
7  fTimeStampError(-1),
8  fEntryNr()
9 {
10 }
11 // ----- Standard constructor ------------------------------------------
14  fTimeStamp(time),
15  fTimeStampError(-1),
16  fEntryNr()
17 {
18 }
19 
20 FairTimeStamp::FairTimeStamp(Double_t time, Double_t timeerror)
22  fTimeStamp(time),
23  fTimeStampError(timeerror),
24  fEntryNr()
25 {
26 }
27 // ----- Destructor ----------------------------------------------------
29 {
30 }
31 
32 // -------------------------------------------------------------------------
33 
34 void FairTimeStamp::Print(std::ostream& out) const
35 {
36  out << "EntryNr of Data: " << fEntryNr << " TimeStamp: " << GetTimeStamp() << " +/- " << GetTimeStampError() << std::endl;
38 }