ROOT logo
#ifndef HMDCGEANTCELL_H
#define HMDCGEANTCELL_H

#include "TObject.h"

#define NMAXHITS 15

class HMdcGeantCell : public TObject {
private:
  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
  Int_t fNumHits;           // Number of tracks per cell
  Float_t fMinDist[NMAXHITS];     // Shortest distance from particle trajectory to the sense wire [mm]
  Float_t fTimeFlight[NMAXHITS];  // Time of flight [ns]
  Float_t fImpactAngle[NMAXHITS]; // impact angle in Coordinate system of the cell in degree [0-90]
  Int_t nTrack[NMAXHITS];         // Track number (GEANT)
  Bool_t flagCutEdge[NMAXHITS];   // flag for cell where the minimum distance was recalculated
  Float_t wireOffset[NMAXHITS];   // offset of signal due to propagation of the signal on the wire [ns]
  Float_t efficiency[NMAXHITS];   // efficiency at croped layers
  Float_t theta[NMAXHITS];        // theta impact
public:
   HMdcGeantCell() {clear();}
  ~HMdcGeantCell() {}
   void clear();
   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 setNumHits(const Int_t nhit) {fNumHits=nhit;}
   void setMinDist(const Float_t md, const Int_t j) {fMinDist[j] = md;}
   void setTimeFlight(const Float_t tof,const  Int_t j) {fTimeFlight[j] = tof;}
   void setImpactAngle(const Float_t angle,const Int_t j) {fImpactAngle[j] = angle;}
   void setNTrack(const Int_t t, const Int_t j) {nTrack[j] = t;}
   void setFlagCutEdge(const Bool_t t, const Int_t j) {flagCutEdge[j] = t;}
   void setWireOffset(const Float_t offset,const Int_t j) {wireOffset[j] = offset;}
   void setEfficiency(const Float_t eff,const Int_t j) {efficiency[j] = eff;}
   void setTheta(const Float_t th,const Int_t j) {theta[j] = th;}
   Int_t getSector() const { return sector; }
   Int_t getModule() const { return module; }
   Int_t getLayer() const { return layer; }
   Int_t getCell() const { return cell; }
   Int_t getNumHits(void) {return fNumHits;}
   Float_t getMinDist( Int_t j) const{return fMinDist[j];}
   Float_t getTimeFlight(Int_t j) const{return fTimeFlight[j];}
   Float_t getImpactAngle(Int_t j)const {return fImpactAngle[j];}
   Int_t   getNTrack(Int_t j) const {return nTrack[j];}
   Bool_t  getFlagCutEdge(Int_t j) const {return flagCutEdge[j];}
   Float_t getWireOffset(Int_t j) const {return wireOffset[j];}
   Float_t getEfficiency(Int_t j) const {return efficiency[j];}
   Float_t getTheta(Int_t j) const {return theta[j];}

  ClassDef(HMdcGeantCell,1) //Intermediate MDC data (derived from HGeant output).
};

#endif









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