KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KVDP2toIDGridConvertor Class Reference

Converts dp2-format grids to KVIDGrids.

Set the name of the class (derived from KVIDGrid) using SetGridClass(), then convert file with Convert("dp2_grids.dat"). The new grids are added to gIDGridManager.

Definition at line 31 of file KVDP2toIDGridConvertor.h.

Public Member Functions

 KVDP2toIDGridConvertor ()
 Default constructor. More...
 
virtual ~KVDP2toIDGridConvertor ()
 Destructor. More...
 
void Convert (const Char_t *filename)
 
virtual void SetGridClass (const Char_t *cl)
 

Protected Member Functions

virtual void ReadFile (const Char_t *filename)
 Read grids in file and add to fGrids list. More...
 
virtual void ReadLineCoords (KVIDGrid *, std::ifstream &)
 

Protected Attributes

TClassfGridClass
 class of grid to create from dp2 file More...
 
TListfGrids
 list of new grids More...
 

#include <KVDP2toIDGridConvertor.h>

Inheritance diagram for KVDP2toIDGridConvertor:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVDP2toIDGridConvertor()

KVDP2toIDGridConvertor::KVDP2toIDGridConvertor ( )

Default constructor.

Definition at line 24 of file KVDP2toIDGridConvertor.cpp.

◆ ~KVDP2toIDGridConvertor()

KVDP2toIDGridConvertor::~KVDP2toIDGridConvertor ( )
virtual

Destructor.

Definition at line 38 of file KVDP2toIDGridConvertor.cpp.

Member Function Documentation

◆ Convert()

void KVDP2toIDGridConvertor::Convert ( const Char_t filename)

Definition at line 65 of file KVDP2toIDGridConvertor.cpp.

◆ ReadFile()

void KVDP2toIDGridConvertor::ReadFile ( const Char_t filename)
protectedvirtual

Read grids in file and add to fGrids list.

Definition at line 81 of file KVDP2toIDGridConvertor.cpp.

◆ ReadLineCoords()

void KVDP2toIDGridConvertor::ReadLineCoords ( KVIDGrid grid,
std::ifstream &  datfile 
)
protectedvirtual

Read coordinates of lines in the order they were created. We assume that the 'ID' lines are first, then the 'OK' lines

Definition at line 167 of file KVDP2toIDGridConvertor.cpp.

◆ SetGridClass()

void KVDP2toIDGridConvertor::SetGridClass ( const Char_t cl)
virtual

Definition at line 53 of file KVDP2toIDGridConvertor.cpp.

Member Data Documentation

◆ fGridClass

TClass* KVDP2toIDGridConvertor::fGridClass
protected

class of grid to create from dp2 file

Definition at line 33 of file KVDP2toIDGridConvertor.h.

◆ fGrids

TList* KVDP2toIDGridConvertor::fGrids
protected

list of new grids

Definition at line 34 of file KVDP2toIDGridConvertor.h.


The documentation for this class was generated from the following files: