Public Member Functions | Private Attributes | Friends | List of all members
sim::PhotonSignal Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-18/Simulation/PhotonSignal.h"

Public Member Functions

 PhotonSignal ()
 
 PhotonSignal (double time, int npe)
 
 ~PhotonSignal ()
 
void SetTimeMean (double t)
 
void SetNPhoton (int npe)
 
void SetPlaneCell (int plane, int cell)
 
void SetTrackId (int t)
 
void SetPoissonLambda (double l)
 
double TimeMean () const
 
int NPhoton () const
 
int Cell () const
 
int Plane () const
 
int TrackId () const
 
double PoissonLambda () const
 

Private Attributes

double fTimeMean
 time of PEs at APD (ns) More...
 
int fNPhoton
 number of PEs in this clump More...
 
int fCell
 cell number More...
 
int fPlane
 plane number More...
 
int fTrackId
 track ID of parent More...
 
double fPoissonLambda
 The mean of the distribution fNPhoton was drawn from. More...
 

Friends

std::ostream & operator<< (std::ostream &o, const PhotonSignal &ps)
 
bool CompareByPlaneAndCell (const sim::PhotonSignal &a, const sim::PhotonSignal &b)
 Helper for SortByPlaneAndCell. More...
 

Detailed Description

Definition at line 16 of file PhotonSignal.h.

Constructor & Destructor Documentation

sim::PhotonSignal::PhotonSignal ( )

Definition at line 13 of file PhotonSignal.cxx.

13  :
14  fTimeMean(0.), fNPhoton(0), fCell(0), fPlane(0), fTrackId(0), fPoissonLambda(0)
15  {
16  }
int fCell
cell number
Definition: PhotonSignal.h:43
int fNPhoton
number of PEs in this clump
Definition: PhotonSignal.h:42
double fTimeMean
time of PEs at APD (ns)
Definition: PhotonSignal.h:41
int fPlane
plane number
Definition: PhotonSignal.h:44
int fTrackId
track ID of parent
Definition: PhotonSignal.h:45
double fPoissonLambda
The mean of the distribution fNPhoton was drawn from.
Definition: PhotonSignal.h:50
sim::PhotonSignal::PhotonSignal ( double  time,
int  npe 
)

Definition at line 19 of file PhotonSignal.cxx.

19  :
21  {
22  }
int fCell
cell number
Definition: PhotonSignal.h:43
int fNPhoton
number of PEs in this clump
Definition: PhotonSignal.h:42
double fTimeMean
time of PEs at APD (ns)
Definition: PhotonSignal.h:41
int fPlane
plane number
Definition: PhotonSignal.h:44
int fTrackId
track ID of parent
Definition: PhotonSignal.h:45
double fPoissonLambda
The mean of the distribution fNPhoton was drawn from.
Definition: PhotonSignal.h:50
sim::PhotonSignal::~PhotonSignal ( )

Definition at line 25 of file PhotonSignal.cxx.

26  {
27  }

Member Function Documentation

int sim::PhotonSignal::Cell ( ) const
inline

Definition at line 31 of file PhotonSignal.h.

References fCell.

Referenced by sim::operator<<(), and cheat::BackTracker::Rebuild().

31 { return fCell; }
int fCell
cell number
Definition: PhotonSignal.h:43
int sim::PhotonSignal::NPhoton ( ) const
inline

Definition at line 30 of file PhotonSignal.h.

References fNPhoton.

Referenced by cheat::BackTracker::AccumulateHitContributions(), sim::CompareByNPhoton(), and sim::operator<<().

30 { return fNPhoton; }
int fNPhoton
number of PEs in this clump
Definition: PhotonSignal.h:42
int sim::PhotonSignal::Plane ( ) const
inline

Definition at line 32 of file PhotonSignal.h.

References fPlane.

Referenced by sim::operator<<(), and cheat::BackTracker::Rebuild().

32 { return fPlane; }
int fPlane
plane number
Definition: PhotonSignal.h:44
double sim::PhotonSignal::PoissonLambda ( ) const
inline

Definition at line 34 of file PhotonSignal.h.

References a, b, CompareByPlaneAndCell, fPoissonLambda, msf_helper::o, operator<<, and nd_projection_maker::ps.

