10#include "KVDP2toCsIGridConvertor.h"
13#include "KVIDGridManager.h"
59 while ((grid = (
KVIDGrid*)nextGrid())) {
62 line->SetName(
"IMF_line");
67 else Error(KV__ERROR(
Convert),
"gIDGridManager=0x0: create an ID grid manager first!");
79 gamfile.open(gammafile);
81 if (!gamfile.good()) {
83 "Problem reading file %s", gammafile);
90 while (gamfile.good()) {
97 if (!s.BeginsWith(
'#')) {
98 int ring, modu, frun, lrun;
99 if (sscanf(s.Data(),
"%d %d %d %d", &ring, &modu, &frun, &lrun) !=
102 gammafile, s.Data());
109 (
"CsI R-L Grid First run=%d Last run=%d Ring min=%d Ring max=%d Mod min=%d Mod max=%d",
110 frun, lrun, ring, ring, modu, modu);
121 line->SetName(
"gamma_line");
126 for (
int i = 0; i < npoints; i++) {
char * Form(const char *fmt,...)
Converts dp2-format CsI R-L grids to KVIDGrids.
virtual ~KVDP2toCsIGridConvertor()
Destructor.
virtual void ReadGammaFile(const Char_t *gammafile)
void Convert(const Char_t *id_and_imf_file, const Char_t *gamma_file)
TList * fGrids
list of new grids
virtual void ReadFile(const Char_t *filename)
Read grids in file and add to fGrids list.
void Add(TString, KVIDentifier *)
const KVList * GetCuts() const
Abstract base class for 2D identification grids in e.g. (dE,E) maps.
KVIDLine * NewLine(const Char_t *idline_class="")
Base class for lines/cuts used for particle identification in 2D data maps.
Base class for graphical cuts used in particle identification.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual void AddAll(const TCollection *col)
void Clear(Option_t *option="") override
TObject * FindObject(const char *name) const override