WCSim
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
WCSimWCHit Class Reference

#include <WCSimWCHit.hh>

Inheritance diagram for WCSimWCHit:
Inheritance graph
Collaboration diagram for WCSimWCHit:
Collaboration graph

Classes

struct  SortFunctor_Hit
 

Public Member Functions

 WCSimWCHit ()
 
 ~WCSimWCHit ()
 
 WCSimWCHit (const WCSimWCHit &)
 
const WCSimWCHitoperator= (const WCSimWCHit &)
 
G4int operator== (const WCSimWCHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetTubeID (G4int tube)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
void SetOrientation (G4ThreeVector xyz)
 
void SetRot (G4RotationMatrix rotMatrix)
 
void SetLogicalVolume (G4LogicalVolume *logV)
 
void AddTrackID (G4int track)
 
void AddParentID (G4int myParentSavedTrackID)
 
void AddPhotonStartTime (G4float photStartTime)
 
void AddPhotonStartPos (const G4ThreeVector &photStartPos)
 
void AddPhotonEndPos (const G4ThreeVector &photEndPos)
 
void AddPhotonStartDir (const G4ThreeVector &photStartDir)
 
void AddPhotonEndDir (const G4ThreeVector &photEndDir)
 
void AddPhotonCreatorProcess (const ProcessType_t creatorProcess)
 
void SetTubeType (G4String tube_type)
 
void SetMaxPe (G4int number=0)
 
void AddPe (G4double hitTime)
 
G4int GetTubeID ()
 
G4int GetTrackID (int i)
 
G4ThreeVector GetPos ()
 
G4ThreeVector GetOrientation ()
 
G4int GetTotalPe ()
 
G4double GetTime (int i)
 
G4int GetParentID (int i)
 
G4String GetTubeType ()
 
G4float GetPhotonStartTime (int i)
 
G4ThreeVector GetPhotonStartPos (int i)
 
G4ThreeVector GetPhotonEndPos (int i)
 
G4ThreeVector GetPhotonStartDir (int i)
 
G4ThreeVector GetPhotonEndDir (int i)
 
ProcessType_t GetPhotonCreatorProcess (int i)
 
G4LogicalVolumeGetLogicalVolume ()
 
void SortHitTimes ()
 
G4double GetFirstHitTimeInGate (G4double low, G4double upevent)
 
G4int GetPeInGate (G4double low, G4double pmtgate, G4double evgate)
 

Private Member Functions

void HSVtoRGB (double &fR, double &fG, double &fB, double &fH, double &fS, double &fV)
 Convert HSV to RGB color space (from https://gist.github.com/fairlight1337/4935ae72bcbcc1ba5c72) More...
 

Private Attributes

G4int tubeID
 
G4double edep
 
G4ThreeVector pos
 
G4ThreeVector orient
 
G4RotationMatrix rot
 
G4LogicalVolumepLogV
 
G4String tubeType
 
G4int totalPe
 
std::vector< G4doubletime
 
std::vector< G4inttrackID
 
std::vector< G4intparentSavedTrackID
 
std::vector< G4float > photonStartTime
 
std::vector< G4ThreeVectorphotonStartPos
 
std::vector< G4ThreeVectorphotonEndPos
 
std::vector< G4ThreeVectorphotonStartDir
 
std::vector< G4ThreeVectorphotonEndDir
 
std::vector< ProcessType_tphotonCreatorProcess
 
G4int totalPeInGate
 

Static Private Attributes

static G4int maxPe = 0
 

Detailed Description

Definition at line 17 of file WCSimWCHit.hh.

Constructor & Destructor Documentation

◆ WCSimWCHit() [1/2]

WCSimWCHit::WCSimWCHit ( )

Definition at line 21 of file WCSimWCHit.cc.

◆ ~WCSimWCHit()

WCSimWCHit::~WCSimWCHit ( )

Definition at line 26 of file WCSimWCHit.cc.

◆ WCSimWCHit() [2/2]

WCSimWCHit::WCSimWCHit ( const WCSimWCHit right)

Definition at line 28 of file WCSimWCHit.cc.

Member Function Documentation

◆ AddParentID()

void WCSimWCHit::AddParentID ( G4int  myParentSavedTrackID)
inline

Definition at line 42 of file WCSimWCHit.hh.

◆ AddPe()

void WCSimWCHit::AddPe ( G4double  hitTime)
inline

Definition at line 56 of file WCSimWCHit.hh.

◆ AddPhotonCreatorProcess()

void WCSimWCHit::AddPhotonCreatorProcess ( const ProcessType_t  creatorProcess)
inline

Definition at line 48 of file WCSimWCHit.hh.

◆ AddPhotonEndDir()

void WCSimWCHit::AddPhotonEndDir ( const G4ThreeVector photEndDir)
inline

Definition at line 47 of file WCSimWCHit.hh.

◆ AddPhotonEndPos()

void WCSimWCHit::AddPhotonEndPos ( const G4ThreeVector photEndPos)
inline

Definition at line 45 of file WCSimWCHit.hh.

◆ AddPhotonStartDir()

void WCSimWCHit::AddPhotonStartDir ( const G4ThreeVector photStartDir)
inline

Definition at line 46 of file WCSimWCHit.hh.

◆ AddPhotonStartPos()

void WCSimWCHit::AddPhotonStartPos ( const G4ThreeVector photStartPos)
inline

Definition at line 44 of file WCSimWCHit.hh.

◆ AddPhotonStartTime()

void WCSimWCHit::AddPhotonStartTime ( G4float  photStartTime)
inline

Definition at line 43 of file WCSimWCHit.hh.

◆ AddTrackID()

void WCSimWCHit::AddTrackID ( G4int  track)
inline

Definition at line 41 of file WCSimWCHit.hh.

◆ Draw()

void WCSimWCHit::Draw ( )

Definition at line 54 of file WCSimWCHit.cc.

◆ GetFirstHitTimeInGate()

G4double WCSimWCHit::GetFirstHitTimeInGate ( G4double  low,
G4double  upevent 
)
inline

Definition at line 88 of file WCSimWCHit.hh.

◆ GetLogicalVolume()

G4LogicalVolume* WCSimWCHit::GetLogicalVolume ( )
inline

Definition at line 82 of file WCSimWCHit.hh.

◆ GetOrientation()

G4ThreeVector WCSimWCHit::GetOrientation ( )
inline

Definition at line 70 of file WCSimWCHit.hh.

◆ GetParentID()

G4int WCSimWCHit::GetParentID ( int  i)
inline

Definition at line 73 of file WCSimWCHit.hh.

◆ GetPeInGate()

G4int WCSimWCHit::GetPeInGate ( G4double  low,
G4double  pmtgate,
G4double  evgate 
)
inline

Definition at line 112 of file WCSimWCHit.hh.

◆ GetPhotonCreatorProcess()

ProcessType_t WCSimWCHit::GetPhotonCreatorProcess ( int  i)
inline

Definition at line 80 of file WCSimWCHit.hh.

◆ GetPhotonEndDir()

G4ThreeVector WCSimWCHit::GetPhotonEndDir ( int  i)
inline

Definition at line 79 of file WCSimWCHit.hh.

◆ GetPhotonEndPos()

G4ThreeVector WCSimWCHit::GetPhotonEndPos ( int  i)
inline

Definition at line 77 of file WCSimWCHit.hh.

◆ GetPhotonStartDir()

G4ThreeVector WCSimWCHit::GetPhotonStartDir ( int  i)
inline

Definition at line 78 of file WCSimWCHit.hh.

◆ GetPhotonStartPos()

G4ThreeVector WCSimWCHit::GetPhotonStartPos ( int  i)
inline

Definition at line 76 of file WCSimWCHit.hh.

◆ GetPhotonStartTime()

G4float WCSimWCHit::GetPhotonStartTime ( int  i)
inline

Definition at line 75 of file WCSimWCHit.hh.

◆ GetPos()

G4ThreeVector WCSimWCHit::GetPos ( )
inline

Definition at line 69 of file WCSimWCHit.hh.

◆ GetTime()

G4double WCSimWCHit::GetTime ( int  i)
inline

Definition at line 72 of file WCSimWCHit.hh.

◆ GetTotalPe()

G4int WCSimWCHit::GetTotalPe ( )
inline

Definition at line 71 of file WCSimWCHit.hh.

◆ GetTrackID()

G4int WCSimWCHit::GetTrackID ( int  i)
inline

Definition at line 68 of file WCSimWCHit.hh.

◆ GetTubeID()

G4int WCSimWCHit::GetTubeID ( )
inline

Definition at line 67 of file WCSimWCHit.hh.

◆ GetTubeType()

G4String WCSimWCHit::GetTubeType ( )
inline

Definition at line 74 of file WCSimWCHit.hh.

◆ HSVtoRGB()

void WCSimWCHit::HSVtoRGB ( double &  fR,
double &  fG,
double &  fB,
double &  fH,
double &  fS,
double &  fV 
)
private

Convert HSV to RGB color space (from https://gist.github.com/fairlight1337/4935ae72bcbcc1ba5c72)

Converts a given set of HSV values ‘h’, ‘s’, ‘v’ into RGB coordinates. The output RGB values are in the range [0, 1], and the input HSV values are in the ranges h = [0, 360], and s, v = [0, 1], respectively.

Parameters
fRRed component, used as output, range: [0, 1]
fGGreen component, used as output, range: [0, 1]
fBBlue component, used as output, range: [0, 1]
fHHue component, used as input, range: [0, 360]
fSSaturation component, used as input, range: [0, 1]
fVValue component, used as input, range: [0, 1]

Definition at line 147 of file WCSimWCHit.cc.

◆ operator delete()

void WCSimWCHit::operator delete ( void *  aHit)
inline

Definition at line 180 of file WCSimWCHit.hh.

◆ operator new()

void * WCSimWCHit::operator new ( size_t  )
inline

Definition at line 173 of file WCSimWCHit.hh.

◆ operator=()

const WCSimWCHit & WCSimWCHit::operator= ( const WCSimWCHit right)

Definition at line 38 of file WCSimWCHit.cc.

◆ operator==()

G4int WCSimWCHit::operator== ( const WCSimWCHit right) const

Definition at line 49 of file WCSimWCHit.cc.

◆ Print()

void WCSimWCHit::Print ( )

Definition at line 103 of file WCSimWCHit.cc.

◆ SetEdep()

void WCSimWCHit::SetEdep ( G4double  de)
inline

Definition at line 36 of file WCSimWCHit.hh.

◆ SetLogicalVolume()

void WCSimWCHit::SetLogicalVolume ( G4LogicalVolume logV)
inline

Definition at line 40 of file WCSimWCHit.hh.

◆ SetMaxPe()

void WCSimWCHit::SetMaxPe ( G4int  number = 0)
inline

Definition at line 54 of file WCSimWCHit.hh.

◆ SetOrientation()

void WCSimWCHit::SetOrientation ( G4ThreeVector  xyz)
inline

Definition at line 38 of file WCSimWCHit.hh.

◆ SetPos()

void WCSimWCHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 37 of file WCSimWCHit.hh.

◆ SetRot()

void WCSimWCHit::SetRot ( G4RotationMatrix  rotMatrix)
inline

Definition at line 39 of file WCSimWCHit.hh.

◆ SetTubeID()

void WCSimWCHit::SetTubeID ( G4int  tube)
inline

Definition at line 35 of file WCSimWCHit.hh.

◆ SetTubeType()

void WCSimWCHit::SetTubeType ( G4String  tube_type)
inline

Definition at line 50 of file WCSimWCHit.hh.

◆ SortHitTimes()

void WCSimWCHit::SortHitTimes ( )
inline

Definition at line 84 of file WCSimWCHit.hh.

Member Data Documentation

◆ edep

G4double WCSimWCHit::edep
private

Definition at line 144 of file WCSimWCHit.hh.

◆ maxPe

G4int WCSimWCHit::maxPe = 0
staticprivate

Definition at line 154 of file WCSimWCHit.hh.

◆ orient

G4ThreeVector WCSimWCHit::orient
private

Definition at line 146 of file WCSimWCHit.hh.

◆ parentSavedTrackID

std::vector<G4int> WCSimWCHit::parentSavedTrackID
private

Definition at line 159 of file WCSimWCHit.hh.

◆ photonCreatorProcess

std::vector<ProcessType_t> WCSimWCHit::photonCreatorProcess
private

Definition at line 165 of file WCSimWCHit.hh.

◆ photonEndDir

std::vector<G4ThreeVector> WCSimWCHit::photonEndDir
private

Definition at line 164 of file WCSimWCHit.hh.

◆ photonEndPos

std::vector<G4ThreeVector> WCSimWCHit::photonEndPos
private

Definition at line 162 of file WCSimWCHit.hh.

◆ photonStartDir

std::vector<G4ThreeVector> WCSimWCHit::photonStartDir
private

Definition at line 163 of file WCSimWCHit.hh.

◆ photonStartPos

std::vector<G4ThreeVector> WCSimWCHit::photonStartPos
private

Definition at line 161 of file WCSimWCHit.hh.

◆ photonStartTime

std::vector<G4float> WCSimWCHit::photonStartTime
private

Definition at line 160 of file WCSimWCHit.hh.

◆ pLogV

G4LogicalVolume* WCSimWCHit::pLogV
private

Definition at line 148 of file WCSimWCHit.hh.

◆ pos

G4ThreeVector WCSimWCHit::pos
private

Definition at line 145 of file WCSimWCHit.hh.

◆ rot

G4RotationMatrix WCSimWCHit::rot
private

Definition at line 147 of file WCSimWCHit.hh.

◆ time

std::vector<G4double> WCSimWCHit::time
private

Definition at line 157 of file WCSimWCHit.hh.

◆ totalPe

G4int WCSimWCHit::totalPe
private

Definition at line 156 of file WCSimWCHit.hh.

◆ totalPeInGate

G4int WCSimWCHit::totalPeInGate
private

Definition at line 166 of file WCSimWCHit.hh.

◆ trackID

std::vector<G4int> WCSimWCHit::trackID
private

Definition at line 158 of file WCSimWCHit.hh.

◆ tubeID

G4int WCSimWCHit::tubeID
private

Definition at line 143 of file WCSimWCHit.hh.

◆ tubeType

G4String WCSimWCHit::tubeType
private

Definition at line 149 of file WCSimWCHit.hh.


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