#ifndef HMDCLAYERGEOMPAR_H
#define HMDCLAYERGEOMPAR_H
#include "TObject.h"
#include "TObjArray.h"
#include "TArrayI.h"
#include "TNtuple.h"
#include "hparset.h"
#include "hgeomtransform.h"
class HMdcLayerGeomParLay : public TObject {
protected:
Float_t pitch;
Int_t numWires;
Float_t catDist;
Float_t wireOrient;
Float_t centralWireNr;
Float_t cathodeWireThickness;
HGeomTransform layerPos;
public:
HMdcLayerGeomParLay() : pitch(0.F), numWires(0), catDist(0.F),
wireOrient(0.F), centralWireNr(-1.F) {;}
~HMdcLayerGeomParLay() {;}
Float_t getPitch() {return pitch;}
Int_t getNumWires() {return numWires;}
Float_t getCatDist() {return catDist;}
Float_t getWireOrient() {return wireOrient;}
Float_t getCentralWireNr() {return centralWireNr;}
Float_t getCathodeWireThickness() {return cathodeWireThickness;}
HGeomTransform& getLayerPos() {return layerPos;}
void fill(Float_t a, Float_t c, Float_t d, Float_t e, Float_t t) {
pitch=a;
catDist=c;
wireOrient=d;
centralWireNr=e;
cathodeWireThickness=t;
}
void fill(HMdcLayerGeomParLay&);
void setPitch(Float_t a) {pitch=a;}
void setNumWires(Int_t b) {numWires=b;}
void setCatDist(Float_t c) {catDist=c;}
void setWireOrient(Float_t d) {wireOrient=d;}
void setCentralWireNr(Float_t e) {centralWireNr=e;}
void setCathodeWireThickness(Float_t t) {cathodeWireThickness=t;}
void clear() {
pitch=0.F;
catDist=0.F;
wireOrient=0.F;
centralWireNr=-1.F;
cathodeWireThickness=0.F;
}
ClassDef(HMdcLayerGeomParLay,2)
};
class HMdcLayerGeomParMod : public TObject {
protected:
TObjArray* array;
public:
HMdcLayerGeomParMod();
~HMdcLayerGeomParMod();
HMdcLayerGeomParLay& operator[](Int_t i) {
return *static_cast<HMdcLayerGeomParLay*>((*array)[i]);
}
Int_t getSize();
ClassDef(HMdcLayerGeomParMod,1)
};
class HMdcLayerGeomParSec : public TObject {
protected:
TObjArray* array;
public:
HMdcLayerGeomParSec();
~HMdcLayerGeomParSec();
HMdcLayerGeomParMod& operator[](Int_t i) {
return *static_cast<HMdcLayerGeomParMod*>((*array)[i]);
}
Int_t getSize();
ClassDef(HMdcLayerGeomParSec,1)
};
class HMdcLayerGeomPar : public HParSet {
protected:
TObjArray* array;
TNtuple* ntuple;
public:
HMdcLayerGeomPar(const Char_t* name="MdcLayerGeomPar",
const Char_t* title="geometry parameters for Mdc layers",
const Char_t* context="MdcLayerGeomParProduction");
~HMdcLayerGeomPar();
HMdcLayerGeomParSec& operator[](Int_t i) {
return *static_cast<HMdcLayerGeomParSec*>((*array)[i]);
}
Int_t getSize();
Bool_t init(HParIo* input,Int_t* set);
Int_t write(HParIo* output);
void readline(const Char_t*, Int_t*);
void putAsciiHeader(TString&);
Bool_t writeline(Char_t *, Int_t, Int_t, Int_t);
void clear();
TNtuple* getNtuple();
void printParam();
void calcLayerTransformations();
ClassDef(HMdcLayerGeomPar,1)
};
#endif /*!HMDCLAYERGEOMPAR_H*/
Last change: Sat May 22 13:02:31 2010
Last generated: 2010-05-22 13:02
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.