BeamMonBaseModule.cxx File Reference

#include "BeamMonBaseModule.h"
#include <MessageService/MsgService.h>
#include <RawData/RawRecord.h>
#include <RawData/RawBeamMonBlock.h>
#include <RawData/RawBeamMonHeaderBlock.h>
#include <RawData/RawBeamData.h>
#include <DataUtil/GetRecords.h>
#include <HistMan/HistMan.h>
#include <Conventions/Munits.h>
#include <TGraph.h>
#include <TCanvas.h>
#include <vector>

Go to the source code of this file.

Functions

 CVSID ("$Id: BeamMonBaseModule.cxx,v 1.6 2005/05/31 21:24:01 thosieck Exp $")
template<class BlockType >
const BlockType * get_block (const RawRecord &rr)

Function Documentation

CVSID ( "$Id: BeamMonBaseModule.  cxx,
v 1.6 2005/05/31 21:24:01 thosieck Exp $"   
)
template<class BlockType >
const BlockType* get_block ( const RawRecord rr  )  [inline]

Definition at line 35 of file BeamMonBaseModule.cxx.

References RawRecord::GetRawBlockIter().

00036 {
00037     TIter itr = rr.GetRawBlockIter();
00038     const RawDataBlock* rdb = 0;
00039 
00040     // loop over blocks in record
00041     while ((rdb = dynamic_cast<RawDataBlock*>(itr()))) {
00042         const BlockType *block =  dynamic_cast<const BlockType*>(rdb);
00043         if (block) return block;
00044     }
00045     return 0;
00046 }


Generated on 19 Jan 2018 for loon by  doxygen 1.6.1