ROOT logo
#pragma implementation
#include "hshowercal.h"


ClassImp(HShowerCal)

//_HADES_CLASS_DESCRIPTION 
///////////////////////////////////////////////////////////////////////
//HShowerCal
//
//HShowerCal contains calibrated data of the pre-SHOWER
//In the case of simulaton data, HShowerCal contains these data
//from HShowerRawMatr which charge is greater as 1 
//
//////////////////////////////////////////////////////////////////////


Int_t HShowerCal::clear()
{
//clearing parameters
   m_fCharge=0.0F;
   m_nSector = -1;
   m_nModule = -1;
   m_nRow = -1;
   m_nCol = -1;
//   m_nAddress = -1;

   resetLocalMax(); 
   return 1;
}

Int_t HShowerCal::calcAddress() {
//calculation of address of the pad to SMRRCC format
//S - sector; 6 for sector==0
//M - module 
//RR - row
//CC - col

  Int_t nAddress;
  Char_t s = (m_nSector) ? m_nSector : 6;
  nAddress = 100000 * s;
  nAddress += 10000 * m_nModule;
  nAddress += 100 * m_nRow;
  nAddress += m_nCol;

  return nAddress;
}

Int_t HShowerCal::getNLocationIndex(void) {
  return 4;
}

Int_t HShowerCal::getLocationIndex(Int_t i) {
  switch (i) {
  case 0 : return getSector(); break;
  case 1 : return getModule(); break;
  case 2 : return getRow(); break;
  case 3 : return getCol(); break;
  }
  return -1;
}

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