#ifndef HRPCGEOMCELLPAR_H
#define HRPCGEOMCELLPAR_H
#include "TObject.h"
#include "TObjArray.h"
#include "hlocation.h"
#include "hparset.h"
class HRpcGeomCellParCell : public TObject {
private:
Float_t Length;
Float_t X_left;
Float_t Y_left;
Float_t width;
Float_t widthT;
Float_t thetaL;
Float_t thetaR;
public:
HRpcGeomCellParCell(void) {clear();}
~HRpcGeomCellParCell(void) {}
Float_t getLength() { return Length; }
Float_t getX() { return X_left; }
Float_t getY() { return Y_left; }
Float_t getWidth() { return width; }
Float_t getWidthT() { return widthT; }
Float_t getThetaL() { return thetaL; }
Float_t getThetaR() { return thetaR; }
void fill(HRpcGeomCellParCell& ce) {
Length = ce.getLength();
X_left = ce.getX();
Y_left = ce.getY();
width = ce.getWidth();
widthT = ce.getWidthT();
thetaL = ce.getThetaL();
thetaR = ce.getThetaR();
}
void setLength(Float_t aLength) { Length = aLength; }
void setX(Float_t aX_left) { X_left = aX_left; }
void setY(Float_t aY_left) { Y_left = aY_left; }
void setWidth(Float_t awidth) { width = awidth; }
void setWidthT(Float_t awidthT) { widthT = awidthT; }
void setThetaL(Float_t athetaL) { thetaL = athetaL; }
void setThetaR(Float_t athetaR) { thetaR = athetaR; }
void setDefaults(Int_t f);
void clear();
ClassDef(HRpcGeomCellParCell,1)
};
class HRpcGeomCellParCol: public TObject {
private:
TObjArray* array;
public:
HRpcGeomCellParCol(Int_t s=0, Int_t co=0);
~HRpcGeomCellParCol();
HRpcGeomCellParCell& operator[](Int_t i) {
return *static_cast<HRpcGeomCellParCell*>((*array)[i]);
}
Int_t getSize() { return array->GetEntries(); }
ClassDef(HRpcGeomCellParCol,1)
};
class HRpcGeomCellParSec: public TObject {
private:
TObjArray* array;
public:
HRpcGeomCellParSec(Int_t s=0, Int_t co=0);
~HRpcGeomCellParSec();
HRpcGeomCellParCol& operator[](Int_t i) {
return *static_cast<HRpcGeomCellParCol*>((*array)[i]);
}
Int_t getSize() { return array->GetEntries(); }
ClassDef(HRpcGeomCellParSec,1)
};
class HRpcGeomCellPar : public HParSet {
private:
TObjArray* array;
void printPause(void);
public:
HRpcGeomCellPar(const Char_t* name = "RpcGeomCellPar",
const Char_t* title = "Geometry parameters of cells for the Rpc Detector",
const Char_t* context = "RpcGeomCellProduction");
~HRpcGeomCellPar(void);
HRpcGeomCellParSec& operator[](Int_t i) {
return *static_cast<HRpcGeomCellParSec*>((*array)[i]);
}
Int_t getSize() { return array->GetEntries(); }
Bool_t init(HParIo*,Int_t*);
Int_t write(HParIo*);
void clear();
void printParam();
void readline(const Char_t*, Int_t*);
void putAsciiHeader(TString&);
Bool_t writeline(Char_t*, Int_t, Int_t, Int_t);
ClassDef(HRpcGeomCellPar,1)
};
#endif /* !HRPCGEOMCELLPAR_H */
Last change: Sat May 22 13:11:15 2010
Last generated: 2010-05-22 13:11
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.