ROOT logo
#ifndef HMDCCAL2_H
#define HMDCCAL2_H

#include "TObject.h"

class HMdcCal2 : public TObject {
protected:
  Int_t nHits;      // number of hits in this cell
  Float_t dist1;    // distance to the wire of first hit [mm]
  Float_t dist2;    // distance to the wire of second hit [mm]
  Float_t errDist1; // error of distance for first hit  [mm]
  Float_t errDist2; // error of distance for second hit [mm]
  Int_t sector;     // sector number [0-5]
  Int_t module;     // module number [0-3]
  Int_t layer;      // layer number  [0-5]
  Int_t cell;       // cell number in wire plane
public:
  HMdcCal2(void) {clear();}
  ~HMdcCal2(void) {}
  void clear() {
    nHits=0;
    sector=module=layer=cell=-1;
    dist1=dist2=errDist1=errDist2=-99.F;
  }
  void setSector(const Int_t s) { sector = s; }
  void setModule(const Int_t m) { module = m; }
  void setLayer(const Int_t l)  { layer = l; }
  void setCell(const Int_t c)   { cell = c; }
  void setAddress(const Int_t s,const Int_t m,const Int_t l,const Int_t c) {
    sector=s;
    module=m;
    layer=l;
    cell=c;
  }
  void setDist1(const Float_t d,const Float_t e) {
    dist1=d;
    errDist1=e;
  }
  void setDist2(const Float_t d,const Float_t e) {
    dist2=d;
    errDist2=e;
  }
  void setNHits(const Int_t n) {nHits=n;}

  Int_t getSector(void) const { return sector; }
  Int_t getModule(void) const { return module; }
  Int_t getLayer(void) const  { return layer; }
  Int_t getCell(void) const   { return cell; }
  void getAddress(Int_t& s,Int_t& m,Int_t& l,Int_t& c) {
    s=sector;
    m=module;
    l=layer;
    c=cell;
  }
  Int_t getNHits(void) const  { return nHits; }
  Float_t getDist1(void) {return dist1;}
  Float_t getDist2(void) {return dist2;}
  Float_t getErrDist1(void) {return errDist1;}
  Float_t getErrDist2(void) {return errDist2;}

  ClassDef(HMdcCal2,1) // cal hit on a MDC
};

#endif  /* HMDCCAL2_H */

 hmdccal2.h:1
 hmdccal2.h:2
 hmdccal2.h:3
 hmdccal2.h:4
 hmdccal2.h:5
 hmdccal2.h:6
 hmdccal2.h:7
 hmdccal2.h:8
 hmdccal2.h:9
 hmdccal2.h:10
 hmdccal2.h:11
 hmdccal2.h:12
 hmdccal2.h:13
 hmdccal2.h:14
 hmdccal2.h:15
 hmdccal2.h:16
 hmdccal2.h:17
 hmdccal2.h:18
 hmdccal2.h:19
 hmdccal2.h:20
 hmdccal2.h:21
 hmdccal2.h:22
 hmdccal2.h:23
 hmdccal2.h:24
 hmdccal2.h:25
 hmdccal2.h:26
 hmdccal2.h:27
 hmdccal2.h:28
 hmdccal2.h:29
 hmdccal2.h:30
 hmdccal2.h:31
 hmdccal2.h:32
 hmdccal2.h:33
 hmdccal2.h:34
 hmdccal2.h:35
 hmdccal2.h:36
 hmdccal2.h:37
 hmdccal2.h:38
 hmdccal2.h:39
 hmdccal2.h:40
 hmdccal2.h:41
 hmdccal2.h:42
 hmdccal2.h:43
 hmdccal2.h:44
 hmdccal2.h:45
 hmdccal2.h:46
 hmdccal2.h:47
 hmdccal2.h:48
 hmdccal2.h:49
 hmdccal2.h:50
 hmdccal2.h:51
 hmdccal2.h:52
 hmdccal2.h:53
 hmdccal2.h:54
 hmdccal2.h:55
 hmdccal2.h:56
 hmdccal2.h:57
 hmdccal2.h:58
 hmdccal2.h:59
 hmdccal2.h:60
 hmdccal2.h:61
 hmdccal2.h:62
 hmdccal2.h:63
 hmdccal2.h:64
 hmdccal2.h:65