REROOT_FLSHit Class Reference

#include <REROOT_FLSHit.h>

List of all members.

Public Member Functions

 REROOT_FLSHit (FLSHIT_DEF *)
 REROOT_FLSHit ()
 ~REROOT_FLSHit ()
 REROOT_FLSHit (const REROOT_FLSHit &rhs)
REROOT_FLSHitoperator= (const REROOT_FLSHit &rhs)
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
Int_t IPackedPEC () const
Int_t ITrack () const
Float_t TOFG () const
Float_t XBegin () const
Float_t YBegin () const
Float_t ZBegin () const
Float_t XEnd () const
Float_t YEnd () const
Float_t ZEnd () const
Float_t ELoss () const
Float_t Ptot () const
Int_t IPDG () const
Int_t CellPos () const
Int_t PlanePos () const
Int_t IPln () const
Int_t IExtr () const
Int_t ICell () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Int_t m_IPackedPEC
Int_t m_ITrack
Float_t m_TOFG
Float_t m_XBegin
Float_t m_YBegin
Float_t m_ZBegin
Float_t m_XEnd
Float_t m_YEnd
Float_t m_ZEnd
Float_t m_ELoss
Float_t m_Ptot
Int_t m_IPDG
Int_t m_CellPos
Int_t m_PlanePos

Detailed Description

Definition at line 18 of file REROOT_FLSHit.h.


Constructor & Destructor Documentation

REROOT_FLSHit::REROOT_FLSHit ( FLSHIT_DEF nr  ) 

Definition at line 60 of file REROOT_FLSHit.cxx.

References init().

00061 {
00062   m_ID         = nr->ID - 1;                                  // C index
00063   m_IPackedPEC = nr->IPackedPEC;
00064   m_ITrack  = ((nr->ITrack)>0) ? (nr->ITrack)-1 : (nr->ITrack)+1; //Cidx
00065   m_TOFG       = nr->TOFG;
00066   m_XBegin     = nr->XBegin;
00067   m_YBegin     = nr->YBegin;
00068   m_ZBegin     = nr->ZBegin;
00069   m_XEnd       = nr->XEnd;
00070   m_YEnd       = nr->YEnd;
00071   m_ZEnd       = nr->ZEnd;
00072   m_ELoss      = nr->ELoss;
00073   m_Ptot       = nr->Ptot;
00074   m_IPDG       = nr->IPDG;
00075   m_CellPos    = nr->CellPos - 1;                             // C index
00076   if (nr->PlanePos != 2147483647) m_PlanePos = nr->PlanePos-1;// C index
00077   else                            m_PlanePos = -1;            // C index
00078 
00079   init();
00080 }

REROOT_FLSHit::REROOT_FLSHit (  ) 

Definition at line 82 of file REROOT_FLSHit.cxx.

00083 {
00084 }

REROOT_FLSHit::~REROOT_FLSHit (  ) 

Definition at line 86 of file REROOT_FLSHit.cxx.

00087 {
00088 }

REROOT_FLSHit::REROOT_FLSHit ( const REROOT_FLSHit rhs  ) 

Definition at line 91 of file REROOT_FLSHit.cxx.

00092   : TObject(rhs)
00093 {
00094     *this = rhs;
00095 }


Member Function Documentation

virtual void REROOT_FLSHit::accept ( REROOT_Visitor v  )  [inline, virtual]

Definition at line 50 of file REROOT_FLSHit.h.

References REROOT_Visitor::visit().

00050 {v.visit(this);}

Int_t REROOT_FLSHit::CellPos (  )  const [inline]

Definition at line 69 of file REROOT_FLSHit.h.

References m_CellPos.

Referenced by MINFFLS::BookHits(), and printEvent().

00069 {return m_CellPos;}            // CellPos

void REROOT_FLSHit::clear (  ) 

Definition at line 121 of file REROOT_FLSHit.cxx.

00122 {
00123 }

Float_t REROOT_FLSHit::ELoss (  )  const [inline]

Definition at line 66 of file REROOT_FLSHit.h.

References m_ELoss.

Referenced by AtNuTreeModule::Ana(), RecoTreeModule::Ana(), MINFFLS::GetHitELOSS(), make_digi_scint_hit_list(), and printEvent().

00066 {return m_ELoss;}                // ELoss

Int_t REROOT_FLSHit::ICell (  )  const [inline]

Definition at line 75 of file REROOT_FLSHit.h.

References IPackedPEC().

Referenced by make_digi_scint_hit_list(), and printEvent().

00075 {return ((255  & IPackedPEC()    )-1);} // ICell

Int_t REROOT_FLSHit::ID (  )  const [inline]

Definition at line 56 of file REROOT_FLSHit.h.

References m_ID.

Referenced by printEvent().

00056 {return m_ID;}                      // ID

Int_t REROOT_FLSHit::IExtr (  )  const [inline]

Definition at line 74 of file REROOT_FLSHit.h.

