DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Handle class to hold the information of a sensitive detector. More...
#include <DetElement.h>
Public Member Functions | |
SensitiveDetector () | |
Default constructor. More... | |
SensitiveDetector (Object *obj_pointer) | |
Constructor to copy handled object. More... | |
SensitiveDetector (Handle< SensitiveDetectorObject > &&sd) | |
Move from named handle. More... | |
SensitiveDetector (const Handle< SensitiveDetectorObject > &sd) | |
Copy from named handle. More... | |
SensitiveDetector (SensitiveDetector &&sd)=default | |
Move from handle. More... | |
SensitiveDetector (const SensitiveDetector &sd)=default | |
Copy from handle. More... | |
template<typename Q > | |
SensitiveDetector (const Handle< Q > &e) | |
Templated constructor for handle conversions. More... | |
SensitiveDetector (const std::string &name, const std::string &type="sensitive") | |
Constructor for a new sensitive detector element. More... | |
SensitiveDetector & | operator= (SensitiveDetector &&sd)=default |
Assignment move operator. More... | |
SensitiveDetector & | operator= (const SensitiveDetector &sd)=default |
Assignment copy operator. More... | |
template<typename T > | |
bool | operator== (const Handle< T > &e) const |
Equality operator. More... | |
template<typename T > | |
bool | operator!= (const Handle< T > &e) const |
Non-Equality operator. More... | |
std::string | type () const |
Access the type of the sensitive detector. More... | |
SensitiveDetector & | setType (const std::string &typ) |
Set detector type (structure, tracker, calorimeter, etc.). More... | |
SensitiveDetector & | setVerbose (bool value) |
Set flag to handle hits collection. More... | |
bool | verbose () const |
Access flag to combine hist. More... | |
SensitiveDetector & | setCombineHits (bool value) |
Set flag to handle hits collection. More... | |
bool | combineHits () const |
Access flag to combine hist. More... | |
SensitiveDetector & | setHitsCollection (const std::string &spec) |
Assign the name of the hits collection. More... | |
const std::string & | hitsCollection () const |
Access the hits collection name. More... | |
SensitiveDetector & | setReadout (Readout readout) |
Assign the IDDescriptor reference. More... | |
Readout | readout () const |
Access readout structure of the sensitive detector. More... | |
IDDescriptor | idSpec () const |
Access IDDescription structure. More... | |
SensitiveDetector & | setEnergyCutoff (double value) |
Set energy cut off. More... | |
double | energyCutoff () const |
Access energy cut off. More... | |
SensitiveDetector & | setRegion (Region reg) |
Set the regional attributes to the sensitive detector. More... | |
Region | region () const |
Access to the region setting of the sensitive detector (not mandatory) More... | |
SensitiveDetector & | setLimitSet (LimitSet limits) |
Set the limits to the sensitive detector. More... | |
LimitSet | limits () const |
Access to the limit set of the sensitive detector (not mandatory). More... | |
void * | addExtension (unsigned long long int key, ExtensionEntry *entry) const |
Add an extension object to the detector element. More... | |
void * | extension (unsigned long long int key) const |
Access an existing extension object from the detector element. More... | |
void * | extension (unsigned long long int key, bool alert) const |
Access an existing extension object from the detector element. More... | |
template<typename IFACE , typename CONCRETE > | |
IFACE * | addExtension (CONCRETE *c) const |
Extend the sensitive detector element with an arbitrary structure accessible by the type. More... | |
template<typename IFACE > | |
IFACE * | extension () const |
Access extension element by the type. More... | |
Public Member Functions inherited from dd4hep::Handle< SensitiveDetectorObject > | |
Handle ()=default | |
Default constructor. More... | |
Handle (Handle< SensitiveDetectorObject > &&element)=default | |
Copy constructor. More... | |
Handle (const Handle< SensitiveDetectorObject > &element)=default | |
Copy constructor. More... | |
Handle (SensitiveDetectorObject *element) | |
Initializing constructor from pointer. More... | |
Handle (Q *element) | |
Initializing constructor from unrelated pointer with type checking. More... | |
Handle (const Handle< Q > &element) | |
Initializing constructor from unrelated handle with type checking. More... | |
Handle< SensitiveDetectorObject > & | operator= (Handle< SensitiveDetectorObject > &&element)=default |
Assignment move operator. More... | |
Handle< SensitiveDetectorObject > & | operator= (const Handle< SensitiveDetectorObject > &element)=default |
Assignment copy operator. More... | |
bool | operator== (const Handle< SensitiveDetectorObject > &element) const |
Boolean operator == used for RB tree insertions. More... | |
bool | operator< (const Handle< SensitiveDetectorObject > &element) const |
Boolean operator < used for RB tree insertions. More... | |
bool | operator> (const Handle< SensitiveDetectorObject > &element) const |
Boolean operator > used for RB tree insertions. More... | |
bool | isValid () const |
Check the validity of the object held by the handle. More... | |
bool | operator! () const |
Check the validity of the object held by the handle. More... | |
Handle< SensitiveDetectorObject > & | clear () |
Release the object held by the handle. More... | |
SensitiveDetectorObject * | operator-> () const |
Access the held object using the -> operator. More... | |
operator SensitiveDetectorObject & () const | |
Automatic type conversion to an object references. More... | |
SensitiveDetectorObject & | operator* () const |
Access the held object using the * operator. More... | |
SensitiveDetectorObject * | ptr () const |
Access to the held object. More... | |
Q * | _ptr () const |
Access to an unrelated object type. More... | |
Q * | data () const |
Access to an unrelated object type. More... | |
Q & | object () const |
Access to an unrelated object type. More... | |
SensitiveDetectorObject * | access () const |
Checked object access. Throws invalid handle runtime exception if invalid handle. More... | |
const char * | name () const |
Access the object name (or "" if not supported by the object) More... | |
const char * | name () const |
const char * | name () const |
void | assign (Object *n, const std::string &nam, const std::string &title) |
Assign a new named object. Note: object references must be managed by the user. More... | |
void | assign (_Segmentation *s, const std::string &n, const std::string &) |
void | assign (NamedObject *p, const std::string &n, const std::string &t) |
void | destroy () |
Destroy the underlying object (be careful here: things are not reference counted)! More... | |
Additional Inherited Members | |
Public Types inherited from dd4hep::Handle< SensitiveDetectorObject > | |
typedef SensitiveDetectorObject | Object |
Extern accessible definition of the contained element type. More... | |
typedef Handle< SensitiveDetectorObject > | Base |
Self type: used by sub-classes. More... | |
Static Public Member Functions inherited from dd4hep::Handle< SensitiveDetectorObject > | |
static void | bad_assignment (const std::type_info &from, const std::type_info &to) |
Helper routine called when unrelated types are assigned. More... | |
Public Attributes inherited from dd4hep::Handle< SensitiveDetectorObject > | |
SensitiveDetectorObject * | m_element |
Single and only data member: Reference to the actual element. More... | |
Handle class to hold the information of a sensitive detector.
Definition at line 44 of file DetElement.h.
|
inline |
Default constructor.
Definition at line 48 of file DetElement.h.
|
inline |
Constructor to copy handled object.
Definition at line 51 of file DetElement.h.
|
inline |
Move from named handle.
Definition at line 55 of file DetElement.h.
|
inline |
Copy from named handle.
Definition at line 59 of file DetElement.h.
|
default |
Move from handle.
|
default |
Copy from handle.
|
inline |
Templated constructor for handle conversions.
Definition at line 69 of file DetElement.h.
SensitiveDetector::SensitiveDetector | ( | const std::string & | name, |
const std::string & | type = "sensitive" |
||
) |
Constructor for a new sensitive detector element.
Constructor.
Definition at line 390 of file DetElement.cpp.
|
inline |
Extend the sensitive detector element with an arbitrary structure accessible by the type.
Definition at line 151 of file DetElement.h.
void * SensitiveDetector::addExtension | ( | unsigned long long int | key, |
ExtensionEntry * | entry | ||
) | const |
Add an extension object to the detector element.
Definition at line 498 of file DetElement.cpp.
bool SensitiveDetector::combineHits | ( | ) | const |
Access flag to combine hist.
Definition at line 471 of file DetElement.cpp.
double SensitiveDetector::energyCutoff | ( | ) | const |
Access energy cut off.
Definition at line 436 of file DetElement.cpp.
|
inline |
Access extension element by the type.
Definition at line 157 of file DetElement.h.
void * SensitiveDetector::extension | ( | unsigned long long int | key | ) | const |
Access an existing extension object from the detector element.
Definition at line 504 of file DetElement.cpp.
void * SensitiveDetector::extension | ( | unsigned long long int | key, |
bool | alert | ||
) | const |
Access an existing extension object from the detector element.
Definition at line 509 of file DetElement.cpp.
const std::string & SensitiveDetector::hitsCollection | ( | ) | const |
Access the hits collection name.
Definition at line 447 of file DetElement.cpp.
IDDescriptor SensitiveDetector::idSpec | ( | ) | const |
Access IDDescription structure.
Assign the IDDescriptor reference.
Definition at line 425 of file DetElement.cpp.
LimitSet SensitiveDetector::limits | ( | ) | const |
Access to the limit set of the sensitive detector (not mandatory).
Definition at line 493 of file DetElement.cpp.
|
inline |
Non-Equality operator.
Definition at line 86 of file DetElement.h.
|
default |
Assignment copy operator.
|
default |
Assignment move operator.
|
inline |
Equality operator.
Definition at line 82 of file DetElement.h.
Readout SensitiveDetector::readout | ( | ) | const |
Access readout structure of the sensitive detector.
Assign the IDDescriptor reference.
Definition at line 420 of file DetElement.cpp.
Region SensitiveDetector::region | ( | ) | const |
Access to the region setting of the sensitive detector (not mandatory)
Definition at line 482 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setCombineHits | ( | bool | value | ) |
Set flag to handle hits collection.
Assign the name of the hits collection.
Definition at line 464 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setEnergyCutoff | ( | double | value | ) |
Set energy cut off.
Definition at line 430 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setHitsCollection | ( | const std::string & | spec | ) |
Assign the name of the hits collection.
Definition at line 441 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setLimitSet | ( | LimitSet | limits | ) |
Set the limits to the sensitive detector.
Definition at line 487 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setReadout | ( | Readout | readout | ) |
Assign the IDDescriptor reference.
Definition at line 414 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setRegion | ( | Region | reg | ) |
Set the regional attributes to the sensitive detector.
Definition at line 476 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setType | ( | const std::string & | typ | ) |
Set detector type (structure, tracker, calorimeter, etc.).
Set the type of the sensitive detector.
Definition at line 403 of file DetElement.cpp.
SensitiveDetector & SensitiveDetector::setVerbose | ( | bool | value | ) |
Set flag to handle hits collection.
Assign the name of the hits collection.
Definition at line 452 of file DetElement.cpp.
std::string SensitiveDetector::type | ( | ) | const |
Access the type of the sensitive detector.
Definition at line 409 of file DetElement.cpp.
bool SensitiveDetector::verbose | ( | ) | const |
Access flag to combine hist.
Definition at line 459 of file DetElement.cpp.