Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit a8efc6e9 authored by dino's avatar dino
Browse files

TstampFilter::Initialize was not recording fTolerance


git-svn-id: svn://gal-serv.lnl.infn.it/agata/trunk/narval_emulator@1144 170316e4-aea8-4b27-aad4-0380ec0519c9
parent bf9d711a
......@@ -30,6 +30,7 @@ void TstampFilter::Reset()
fTimestamp = 0;
fTolerance = 0;
fCount = 0;
//memset(fStats, 0, sizeof(fStats));
}
bool TstampFilter::Initialize(std::string tstampFile, int tolerance)
......@@ -63,6 +64,7 @@ bool TstampFilter::Initialize(std::string tstampFile, int tolerance)
cout << "First timestamp " << fTimestamp << endl;
fCount = 1;
fFromFile = true;
fTolerance = tolerance;
return true;
}
......@@ -85,6 +87,7 @@ bool TstampFilter::CheckTstamp(ULong64_t timestamp)
if(fTimestamp <= timestamp) {
// value from file is in the past re present timestamp
ULong64_t tdiff = timestamp - fTimestamp;
//fStats[tdiff<1000?tdiff:999]++;
if(tdiff <= fTolerance) {
NextTstamp();
return true;
......@@ -94,6 +97,7 @@ bool TstampFilter::CheckTstamp(ULong64_t timestamp)
else {
// value from file is in the future re present timestamp
ULong64_t tdiff = fTimestamp-timestamp;
//fStats[tdiff<1000?tdiff:999]++;
if(tdiff <= fTolerance) {
NextTstamp();
return true;
......
......@@ -17,6 +17,7 @@ public:
ULong64_t fTolerance;
ULong64_t fTimestamp;
UInt_t fCount;
//UInt_t fStats[1000];
TstampFilter();
TstampFilter(std::string tstampFile, int tolerance);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment