# ifndef HMDCTARGETGEOMETRY_H
# define HMDCTARGETGEOMETRY_H
using namespace std;
# include <fstream>
# include "TArrayF.h"
# include "hpario.h"
# include "hparset.h"
class HMdcTargetGeometry : public HParSet{
private:
Short_t fNSectors, fNModules;
Double_t fXDim;
Double_t fYDim;
TArrayF* fZPos;
inline Int_t getIndex(Int_t nSect, Int_t nMod){return nSect*fNModules+nMod;}
public:
HMdcTargetGeometry(const Char_t* name="MdcTargetGeometry",
const Char_t* title="target geometry for mdc reconstruction",
const Char_t* context="");
~HMdcTargetGeometry(void);
Bool_t init(HParIo* inp, Int_t* set);
Int_t write(HParIo* output);
Bool_t read(fstream *pFile, Int_t* set, Int_t inputNumber);
Int_t writeFile(fstream *pFile);
Short_t getNSectors(void){return fNSectors;}
Short_t getNModules(void){return fNModules;}
Double_t getXDim(void){return fXDim;}
Double_t getYDim(void){return fYDim;}
inline Double_t getZPos(Int_t sect, Int_t mod);
void setNSectors(Short_t sectors){fNSectors = sectors;}
void setNModules(Short_t modules){fNModules = modules;}
void setXDim(Double_t dim){fXDim = dim;}
void setYDim(Double_t dim){fYDim = dim;}
Bool_t setZPos(Int_t sect, Int_t mod, Double_t z);
ClassDef(HMdcTargetGeometry,1)
};
inline Double_t HMdcTargetGeometry :: getZPos(Int_t sect, Int_t mod){
return fZPos->At(getIndex(sect,mod));
}
# endif /* !HMDCTARGETGEOMETRY_H*/
Last change: Sat May 22 13:03:40 2010
Last generated: 2010-05-22 13:03
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.