/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
RFileInfoTestAlg Class Reference

#include <RFileInfoTestAlg.h>

List of all members.

Public Member Functions

 RFileInfoTestAlg (const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Private Attributes

int m_SeqNo

Detailed Description

Definition at line 8 of file RFileInfoTestAlg.h.


Constructor & Destructor Documentation

RFileInfoTestAlg::RFileInfoTestAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 5 of file RFileInfoTestAlg.cc.

: GaudiAlgorithm(name, pSvcLocator)
{
 info() << " RFileInfoTestAlg construcated!! " << endreq;
 declareProperty("SEQNo",m_SeqNo=1," the started SeqNO");
 //dbi().Enable(100);
}

Member Function Documentation

StatusCode RFileInfoTestAlg::initialize ( )

Definition at line 14 of file RFileInfoTestAlg.cc.

                                       {
  info() << " RFileInfoTestAlg initializing !! " << endreq;
 return StatusCode::SUCCESS;
}
StatusCode RFileInfoTestAlg::execute ( )

Definition at line 19 of file RFileInfoTestAlg.cc.

                                    {

 info() << "====>  RFileInfoTestAlg executing !! " << endreq;
  
 // Query Data with Context 
 // TimeStamp tstamp(2009, 8, 26 ,9, 45, 20);
 // Context vc(Site::kDayaBay, SimFlag::kMC, tstamp);
 //DbiResultPtr<DaqRawDataFileInfo>  m_ResPtr(vc, 0,0);
 
 // Query Data with SeqNo.
 DbiResultPtr<DaqRawDataFileInfo>  m_ResPtr("DaqRawDataFileInfo",m_SeqNo, 0 );
 info()<<"--------------------------------------------------------"<<std::endl;
 info()<< m_ResPtr.GetValidityRec()-> GetContextRange().AsString() <<std::endl;
 info()<<" The Num Rows to be queried ==> "<< m_ResPtr.GetNumRows()<< std::endl;

 for ( UInt_t irow = 0; irow < m_ResPtr.GetNumRows(); ++irow) {
      const  DaqRawDataFileInfo* ddd1 = m_ResPtr.GetRow(irow);
      info()<<"==> ["<<irow<<"]:"<< "\n"
            <<" RUNNO ="         << ddd1-> GetRunNo()<<"\n  "
            <<"FileNO ="         << ddd1-> GetFileNo()<<"\n  "
            <<"FILENAME="        << ddd1-> GetFileName() <<"\n"
            <<"FILESTATE="       << ddd1-> GetFileState() <<"\n"
            <<"FILESIZE="        << ddd1-> GetFileSize()<<"\n"
            <<"CHECKSUM="        << ddd1-> GetCheckSum()<<"\n"
            <<"TRANSFERSTATE="   << ddd1-> GetTransferState()<<std::endl;
 }
 m_SeqNo++;

 return StatusCode::SUCCESS;
}
StatusCode RFileInfoTestAlg::finalize ( )

Definition at line 50 of file RFileInfoTestAlg.cc.

                                     {
  info() << " RFileInfoTestAlg finalized!! " << endreq;
 return StatusCode::SUCCESS;
}

Member Data Documentation

Definition at line 17 of file RFileInfoTestAlg.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:59 for DbiRawDataFileSvc by doxygen 1.7.4