ROOT logo
#include "htofclustersim.h"

// Author: Dusan Zovinec (23.10.2002)

//_HADES_CLASS_DESCRIPTION 
///////////////////////////////////////////////////////////////
// HTofClusterSim
//
// cluster level of the ToF data reconstruction for simulation
///////////////////////////////////////////////////////////////

ClassImp(HTofClusterSim)

HTofClusterSim::HTofClusterSim(void) {
  clear();
}

HTofClusterSim::~HTofClusterSim(void) {;}

void HTofClusterSim::clear(void) {
  nParticipants = 0;
  for(Int_t i=0;i<MAXPARTICIPANTS;i++) {
    nTrack1[i] = -1;
    nTrack2[i] = -1;
  }
}

HTofClusterSim::HTofClusterSim(HTofHitSim *hit){
// HTofCluster Constructor
//
// Creates HTofCluster object and makes the copy of HTofHit object
// data members. The rest of the data members of HTofCluster object
// is set to:
//   clustSize=1
//   clustProbAll=1.0
//   clustProbLep=1.0
//

  setTof(hit->getTof());
  setXpos(hit->getXpos());
  setXposAdc(hit->getXposAdc());
  setEdep(hit->getEdep());
  setLeftAmp(hit->getLeftAmp());
  setRightAmp(hit->getRightAmp());
  Float_t xl,yl,zl,d,ph,th;
  hit->getXYZLab(xl,yl,zl);
  setXYZLab(xl,yl,zl);
  hit->getDistance(d);
  setDistance(d);
  hit->getPhi(ph);
  setPhi(ph);
  hit->getTheta(th);
  setTheta(th);
  setSector(hit->getSector());
  setModule(hit->getModule());
  setCell(hit->getCell());
  setAdcFlag(hit->getAdcFlag());
  setNParticipants(1);
  setNTrack1(hit->getNTrack1());
  setNTrack2(hit->getNTrack2());

  setClusterSize(1);
  setClusterProbAll(1.0);
  setClusterProbLep(1.0);
}

HTofClusterSim::HTofClusterSim(HTofHitSim *hit, Int_t cls, Float_t clpa, Float_t clpl){
// HTofCluster Constructor
//
// Creates HTofCluster object and makes the copy of HTofHit object
// data members. The rest of the data members of HTofCluster object
// is set to:
//   clustSize=cls
//   clustProbAll=clpa
//   clustProbLep=clpl
//

  setTof(hit->getTof());
  setXpos(hit->getXpos());
  setXposAdc(hit->getXposAdc());
  setEdep(hit->getEdep());
  setLeftAmp(hit->getLeftAmp());
  setRightAmp(hit->getRightAmp());
  Float_t xl,yl,zl,d,ph,th;
  hit->getXYZLab(xl,yl,zl);
  setXYZLab(xl,yl,zl);
  hit->getDistance(d);
  setDistance(d);
  hit->getPhi(ph);
  setPhi(ph);
  hit->getTheta(th);
  setTheta(th);
  setSector(hit->getSector());
  setModule(hit->getModule());
  setCell(hit->getCell());
  setAdcFlag(hit->getAdcFlag());
  setNParticipants(1);
  setNTrack1(hit->getNTrack1());
  setNTrack2(hit->getNTrack2());

  setClusterSize(cls);
  setClusterProbAll(clpa);
  setClusterProbLep(clpl);
}


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