ROOT logo
//*************************************************************************
//
//  HGeantWall
//
//  GEANT Forward Wall hit data
//
//  last modified on 08/12/2004 by R.Holzmann  (GSI)
//*************************************************************************
#ifndef HGEANTWALL_H
#define HGEANTWALL_H

#include "hlinkeddataobject.h"

class HGeantWall : public HLinkedDataObject
{
private:
  Int_t trackNumber;      // GEANT track number
  Float_t trackLength;    // track length  (in mm)
  Float_t eHit;           // energy deposited  (in MeV)
  Float_t xHit;           // x of hit in scintillator  (in mm)
  Float_t yHit;           // y of hit in scintillator  (in mm)
  Float_t tofHit;         // time of flight of hit  (in ns)
  Float_t momHit;         // momentum of particle at hit  (in MeV/c)
  Char_t module;          // module number (1...3) identifies size: 1=small,2=medium,3=big
  Int_t cell;             // cell number (1...384)
public:
  HGeantWall(void);
//  HGeantWall(HGeantWall &aWall);
  ~HGeantWall(void);
  inline void setTrack(Int_t aTrack) {trackNumber = aTrack;}
  void setHit(Float_t ae, Float_t ax, Float_t ay, Float_t atof,
              Float_t amom, Float_t alen);
  inline void setAddress (Char_t m, Int_t c);
  virtual Int_t getTrack(void) {return trackNumber;}
  void getHit(Float_t& ae, Float_t& ax, Float_t& ay, Float_t& atof,
              Float_t& amom, Float_t& alen);
  inline Char_t getModule(void) {return module;}
  inline Int_t getCell(void) {return cell;}
  inline Int_t getNLocationIndex(void) {return 3;}
  inline Int_t getLocationIndex(Int_t i); 

  ClassDef(HGeantWall,1) // Geant Forward Wall event data class
};

inline void HGeantWall::setAddress(Char_t m, Int_t c) {
  module = m;
  cell = c;
}

inline Int_t HGeantWall::getLocationIndex(Int_t i) {
  switch (i) {
    case 0 : return module;
    case 1 : return cell;
  }
  return -1;
}


#endif  /*! HGEANTWALL_H */











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