KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDP2toIDGridConvertor Class Reference

Detailed Description

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 32 of file KVDP2toIDGridConvertor.h.

#include <KVDP2toIDGridConvertor.h>

Inheritance diagram for KVDP2toIDGridConvertor:

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

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)
privatevirtual

Read grids in file and add to fGrids list.

Definition at line 81 of file KVDP2toIDGridConvertor.cpp.

◆ ReadLineCoords()

void KVDP2toIDGridConvertor::ReadLineCoords ( KVIDGrid ,
std::ifstream &   
)
privatevirtual

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
private

class of grid to create from dp2 file

Definition at line 34 of file KVDP2toIDGridConvertor.h.

◆ fGrids

TList* KVDP2toIDGridConvertor::fGrids
private

list of new grids

Definition at line 35 of file KVDP2toIDGridConvertor.h.