DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
ObjectsInterna.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 #include <DD4hep/Objects.h>
15 #include <DD4hep/InstanceCount.h>
16 #include <DD4hep/detail/Handle.inl>
19 
20 #include <TROOT.h>
21 
22 using namespace dd4hep;
23 
25 
29 }
30 
34 }
35 
37 
40  : NamedObject() {
42 }
43 
47 }
48 
50 
54 }
55 
57 ConstantObject::ConstantObject(const std::string& nam, const std::string& val, const std::string& typ)
58  : NamedObject(nam.c_str(), val.c_str()) {
59  dataType = typ;
61 }
62 
66 }
67 
69 
73 }
74 
78 }
79 
81 
85 }
86 
90 }
91 
93 
97 }
98 
101  //destroyHandle(segmentation);
103  if ( segmentation.isValid() ) {
104  delete segmentation.ptr();
106  }
107 }
108 
110 
113  : NamedObject(), decoder() {
115 }
116 
119  : NamedObject(), decoder(desc) {
121 }
122 
126 }
127 
Objects.h
dd4hep::HeaderObject
Concrete object implementation for the Header handle.
Definition: ObjectsInterna.h:39
dd4hep::IDDescriptorObject
Concrete object implementation of the IDDescriptorObject Handle.
Definition: ObjectsInterna.h:206
dd4hep::ReadoutObject::segmentation
Segmentation segmentation
Handle to the readout segmentation.
Definition: ObjectsInterna.h:185
dd4hep::ReadoutObject
Concrete object implementation of the Readout Handle.
Definition: ObjectsInterna.h:182
dd4hep::ReadoutObject::~ReadoutObject
virtual ~ReadoutObject()
Default destructor.
Definition: ObjectsInterna.cpp:100
dd4hep::IDDescriptorObject::IDDescriptorObject
IDDescriptorObject()
Default constructor.
Definition: ObjectsInterna.cpp:112
dd4hep::Handle::isValid
bool isValid() const
Check the validity of the object held by the handle.
Definition: Handle.h:128
dd4hep::InstanceCount::increment
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
dd4hep::magic_word
unsigned long long int magic_word()
Access to the magic word, which is protecting some objects against memory corruptions.
Definition: Handle.h:53
dd4hep::IDDescriptorObject::~IDDescriptorObject
virtual ~IDDescriptorObject()
Default destructor.
Definition: ObjectsInterna.cpp:124
DD4HEP_INSTANTIATE_HANDLE_NAMED
DD4HEP_INSTANTIATE_HANDLE_NAMED(VisAttrObject)
dd4hep::LimitSetObject::~LimitSetObject
virtual ~LimitSetObject()
Default destructor.
Definition: ObjectsInterna.cpp:88
dd4hep::LimitSetObject::LimitSetObject
LimitSetObject()
Standard constructor.
Definition: ObjectsInterna.cpp:83
dd4hep::RegionObject
Concrete object implementation of the Region Handle.
Definition: ObjectsInterna.h:111
dd4hep::VisAttrObject::~VisAttrObject
virtual ~VisAttrObject()
Default destructor.
Definition: ObjectsInterna.cpp:32
dd4hep::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
dd4hep::ReadoutObject::ReadoutObject
ReadoutObject()
Standard constructor.
Definition: ObjectsInterna.cpp:95
dd4hep::ConstantObject::dataType
std::string dataType
Constant type.
Definition: ObjectsInterna.h:67
dd4hep::ConstantObject
Concrete object implementation for the Constant handle.
Definition: ObjectsInterna.h:64
dd4hep::HeaderObject::~HeaderObject
virtual ~HeaderObject()
Default destructor.
Definition: ObjectsInterna.cpp:45
dd4hep::HeaderObject::HeaderObject
HeaderObject()
Standard constructor.
Definition: ObjectsInterna.cpp:39
dd4hep::VisAttrObject::VisAttrObject
VisAttrObject()
Standard constructor.
Definition: ObjectsInterna.cpp:27
dd4hep::RegionObject::~RegionObject
virtual ~RegionObject()
Default destructor.
Definition: ObjectsInterna.cpp:76
SegmentationsInterna.h
dd4hep::Handle::ptr
T * ptr() const
Access to the held object.
Definition: Handle.h:153
ObjectsInterna.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::NamedObject
Implementation of a named object.
Definition: NamedObject.h:30
dd4hep::Segmentation
Handle class supporting generic Segmentations of sensitive detectors.
Definition: Segmentations.h:41
dd4hep::LimitSetObject
Concrete object implementation of the LimitSet Handle.
Definition: ObjectsInterna.h:134
InstanceCount.h
dd4hep::ConstantObject::~ConstantObject
virtual ~ConstantObject()
Default destructor.
Definition: ObjectsInterna.cpp:64
dd4hep::ConstantObject::ConstantObject
ConstantObject()
Default constructor for ROOT persistency.
Definition: ObjectsInterna.cpp:52
dd4hep::VisAttrObject
Concrete object implementation of the VisAttr Handle.
Definition: ObjectsInterna.h:88
dd4hep::RegionObject::RegionObject
RegionObject()
Standard constructor.
Definition: ObjectsInterna.cpp:71