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

Detector geometry information (also containing PMT information arrays) More...

#include <WCSimRootGeom.hh>

Inheritance diagram for WCSimRootGeom:
Inheritance graph
Collaboration diagram for WCSimRootGeom:
Collaboration graph

Public Member Functions

 WCSimRootGeom ()
 
 WCSimRootGeom (const WCSimRootGeom &in)
 
virtual ~WCSimRootGeom ()
 
bool CompareAllVariables (const WCSimRootGeom *c) const
 
void SetWCCylRadius (Double_t f)
 
void SetWCCylLength (Double_t f)
 
void SetGeo_Type (Int_t f)
 
void SetWCNumPMT (Int_t i, bool hybridsecondtype=false)
 
void SetODWCNumPMT (Int_t i)
 
void SetWCPMTRadius (Double_t f, int hybridsecondtype=false)
 
void SetODWCPMTRadius (Double_t f)
 
void SetWCOffset (Double_t x, Double_t y, Double_t z)
 
void SetODPMT (Int_t i, Int_t tubeno, Int_t cyl_loc, Double_t rot[3], Double_t pos[3], bool expand=true)
 
void SetPMT (Int_t i, Int_t tubeno, Int_t mPMTNo, Int_t mPMT_PMTno, Int_t cyl_loc, Double_t rot[3], Double_t pos[3], bool expand=true, bool hybridsecondtype=false)
 
void SetOrientation (Int_t o)
 
Float_t GetWCCylRadius () const
 
Float_t GetWCCylLength () const
 
Int_t GetGeo_Type () const
 
Int_t GetWCNumPMT (bool hybridsecondtype=false) const
 
Int_t GetODWCNumPMT () const
 
Float_t GetWCPMTRadius (bool hybridsecondtype=false) const
 
Float_t GetODWCPMTRadius () const
 
Float_t GetWCOffset (Int_t i) const
 
Int_t GetOrientation () const
 
WCSimRootPMT GetPMT (Int_t i, bool hybridsecondtype=false)
 
const WCSimRootPMTGetPMTPtr (Int_t i, bool hybridsecondtype=false) const
 
TClonesArray * GetPMTs (bool hybridsecondtype=false)
 
WCSimRootPMT GetODPMT (Int_t i)
 
const WCSimRootPMTGetODPMTPtr (Int_t i) const
 
TClonesArray * GetODPMTs ()
 

Private Attributes

Float_t fWCCylRadius
 Radius of WC tank. Units: cm. More...
 
Float_t fWCCylLength
 Length of WC tank. Units: cm. More...
 
Int_t fgeo_type
 UNUSED mailbox or cylinder? More...
 
Float_t fWCPMTRadius
 Radius of ID PMT of the first type. Units: cm. More...
 
Float_t fWCPMTRadius2
 
Int_t fWCNumPMT
 
Int_t fWCNumPMT2
 
Float_t fODWCPMTRadius
 
Int_t fODWCNumPMT
 
Float_t fWCOffset [3]
 
Int_t fOrientation
 UNUSED Orientation of detector, 0 is 2km horizontal, 1 is Upright. More...
 
TClonesArray * fPMTArray
 Array of ID PMTs of the first type. More...
 
TClonesArray * fPMTArray2
 Array of ID PMTs of the second type. More...
 
TClonesArray * fODPMTArray
 Array of OD PMTs. More...
 

Detailed Description

Detector geometry information (also containing PMT information arrays)

PMT information is stored based on the PMT type

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

Definition at line 73 of file WCSimRootGeom.hh.

Constructor & Destructor Documentation

◆ WCSimRootGeom() [1/2]

WCSimRootGeom::WCSimRootGeom ( )

◆ WCSimRootGeom() [2/2]

WCSimRootGeom::WCSimRootGeom ( const WCSimRootGeom in)

Definition at line 35 of file WCSimRootGeom.cc.

◆ ~WCSimRootGeom()

WCSimRootGeom::~WCSimRootGeom ( )
virtual

