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)

Detailed Description

Definition at line 10 of file PhotonEventResult.h.


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, Munits::MeV, 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.

00021 {
00022   totalHits             = rhs.totalHits;      
00023   totalHitEnergy        = rhs.totalHitEnergy;   
00024   totalStripsHit        = rhs.totalStripsHit;   
00025   hitsDiscardedGeom     = rhs.hitsDiscardedGeom;        
00026   hitsDiscardedBad      = rhs.hitsDiscardedBad; 
00027   energyDiscardedGeom   = rhs.energyDiscardedGeom;
00028   energyDiscardedBad    = rhs.energyDiscardedBad;
00029   bluePhotons           = rhs.bluePhotons;
00030   greenPhotons          = rhs.greenPhotons;
00031   bluePhotons_nonprescaled  = rhs.bluePhotons_nonprescaled;
00032   greenPhotons_nonprescaled = rhs.greenPhotons_nonprescaled;
00033   totalPE       =         rhs.totalPE;
00034   noisePE       =         rhs.noisePE;
00035   afterpulsePE       =         rhs.afterpulsePE;
00036   totalPixels   =         rhs.totalPixels;
00037 }

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

Definition at line 65 of file PhotonEventResult.cxx.

References FormatToOStream().

Referenced by PhotonTransport::Ana().

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

void PhotonEventResult::Reset (  ) 

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

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

Definition at line 41 of file PhotonEventResult.h.

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


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1