ROOT logo
#ifndef HMDCCAL1_H
#define HMDCCAL1_H

#include "TObject.h"

class HMdcCal1 : public TObject {
protected:
  Int_t nHits;    // number of hits in this cell
  Float_t time1;  // drift time of first hit  [ns]
  Float_t time2;  // drift time of second hit (2 leading edge mode) or trailing edge of signal [ns]
  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:
  HMdcCal1(void) {clear();}
  ~HMdcCal1(void) {}
  void clear() {
      // reset data members to default value
      nHits=0;
      sector=module=layer=cell=-1;
      time1=time2=-999.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 setNHits(const Int_t n) {nHits=n;}
  void setTime1(const Float_t t) {time1=t;}
  void setTime2(const Float_t t) {time2=t;}

  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 getTime1(void) const {return time1;}
  Float_t getTime2(void) const {return time2;}

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

#endif  /* HMDCCAL1_H */

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