Definition at line 64 of file WCSimRootGeom.cc.

Member Function Documentation

◆ CompareAllVariables()

bool WCSimRootGeom::CompareAllVariables ( const WCSimRootGeom c) const

Definition at line 74 of file WCSimRootGeom.cc.

◆ GetGeo_Type()

Int_t WCSimRootGeom::GetGeo_Type ( ) const
inline

Definition at line 129 of file WCSimRootGeom.hh.

◆ GetODPMT()

WCSimRootPMT WCSimRootGeom::GetODPMT ( Int_t  i)
inline

Definition at line 167 of file WCSimRootGeom.hh.

◆ GetODPMTPtr()

const WCSimRootPMT* WCSimRootGeom::GetODPMTPtr ( Int_t  i) const
inline

Definition at line 168 of file WCSimRootGeom.hh.

◆ GetODPMTs()

TClonesArray* WCSimRootGeom::GetODPMTs ( )
inline

Definition at line 169 of file WCSimRootGeom.hh.

◆ GetODWCNumPMT()

Int_t WCSimRootGeom::GetODWCNumPMT ( ) const
inline

Definition at line 137 of file WCSimRootGeom.hh.

◆ GetODWCPMTRadius()

Float_t WCSimRootGeom::GetODWCPMTRadius ( ) const
inline

Definition at line 145 of file WCSimRootGeom.hh.

◆ GetOrientation()

Int_t WCSimRootGeom::GetOrientation ( ) const
inline

Definition at line 147 of file WCSimRootGeom.hh.

◆ GetPMT()

WCSimRootPMT WCSimRootGeom::GetPMT ( Int_t  i,
bool  hybridsecondtype = false 
)
inline

Definition at line 149 of file WCSimRootGeom.hh.

◆ GetPMTPtr()

const WCSimRootPMT* WCSimRootGeom::GetPMTPtr ( Int_t  i,
bool  hybridsecondtype = false 
) const
inline

Definition at line 155 of file WCSimRootGeom.hh.

◆ GetPMTs()

TClonesArray* WCSimRootGeom::GetPMTs ( bool  hybridsecondtype = false)
inline

Definition at line 161 of file WCSimRootGeom.hh.

◆ GetWCCylLength()

Float_t WCSimRootGeom::GetWCCylLength ( ) const
inline

Definition at line 127 of file WCSimRootGeom.hh.

◆ GetWCCylRadius()

Float_t WCSimRootGeom::GetWCCylRadius ( ) const
inline

Definition at line 126 of file WCSimRootGeom.hh.

◆ GetWCNumPMT()

Int_t WCSimRootGeom::GetWCNumPMT ( bool  hybridsecondtype = false) const
inline

Definition at line 131 of file WCSimRootGeom.hh.

◆ GetWCOffset()

Float_t WCSimRootGeom::GetWCOffset ( Int_t  i) const
inline

Definition at line 146 of file WCSimRootGeom.hh.

◆ GetWCPMTRadius()

Float_t WCSimRootGeom::GetWCPMTRadius ( bool  hybridsecondtype = false) const
inline

Definition at line 139 of file WCSimRootGeom.hh.

◆ SetGeo_Type()

void WCSimRootGeom::SetGeo_Type ( Int_t  f)
inline

Definition at line 108 of file WCSimRootGeom.hh.

◆ SetODPMT()

void WCSimRootGeom::SetODPMT ( Int_t  i,
Int_t  tubeno,
Int_t  cyl_loc,
Double_t  rot[3],
Double_t  pos[3],
bool  expand = true 
)

Definition at line 145 of file WCSimRootGeom.cc.

◆ SetODWCNumPMT()

void WCSimRootGeom::SetODWCNumPMT ( Int_t  i)
inline

Definition at line 116 of file WCSimRootGeom.hh.

◆ SetODWCPMTRadius()

void WCSimRootGeom::SetODWCPMTRadius ( Double_t  f)
inline

Definition at line 118 of file WCSimRootGeom.hh.

◆ SetOrientation()