References IPackedPEC().

Referenced by make_digi_scint_hit_list(), and printEvent().

00074 {return ((255  &(IPackedPEC()>>8))-1);} // IExtr

void REROOT_FLSHit::init ( void   )  [private]

Definition at line 117 of file REROOT_FLSHit.cxx.

00118 {
00119 }

Int_t REROOT_FLSHit::IPackedPEC (  )  const [inline]
Int_t REROOT_FLSHit::IPDG (  )  const [inline]
Int_t REROOT_FLSHit::IPln (  )  const [inline]

Definition at line 73 of file REROOT_FLSHit.h.

References IPackedPEC().

Referenced by MINFFLS::BookHits(), make_digi_scint_hit_list(), and printEvent().

00073 {return ((32767&(IPackedPEC()>>16))-1);} // IPln

Int_t REROOT_FLSHit::ITrack (  )  const [inline]

Definition at line 58 of file REROOT_FLSHit.h.

References m_ITrack.

Referenced by AtNuTreeModule::Ana(), RecoTreeModule::Ana(), MINFFLS::BookHits(), make_digi_scint_hit_list(), and printEvent().

00058 {return m_ITrack;}              // ITrack

REROOT_FLSHit & REROOT_FLSHit::operator= ( const REROOT_FLSHit rhs  ) 

Definition at line 96 of file REROOT_FLSHit.cxx.

References m_CellPos, m_ELoss, m_ID, m_IPackedPEC, m_IPDG, m_ITrack, m_PlanePos, m_Ptot, m_TOFG, m_XBegin, m_XEnd, m_YBegin, m_YEnd, m_ZBegin, and m_ZEnd.

00097 {
00098     if (this == &rhs) return *this;
00099     m_ID = rhs.m_ID;
00100     m_IPackedPEC = rhs.m_IPackedPEC;
00101     m_ITrack = rhs.m_ITrack;
00102     m_TOFG = rhs.m_TOFG;
00103     m_XBegin = rhs.m_XBegin;
00104     m_YBegin = rhs.m_YBegin;
00105     m_ZBegin = rhs.m_ZBegin;
00106     m_XEnd = rhs.m_XEnd;
00107     m_YEnd = rhs.m_YEnd;
00108     m_ZEnd = rhs.m_ZEnd;
00109     m_ELoss = rhs.m_ELoss;
00110     m_Ptot = rhs.m_Ptot;
00111     m_IPDG = rhs.m_IPDG;
00112     m_CellPos = rhs.m_CellPos;
00113     m_PlanePos = rhs.m_PlanePos;
00114     return *this;
00115 }

Int_t REROOT_FLSHit::PlanePos (  )  const [inline]

Definition at line 70 of file REROOT_FLSHit.h.

References m_PlanePos.

00070 {return m_PlanePos;}          // PlanePos

void REROOT_FLSHit::printEvent ( std::ostream &  pstream  )  const

Definition at line 125 of file REROOT_FLSHit.cxx.

References CellPos(), ELoss(), ICell(), ID(), IExtr(), IPackedPEC(), IPDG(), IPln(), ITrack(), Ptot(), TOFG(), XBegin(), XEnd(), YBegin(), YEnd(), ZBegin(), and ZEnd().

Referenced by MINFFLS::DumpHit().

00126 {
00127   pstream << "======================= FLSHit =====================\n";
00128   pstream << "FLSHit.ID            = " << ID()                 << "\n";
00129   pstream << "FLSHit.IPackedPEC    = " << IPackedPEC()         << "\n";
00130   pstream << "FLSHit.IPln          = " << IPln()               << "\n";
00131   pstream << "FLSHit.IExtr         = " << IExtr()              << "\n";
00132   pstream << "FLSHit.ICell         = " << ICell()              << "\n";
00133   pstream << "FLSHit.ITrack        = " << ITrack()             << "\n";
00134   pstream << "FLSHit.TOFG          = " << TOFG()               << "\n";
00135   pstream << "FLSHit.XBegin        = " << XBegin()             << "\n";
00136   pstream << "FLSHit.YBegin        = " << YBegin()             << "\n";
00137   pstream << "FLSHit.ZBegin        = " << ZBegin()             << "\n";
00138   pstream << "FLSHit.XEnd          = " << XEnd()               << "\n";
00139   pstream << "FLSHit.YEnd          = " << YEnd()               << "\n";
00140   pstream << "FLSHit.ZEnd          = " << ZEnd()               << "\n";
00141   pstream << "FLSHit.ELoss         = " << ELoss()              << "\n";
00142   pstream << "FLSHit.Ptot          = " << Ptot()               << "\n";
00143   pstream << "FLSHit.IPDG          = " << IPDG()               << "\n";
00144   pstream << "FLSHit.CellPos       = " << CellPos()            << "\n";
00145 }

Float_t REROOT_FLSHit::Ptot (  )  const [inline]

