WCSim
Public Member Functions | Private Attributes | List of all members
WCSimRootPMT Class Reference

PMT geometry information. More...

#include <WCSimRootGeom.hh>

Inheritance diagram for WCSimRootPMT:
Inheritance graph
Collaboration diagram for WCSimRootPMT:
Collaboration graph

Public Member Functions

 WCSimRootPMT ()
 
 WCSimRootPMT (Int_t tubeNo, Int_t cylLoc, Double_t orientation[3], Double_t position[3])
 
 WCSimRootPMT (Int_t tubeNo, Int_t mPMTNo, Int_t mPMT_PMTno, Int_t cylLoc, Double_t orientation[3], Double_t position[3])
 
 WCSimRootPMT (const WCSimRootPMT &in)
 
virtual ~WCSimRootPMT ()
 
bool CompareAllVariables (const WCSimRootPMT *c) const
 
void SetTubeNo (Int_t i)
 
void SetmPMTNo (Int_t i)
 
void SetmPMT_PMTNo (Int_t i)
 
void SetCylLoc (Int_t i)
 
void SetOrientation (Int_t i, Double_t f)
 
void SetPosition (Int_t i, Double_t f)
 
Int_t GetTubeNo () const
 
Int_t GetmPMTNo () const
 
Int_t GetmPMT_PMTNo () const
 
Int_t GetCylLoc () const
 
Float_t GetOrientation (Int_t i=0) const
 
Float_t GetPosition (Int_t i=0) const
 

Private Attributes

Int_t fTubeNo
 PMT tube ID. Unique number across all PMT types (i.e. runs from 0 to NPMTs, where NPMTs = N20" + NOD + N3"inMPMT) More...
 
Int_t fmPMTNo
 The mPMT number this 3" PMT is in (Equivalent to fTubeID for 20" & OD PMTs) More...
 
Int_t fmPMT_PMTNo
 The 3" PMT position ID inside this mPMT (runs from 1-19 for 3" PMTs inside mPMTs. Is 0 for 20" & OD PMTs) More...
 
Int_t fCylLoc
 Distinguishes between PMT position p (top cap = 0, wall = 1, bottom cap = 2) & PMT type t (20" PMT in FD or 3" in mPMT in IWCD = 0, mPMT in FD = 2 / OD = 1). CylLoc = 3 * t + p. More...
 
Float_t fOrientation [3]
 PMT direction unit vector pointing out of the glass into the detector volume. More...
 
Float_t fPosition [3]
 PMT position vector. The position is defined as the ??? part of the PMT. Units: cm. More...
 

Detailed Description

PMT geometry information.

See the macro sample-root-scripts/read_number_of_PMTs.C for an example of using this class

Definition at line 24 of file WCSimRootGeom.hh.

Constructor & Destructor Documentation

◆ WCSimRootPMT() [1/4]

WCSimRootPMT::WCSimRootPMT ( )

Definition at line 99 of file WCSimRootGeom.cc.

◆ WCSimRootPMT() [2/4]

WCSimRootPMT::WCSimRootPMT ( Int_t  tubeNo,
Int_t  cylLoc,
Double_t  orientation[3],
Double_t  position[3] 
)

Definition at line 117 of file WCSimRootGeom.cc.

◆ WCSimRootPMT() [3/4]

WCSimRootPMT::WCSimRootPMT ( Int_t  tubeNo,
Int_t  mPMTNo,
Int_t  mPMT_PMTno,
Int_t  cylLoc,
Double_t  orientation[3],
Double_t  position[3] 
)

Definition at line 131 of file WCSimRootGeom.cc.

◆ WCSimRootPMT() [4/4]

WCSimRootPMT::WCSimRootPMT ( const WCSimRootPMT in)

Definition at line 104 of file WCSimRootGeom.cc.

◆ ~WCSimRootPMT()

WCSimRootPMT::~WCSimRootPMT ( )
virtual

Definition at line 167 of file WCSimRootGeom.cc.

Member Function Documentation

◆ CompareAllVariables()

