ROOT logo
//*************************************************************************
//
//  HGeantTof
//
//  GEANT TOF hit data
//
//  last modified on 31/03/2004 by R.Holzmann  (GSI)
//*************************************************************************
#ifndef HGEANTTOF_H
#define HGEANTTOF_H

#include "hlinkeddataobject.h"

class HGeantTof : 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 along scintillator rod (in mm)
  Float_t yHit;           // y of hit along scintillator rod (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 sector;          // sector number (0...5)
  Char_t module;          // module number (0...21, numbered in->out) + (22...25 for Tofino)
  Char_t cell;            // cell number (0...7, numbered in->out)
public:
  HGeantTof(void);
 // HGeantTof(HGeantTof &aTof);
  ~HGeantTof(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 s, Char_t m, Char_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 getSector(void) {return sector;}
  inline Char_t getModule(void) {return module;}
  inline Char_t getCell(void) {return cell;}
  inline Int_t getNLocationIndex(void) {return 3;}
  inline Int_t getLocationIndex(Int_t i); 

  ClassDef(HGeantTof,3) // GEANT TOF hit data class
};

inline void HGeantTof::setAddress(Char_t s, Char_t m, Char_t c) {
  sector = s;
  module = m;
  cell = c;
}

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


#endif  /*! HGEANTTOF_H */











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