Warning, /include/eicsmear/erhic/ForesterStatus.h.betterbutdifferent is written in an unsupported language. File is not indexed.
0001 #ifndef INCLUDE_EICSMEAR_ERHIC_FORESTER_STATUS_H_
0002 #define INCLUDE_EICSMEAR_ERHIC_FORESTER_STATUS_H_
0003
0004 // C(++) headers
0005 #include <cmath>
0006 #include <ctime>
0007 #include <fstream>
0008 #include <iomanip>
0009 #include <iostream>
0010 #include <string>
0011
0012 // ROOT headers
0013 #include <Rtypes.h>
0014 #include <TFile.h>
0015 #include <TStopwatch.h>
0016 #include <TTree.h>
0017
0018 // Other headers
0019 #include "eicsmear/erhic/EventMC.h"
0020
0021 namespace erhic {
0022
0023 // -------------------------------------------------
0024 /**
0025 Stores summary information about the last call to Forester::Plant().
0026 KK: Pulled outside of the nesting because of compilation issues with root6
0027 */
0028 class ForesterStatus{
0029 public:
0030 ForesterStatus();
0031
0032 virtual ~ForesterStatus();
0033 virtual std::ostream& Print(std::ostream& os = std::cout) const;
0034
0035 protected:
0036 virtual void StartTimer();
0037 virtual void StopTimer();
0038 virtual void ModifyEventCount(Long64_t count);
0039 virtual void ModifyParticleCount(Long64_t count);
0040
0041 time_t mStartTime;
0042 time_t mEndTime;
0043 Long64_t mNEvents;
0044 Long64_t mNParticles;
0045
0046 // The TStopwatch is mutable as "GetRealTime()" is non-const.
0047 mutable TStopwatch mTimer;
0048
0049 friend class Forester;
0050
0051 ClassDef(ForesterStatus, 1)
0052 /* nop for formatting */ ;
0053 };
0054
0055 // End of class Status
0056 }
0057 #endif