bool WCSimRootPMT::CompareAllVariables ( const WCSimRootPMT c) const

Definition at line 172 of file WCSimRootGeom.cc.

◆ GetCylLoc()

Int_t WCSimRootPMT::GetCylLoc ( ) const
inline

Definition at line 52 of file WCSimRootGeom.hh.

◆ GetmPMT_PMTNo()

Int_t WCSimRootPMT::GetmPMT_PMTNo ( ) const
inline

Definition at line 51 of file WCSimRootGeom.hh.

◆ GetmPMTNo()

Int_t WCSimRootPMT::GetmPMTNo ( ) const
inline

Definition at line 50 of file WCSimRootGeom.hh.

◆ GetOrientation()

Float_t WCSimRootPMT::GetOrientation ( Int_t  i = 0) const
inline

Definition at line 53 of file WCSimRootGeom.hh.

◆ GetPosition()

Float_t WCSimRootPMT::GetPosition ( Int_t  i = 0) const
inline

Definition at line 54 of file WCSimRootGeom.hh.

◆ GetTubeNo()

Int_t WCSimRootPMT::GetTubeNo ( ) const
inline

Definition at line 49 of file WCSimRootGeom.hh.

◆ SetCylLoc()

void WCSimRootPMT::SetCylLoc ( Int_t  i)
inline

Definition at line 45 of file WCSimRootGeom.hh.

◆ SetmPMT_PMTNo()

void WCSimRootPMT::SetmPMT_PMTNo ( Int_t  i)
inline

Definition at line 44 of file WCSimRootGeom.hh.

◆ SetmPMTNo()

void WCSimRootPMT::SetmPMTNo ( Int_t  i)
inline

Definition at line 43 of file WCSimRootGeom.hh.

◆ SetOrientation()

void WCSimRootPMT::SetOrientation ( Int_t  i,
Double_t  f 
)
inline

Definition at line 46 of file WCSimRootGeom.hh.

◆ SetPosition()

void WCSimRootPMT::SetPosition ( Int_t  i,
Double_t  f 
)
inline

Definition at line 47 of file WCSimRootGeom.hh.

◆ SetTubeNo()

void WCSimRootPMT::SetTubeNo ( Int_t  i)
inline

Definition at line 42 of file WCSimRootGeom.hh.

Member Data Documentation

◆ fCylLoc

Int_t WCSimRootPMT::fCylLoc
private

Distinguishes between PMT position p (top cap = 0, wall = 1, bottom cap = 2) & PMT type t (20" PMT in FD or 3" in mPMT in IWCD = 0, mPMT in FD = 2 / OD = 1). CylLoc = 3 * t + p.

Definition at line 30 of file WCSimRootGeom.hh.

◆ fmPMT_PMTNo

Int_t WCSimRootPMT::fmPMT_PMTNo
private

The 3" PMT position ID inside this mPMT (runs from 1-19 for 3" PMTs inside mPMTs. Is 0 for 20" & OD PMTs)

Definition at line 29 of file WCSimRootGeom.hh.

◆ fmPMTNo

Int_t WCSimRootPMT::fmPMTNo
private

The mPMT number this 3" PMT is in (Equivalent to fTubeID for 20" & OD PMTs)

Definition at line 28 of file WCSimRootGeom.hh.

◆ fOrientation

Float_t WCSimRootPMT::fOrientation[3]
private

PMT direction unit vector pointing out of the glass into the detector volume.

Definition at line 31 of file WCSimRootGeom.hh.

◆ fPosition

Float_t WCSimRootPMT::fPosition[3]
private

PMT position vector. The position is defined as the ??? part of the PMT. Units: cm.

Definition at line 32 of file WCSimRootGeom.hh.

◆ fTubeNo

Int_t WCSimRootPMT::fTubeNo
private

PMT tube ID. Unique number across all PMT types (i.e. runs from 0 to NPMTs, where NPMTs = N20" + NOD + N3"inMPMT)

Definition at line 27 of file WCSimRootGeom.hh.


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