Definition at line 67 of file REROOT_FLSHit.h.

References m_Ptot.

Referenced by AtNuTreeModule::Ana(), RecoTreeModule::Ana(), flshit_track_energy(), MINFFLS::GetHitPartMom(), and printEvent().

00067 {return m_Ptot;}                  // Ptot

Float_t REROOT_FLSHit::TOFG (  )  const [inline]

Definition at line 59 of file REROOT_FLSHit.h.

References m_TOFG.

Referenced by make_digi_scint_hit_list(), and printEvent().

00059 {return m_TOFG;}                  // TOFG

Float_t REROOT_FLSHit::XBegin (  )  const [inline]
Float_t REROOT_FLSHit::XEnd (  )  const [inline]

Definition at line 63 of file REROOT_FLSHit.h.

References m_XEnd.

Referenced by AtNuTreeModule::Ana(), RecoTreeModule::Ana(), MINFFLS::BookHits(), flshit_path_length(), make_digi_scint_hit_list(), and printEvent().

00063 {return m_XEnd;}                  // XEnd

Float_t REROOT_FLSHit::YBegin (  )  const [inline]

Definition at line 61 of file REROOT_FLSHit.h.

References m_YBegin.

Referenced by MINFFLS::BookHits(), flshit_path_length(), make_digi_scint_hit_list(), and printEvent().

00061 {return m_YBegin;}              // YBegin

Float_t REROOT_FLSHit::YEnd (  )  const [inline]

Definition at line 64 of file REROOT_FLSHit.h.

References m_YEnd.

Referenced by MINFFLS::BookHits(), flshit_path_length(), make_digi_scint_hit_list(), and printEvent().

00064 {return m_YEnd;}                  // YEnd

Float_t REROOT_FLSHit::ZBegin (  )  const [inline]

Definition at line 62 of file REROOT_FLSHit.h.

References m_ZBegin.

Referenced by MINFFLS::BookHits(), flshit_path_length(), make_digi_scint_hit_list(), and printEvent().

00062 {return m_ZBegin;}              // ZBegin

Float_t REROOT_FLSHit::ZEnd (  )  const [inline]

Definition at line 65 of file REROOT_FLSHit.h.

References m_ZEnd.

Referenced by MINFFLS::BookHits(), flshit_path_length(), make_digi_scint_hit_list(), and printEvent().

00065 {return m_ZEnd;}                  // ZEnd


Member Data Documentation

Int_t REROOT_FLSHit::m_CellPos [private]

Definition at line 34 of file REROOT_FLSHit.h.

Referenced by CellPos(), and operator=().

Float_t REROOT_FLSHit::m_ELoss [private]

Definition at line 31 of file REROOT_FLSHit.h.

Referenced by ELoss(), and operator=().

Int_t REROOT_FLSHit::m_ID [private]

Definition at line 21 of file REROOT_FLSHit.h.

Referenced by ID(), and operator=().

Int_t REROOT_FLSHit::m_IPackedPEC [private]

Definition at line 22 of file REROOT_FLSHit.h.

Referenced by IPackedPEC(), and operator=().

Int_t REROOT_FLSHit::m_IPDG [private]

Definition at line 33 of file REROOT_FLSHit.h.

Referenced by IPDG(), and operator=().

Int_t REROOT_FLSHit::m_ITrack [private]

Definition at line 23 of file REROOT_FLSHit.h.

Referenced by ITrack(), and operator=().

Int_t REROOT_FLSHit::m_PlanePos [private]

Definition at line 35 of file REROOT_FLSHit.h.

Referenced by operator=(), and PlanePos().

Float_t REROOT_FLSHit::m_Ptot [private]

Definition at line 32 of file REROOT_FLSHit.h.

Referenced by operator=(), and Ptot().

Float_t REROOT_FLSHit::m_TOFG [private]

Definition at line 24 of file REROOT_FLSHit.h.

Referenced by operator=(), and TOFG().

Float_t REROOT_FLSHit::m_XBegin [private]

Definition at line 25 of file REROOT_FLSHit.h.

Referenced by operator=(), and XBegin().

Float_t REROOT_FLSHit::m_XEnd [private]

Definition at line 28 of file REROOT_FLSHit.h.

Referenced by operator=(), and XEnd().

Float_t REROOT_FLSHit::m_YBegin [private]

Definition at line 26 of file REROOT_FLSHit.h.

Referenced by operator=(), and YBegin().

Float_t REROOT_FLSHit::m_YEnd [private]

Definition at line 29 of file REROOT_FLSHit.h.

Referenced by operator=(), and YEnd().

Float_t REROOT_FLSHit::m_ZBegin [private]

Definition at line 27 of file REROOT_FLSHit.h.

Referenced by operator=(), and ZBegin().

Float_t REROOT_FLSHit::m_ZEnd [private]

Definition at line 30 of file REROOT_FLSHit.h.

Referenced by operator=(), and ZEnd().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1