//*-- AUTHOR : Jacek Otwinowski 
//*-- Modified : 19/04/05 by Jacek Otwinowski
//
//_HADES_CLASS_DESCRIPTION 
///////////////////////////////////////////////////////////////////////////////
//
//  HShowerTofPID
//  
//  Data object for correlated Shower/Tofino hits which fulfill electromagnetic 
//  shower (sum_post1/sum_pre > 1.9 or sum_post2/sum_pre > 1.9) 
//  and time of flight (5 < tof < 10 ns) conditions. This data object is filled
//  by HShowerTofPIDFinder which takes information from HkickTrack and HShowerHitTof 
//  data containers.
//  
/////////////////////////////////////////////////////////////////////////////////
#pragma implementation
#include "hshowertofpid.h"
ClassImp(HShowerTofPID)

HShowerTofPID::HShowerTofPID() {
clear();
}

HShowerTofPID::~HShowerTofPID() {
}

Int_t HShowerTofPID::clear(void)
{
   m_fRad=0.0;
   m_fPhi = 0.0;
   m_fTheta = 0.0;

   m_fFact10 = 0.0; 
   m_fFact20 = 0.0; 
   
   m_fTof = 0.0; 
   m_nTofinoCell = -1; 
   m_nTofinoMult = -1; 

   m_nSector = -1;
   m_nModule = -1;
   m_nRow = -1;
   m_nCol = -1;
   m_nAddress = -1;
   m_nOuterHit = -1;
   m_fTrackLength = 0;
 
   return 1;
}
//______________________________________________________________________________
void HShowerTofPID::Streamer(TBuffer &R__b)
{
   // Stream an object of class HShowerTofPID.

   if (R__b.IsReading()) {
      Version_t R__v = R__b.ReadVersion(); 
      TObject::Streamer(R__b);
      R__b >> m_fRad;
      R__b >> m_fPhi;
      R__b >> m_fTheta;
      R__b >> m_fFact10;
      R__b >> m_fFact20;
      R__b >> m_fTof;
      R__b >> m_nTofinoMult;
      R__b >> m_nTofinoCell;
      R__b >> m_nOuterHit;
      R__b >> m_nSector;
      R__b >> m_nModule;
      R__b >> m_nRow;
      R__b >> m_nCol;
      R__b >> m_nAddress;

      if (R__v == 2) { 
      R__b >> m_fTrackLength;
      }

   } else {
      R__b.WriteVersion(HShowerTofPID::IsA());
      TObject::Streamer(R__b);
      R__b << m_fRad;
      R__b << m_fPhi;
      R__b << m_fTheta;
      R__b << m_fFact10;
      R__b << m_fFact20;
      R__b << m_fTof;
      R__b << m_nTofinoMult;
      R__b << m_nTofinoCell;
      R__b << m_nOuterHit;
      R__b << m_nSector;
      R__b << m_nModule;
      R__b << m_nRow;
      R__b << m_nCol;
      R__b << m_nAddress;
      R__b << m_fTrackLength;
   }
}

Last change: Sat May 22 13:14:10 2010
Last generated: 2010-05-22 13:14

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.