WCSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
WCSimWCDigi Class Reference

#include <WCSimWCDigi.hh>

Inheritance diagram for WCSimWCDigi:

Classes

struct  SortFunctor_Hit
 

Public Member Functions

 WCSimWCDigi ()
 
 ~WCSimWCDigi ()
 
 WCSimWCDigi (const WCSimWCDigi &)
 
const WCSimWCDigioperator= (const WCSimWCDigi &)
 
int operator== (const WCSimWCDigi &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void RemoveDigitizedGate (G4int gate)
 
void SetTubeID (G4int tube)
 
void AddGate (int g, double t)
 
void SetPe (G4int gate, G4double Q)
 
void SetTime (G4int gate, G4double T)
 
void SetPreSmearTime (G4int gate, G4double T)
 
void SetParentID (G4int gate, G4int parent)
 
void AddPhotonToDigiComposition (int digi_number, int photon_number)
 
void AddDigiCompositionInfo (std::vector< int > &digi_comp)
 
G4int GetParentID (int gate)
 
G4double GetGateTime (int gate)
 
G4int GetTubeID ()
 
G4double GetPe (int gate)
 
G4double GetTime (int gate)
 
G4double GetPreSmearTime (int gate)
 
std::vector< int > GetDigiCompositionInfo (int gate)
 
std::map< int, std::vector< int > > GetDigiCompositionInfo ()
 
int NumberOfGates ()
 
int NumberOfSubEvents ()
 
bool HasHitsInGate (int number)
 
G4LogicalVolume * GetLogicalVolume ()
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
void SetLogicalVolume (G4LogicalVolume *logV)
 
void SetTrackID (G4int track)
 
void SetRot (G4RotationMatrix rotMatrix)
 
G4int GetTotalPe ()
 
void SetMaxPe (G4int number=0)
 
void AddPe (G4double hitTime)
 
void SortHitTimes ()
 
void SortArrayByHitTime ()
 
void insertionSort (int a[], int array_size)
 
G4double GetFirstHitTimeInGate (G4double low, G4double upevent)
 

Private Attributes

G4int tubeID
 
G4RotationMatrix rot
 
G4ThreeVector pos
 
G4LogicalVolume * pLogV
 
std::set< int > Gates
 
std::vector< double > TriggerTimes
 
std::map< int, double > pe
 Charge of each Digi. More...
 
std::map< int, double > time_presmear
 Time of each Digi, before smearing. More...
 
std::map< int, double > time
 Time of each Digi. More...
 
std::vector< G4double > time_double
 Same information as "time" but stored in a vector for quick time sorting. More...
 
std::map< int, std::vector< int > > fDigiComp
 IDs of the hits that make up this Digit (do not use for Hits) More...
 
std::map< int, G4int > primaryParentID
 Primary parent ID of the Hit (do not use for Digits) More...
 
G4int totalPe
 
G4int totalPeInGate
 
G4double edep
 
G4int trackID
 

Static Private Attributes

static G4int maxPe
 

Detailed Description

Definition at line 26 of file WCSimWCDigi.hh.

Constructor & Destructor Documentation

WCSimWCDigi::WCSimWCDigi ( )

Definition at line 10 of file WCSimWCDigi.cc.

WCSimWCDigi::~WCSimWCDigi ( )

Definition at line 22 of file WCSimWCDigi.cc.

WCSimWCDigi::WCSimWCDigi ( const WCSimWCDigi right)

Definition at line 27 of file WCSimWCDigi.cc.

Member Function Documentation

void WCSimWCDigi::AddDigiCompositionInfo ( std::vector< int > &  digi_comp)
inline

Definition at line 97 of file WCSimWCDigi.hh.

void WCSimWCDigi::AddGate ( int  g,
double  t 
)
inline

Definition at line 86 of file WCSimWCDigi.hh.

void WCSimWCDigi::AddPe ( G4double  hitTime)
inline

Definition at line 128 of file WCSimWCDigi.hh.

void WCSimWCDigi::AddPhotonToDigiComposition ( int  digi_number,
int  photon_number 
)
inline

Definition at line 93 of file WCSimWCDigi.hh.

void WCSimWCDigi::Draw ( )

Definition at line 56 of file WCSimWCDigi.cc.

std::vector< int > WCSimWCDigi::GetDigiCompositionInfo ( int  gate)

Definition at line 69 of file WCSimWCDigi.cc.

std::map< int, std::vector<int> > WCSimWCDigi::GetDigiCompositionInfo ( )
inline

Definition at line 110 of file WCSimWCDigi.hh.

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

Definition at line 182 of file WCSimWCDigi.hh.

G4double WCSimWCDigi::GetGateTime ( int  gate)
inline

Definition at line 104 of file WCSimWCDigi.hh.

G4LogicalVolume* WCSimWCDigi::GetLogicalVolume ( )
inline

Definition at line 116 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::GetParentID ( int  gate)
inline

Definition at line 103 of file WCSimWCDigi.hh.

G4double WCSimWCDigi::GetPe ( int  gate)
inline

Definition at line 106 of file WCSimWCDigi.hh.

G4double WCSimWCDigi::GetPreSmearTime ( int  gate)
inline

Definition at line 108 of file WCSimWCDigi.hh.

G4double WCSimWCDigi::GetTime ( int  gate)
inline

Definition at line 107 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::GetTotalPe ( )
inline

Definition at line 124 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::GetTubeID ( )
inline

Definition at line 105 of file WCSimWCDigi.hh.

bool WCSimWCDigi::HasHitsInGate ( int  number)
inline

Definition at line 114 of file WCSimWCDigi.hh.

void WCSimWCDigi::insertionSort ( int  a[],
int  array_size 
)
inline

Definition at line 168 of file WCSimWCDigi.hh.

int WCSimWCDigi::NumberOfGates ( )
inline

Definition at line 112 of file WCSimWCDigi.hh.

int WCSimWCDigi::NumberOfSubEvents ( )
inline

Definition at line 113 of file WCSimWCDigi.hh.

void WCSimWCDigi::operator delete ( void *  aDigi)
inline

Definition at line 224 of file WCSimWCDigi.hh.

void * WCSimWCDigi::operator new ( size_t  )
inline

Definition at line 217 of file WCSimWCDigi.hh.

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

Definition at line 38 of file WCSimWCDigi.cc.

int WCSimWCDigi::operator== ( const WCSimWCDigi right) const

Definition at line 49 of file WCSimWCDigi.cc.

void WCSimWCDigi::Print ( )

Definition at line 58 of file WCSimWCDigi.cc.

void WCSimWCDigi::RemoveDigitizedGate ( G4int  gate)

Definition at line 79 of file WCSimWCDigi.cc.

void WCSimWCDigi::SetEdep ( G4double  de)
inline

Definition at line 119 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetLogicalVolume ( G4LogicalVolume *  logV)
inline

Definition at line 121 of file WCSimWCDigi.hh.

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

Definition at line 126 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetParentID ( G4int  gate,
G4int  parent 
)
inline

Definition at line 90 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetPe ( G4int  gate,
G4double  Q 
)
inline

Definition at line 87 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 120 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetPreSmearTime ( G4int  gate,
G4double  T 
)
inline

Definition at line 89 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetRot ( G4RotationMatrix  rotMatrix)
inline

Definition at line 123 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetTime ( G4int  gate,
G4double  T 
)
inline

Definition at line 88 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetTrackID ( G4int  track)
inline

Definition at line 122 of file WCSimWCDigi.hh.

void WCSimWCDigi::SetTubeID ( G4int  tube)
inline

Definition at line 85 of file WCSimWCDigi.hh.

void WCSimWCDigi::SortArrayByHitTime ( )
inline

Definition at line 139 of file WCSimWCDigi.hh.

void WCSimWCDigi::SortHitTimes ( )
inline

Definition at line 136 of file WCSimWCDigi.hh.

Member Data Documentation

G4double WCSimWCDigi::edep
private

Definition at line 78 of file WCSimWCDigi.hh.

std::map<int, std::vector<int> > WCSimWCDigi::fDigiComp
private

IDs of the hits that make up this Digit (do not use for Hits)

Stores the unique IDs of each photon making up a digit Each digit can be made from multiple photons, therefore a vector is used For example: 0:[3,4,6]; 1:[10,11,13,14] The first digit in the event is made of of photons 3,4,6; The second digit is made up of photons: 10,11,13,14

Definition at line 69 of file WCSimWCDigi.hh.

std::set<int> WCSimWCDigi::Gates
private

Definition at line 53 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::maxPe
staticprivate

Definition at line 79 of file WCSimWCDigi.hh.

std::map<int,double> WCSimWCDigi::pe
private

Charge of each Digi.

Definition at line 57 of file WCSimWCDigi.hh.

G4LogicalVolume* WCSimWCDigi::pLogV
private

Definition at line 49 of file WCSimWCDigi.hh.

G4ThreeVector WCSimWCDigi::pos
private

Definition at line 48 of file WCSimWCDigi.hh.

std::map<int, G4int> WCSimWCDigi::primaryParentID
private

Primary parent ID of the Hit (do not use for Digits)

Definition at line 70 of file WCSimWCDigi.hh.

G4RotationMatrix WCSimWCDigi::rot
private

Definition at line 47 of file WCSimWCDigi.hh.

std::map<int,double> WCSimWCDigi::time
private

Time of each Digi.

Definition at line 59 of file WCSimWCDigi.hh.

std::vector<G4double> WCSimWCDigi::time_double
private

Same information as "time" but stored in a vector for quick time sorting.

Definition at line 60 of file WCSimWCDigi.hh.

std::map<int,double> WCSimWCDigi::time_presmear
private

Time of each Digi, before smearing.

Definition at line 58 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::totalPe
private

Definition at line 74 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::totalPeInGate
private

Definition at line 77 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::trackID
private

Definition at line 80 of file WCSimWCDigi.hh.

std::vector<double> WCSimWCDigi::TriggerTimes
private

Definition at line 54 of file WCSimWCDigi.hh.

G4int WCSimWCDigi::tubeID
private

Definition at line 46 of file WCSimWCDigi.hh.


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