ROOT logo
//###################################################
//#
//#       
//#                      FRAMEWORK
//#
//#       Authors:                           W.Koenig
//#       adoption to framework & ROOT       W.Schoen
//#    
//#       last mod. W.Schoen 19.1.98
// ###################################################

#pragma implementation
#include "hshowerpid.h"
ClassImp(HShowerPID)

////////// **********ShowerPID defintion ****************/////////////77

Int_t HShowerPID::clear()
{
   m_fCharge=0.0F;
   m_fX = 0.0;
   m_fY = 0.0;

   m_fShower = 0.0; //shower - diff m_fSum2 - m_fSum1 if > 0

   m_nSector = -1;
   m_nModule = -1;
   m_nRow = -1;
   m_nCol = -1;
   m_nAddress = -1;
 
   return 1;
}

Int_t HShowerPID::calcAddress() {
  Char_t s = (m_nSector) ? m_nSector : 6;
  m_nAddress = 100000 * s;
  m_nAddress += 10000 * m_nModule;
  m_nAddress += 100 * m_nRow;
  m_nAddress += m_nCol;

  return m_nAddress;
}

 hshowerpid.cc:1
 hshowerpid.cc:2
 hshowerpid.cc:3
 hshowerpid.cc:4
 hshowerpid.cc:5
 hshowerpid.cc:6
 hshowerpid.cc:7
 hshowerpid.cc:8
 hshowerpid.cc:9
 hshowerpid.cc:10
 hshowerpid.cc:11
 hshowerpid.cc:12
 hshowerpid.cc:13
 hshowerpid.cc:14
 hshowerpid.cc:15
 hshowerpid.cc:16
 hshowerpid.cc:17
 hshowerpid.cc:18
 hshowerpid.cc:19
 hshowerpid.cc:20
 hshowerpid.cc:21
 hshowerpid.cc:22
 hshowerpid.cc:23
 hshowerpid.cc:24
 hshowerpid.cc:25
 hshowerpid.cc:26
 hshowerpid.cc:27
 hshowerpid.cc:28
 hshowerpid.cc:29
 hshowerpid.cc:30
 hshowerpid.cc:31
 hshowerpid.cc:32
 hshowerpid.cc:33
 hshowerpid.cc:34
 hshowerpid.cc:35
 hshowerpid.cc:36
 hshowerpid.cc:37
 hshowerpid.cc:38
 hshowerpid.cc:39
 hshowerpid.cc:40
 hshowerpid.cc:41
 hshowerpid.cc:42
 hshowerpid.cc:43
 hshowerpid.cc:44