#include "hmdcclusfit.h"

HMdcClusFit


class description - source file - inheritance tree (.pdf)

class HMdcClusFit : public TObject

Inheritance Chart:
TObject
<-
HMdcClusFit
<-
HMdcClusFitSim

    public:
HMdcClusFit() HMdcClusFit(const HMdcClusFit&) ~HMdcClusFit() void calcRZtoLineXY(Float_t& zm, Float_t& r0, Float_t x1, Float_t y1, Float_t z1, Float_t x2, Float_t y2, Float_t z2, Float_t xBeam = 0., Float_t yBeam = 0.) const static TClass* Class() void clear() void getAddress(Int_t& sc, Int_t& sg, Int_t& md) const Float_t getChi2() const void getClustAddress(Int_t& sc, Int_t& sg, Int_t& ind) const Int_t getClustIndex() const Char_t getDistTimeVer() const Char_t getExitFlag() const Int_t getFirstWireFitInd() const Char_t getFitAuthor() const Bool_t getFitStatus() const Char_t getFitType() const Char_t getFitVersion() const Float_t getFunMin() const void getIndexis(Int_t& indexf, Int_t& indexl) const Int_t getIndf() const Int_t getIndl() const Char_t getIOSeg() const Int_t getLastWireFitInd() const Char_t getMod() const Int_t getNextIndex(Int_t ind) const Char_t getNParam(Char_t v) const Short_t getNumIter() const Char_t getNumOfLayers() const Short_t getNumOfWires() const Float_t getPhi() const void getRZmin(Float_t& zm, Float_t& r0, Float_t xBm = 0., Float_t yBm = 0.) const Char_t getSec() const Float_t getSigmaChi2() const Float_t getTheta() const Float_t getTimeOff(Int_t mod) const Float_t getTimeOffset(Int_t mod) const Float_t getTimeOffsetMdc1() const Float_t getTimeOffsetMdc2() const Float_t getTimeOffsetMdc3() const Float_t getTimeOffsetMdc4() const Short_t getTotNumOfWires() const Float_t getX1() const Float_t getX2() const Float_t getY1() const Float_t getY2() const Float_t getZ1() const Float_t getZ2() const virtual TClass* IsA() const virtual Bool_t isGeant() const HMdcClusFit& operator=(const HMdcClusFit&) virtual void print() const void setAddress(Char_t sc, Char_t sg, Char_t md) void setClustIndex(Int_t v) void setDistTimeVer(Char_t v) void setExitFlag(Char_t fl) void setFirstWireFitInd(Int_t v) void setFitAuthor(Char_t v) void setFitStatus(Bool_t stat) void setFitType(Char_t v) void setFitVersion(Char_t v) void setFunMin(Float_t v) void setIOSeg(Char_t sg) void setLastWireFitInd(Int_t v) void setMod(Char_t m) void setNParam(Char_t v) void setNumIter(Short_t v) void setNumOfLayers(Int_t v) void setNumOfWires(Int_t v) void setSec(Char_t sc) void setSigmaChi2(Float_t v) void setTimeOff(const Double_t* tos) void setX1(Float_t v) void setX2(Float_t v) void setY1(Float_t v) void setY2(Float_t v) void setZ1(Float_t v) void setZ2(Float_t v) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Char_t sec sector [0-5] Char_t seg =0 or 1 segment fit, =3 sector fit Char_t mod =0,1,2,3 - module; =-1 - segment fit Char_t fitAuthor fit version, =1 - old Alexander's fit version Char_t distTimeVer 0-calc. time by polinom., 1-by J.Market's func. Char_t fitType 0 - segment fit, 1 - mdc fit Char_t nParam number of parameters Float_t functional value of functional Float_t timeOffMdc1 time offset for each MDC in sec. [ns] Float_t timeOffMdc2 if timeOff==-1000. no wires in this mod. Float_t timeOffMdc3 Float_t timeOffMdc4 Short_t numOfWires Num. of wires with weight > weight_min Char_t numOfLayers Num. of layers with wire weight > weight_min Float_t x1 Track parameters: [mm] Float_t y1 Track is line (x1,y1,z1) - (x2,y2,z2) Float_t z1 in sector coor. system. Float_t x2 Float_t y2 Float_t z2 Short_t numIter number of iterations Int_t indf index of the first HMdcWireFit obj. in catMdcWireFit Int_t indl index of the last HMdcWireFit obj. in catMdcWireFit Int_t clustIndex cluster address: [sec],[seg],[clustIndex] Char_t exitFlag flag of track fitter exit [1-3] Float_t sigmaChi2 final sigma of chi2 distr. which was Bool_t fitStatus kTRUE if fit result is accepted

