Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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  ) 
 

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 Mon Feb 15 11:07:53 2010 for loon by  doxygen 1.3.9.1