DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ObjectsInterna.cpp
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 
15 #include "DD4hep/Handle.inl"
16 #include "DD4hep/InstanceCount.h"
17 #include "DD4hep/Objects.h"
20 
21 using namespace std;
22 using namespace DD4hep;
23 using namespace DD4hep::Geometry;
24 
26 
28 VisAttrObject::VisAttrObject()
29  : magic(magic_word()), col(0), color(0), alpha(0), drawingStyle(VisAttr::SOLID), lineStyle(VisAttr::SOLID), showDaughters(true), visible(true) {
31 }
32 
36 }
37 
39 
42  : NamedObject() {
44 }
45 
49 }
50 
52 
54 ConstantObject::ConstantObject(const string& nam, const string& val, const string& typ)
55  : NamedObject(nam.c_str(), val.c_str()) {
56  dataType = typ;
58 }
59 
63 }
64 
66 
69  : magic(magic_word()), threshold(10.0), cut(10.0), store_secondaries(false)
70 {
72 }
73 
77 }
78 
80 
84 }
85 
89 }
90 
92 
96 }
97 
100  //destroyHandle(segmentation);
102  if ( segmentation.isValid() ) {
103  delete segmentation.ptr();
105  }
106 }
107 
109 
112  : NamedObject(), BitField64() /*, maxBit(0) */{
114 }
115 
118  : NamedObject(), BitField64(desc) /*, maxBit(0) */{
120 }
121 
125 }
virtual ~LimitSetObject()
Default destructor.
bool isValid() const
Check the validity of the object held by the handle.
Definition: Handle.h:124
RegionObject()
Standard constructor.
ConstantObject(const std::string &nam, const std::string &val, const std::string &typ)
Standard constructor.
virtual ~ReadoutObject()
Default destructor.
static void decrement(T *)
Decrement count according to type information.
Concrete object implementation of the Region Handle.
IDDescriptorObject()
Default constructor.
virtual ~VisAttrObject()
Default destructor.
DD4HEP_INSTANTIATE_HANDLE_NAMED(VisAttrObject)
Concrete object implementation for the Constant handle.
ReadoutObject()
Standard constructor.
virtual ~HeaderObject()
Default destructor.
T * ptr() const
Access to the held object.
Definition: Handle.h:149
Implementation of a named object.
Definition: NamedObject.h:31
virtual ~ConstantObject()
Default destructor.
Segmentation segmentation
Handle to the readout segmentation.
HeaderObject()
Standard constructor.
Concrete object implementation for the Header handle.
Handle class supporting generic Segmentation of sensitive detectors.
Definition: Segmentations.h:43
std::string dataType
Constant type.
virtual ~RegionObject()
Default destructor.
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
virtual ~IDDescriptorObject()
Default destructor.
Handle class describing visualization attributes.
Definition: Objects.h:341
Concrete object implementation of the Readout Handle.
LimitSetObject()
Standard constructor.
Concrete object implementation of the LimitSet Handle.
Concrete object implementation of the IDDescriptorObject Handle.
unsigned long long int magic_word()
Access to the magic word, which is protecting some objects against memory corruptions.
Definition: Handle.h:55
Concrete object implementation of the VisAttr Handle.