dump_peds.cxx File Reference

#include "dump_peds.h"
#include <Validity/VldTimeStamp.h>
#include <Validity/VldContext.h>
#include <Validity/VldRange.h>
#include <Conventions/Detector.h>
#include <Conventions/SimFlag.h>
#include <MessageService/MsgService.h>
#include <DatabaseInterface/DbiValidityRec.h>
#include <DatabaseInterface/DbiResultPtr.tpl>

Go to the source code of this file.

Functions

 CVSID ("$Id: dump_peds.cxx,v 1.3 2007/11/11 08:15:18 rhatcher Exp $")
void dump_peds ()

Function Documentation

CVSID ( "$Id: dump_peds.  cxx,
v 1.3 2007/11/11 08:15:18 rhatcher Exp $"   
)
void dump_peds (  ) 

Definition at line 19 of file dump_peds.cxx.

References det, DbiValidityRec::GetSeqNo(), DbiResultPtr< T >::GetValidityRec(), DbiValidityRec::GetVldRange(), SimFlag::kData, Detector::kNear, and DbiResultPtr< T >::NewQuery().

00020 {
00021 
00022     VldTimeStamp vts(2005,3,18,0,0,0);
00023     Detector::Detector_t det = Detector::kNear;
00024     SimFlag::SimFlag_t   sim = SimFlag::kData;
00025     VldContext vc(det,sim,vts);
00026 
00027     DbiResultPtr<BeamMonSwicPeds> p;
00028     int nrows = p.NewQuery(vc);
00029     
00030     const DbiValidityRec* vr = p.GetValidityRec();
00031     cerr << nrows << " rows, seqno=" << vr->GetSeqNo() 
00032          << " query vc = " << vc << endl
00033          << vr->GetVldRange() << endl;
00034 
00035 }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1