Commit 58a703ca authored by prototype's avatar prototype
Browse files

just some types

git-svn-id: svn://gal-serv.lnl.infn.it/agata/trunk/narval_emulator@1126 170316e4-aea8-4b27-aad4-0380ec0519c9
parent 186b233a
......@@ -43,13 +43,13 @@ public:
if(val != 0x7FFFFFFF)
tstnew += val;
else
tstnew = (tstnew>>8)&0xFFFFFF000000 | tstnew&0xFFFFFF;
tstnew = (tstnew>>8)&0xFFFFFF000000ULL | tstnew&0xFFFFFF;
#endif
ibuf[0] = (UInt_t)( tstnew & 0XFFFFFFFF);
ibuf[1] = (UInt_t)((tstnew >> 32) & 0XFFFFFFFF);
}
void addTstDiff(ULong64_t timestamp) {
if(tstOld == 0) {
if(tstOld == 0) {
#if 1
// seconds and fraction of seconds of first timestamp, assuming 100 Ms/s
sTstDiff->add(UInt_t(timestamp/100000000));
......@@ -64,7 +64,7 @@ public:
ULong64_t tstdiff = timestamp - tstOld;
sTstDiff->add(UInt_t(tstdiff & 0xFFFFFFFF));
}
tstOld = timestamp;
tstOld = timestamp;
}
UInt_t getKey() {
return data[indFirst+1];
......
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