34 { return fPoissonLambda; }
double fPoissonLambda
The mean of the distribution fNPhoton was drawn from.
Definition: PhotonSignal.h:50
void sim::PhotonSignal::SetNPhoton ( int  npe)
inline

Definition at line 23 of file PhotonSignal.h.

References fNPhoton.

Referenced by photrans::ImprovedTransport::ClusterPhotoElectrons(), photrans::PhotonSystRewriter::produce(), and photrans::PhotonTransport::produce().

23 { fNPhoton = npe; }
int fNPhoton
number of PEs in this clump
Definition: PhotonSignal.h:42
void sim::PhotonSignal::SetPlaneCell ( int  plane,
int  cell 
)
inline
void sim::PhotonSignal::SetPoissonLambda ( double  l)
inline

Definition at line 26 of file PhotonSignal.h.

References fPoissonLambda, and submit_hadd::l.

Referenced by photrans::PhotonSystRewriter::produce(), and photrans::PhotonTransport::produce().

26 { fPoissonLambda = l; }
double fPoissonLambda
The mean of the distribution fNPhoton was drawn from.
Definition: PhotonSignal.h:50
void sim::PhotonSignal::SetTimeMean ( double  t)
inline
void sim::PhotonSignal::SetTrackId ( int  t)
inline
double sim::PhotonSignal::TimeMean ( ) const
inline

Definition at line 29 of file PhotonSignal.h.

References fTimeMean.

Referenced by cheat::BackTracker::CloseInTime(), and sim::operator<<().

29 { return fTimeMean; }
double fTimeMean
time of PEs at APD (ns)
Definition: PhotonSignal.h:41
int sim::PhotonSignal::TrackId ( ) const
inline

Friends And Related Function Documentation

bool CompareByPlaneAndCell ( const sim::PhotonSignal a,
const sim::PhotonSignal b 
)
friend

Helper for SortByPlaneAndCell.

Definition at line 44 of file PhotonSignal.cxx.

Referenced by PoissonLambda(), and sim::SortByPlaneAndCell().

46  {
47  if(a.fPlane < b.fPlane) return true;
48  if(a.fPlane > b.fPlane) return false;
49  return a.fCell < b.fCell;
50  }
int fCell
cell number
Definition: PhotonSignal.h:43
int fPlane
plane number
Definition: PhotonSignal.h:44
std::ostream& operator<< ( std::ostream &  o,
const PhotonSignal ps 
)
friend

Definition at line 30 of file PhotonSignal.cxx.

Referenced by PoissonLambda().

31  {
32  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
33  o << "TrackId = " << std::setw(5) << std::right << ps.TrackId()
34  << " TimeMean = " << std::setw(5) << std::right << ps.TimeMean()
35  << " Cell# = " << std::setw(5) << std::right << ps.Cell()
36  << " Plane# = " << std::setw(5) << std::right << ps.Plane()
37  << " NPhoton = " << std::setw(5) << std::right << ps.NPhoton();
38 
39  return o;
40  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112

Member Data Documentation

int sim::PhotonSignal::fCell
private

cell number

Definition at line 43 of file PhotonSignal.h.

Referenced by Cell(), sim::CompareByPlaneAndCell(), and SetPlaneCell().

int sim::PhotonSignal::fNPhoton
private

number of PEs in this clump

Definition at line 42 of file PhotonSignal.h.

Referenced by NPhoton(), and SetNPhoton().

int sim::PhotonSignal::fPlane
private

plane number

Definition at line 44 of file PhotonSignal.h.

Referenced by sim::CompareByPlaneAndCell(), Plane(), and SetPlaneCell().

double sim::PhotonSignal::fPoissonLambda
private

The mean of the distribution fNPhoton was drawn from.

Useful for calibration studies.

Definition at line 50 of file PhotonSignal.h.

Referenced by PoissonLambda(), and SetPoissonLambda().

double sim::PhotonSignal::fTimeMean
private

time of PEs at APD (ns)

Definition at line 41 of file PhotonSignal.h.

Referenced by SetTimeMean(), and TimeMean().

int sim::PhotonSignal::fTrackId
private

track ID of parent

Definition at line 45 of file PhotonSignal.h.

Referenced by SetTrackId(), and TrackId().


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