Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DigiPE.cxx

Go to the documentation of this file.
00001 
00002 // DigiPE
00003 //
00004 // Class to hold a single photoelectron at a particlar place
00005 // on a PMT. 
00006 //
00007 // First version: Nathaniel Tagg n.tagg1@physics.ox.ac.uk
00009 
00010 #include "Digitization/DigiPE.h"
00011 #include "Digitization/DigiSignal.h"
00012 
00013 ClassImp(DigiPE)
00014 
00015 DigiPE::DigiPE():
00016   fTime(-1e9),
00017   fPixelSpotId(),
00018   fHitPointer(0),
00019   fSource(0)
00020 {
00021   // Default constructor for streamer.
00022 }
00023 
00024 DigiPE::DigiPE(const DigiPE& rhs):
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 }
00033 
00034 
00035 DigiPE::DigiPE(Double_t time, PlexPixelSpotId& spot, const DigiScintHit* hitptr)
00036   : fTime(time),
00037     fPixelSpotId(spot),
00038     fHitPointer(hitptr),
00039     fSource(DigiSignal::kGenuine)
00040 {
00041   // Regular constructor for a genuine hit
00042 }
00043 
00044 
00045 DigiPE::DigiPE(Double_t time, PlexPixelSpotId& spot, 
00046                Int_t source )
00047   : fTime(time),
00048     fPixelSpotId(spot),
00049     fHitPointer(0),
00050     fSource(source)
00051 {
00052   // Constructor noise hit.
00053 }
00054 
00055 DigiPE::~DigiPE()
00056 {
00057   // Destructor; does nothing special.
00058 }
00059 
00060 
00061 Bool_t DigiPE::IsDarkNoise() const
00062 {
00063   return fSource & DigiSignal::kDarkNoise;
00064 }
00065 
00066 Bool_t DigiPE::IsFibreLight() const
00067 {
00068   return fSource & DigiSignal::kFibreLight;
00069 }
00070 
00071 Bool_t DigiPE::IsAfterpulse() const
00072 {
00073   return fSource & DigiSignal::kAfterpulse;
00074 }

Generated on Mon Feb 15 11:06:37 2010 for loon by  doxygen 1.3.9.1