BDEarliest.cxx File Reference

#include "BDEarliest.h"
#include "BDDevices.h"
#include <TString.h>
#include <RawData/RawBeamMonHeaderBlock.h>
#include <RawData/RawBeamMonBlock.h>
#include <RawData/RawBeamData.h>
#include <RawData/RawBeamSwicData.h>
#include <cmath>
#include "MessageService/MsgService.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: BDEarliest.cxx,v 1.6 2005/11/07 23:59:31 bv Exp $")
static double find_earliest (const RawBeamMonBlock &rbmb, const vector< string > &dev)

Function Documentation

CVSID ( "$Id: BDEarliest.  cxx,
v 1.6 2005/11/07 23:59:31 bv Exp $"   
)
static double find_earliest ( const RawBeamMonBlock rbmb,
const vector< string > &  dev 
) [static]

Definition at line 24 of file BDEarliest.cxx.

References RawBeamData::GetMsecs(), and RawBeamData::GetSeconds().

Referenced by BDEarliest::CalculateEarliest().

00025 {
00026     double earliest=-1;
00027     for (size_t ind=0; ind < dev.size(); ++ind) {
00028         const RawBeamData* rbd = rbmb[dev[ind]];
00029         if (!rbd) continue;
00030 
00031         double dae = rbd->GetSeconds() + rbd->GetMsecs()/1.0e3;
00032         if (earliest < 0 || dae < earliest)
00033             earliest = dae;
00034     }
00035     return earliest;
00036 }


Generated on 25 Apr 2018 for loon by  doxygen 1.6.1