Public Member Functions | Private Member Functions | Private Attributes

SandBoxPhotoTubeGeo Class Reference

#include "SandBoxPhotoTubeGeo.hh"

List of all members.

Public Member Functions

 SandBoxPhotoTubeGeo (int pmttype, double pmtfpdiam)
 ~SandBoxPhotoTubeGeo ()
Int_t PMTtype ()
Double_t PMTdiameter ()
Double_t PMTwidth ()

Private Member Functions

 ClassDef (SandBoxPhotoTubeGeo, 0)

Private Attributes

Int_t _pmttype
Double_t _pmtfootprint_diameter

Detailed Description

Definition at line 9 of file SandBoxPhotoTubeGeo.hh.


Constructor & Destructor Documentation

SandBoxPhotoTubeGeo::SandBoxPhotoTubeGeo ( int  pmttype,
double  pmtfpdiam 
)
SandBoxPhotoTubeGeo::~SandBoxPhotoTubeGeo (  ) 

Definition at line 15 of file SandBoxPhotoTubeGeo.cc.

{ }


Member Function Documentation

SandBoxPhotoTubeGeo::ClassDef ( SandBoxPhotoTubeGeo  ,
 
) [private]
Double_t SandBoxPhotoTubeGeo::PMTdiameter (  ) 

Definition at line 20 of file SandBoxPhotoTubeGeo.cc.

References _pmtfootprint_diameter.

Int_t SandBoxPhotoTubeGeo::PMTtype (  ) 

Definition at line 18 of file SandBoxPhotoTubeGeo.cc.

References _pmttype.

{return _pmttype;}

Double_t SandBoxPhotoTubeGeo::PMTwidth (  ) 

Definition at line 22 of file SandBoxPhotoTubeGeo.cc.

References _pmtfootprint_diameter, and _pmttype.

{
  if( (_pmttype!=0) && (_pmttype!=1) ) {
    cout<<"Error!! PMT type must be either 0 (circular) or 1 (square)!!"<<endl;
    return 0.;
  }
  
  if(_pmttype==0) return _pmtfootprint_diameter;
  else if(_pmttype==1) return (_pmtfootprint_diameter/sqrt(2.)); // for a sqare pmt the footprint diameter is the diagonal of the square.

  return -555;
}


Member Data Documentation

Definition at line 22 of file SandBoxPhotoTubeGeo.hh.

Referenced by PMTdiameter(), and PMTwidth().

Definition at line 21 of file SandBoxPhotoTubeGeo.hh.

Referenced by PMTtype(), and PMTwidth().


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