CandCalDetPIDHandle Class Reference

#include <CandCalDetPIDHandle.h>

Inheritance diagram for CandCalDetPIDHandle:
CandHandle

List of all members.

Public Member Functions

 CandCalDetPIDHandle ()
 CandCalDetPIDHandle (const CandCalDetPIDHandle &rhs)
 CandCalDetPIDHandle (CandCalDetPID *candidate)
virtual ~CandCalDetPIDHandle ()
virtual CandCalDetPIDHandleDupHandle () const
Bool_t NoOverlap () const
void SetNoOverlap (Bool_t)
Bool_t InCERTime () const
void SetInCERTime (Bool_t)
UInt_t GetPIDType () const
void SetPIDType (UInt_t)
UInt_t GetNoOverlapBits () const
void SetNoOverlapBits (UInt_t)
UInt_t GetInCERTimeBits () const
void SetInCERTimeBits (UInt_t)
Float_t GetOLChi2 () const
void SetOLChi2 (Float_t)
Bool_t IsA (const CalDetParticleType::CalDetParticleType_t &ptype) const
std::string AsString () const

Detailed Description

Definition at line 36 of file CandCalDetPIDHandle.h.


Constructor & Destructor Documentation

CandCalDetPIDHandle::CandCalDetPIDHandle (  ) 

Definition at line 28 of file CandCalDetPIDHandle.cxx.

References Msg::kDebug, and MSG.

Referenced by DupHandle().

00029 {
00030   MSG("CalDetPID",Msg::kDebug)
00031     << "CandCalDetPIDHandle default ctor called" << endl;
00032 }

CandCalDetPIDHandle::CandCalDetPIDHandle ( const CandCalDetPIDHandle rhs  ) 

Definition at line 34 of file CandCalDetPIDHandle.cxx.

00035     : CandHandle(handle)
00036 {
00037 }

CandCalDetPIDHandle::CandCalDetPIDHandle ( CandCalDetPID candidate  ) 

Definition at line 38 of file CandCalDetPIDHandle.cxx.

00039     : CandHandle(candidate)
00040 {
00041 }

CandCalDetPIDHandle::~CandCalDetPIDHandle (  )  [virtual]

Definition at line 42 of file CandCalDetPIDHandle.cxx.

00043 {
00044 }


Member Function Documentation

std::string CandCalDetPIDHandle::AsString (  )  const

Definition at line 140 of file CandCalDetPIDHandle.cxx.

References GetPIDType(), InCERTime(), and NoOverlap().

Referenced by EVD::UpdateSummary().

00141 {
00142      Int_t t = GetPIDType();
00143      std::string s = CalDetParticleType::AsString(t);
00144      if(NoOverlap()==false) s+=" (OVERLAP)";
00145      if(InCERTime()==false) s+=" (!INCERTIME)";
00146      return s;
00147 }

CandCalDetPIDHandle * CandCalDetPIDHandle::DupHandle (  )  const [virtual]

Reimplemented from CandHandle.

Definition at line 46 of file CandCalDetPIDHandle.cxx.

References CandCalDetPIDHandle().

00047 {
00048     return new CandCalDetPIDHandle(*this);
00049 }

UInt_t CandCalDetPIDHandle::GetInCERTimeBits (  )  const

Definition at line 107 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fInCERTimeBits, and CandHandle::GetCandBase().

Referenced by CDTrackerModule::FillPID().

00108 {
00109      const CandCalDetPID* pid = 
00110           static_cast<const CandCalDetPID*>(GetCandBase());
00111      return pid->fInCERTimeBits;
00112 }

UInt_t CandCalDetPIDHandle::GetNoOverlapBits (  )  const

Definition at line 93 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fNoOverlapBits, and CandHandle::GetCandBase().

Referenced by CDTrackerModule::FillPID().

00094 {
00095      const CandCalDetPID* pid = 
00096           static_cast<const CandCalDetPID*>(GetCandBase());
00097      return pid->fNoOverlapBits;
00098 }

Float_t CandCalDetPIDHandle::GetOLChi2 (  )  const
UInt_t CandCalDetPIDHandle::GetPIDType (  )  const
Bool_t CandCalDetPIDHandle::InCERTime (  )  const
Bool_t CandCalDetPIDHandle::IsA ( const CalDetParticleType::CalDetParticleType_t ptype  )  const

Definition at line 132 of file CandCalDetPIDHandle.cxx.

References GetPIDType().

00133 {
00134      Int_t t = GetPIDType();
00135      Bool_t result = kFALSE;
00136      if(t&p) result=kTRUE;
00137      return result;
00138 }

Bool_t CandCalDetPIDHandle::NoOverlap (  )  const
void CandCalDetPIDHandle::SetInCERTime ( Bool_t  v  ) 

Definition at line 87 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fInCERTime, and CandHandle::GetCandBase().

00088 {
00089      CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00090      pid->fInCERTime=v;
00091 }

void CandCalDetPIDHandle::SetInCERTimeBits ( UInt_t  p  ) 

Definition at line 114 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fInCERTimeBits, and CandHandle::GetCandBase().

00115 {
00116      CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00117      pid->fInCERTimeBits=p;
00118 }

void CandCalDetPIDHandle::SetNoOverlap ( Bool_t  v  ) 

Definition at line 74 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fNoOverlap, and CandHandle::GetCandBase().

00075 {
00076      CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00077      pid->fNoOverlap=v;
00078 }

void CandCalDetPIDHandle::SetNoOverlapBits ( UInt_t  p  ) 

Definition at line 100 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fNoOverlapBits, and CandHandle::GetCandBase().

00101 {
00102      CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00103      pid->fNoOverlapBits=p;
00104 }

void CandCalDetPIDHandle::SetOLChi2 ( Float_t  c  ) 

Definition at line 126 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fOLChi2, and CandHandle::GetCandBase().

00127 {
00128    CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00129    pid->fOLChi2 = c;
00130 }

void CandCalDetPIDHandle::SetPIDType ( UInt_t  p  ) 

Definition at line 61 of file CandCalDetPIDHandle.cxx.

References CandCalDetPID::fPIDType, and CandHandle::GetCandBase().

00062 {
00063      CandCalDetPID* pid = static_cast<CandCalDetPID*>(GetCandBase());
00064      pid->fPIDType=p;
00065 }


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1