BDCheckDB.cxx File Reference

#include "BDCheckDB.h"
#include <BeamDataUtil/BDSpillAccessor.h>
#include <BeamDataUtil/BeamMonSpill.h>
#include <BeamDataUtil/BDEarliest.h>
#include <Validity/VldContext.h>
#include <Validity/VldTimeStamp.h>
#include <RawData/RawRecord.h>
#include <RawData/RawBeamMonHeaderBlock.h>
#include <RawData/RawBeamMonBlock.h>
#include <RawData/RawDataBlock.h>
#include <RawData/RawBeamData.h>
#include <Util/UtilMath.h>
#include <Conventions/Munits.h>
#include <HistMan/HistMan.h>
#include <Conventions/Detector.h>
#include <Conventions/SimFlag.h>
#include <SpillTiming/SpillTimeFinder.h>
#include <TSystem.h>
#include <TTree.h>
#include <TFile.h>
#include <list>
#include <string>
#include <iostream>

Go to the source code of this file.

Functions

VldTimeStamp get_timestamp (const RawBeamMonBlock &rbmb)

Variables

const char * TOROIDS [] = { "E:TOR101", "E:TR101D", "E:TORTGT", "E:TRTGTD", 0 }
const char * toroids [] = { "tor101", "tr101d", "tortgt", "trtgtd", 0 }

Function Documentation

VldTimeStamp get_timestamp ( const RawBeamMonBlock rbmb  ) 

Definition at line 138 of file BDCheckDB.cxx.

References BDEarliest::CalculateEarliest().

Referenced by BDCheckDB::CheckSpill().

00139 {
00140     double dae=0, vme=0;
00141     BDEarliest::CalculateEarliest(rbmb,dae,vme);
00142     if (vme == 0) {
00143         int t = (int)dae;
00144         return VldTimeStamp(t,(int)((dae-t)*1e9));
00145     }
00146     else {
00147         int t = (int)vme;
00148         return VldTimeStamp(t,(int)((vme-t)*1e9));
00149     }
00150 }


Variable Documentation

const char* toroids[] = { "tor101", "tr101d", "tortgt", "trtgtd", 0 }

Definition at line 32 of file BDCheckDB.cxx.

const char* TOROIDS[] = { "E:TOR101", "E:TR101D", "E:TORTGT", "E:TRTGTD", 0 }

Definition at line 31 of file BDCheckDB.cxx.

Referenced by BDCheckDB::BDCheckDB(), and BDCheckDB::CheckSpill().


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1