DigiPE Class Reference

#include <DigiPE.h>

List of all members.

Public Member Functions

 DigiPE ()
 DigiPE (const DigiPE &rhs)
 DigiPE (Double_t time, PlexPixelSpotId &spot, const DigiScintHit *hitptr)
 DigiPE (Double_t time, PlexPixelSpotId &spot, Int_t source)
 ~DigiPE ()
void SetTime (double time)
void SetPixelSpotId (PlexPixelSpotId &spot)
void SetHitPointer (const DigiScintHit *hitptr)
Double_t GetTime () const
PlexPixelSpotId GetPixelSpotId () const
const DigiScintHitGetHitPointer () const
Double_t GetNpe () const
Int_t GetSource () const
Bool_t IsDarkNoise () const
Bool_t IsFibreLight () const
Bool_t IsAfterpulse () const

Private Attributes

Float_t fTime
PlexPixelSpotId fPixelSpotId
const DigiScintHitfHitPointer
Int_t fSource


Detailed Description

Definition at line 19 of file DigiPE.h.


Constructor & Destructor Documentation

DigiPE::DigiPE (  ) 

Definition at line 15 of file DigiPE.cxx.

00015               :
00016   fTime(-1e9),
00017   fPixelSpotId(),
00018   fHitPointer(0),
00019   fSource(0)
00020 {
00021   // Default constructor for streamer.
00022 }

DigiPE::DigiPE ( const DigiPE rhs  ) 

Definition at line 24 of file DigiPE.cxx.

00024                                :
00025   TObject(rhs),
00026   fTime(rhs.fTime),
00027   fPixelSpotId(rhs.fPixelSpotId),
00028   fHitPointer(rhs.fHitPointer),
00029   fSource(rhs.fSource)
00030 {
00031   // Default constructor for streamer.
00032 }

DigiPE::DigiPE ( Double_t  time,
PlexPixelSpotId spot,
const DigiScintHit hitptr 
)

Definition at line 35 of file DigiPE.cxx.

00036   : fTime(time),
00037     fPixelSpotId(spot),
00038     fHitPointer(hitptr),
00039     fSource(DigiSignal::kGenuine)
00040 {
00041   // Regular constructor for a genuine hit
00042 }

DigiPE::DigiPE ( Double_t  time,
PlexPixelSpotId spot,
Int_t  source 
)

Definition at line 45 of file DigiPE.cxx.

00047   : fTime(time),
00048     fPixelSpotId(spot),
00049     fHitPointer(0),
00050     fSource(source)
00051 {
00052   // Constructor noise hit.
00053 }

DigiPE::~DigiPE (  ) 

Definition at line 55 of file DigiPE.cxx.

00056 {
00057   // Destructor; does nothing special.
00058 }


Member Function Documentation

const DigiScintHit* DigiPE::GetHitPointer (  )  const [inline]

Definition at line 38 of file DigiPE.h.

References fHitPointer.

Referenced by SimDetector::SortDigiPE().

00038 { return fHitPointer; };

Double_t DigiPE::GetNpe (  )  const [inline]

Definition at line 39 of file DigiPE.h.

00039 { return 1.0; }; // For future expansion?

PlexPixelSpotId DigiPE::GetPixelSpotId ( void   )  const [inline]

Definition at line 37 of file DigiPE.h.

References fPixelSpotId.

Referenced by SimPmtTimeBucket::AddDigiPE(), SimPmt::AddDigiPE(), CompareToReroot::Ana(), PhotonTransport::SimulateScintHit(), and SimDetector::SortDigiPE().

00037 { return fPixelSpotId; };

Int_t DigiPE::GetSource (  )  const [inline]

Definition at line 40 of file DigiPE.h.

References fSource.

Referenced by SimPixelTimeBucket::AddDigiPE().

00040 { return fSource; };

Double_t DigiPE::GetTime ( void   )  const [inline]

Definition at line 36 of file DigiPE.h.

References fTime.

Referenced by SimPmt::AddDigiPE(), SimPixelTimeBucket::AddDigiPE(), DetSim::Ana(), CompareToReroot::Ana(), SimDetector::DistributePEs(), PhotonTransport::SimulateScintHit(), and SimDetector::SortDigiPE().

00036 { return fTime; };

Bool_t DigiPE::IsAfterpulse (  )  const

Definition at line 71 of file DigiPE.cxx.

References fSource, and DigiSignal::kAfterpulse.

00072 {
00073   return fSource & DigiSignal::kAfterpulse;
00074 }

Bool_t DigiPE::IsDarkNoise (  )  const

Definition at line 61 of file DigiPE.cxx.

References fSource, and DigiSignal::kDarkNoise.

Referenced by SimDetector::SortDigiPE().

00062 {
00063   return fSource & DigiSignal::kDarkNoise;
00064 }

Bool_t DigiPE::IsFibreLight (  )  const

Definition at line 66 of file DigiPE.cxx.

References fSource, and DigiSignal::kFibreLight.

Referenced by SimDetector::SortDigiPE().

00067 {
00068   return fSource & DigiSignal::kFibreLight;
00069 }

void DigiPE::SetHitPointer ( const DigiScintHit hitptr  )  [inline]

Definition at line 32 of file DigiPE.h.

References fHitPointer.

00032 { fHitPointer = hitptr; };

void DigiPE::SetPixelSpotId ( PlexPixelSpotId spot  )  [inline]

Definition at line 31 of file DigiPE.h.

References fPixelSpotId.

00031 { fPixelSpotId = spot; };

void DigiPE::SetTime ( double  time  )  [inline]

Definition at line 30 of file DigiPE.h.

References fTime.

00030 { fTime = time; };


Member Data Documentation

const DigiScintHit* DigiPE::fHitPointer [private]

Definition at line 49 of file DigiPE.h.

Referenced by GetHitPointer(), and SetHitPointer().

PlexPixelSpotId DigiPE::fPixelSpotId [private]

Definition at line 48 of file DigiPE.h.

Referenced by GetPixelSpotId(), and SetPixelSpotId().

Int_t DigiPE::fSource [private]

Definition at line 50 of file DigiPE.h.

Referenced by GetSource(), IsAfterpulse(), IsDarkNoise(), and IsFibreLight().

Float_t DigiPE::fTime [private]

Definition at line 47 of file DigiPE.h.

Referenced by GetTime(), and SetTime().


The documentation for this class was generated from the following files:
Generated on Thu Jul 10 22:52:40 2014 for loon by  doxygen 1.4.7