ROOT logo
#include "hgeantwall.h"

//*-- Author : Filip Krizek, UJF Rez
//*-- Modified : 25/11/2004 by Romain Holzmann
//*-- Copyright : GSI, Darmstadt
//
//**************************************************************************
//
//  HGeantWall
// 
//  GEANT Forward Wall hit data
//
//  last modified on 25/11/2004  by R.Holzmann  (GSI)
//**************************************************************************
// Inline functions:
//
//  inline void setAddress (Char_t m, Int_t c)
//                                        set hit location (module and cell)
//  inline void setTrack(Int_t track)     set GEANT track number
//  inline Int_t getTrack()               return GEANT track number
//  inline Char_t getModule(void)         return module number
//  inline Char_t getCell(void)           return cell number
//

ClassImp(HGeantWall)

HGeantWall::HGeantWall(void) {
  // Default constructor.
  trackNumber = 0;
  trackLength = 0.0;
  eHit = 0.0;
  xHit = 0.0;
  yHit = 0.0;
  tofHit = 0.0;
  momHit = 0.0;
  module = -1;
  cell = -1;
}
/*
HGeantWall::HGeantWall(HGeantWall &aWall) {
  // Copy constructor.
  trackNumber = aWall.trackNumber;
  trackLength = aWall.trackLength;
  eHit = aWall.eHit;
  xHit = aWall.xHit;
  yHit = aWall.yHit;
  tofHit = aWall.tofHit;
  momHit = aWall.momHit;
  module = aWall.module;
  cell = aWall.cell;
}
*/
HGeantWall::~HGeantWall(void) {
  // Destructor.
}

void HGeantWall::setHit(Float_t ae, Float_t ax, Float_t ay, Float_t atof,
                       Float_t amom, Float_t alen) {
  // Fill in basic hit data:
  //   - energy in MeV
  //   - x,y of hit in module in mm
  //   - time of flight in ns
  //   - momentum of particle at hit in MeV/c
  //   - track length from creation vertex to hit in mm
  eHit = ae;
  xHit = ax;
  yHit = ay;
  tofHit = atof;
  momHit = amom;
  trackLength = alen;
}

void HGeantWall::getHit(Float_t& ae, Float_t& ax,  Float_t& ay, Float_t& atof,
                       Float_t& amom, Float_t& alen) {
  // Retrieve basic hit data: energy, x,y, time fo flight, momentum and track length
  ae = eHit;
  ax = xHit;
  ay = yHit;
  atof = tofHit;
  amom = momHit;
  alen = trackLength;
}






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