void WCSimRootGeom::SetOrientation ( Int_t  o)
inline

Definition at line 124 of file WCSimRootGeom.hh.

◆ SetPMT()

void WCSimRootGeom::SetPMT ( Int_t  i,
Int_t  tubeno,
Int_t  mPMTNo,
Int_t  mPMT_PMTno,
Int_t  cyl_loc,
Double_t  rot[3],
Double_t  pos[3],
bool  expand = true,
bool  hybridsecondtype = false 
)

Definition at line 156 of file WCSimRootGeom.cc.

◆ SetWCCylLength()

void WCSimRootGeom::SetWCCylLength ( Double_t  f)
inline

Definition at line 106 of file WCSimRootGeom.hh.

◆ SetWCCylRadius()

void WCSimRootGeom::SetWCCylRadius ( Double_t  f)
inline

Definition at line 105 of file WCSimRootGeom.hh.

◆ SetWCNumPMT()

void WCSimRootGeom::SetWCNumPMT ( Int_t  i,
bool  hybridsecondtype = false 
)
inline

Definition at line 110 of file WCSimRootGeom.hh.

◆ SetWCOffset()

void WCSimRootGeom::SetWCOffset ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 119 of file WCSimRootGeom.hh.

◆ SetWCPMTRadius()

void WCSimRootGeom::SetWCPMTRadius ( Double_t  f,
int  hybridsecondtype = false 
)
inline

Definition at line 117 of file WCSimRootGeom.hh.

Member Data Documentation

◆ fgeo_type

Int_t WCSimRootGeom::fgeo_type
private

UNUSED mailbox or cylinder?

Definition at line 80 of file WCSimRootGeom.hh.

◆ fODPMTArray

TClonesArray* WCSimRootGeom::fODPMTArray
private

Array of OD PMTs.

Definition at line 94 of file WCSimRootGeom.hh.

◆ fODWCNumPMT

Int_t WCSimRootGeom::fODWCNumPMT
private

Definition at line 87 of file WCSimRootGeom.hh.

◆ fODWCPMTRadius

Float_t WCSimRootGeom::fODWCPMTRadius
private

Definition at line 86 of file WCSimRootGeom.hh.

◆ fOrientation

Int_t WCSimRootGeom::fOrientation
private

UNUSED Orientation of detector, 0 is 2km horizontal, 1 is Upright.

Definition at line 90 of file WCSimRootGeom.hh.

◆ fPMTArray

TClonesArray* WCSimRootGeom::fPMTArray
private

Array of ID PMTs of the first type.

Definition at line 92 of file WCSimRootGeom.hh.

◆ fPMTArray2

TClonesArray* WCSimRootGeom::fPMTArray2
private

Array of ID PMTs of the second type.

Definition at line 93 of file WCSimRootGeom.hh.

◆ fWCCylLength

Float_t WCSimRootGeom::fWCCylLength
private

Length of WC tank. Units: cm.

Definition at line 78 of file WCSimRootGeom.hh.

◆ fWCCylRadius

Float_t WCSimRootGeom::fWCCylRadius
private

Radius of WC tank. Units: cm.

Definition at line 77 of file WCSimRootGeom.hh.

◆ fWCNumPMT

Int_t WCSimRootGeom::fWCNumPMT
private

Definition at line 84 of file WCSimRootGeom.hh.

◆ fWCNumPMT2

Int_t WCSimRootGeom::fWCNumPMT2
private

Definition at line 85 of file WCSimRootGeom.hh.

◆ fWCOffset

Float_t WCSimRootGeom::fWCOffset[3]
private

Definition at line 88 of file WCSimRootGeom.hh.

◆ fWCPMTRadius

Float_t WCSimRootGeom::fWCPMTRadius
private

Radius of ID PMT of the first type. Units: cm.

Definition at line 82 of file WCSimRootGeom.hh.

◆ fWCPMTRadius2

Float_t WCSimRootGeom::fWCPMTRadius2
private

Definition at line 83 of file WCSimRootGeom.hh.


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