gtouchable
|
Represents a touchable sensitive detector element. More...
#include <gtouchable.h>
Public Member Functions | |
GTouchable (const GTouchable &)=default | |
GTouchable & | operator= (const GTouchable &)=default |
GTouchable (const std::shared_ptr< GOptions > &gopt, const std::string &digitization, const std::string &gidentityString, const std::vector< double > &dimensions) | |
Constructs a GTouchable from digitization and identifier strings. | |
GTouchable (const std::shared_ptr< GLogger > &logger, const std::string &digitization, const std::string &gidentityString, const std::vector< double > &dimensions) | |
GTouchable (const std::shared_ptr< GTouchable > &base, int newTimeIndex) | |
Copy constructor for updating the electronic time index. Used to create a new hit, in case the time indices differ. Used in processTouchable when time indices differ. | |
~GTouchable () | |
bool | operator== (const GTouchable >ouchable) const |
Equality operator comparing two GTouchable objects. | |
void | assignTrackId (int tid) |
Assigns a track identifier. | |
double | getEnergyMultiplier () const |
Gets the energy multiplier. | |
void | assignStepTimeAtElectronicsIndex (int timeIndex) |
Assigns the step time index used in electronics. | |
int | getStepTimeAtElectronicsIndex () const |
Gets the electronics time index. | |
std::vector< GIdentifier > | getIdentity () const |
Returns the identifier vector. | |
std::string | getIdentityString () const |
Returns a string formed by all identifiers. | |
std::vector< double > | getDetectorDimensions () const |
Returns the detector dimensions. | |
bool | exists_in_vector (const std::vector< GTouchable > &v) const |
Checks if the GTouchable is found in a vector of GTouchable objects. | |
Static Public Member Functions | |
static std::shared_ptr< GTouchable > | create (const std::shared_ptr< GOptions > &gopt) |
static std::shared_ptr< GTouchable > | create (const std::shared_ptr< GLogger > &logger) |
The GTouchable class encapsulates properties and identification of a sensitive detector element used in hit processing and digitization. The key discriminating factors to check if the hit belongs to an existing hitcollection are:
Definition at line 103 of file gtouchable.h.
|
default |
GTouchable::GTouchable | ( | const std::shared_ptr< GOptions > & | gopt, |
const std::string & | digitization, | ||
const std::string & | gidentityString, | ||
const std::vector< double > & | dimensions ) |
Called in GDetectorConstruction::ConstructSDandField to register a new GTouchable in the sensitive detector map.
gopt | GOptions |
digitization | The digitization type as a string. |
gidentityString | The string specifying the gidentity (e.g., "sector: 2, layer: 4, wire: 33"). |
dimensions | The physical dimensions of the detector element. |
Definition at line 14 of file gtouchable.cc.
GTouchable::GTouchable | ( | const std::shared_ptr< GLogger > & | logger, |
const std::string & | digitization, | ||
const std::string & | gidentityString, | ||
const std::vector< double > & | dimensions ) |
Definition at line 46 of file gtouchable.cc.
|
inline |
Used when the step time index of the hit is different from that of the GTouchable. Base: shallow or deep depending on GBase’s copy
base | Pointer to the base GTouchable. |
newTimeIndex | The new electronics time index. |
Definition at line 141 of file gtouchable.h.
|
inline |
Definition at line 149 of file gtouchable.h.
|
inline |
timeIndex | The new time index. |
Definition at line 178 of file gtouchable.h.
|
inline |
tid | The track id. Called in GSensitiveDetector::ProcessHits |
Definition at line 166 of file gtouchable.h.
|
inlinestatic |
Definition at line 238 of file gtouchable.h.
|
inlinestatic |
Definition at line 227 of file gtouchable.h.
|
inline |
v | The vector of GTouchable objects. |
Definition at line 214 of file gtouchable.h.
|
inline |
Definition at line 206 of file gtouchable.h.
|
inline |
Definition at line 172 of file gtouchable.h.
|
inline |
Definition at line 190 of file gtouchable.h.
|
inline |
Definition at line 196 of file gtouchable.h.
|
inline |
Definition at line 184 of file gtouchable.h.
|
default |
bool GTouchable::operator== | ( | const GTouchable & | gtouchable | ) | const |
Comparison is based on the gidentity vector and, if needed, on a type-specific property.
gtouchable | The GTouchable to compare with. |
Definition at line 77 of file gtouchable.cc.