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

PhotonEventResult Class Reference

#include <PhotonEventResult.h>

List of all members.

Public Member Functions

 PhotonEventResult ()
 PhotonEventResult (const PhotonEventResult &rhs)
virtual ~PhotonEventResult ()
void Reset ()
void operator= (const PhotonEventResult &other)
virtual void Print (Option_t *option="") const
virtual std::ostream & FormatToOStream (std::ostream &os, Option_t *option="") const

Public Attributes

Int_t totalHits
Float_t totalHitEnergy
Int_t totalStripsHit
Int_t hitsDiscardedGeom
Int_t hitsDiscardedBad
Float_t energyDiscardedGeom
Float_t energyDiscardedBad
Int_t bluePhotons
Int_t greenPhotons
Int_t bluePhotons_nonprescaled
Int_t greenPhotons_nonprescaled
Int_t totalPE
Int_t noisePE
Int_t afterpulsePE
Int_t totalPixels

Protected Member Functions

 ClassDef (PhotonEventResult, 4)

Protected Attributes

std::set< Int_t > fStripsHit
std::set< Int_t > fPixelsHit

Friends

class PhotonTransport
std::ostream & operator<< (std::ostream &os, const PhotonEventResult &r)


Constructor & Destructor Documentation

PhotonEventResult::PhotonEventResult  ) 
 

Definition at line 8 of file PhotonEventResult.cxx.

00008                                      :
00009   TNamed("PhotonEventResult","PhotonTransport Event Statistics")
00010 {
00011   Reset();
00012 }

PhotonEventResult::PhotonEventResult const PhotonEventResult rhs  ) 
 

Definition at line 14 of file PhotonEventResult.cxx.

00014                                                                  :
00015   TNamed("PhotonEventResult","PhotonTransport Event Statistics")
00016 {
00017   (*this)=rhs;
00018 }

virtual PhotonEventResult::~PhotonEventResult  )  [inline, virtual]
 

Definition at line 17 of file PhotonEventResult.h.

References Reset().

00017 { Reset(); };


Member Function Documentation

PhotonEventResult::ClassDef PhotonEventResult  ,
[protected]
 

std::ostream & PhotonEventResult::FormatToOStream std::ostream &  os,
Option_t *  option = ""
const [virtual]
 

Definition at line 71 of file PhotonEventResult.cxx.

References afterpulsePE, bluePhotons, bluePhotons_nonprescaled, energyDiscardedBad, energyDiscardedGeom, greenPhotons, greenPhotons_nonprescaled, hitsDiscardedBad, hitsDiscardedGeom, noisePE, totalHitEnergy, totalHits, totalPE, totalPixels, and totalStripsHit.

Referenced by operator<<(), and Print().

00073 {
00074   os << "PhotonEventResult: " << endl
00075      << "  Total Scint Hits:           " << totalHits << endl       
00076      << "  Total Hit Energy:           " << totalHitEnergy/Munits::MeV << " MeV" << endl   
00077      << "  Total Strips Hit:           " << totalStripsHit      << endl   
00078      << "  Hits Discarded (bad geom)   " << hitsDiscardedGeom    << endl   
00079      << "  Hits Discarded (bad hit)    " << hitsDiscardedBad     << endl   
00080      << "  Energy Discarded (bad geom) " << energyDiscardedGeom/Munits::MeV << " MeV" << endl   
00081      << "  Energy Discarded (bad hit)  " << energyDiscardedBad/Munits::MeV << " MeV" << endl   
00082      << "  Number of Blue Photons:     " << bluePhotons << " (pre: " << 
00083     bluePhotons_nonprescaled << ")" << endl   
00084      << "  Number of Green Photons:    " << greenPhotons << " (pre: " << 
00085     greenPhotons_nonprescaled << ")" << endl   
00086      << "  Number of PE:               " << totalPE << endl
00087      << "  Number of noise PE:         " << noisePE << endl
00088      << "  Number of afterpulse PE:    " << afterpulsePE << endl
00089      << "  Pixels hit:                 " << totalPixels << endl;
00090 
00091   return os;
00092 }

void PhotonEventResult::operator= const PhotonEventResult other  ) 
 

Definition at line 20 of file PhotonEventResult.cxx.