Class Description


 HMdcClusFit

 Container class keep fit information for debuging.

 void setAddress(Char_t sc, Char_t sg, Char_t md)
 void setSec(Char_t sc)
               Set sector.
 void setIOSeg(Char_t sg)
               Set segment. It can be equal 0,1 (segment fit) or 3 sector fit.
 void setMod(Char_t m)
               Set module. It can be equal 0,1,2,3 - one module fit,
               or -1 - segment fit.
 void setFitAuthor(Char_t v)
               Old name of function. Use setFitVersion(Char_t v) instead it.
 void setFitVersion(Char_t v)
               Set fit version. =1 - old Alexander's fit version
 void setDistTimeVer(Char_t v)
               Set distence=>drift_time calc. version
               Now only one version exist (=1-by J.Market's func.)
 void setFitType(Char_t v)
               Set fit type.
               =0 - segment (or sector) fit, =1 - one mdc fit
 void setNParam(Char_t v)
               Set number of parameters in fit.
 void setFunMin(Float_t v)
               Set value of functional.
 void setNumOfWires(Int_t v)
               Set number of wires passed fit.
 void setNumOfLayers(Int_t v)
               Set number of layers.
 void setX1(Float_t v)
 void setY1(Float_t v)
 void setZ1(Float_t v)
 void setX2(Float_t v)
 void setY2(Float_t v)
 void setZ2(Float_t v)
               Set track parameters. It is two point in sector coor.sys. [mm]
 void setNumIter(Short_t v)
               Set number of iterations
 void setFirstWireFitInd(Int_t v)
               Set index of the first HMdcWireFit object in catMdcWireFit
               for this track.
 void setLastWireFitInd(Int_t v)
               Set index of the last HMdcWireFit object in catMdcWireFit
               for this track.
 void setClustIndex(Int_t v)
               Set index of HMdcClus object in catMdcClus for this track.
 void setTimeOff(const Double_t* tos)
               Set time offsets for each MDC in fit.
  void seFitStatus(Bool_t stat)
               Set fit status. kTRUE if fit result is accepted. kFALSE if not.


 void    getAddress(Int_t& sc, Int_t& sg, Int_t& md)
 Char_t  getSec(void)
               Get sector.
 Char_t  getIOSeg(void)
               Get segment. Return 0,1 for segment fit or 3 for sector fit.
 Char_t  getMod(void)
               Get module. It can be equal 0,1,2,3 for one module fit,
               or -1 - segment or sector fit.
 Char_t  getFitAuthor(void)
               Old name of function. Use getFitVersion() instead it.
 Char_t  getFitVersion(void)
               Get fit version. =1 - old Alexander's fit version
 Char_t  getDistTimeVer(void)
               Get distence=>drift_time calc. version
               Now only one version exist (=1-by J.Market's func.)
 Char_t  getFitType(void)
               Get fit type.
               =0 - segment (or sector) fit, =1 - one mdc fit
 Char_t  getNParam(Char_t v)
               Get number of parameters in fit.
 Float_t getFunMin(void)
               Get value of functional.
 Float_t getChi2(void)
               Get chi2 per one deg. of freedom.
 Float_t getTimeOff(Int_t mod);
               Old name of function. Use getTimeOffset(Int_t mod) instead it.
 Float_t getTimeOffset(Int_t mod)
               Get time offset for module =mod.
               return -1000. if mod is not valid (<0 or >3).
 Float_t getTimeOffsetMdc1(void)
               Get time offset for module 1 (from 1)
 Float_t getTimeOffsetMdc2(void)
               Get time offset for module 2 (from 1)
 Float_t getTimeOffsetMdc3(void)
               Get time offset for module 3 (from 1)
 Float_t getTimeOffsetMdc4(void)
               Get time offset for module 4 (from 1)
 Short_t getNumOfWires(void)
               Get number of wires passed fit.
 Short_t getTotNumOfWires(void)
               Get total number of wires in fit.
 Char_t  getNumOfLayers(void)
               Get number of layers.
 Float_t getX1(void)
 Float_t getY1(void)
 Float_t getZ1(void)
 Float_t getX2(void)
 Float_t getY2(void)
 Float_t getZ2(void)
               Get track parameters. It is two point in sector coor.sys. [mm]
 Float_t getPhi(void)
               Get angle phi of track [rad]
 Float_t getTheta(void)
               Get angle theta of track [rad]
 Short_t getNumIter(void)
               Get number of iterations
 Int_t   getIndf(void)
               Old name of function. Use getFirstWireFitInd() instead it.
 Int_t   getIndl(void)
               Old name of function. Use getLastWireFitInd() instead it.
 Int_t   getFirstWireFitInd(void)
               Get index of the first HMdcWireFit object in catMdcWireFit.
               for this track.
 Int_t   getLastWireFitInd(void)
               Get index of the last HMdcWireFit object in catMdcWireFit
               for this track.
 void    getIndexis(Int_t &indexf,Int_t &indexl)
               Get indexis of the first and last HMdcWireFit
               objects in catMdcWireFit.
 Int_t   getClustIndex(void)
               Get index of HMdcClus object in catMdcClus for this track.
               Index here is the third index in cluster location:
               [sector][segment][index]
 void    getClustAddress(Int_t& sc, Int_t& sg, Int_t& ind)
               Get location of cluster in
 Int_t   getNextIndex(Int_t ind)
               Get index of the next HMdcWireFit object for this track.
               Using:
               Int_t ind=-1;
               while((ind=pHMdcClusFit->getNextIndex(ind)) >=0) {
                 HMdcWireFit* pWireFit =
                           (HMdcWireFit*)pCatWireFit->getObect(ind);
                 ...
               }
  Bool_t  geFitStatus(void)
               Return kTRUE if fit result was accepted, kFALSE if not.

 void print()
              Print container.
 Bool_t isGeant()
              Return kFALSE



void print(void) const
 Printing of container.

void setTimeOff(const Double_t* tos)
 Set time offset for MDC modules

Float_t getTimeOff(Int_t mod) const
 Return time offset for MDC module number "mod"

void Streamer(TBuffer &R__b)
 Stream an object of class HMdcClusFit.

void calcRZtoLineXY(Float_t &zm, Float_t &r0, Float_t x1, Float_t y1, Float_t z1, Float_t x2, Float_t y2, Float_t z2, Float_t xBm, Float_t yBm) const
 zm= z1 - cos(theta)/sin(theta) * ((x1-xBm)*cos(phi)+(y1-yBm)*sin(phi))
 r0=(y1-yBm)*cos(phi)-(x1-xBm)*sin(phi)

 If (x1,y1,z1)=(x2,y2,z2) dZ will eq.1.!



Inline Functions


                void ~HMdcClusFit()
         HMdcClusFit HMdcClusFit()
                void clear()
                void setAddress(Char_t sc, Char_t sg, Char_t md)
                void setSec(Char_t sc)
                void setIOSeg(Char_t sg)
                void setMod(Char_t m)
                void setFitAuthor(Char_t v)
                void setFitVersion(Char_t v)
                void setDistTimeVer(Char_t v)
                void setFitType(Char_t v)
                void setNParam(Char_t v)
                void setFunMin(Float_t v)
                void setNumOfWires(Int_t v)
                void setNumOfLayers(Int_t v)
                void setX1(Float_t v)
                void setY1(Float_t v)
                void setZ1(Float_t v)
                void setX2(Float_t v)
                void setY2(Float_t v)
                void setZ2(Float_t v)
                void setNumIter(Short_t v)
                void setFirstWireFitInd(Int_t v)
                void setLastWireFitInd(Int_t v)
                void setClustIndex(Int_t v)
                void setExitFlag(Char_t fl)
                void setSigmaChi2(Float_t v)
                void setFitStatus(Bool_t stat)
              Char_t getSec() const
              Char_t getIOSeg() const
              Char_t getMod() const
              Char_t getFitAuthor() const
              Char_t getFitVersion() const
              Char_t getDistTimeVer() const
              Char_t getFitType() const
              Char_t getNParam(Char_t v) const
             Float_t getFunMin() const
             Float_t getTimeOffset(Int_t mod) const
             Float_t getTimeOffsetMdc1() const
             Float_t getTimeOffsetMdc2() const
             Float_t getTimeOffsetMdc3() const
             Float_t getTimeOffsetMdc4() const
             Short_t getNumOfWires() const
             Short_t getTotNumOfWires() const
              Char_t getNumOfLayers() const
             Float_t getX1() const
             Float_t getY1() const
             Float_t getZ1() const
             Float_t getX2() const
             Float_t getY2() const
             Float_t getZ2() const
             Short_t getNumIter() const
               Int_t getIndf() const
               Int_t getIndl() const
               Int_t getFirstWireFitInd() const
               Int_t getLastWireFitInd() const
               Int_t getClustIndex() const
             Float_t getPhi() const
              Char_t getExitFlag() const
             Float_t getSigmaChi2() const
              Bool_t getFitStatus() const
             Float_t getChi2() const
                void getIndexis(Int_t& indexf, Int_t& indexl) const
                void getAddress(Int_t& sc, Int_t& sg, Int_t& md) const
                void getClustAddress(Int_t& sc, Int_t& sg, Int_t& ind) const
             Float_t getTheta() const
               Int_t getNextIndex(Int_t ind) const
                void getRZmin(Float_t& zm, Float_t& r0, Float_t xBm = 0., Float_t yBm = 0.) const
              Bool_t isGeant() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void StreamerNVirtual(TBuffer& b)
         HMdcClusFit HMdcClusFit(const HMdcClusFit&)
        HMdcClusFit& operator=(const HMdcClusFit&)


Last update: Fri Jan 26 12:04:17 2007


ROOT page - Class index - Class Hierarchy - Top of the page

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.