References afterpulsePE, bluePhotons, bluePhotons_nonprescaled, energyDiscardedBad, energyDiscardedGeom, greenPhotons, greenPhotons_nonprescaled, hitsDiscardedBad, hitsDiscardedGeom, noisePE, totalHitEnergy, totalHits, totalPE, totalPixels, and totalStripsHit.

void PhotonEventResult::Print Option_t *  option = ""  )  const [virtual]
 

Definition at line 65 of file PhotonEventResult.cxx.

References FormatToOStream(), and option.

Referenced by PhotonTransport::Ana().

00066 {
00067    FormatToOStream(std::cout,option);
00068 }

void PhotonEventResult::Reset  ) 
 

Definition at line 40 of file PhotonEventResult.cxx.

References afterpulsePE, bluePhotons, bluePhotons_nonprescaled, energyDiscardedBad, energyDiscardedGeom, fPixelsHit, fStripsHit, greenPhotons, greenPhotons_nonprescaled, hitsDiscardedBad, hitsDiscardedGeom, noisePE, totalHitEnergy, totalHits, totalPE, totalPixels, and totalStripsHit.

Referenced by PhotonTransport::Get(), and ~PhotonEventResult().

00041 {
00042  totalHits      =0; 
00043  totalHitEnergy =0; 
00044  totalStripsHit =0; 
00045  hitsDiscardedGeom      =0; 
00046  hitsDiscardedBad       =0;
00047  energyDiscardedGeom    =0;
00048  energyDiscardedBad     =0;
00049  bluePhotons    =0; 
00050  greenPhotons   =0;
00051  bluePhotons_nonprescaled       =0; 
00052  greenPhotons_nonprescaled      =0;
00053  totalPE        =0; 
00054  noisePE        =0;
00055  afterpulsePE        =0;
00056  totalPixels    =0;
00057  fStripsHit.clear();
00058  fPixelsHit.clear();
00059 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const PhotonEventResult r
[friend]
 

friend class PhotonTransport [friend]
 

Definition at line 13 of file PhotonEventResult.h.


Member Data Documentation

Int_t PhotonEventResult::afterpulsePE
 

Definition at line 42 of file PhotonEventResult.h.

Referenced by PhotonTransport::AddAfterpulsing(), FormatToOStream(), operator=(), and Reset().

Int_t PhotonEventResult::bluePhotons
 

Definition at line 36 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::bluePhotons_nonprescaled
 

Definition at line 38 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Float_t PhotonEventResult::energyDiscardedBad
 

Definition at line 34 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), PhotonTransport::SimulateEvent(), and PhotonTransport::SimulateScintHit().

Float_t PhotonEventResult::energyDiscardedGeom
 

Definition at line 33 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), PhotonTransport::SimulateEvent(), and PhotonTransport::SimulateScintHit().

std::set<Int_t> PhotonEventResult::fPixelsHit [protected]
 

Definition at line 48 of file PhotonEventResult.h.

Referenced by Reset(), PhotonTransport::SimulateEvent(), and PhotonTransport::SimulateScintHit().

std::set<Int_t> PhotonEventResult::fStripsHit [protected]
 

Definition at line 47 of file PhotonEventResult.h.

Referenced by Reset(), PhotonTransport::SimulateEvent(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::greenPhotons
 

Definition at line 37 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::greenPhotons_nonprescaled
 

Definition at line 39 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::hitsDiscardedBad
 

Definition at line 32 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::hitsDiscardedGeom
 

Definition at line 31 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::noisePE
 

Definition at line 41 of file PhotonEventResult.h.

Referenced by PhotonTransport::AddNoise(), FormatToOStream(), operator=(), and Reset().

Float_t PhotonEventResult::totalHitEnergy
 

Definition at line 29 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), PhotonTransport::SimulateEvent(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::totalHits
 

Definition at line 28 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::totalPE
 

Definition at line 40 of file PhotonEventResult.h.

Referenced by PhotonTransport::AddAfterpulsing(), PhotonTransport::AddNoise(), NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateScintHit().

Int_t PhotonEventResult::totalPixels
 

Definition at line 43 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateEvent().

Int_t PhotonEventResult::totalStripsHit
 

Definition at line 30 of file PhotonEventResult.h.

Referenced by NtpMCModule::FillNtpMCPhotonResult(), FormatToOStream(), operator=(), Reset(), and PhotonTransport::SimulateEvent().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:01 2010 for loon by  doxygen 1.3.9.1