CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
DDEcalAPDAlgo Class Reference

#include <DDEcalAPDAlgo.h>

Inheritance diagram for DDEcalAPDAlgo:

Public Member Functions

 DDEcalAPDAlgo ()
 
void execute (DDCompactView &cpv) override
 
void initialize (const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
 
 ~DDEcalAPDAlgo () override
 

Private Member Functions

DDMaterial aglMat () const
 
DDName aglName () const
 
double aglThick () const
 
DDMaterial andMat () const
 
DDName andName () const
 
double andThick () const
 
int apdHere () const
 
DDMaterial apdMat () const
 
DDName apdName () const
 
double apdSide () const
 
double apdThick () const
 
double apdX1 () const
 
double apdX2 () const
 
double apdZ () const
 
DDMaterial atjMat () const
 
DDName atjName () const
 
double atjThick () const
 
DDMaterial bsiMat () const
 
DDName bsiName () const
 
double bsiThick () const
 
double bsiXSize () const
 
double bsiYSize () const
 
DDMaterial capMat () const
 
DDName capName () const
 
double capThick () const
 
double capXSize () const
 
double capYSize () const
 
DDMaterial cerMat () const
 
DDName cerName () const
 
double cerThick () const
 
double cerXSize () const
 
double cerYSize () const
 
DDName ddname (const std::string &s) const
 
DDMaterial sglMat () const
 
DDName sglName () const
 
double sglThick () const
 
const std::vector< double > & vecCerPos () const
 

Private Attributes

std::string m_AGLMat
 
std::string m_AGLName
 
double m_AGLThick
 
std::string m_ANDMat
 
std::string m_ANDName
 
double m_ANDThick
 
int m_APDHere
 
std::string m_APDMat
 
std::string m_APDName
 
double m_APDSide
 
double m_APDThick
 
double m_APDX1
 
double m_APDX2
 
double m_APDZ
 
std::string m_ATJMat
 
std::string m_ATJName
 
double m_ATJThick
 
std::string m_BSiMat
 
std::string m_BSiName
 
double m_BSiThick
 
double m_BSiXSize
 
double m_BSiYSize
 
std::string m_capMat
 
std::string m_capName
 
double m_capThick
 
double m_capXSize
 
double m_capYSize
 
std::string m_CERMat
 
std::string m_CERName
 
double m_CERThick
 
double m_CERXSize
 
double m_CERYSize
 
std::string m_idNameSpace
 
std::string m_SGLMat
 
std::string m_SGLName
 
double m_SGLThick
 
std::vector< double > m_vecCerPos
 

Detailed Description

Definition at line 14 of file DDEcalAPDAlgo.h.

Constructor & Destructor Documentation

DDEcalAPDAlgo::DDEcalAPDAlgo ( )

Definition at line 11 of file DDEcalAPDAlgo.cc.

References LogDebug.

11  :
12  m_vecCerPos ( ),
13  m_APDHere (0),
14 
15  m_capName (""),
16  m_capMat (""),
17  m_capXSize (0),
18  m_capYSize (0),
19  m_capThick (0),
20 
21  m_CERName (""),
22  m_CERMat (""),
23  m_CERXSize (0),
24  m_CERYSize (0),
25  m_CERThick (0),
26 
27  m_BSiName (""),
28  m_BSiMat (""),
29  m_BSiXSize (0),
30  m_BSiYSize (0),
31  m_BSiThick (0),
32 
33  m_APDName (""),
34  m_APDMat (""),
35  m_APDSide (0),
36  m_APDThick (0),
37  m_APDZ (0),
38  m_APDX1 (0),
39  m_APDX2 (0),
40 
41  m_ATJName (""),
42  m_ATJMat (""),
43  m_ATJThick (0),
44 
45  m_SGLName (""),
46  m_SGLMat (""),
47  m_SGLThick (0),
48 
49  m_AGLName (""),
50  m_AGLMat (""),
51  m_AGLThick (0),
52 
53  m_ANDName (""),
54  m_ANDMat (""),
55  m_ANDThick (0) {
56 
57  LogDebug("EcalGeom") << "DDEcalAPDAlgo info: Creating an instance" ;
58 }
#define LogDebug(id)
std::string m_BSiName
Definition: DDEcalAPDAlgo.h:99
double m_CERXSize
Definition: DDEcalAPDAlgo.h:95
std::string m_ATJMat
std::string m_SGLName
std::string m_BSiMat
std::string m_AGLMat
double m_capXSize
Definition: DDEcalAPDAlgo.h:89
std::string m_CERName
Definition: DDEcalAPDAlgo.h:93
std::string m_capMat
Definition: DDEcalAPDAlgo.h:88
std::string m_CERMat
Definition: DDEcalAPDAlgo.h:94
double m_CERThick
Definition: DDEcalAPDAlgo.h:97
std::string m_APDName
std::string m_APDMat
std::string m_AGLName
std::string m_SGLMat
double m_capYSize
Definition: DDEcalAPDAlgo.h:90
double m_CERYSize
Definition: DDEcalAPDAlgo.h:96
std::string m_capName
Definition: DDEcalAPDAlgo.h:87
double m_capThick
Definition: DDEcalAPDAlgo.h:91
std::string m_ANDMat
std::vector< double > m_vecCerPos
Definition: DDEcalAPDAlgo.h:84
std::string m_ATJName
std::string m_ANDName
DDEcalAPDAlgo::~DDEcalAPDAlgo ( )
override

Definition at line 60 of file DDEcalAPDAlgo.cc.

60 {}

Member Function Documentation

DDMaterial DDEcalAPDAlgo::aglMat ( ) const
inlineprivate

Definition at line 65 of file DDEcalAPDAlgo.h.

References ddname(), and m_AGLMat.

Referenced by execute().

65 { return DDMaterial( ddname(m_AGLMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
std::string m_AGLMat
DDName ddname(const std::string &s) const
DDName DDEcalAPDAlgo::aglName ( ) const
inlineprivate

Definition at line 64 of file DDEcalAPDAlgo.h.

References ddname(), and m_AGLName.

Referenced by execute().

64 { return ddname(m_AGLName) ; }
DDName ddname(const std::string &s) const
std::string m_AGLName
double DDEcalAPDAlgo::aglThick ( ) const
inlineprivate

Definition at line 66 of file DDEcalAPDAlgo.h.

References m_AGLThick.

Referenced by execute().

66 { return m_AGLThick; }
DDMaterial DDEcalAPDAlgo::andMat ( ) const
inlineprivate

Definition at line 69 of file DDEcalAPDAlgo.h.

References ddname(), and m_ANDMat.

Referenced by execute().

69 { return DDMaterial( ddname(m_ANDMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
std::string m_ANDMat
DDName DDEcalAPDAlgo::andName ( ) const
inlineprivate

Definition at line 68 of file DDEcalAPDAlgo.h.

References ddname(), and m_ANDName.

Referenced by execute().

68 { return ddname(m_ANDName) ; }
DDName ddname(const std::string &s) const
std::string m_ANDName
double DDEcalAPDAlgo::andThick ( ) const
inlineprivate

Definition at line 70 of file DDEcalAPDAlgo.h.

References m_ANDThick.

Referenced by execute().

70 { return m_ANDThick; }
int DDEcalAPDAlgo::apdHere ( ) const
inlineprivate

Definition at line 36 of file DDEcalAPDAlgo.h.

References m_APDHere.

Referenced by execute().

36 { return m_APDHere ; }
DDMaterial DDEcalAPDAlgo::apdMat ( ) const
inlineprivate

Definition at line 73 of file DDEcalAPDAlgo.h.

References ddname(), and m_APDMat.

Referenced by execute().

73 { return DDMaterial( ddname(m_APDMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
std::string m_APDMat
DDName DDEcalAPDAlgo::apdName ( ) const
inlineprivate

Definition at line 72 of file DDEcalAPDAlgo.h.

References ddname(), and m_APDName.

Referenced by execute().

72 { return ddname(m_APDName) ; }
DDName ddname(const std::string &s) const
std::string m_APDName
double DDEcalAPDAlgo::apdSide ( ) const
inlineprivate

Definition at line 74 of file DDEcalAPDAlgo.h.

References m_APDSide.

Referenced by execute().

74 { return m_APDSide ; }
double DDEcalAPDAlgo::apdThick ( ) const
inlineprivate

Definition at line 75 of file DDEcalAPDAlgo.h.

References m_APDThick.

Referenced by execute().

75 { return m_APDThick; }
double DDEcalAPDAlgo::apdX1 ( ) const
inlineprivate

Definition at line 77 of file DDEcalAPDAlgo.h.

References m_APDX1.

77 { return m_APDX1 ; }
double DDEcalAPDAlgo::apdX2 ( ) const
inlineprivate

Definition at line 78 of file DDEcalAPDAlgo.h.

References m_APDX2.

78 { return m_APDX2 ; }
double DDEcalAPDAlgo::apdZ ( ) const
inlineprivate

Definition at line 76 of file DDEcalAPDAlgo.h.

References m_APDZ.

76 { return m_APDZ ; }
DDMaterial DDEcalAPDAlgo::atjMat ( ) const
inlineprivate

Definition at line 61 of file DDEcalAPDAlgo.h.

References ddname(), and m_ATJMat.

Referenced by execute().

61 { return DDMaterial( ddname(m_ATJMat) ) ; }
std::string m_ATJMat
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
DDName DDEcalAPDAlgo::atjName ( ) const
inlineprivate

Definition at line 60 of file DDEcalAPDAlgo.h.

References ddname(), and m_ATJName.

Referenced by execute().

60 { return ddname(m_ATJName) ; }
DDName ddname(const std::string &s) const
std::string m_ATJName
double DDEcalAPDAlgo::atjThick ( ) const
inlineprivate

Definition at line 62 of file DDEcalAPDAlgo.h.

References m_ATJThick.

Referenced by execute().

62 { return m_ATJThick; }
DDMaterial DDEcalAPDAlgo::bsiMat ( ) const
inlineprivate

Definition at line 51 of file DDEcalAPDAlgo.h.

References ddname(), and m_BSiMat.

Referenced by execute().

51 { return DDMaterial( ddname(m_BSiMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
std::string m_BSiMat
DDName ddname(const std::string &s) const
DDName DDEcalAPDAlgo::bsiName ( ) const
inlineprivate

Definition at line 50 of file DDEcalAPDAlgo.h.

References ddname(), and m_BSiName.

Referenced by execute().

50 { return ddname(m_BSiName) ; }
std::string m_BSiName
Definition: DDEcalAPDAlgo.h:99
DDName ddname(const std::string &s) const
double DDEcalAPDAlgo::bsiThick ( ) const
inlineprivate

Definition at line 54 of file DDEcalAPDAlgo.h.

References m_BSiThick.

Referenced by execute().

54 { return m_BSiThick; }
double DDEcalAPDAlgo::bsiXSize ( ) const
inlineprivate

Definition at line 52 of file DDEcalAPDAlgo.h.

References m_BSiXSize.

Referenced by execute().

52 { return m_BSiXSize; }
double DDEcalAPDAlgo::bsiYSize ( ) const
inlineprivate

Definition at line 53 of file DDEcalAPDAlgo.h.

References m_BSiYSize.

Referenced by execute().

53 { return m_BSiYSize; }
DDMaterial DDEcalAPDAlgo::capMat ( ) const
inlineprivate

Definition at line 39 of file DDEcalAPDAlgo.h.

References ddname(), and m_capMat.

Referenced by execute().

39 { return DDMaterial( ddname(m_capMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
std::string m_capMat
Definition: DDEcalAPDAlgo.h:88
DDName DDEcalAPDAlgo::capName ( ) const
inlineprivate

Definition at line 38 of file DDEcalAPDAlgo.h.

References ddname(), and m_capName.

Referenced by execute().

38 { return ddname(m_capName) ; }
DDName ddname(const std::string &s) const
std::string m_capName
Definition: DDEcalAPDAlgo.h:87
double DDEcalAPDAlgo::capThick ( ) const
inlineprivate

Definition at line 42 of file DDEcalAPDAlgo.h.

References m_capThick.

Referenced by execute().

42 { return m_capThick; }
double m_capThick
Definition: DDEcalAPDAlgo.h:91
double DDEcalAPDAlgo::capXSize ( ) const
inlineprivate

Definition at line 40 of file DDEcalAPDAlgo.h.

References m_capXSize.

Referenced by execute().

40 { return m_capXSize; }
double m_capXSize
Definition: DDEcalAPDAlgo.h:89
double DDEcalAPDAlgo::capYSize ( ) const
inlineprivate

Definition at line 41 of file DDEcalAPDAlgo.h.

References m_capYSize.

Referenced by execute().

41 { return m_capYSize; }
double m_capYSize
Definition: DDEcalAPDAlgo.h:90
DDMaterial DDEcalAPDAlgo::cerMat ( ) const
inlineprivate

Definition at line 45 of file DDEcalAPDAlgo.h.

References ddname(), and m_CERMat.

Referenced by execute().

45 { return DDMaterial( ddname(m_CERMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
std::string m_CERMat
Definition: DDEcalAPDAlgo.h:94
DDName DDEcalAPDAlgo::cerName ( ) const
inlineprivate

Definition at line 44 of file DDEcalAPDAlgo.h.

References ddname(), and m_CERName.

Referenced by execute().

44 { return ddname(m_CERName) ; }
DDName ddname(const std::string &s) const
std::string m_CERName
Definition: DDEcalAPDAlgo.h:93
double DDEcalAPDAlgo::cerThick ( ) const
inlineprivate

Definition at line 48 of file DDEcalAPDAlgo.h.

References m_CERThick.

Referenced by execute().

48 { return m_CERThick; }
double m_CERThick
Definition: DDEcalAPDAlgo.h:97
double DDEcalAPDAlgo::cerXSize ( ) const
inlineprivate

Definition at line 46 of file DDEcalAPDAlgo.h.

References m_CERXSize.

Referenced by execute().

46 { return m_CERXSize; }
double m_CERXSize
Definition: DDEcalAPDAlgo.h:95
double DDEcalAPDAlgo::cerYSize ( ) const
inlineprivate

Definition at line 47 of file DDEcalAPDAlgo.h.

References m_CERYSize.

Referenced by execute().

47 { return m_CERYSize; }
double m_CERYSize
Definition: DDEcalAPDAlgo.h:96
DDName DDEcalAPDAlgo::ddname ( const std::string &  s) const
private

Definition at line 235 of file DDEcalAPDAlgo.cc.

References DDSplit(), m_idNameSpace, and groupFilesInBlocks::temp.

Referenced by aglMat(), aglName(), andMat(), andName(), apdMat(), apdName(), atjMat(), atjName(), bsiMat(), bsiName(), capMat(), capName(), cerMat(), cerName(), sglMat(), and sglName().

235  {
236 
237  const std::pair<std::string,std::string> temp ( DDSplit(s) ) ;
238  if ( temp.second == "" ) {
239  return DDName( temp.first, m_idNameSpace ) ;
240  } else {
241  return DDName( temp.first, temp.second );
242  }
243 }
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
std::string m_idNameSpace
Definition: DDEcalAPDAlgo.h:82
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = &#39;:&#39;
Definition: DDSplit.cc:3
void DDEcalAPDAlgo::execute ( DDCompactView cpv)
override

Definition at line 124 of file DDEcalAPDAlgo.cc.

References aglMat(), aglName(), aglThick(), andMat(), andName(), andThick(), apdHere(), apdMat(), apdName(), apdSide(), apdThick(), atjMat(), atjName(), atjThick(), DDSolidFactory::box(), bsiMat(), bsiName(), bsiThick(), bsiXSize(), bsiYSize(), capMat(), capName(), capThick(), capXSize(), capYSize(), cerMat(), cerName(), cerThick(), cerXSize(), cerYSize(), LogDebug, dataset::name, class-composition::parent, DDCompactView::position(), sglMat(), sglName(), sglThick(), and vecCerPos().

124  {
125 
126  LogDebug("EcalGeom") << "******** DDEcalAPDAlgo execute!" << std::endl ;
127 
128 //++++++++++++++++++++++++++++++++++ APD ++++++++++++++++++++++++++++++++++
129  const DDName capDDName (capName().name()) ;
130 
131  DDSolid capSolid ( DDSolidFactory::box( capDDName, capXSize()/2.,
132  capYSize()/2., capThick()/2. ) ) ;
133 
134  const unsigned int copyCAP ( 1 ) ;
135 
136  const DDLogicalPart capLog ( capDDName, capMat(), capSolid ) ;
137 
138  const DDName sglDDName ( sglName().name()) ;
139 
140  DDSolid sglSolid ( DDSolidFactory::box( sglDDName, capXSize()/2.,
141  capYSize()/2., sglThick()/2. ) ) ;
142 
143  const DDLogicalPart sglLog ( sglDDName, sglMat(), sglSolid ) ;
144 
145  const unsigned int copySGL ( 1 ) ;
146 
147  const DDName cerDDName ( cerName().name() ) ;
148 
149  DDSolid cerSolid ( DDSolidFactory::box( cerDDName, cerXSize()/2.,
150  cerYSize()/2., cerThick()/2. ) ) ;
151 
152  const DDLogicalPart cerLog ( cerDDName, cerMat(), cerSolid ) ;
153 
154  const unsigned int copyCER ( 1 ) ;
155 
156  const DDName bsiDDName ( bsiName().name() ) ;
157 
158  DDSolid bsiSolid ( DDSolidFactory::box( bsiDDName, bsiXSize()/2.,
159  bsiYSize()/2., bsiThick()/2. ) ) ;
160 
161  const DDLogicalPart bsiLog ( bsiDDName, bsiMat(), bsiSolid ) ;
162 
163  const unsigned int copyBSi ( 1 ) ;
164 
165  const DDName atjDDName ( atjName().name() ) ;
166 
167  DDSolid atjSolid ( DDSolidFactory::box( atjDDName, apdSide()/2.,
168  apdSide()/2., atjThick()/2. ) ) ;
169 
170  const DDLogicalPart atjLog ( atjDDName, atjMat(), atjSolid ) ;
171 
172  const unsigned int copyATJ ( 1 ) ;
173 
174  const DDName aglDDName ( aglName().name() ) ;
175 
176  DDSolid aglSolid ( DDSolidFactory::box( aglDDName, bsiXSize()/2.,
177  bsiYSize()/2., aglThick()/2. ) ) ;
178 
179  const DDLogicalPart aglLog ( aglDDName, aglMat(), aglSolid ) ;
180 
181  const unsigned int copyAGL ( 1 ) ;
182 
183  const DDName andDDName ( andName().name() ) ;
184 
185  DDSolid andSolid ( DDSolidFactory::box( andDDName, apdSide()/2.,
186  apdSide()/2., andThick()/2. ) ) ;
187 
188  const DDLogicalPart andLog ( andDDName, andMat(), andSolid ) ;
189 
190  const unsigned int copyAND ( 1 ) ;
191 
192  const DDName apdDDName ( apdName().name() ) ;
193 
194  DDSolid apdSolid ( DDSolidFactory::box( apdDDName, apdSide()/2.,
195  apdSide()/2., apdThick()/2. ) ) ;
196 
197  const DDLogicalPart apdLog ( apdDDName, apdMat(), apdSolid ) ;
198 
199  const unsigned int copyAPD ( 1 ) ;
200 
201  if ( 0 != apdHere() ) {
202  cpv.position(aglLog, bsiLog, copyAGL,
203  DDTranslation(0,0,-aglThick()/2.+bsiThick()/2.),DDRotation());
204 
205  cpv.position(andLog, bsiLog, copyAND,
206  DDTranslation(0, 0, -andThick()/2.-aglThick()+bsiThick()/2.),
207  DDRotation() ) ;
208 
209  cpv.position(apdLog, bsiLog, copyAPD,
210  DDTranslation(0,0,-apdThick()/2.-andThick()-aglThick()+bsiThick()/2.),
211  DDRotation() ) ;
212 
213  cpv.position(atjLog, bsiLog, copyATJ,
214  DDTranslation(0,0,-atjThick()/2.-apdThick()-andThick()-aglThick()+bsiThick()/2. ),
215  DDRotation() ) ;
216 
217  cpv.position(bsiLog, cerLog, copyBSi,
218  DDTranslation(0,0,-bsiThick()/2.+cerThick()/2.),DDRotation());
219 
220  cpv.position(sglLog, capLog, copySGL,
221  DDTranslation(0,0,-sglThick()/2.+capThick()/2.),DDRotation());
222 
223  cpv.position(cerLog, capLog, copyCER,
224  DDTranslation(0,0,-sglThick()-cerThick()/2.+capThick()/2.),
225  DDRotation() ) ;
226 
227  cpv.position(capLog, parent().name(), copyCAP,
228  DDTranslation(vecCerPos()[0],vecCerPos()[1],vecCerPos()[2]),
229  DDRotation() ) ;
230  }
231 
232  LogDebug("EcalGeom") << "******** DDEcalAPDAlgo test: end it..." ;
233 }
#define LogDebug(id)
DDMaterial sglMat() const
Definition: DDEcalAPDAlgo.h:57
DDName cerName() const
Definition: DDEcalAPDAlgo.h:44
double bsiThick() const
Definition: DDEcalAPDAlgo.h:54
DDMaterial bsiMat() const
Definition: DDEcalAPDAlgo.h:51
DDName atjName() const
Definition: DDEcalAPDAlgo.h:60
DDMaterial apdMat() const
Definition: DDEcalAPDAlgo.h:73
DDMaterial aglMat() const
Definition: DDEcalAPDAlgo.h:65
int apdHere() const
Definition: DDEcalAPDAlgo.h:36
const std::vector< double > & vecCerPos() const
Definition: DDEcalAPDAlgo.h:35
double cerThick() const
Definition: DDEcalAPDAlgo.h:48
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
double cerYSize() const
Definition: DDEcalAPDAlgo.h:47
double apdSide() const
Definition: DDEcalAPDAlgo.h:74
double andThick() const
Definition: DDEcalAPDAlgo.h:70
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:67
double sglThick() const
Definition: DDEcalAPDAlgo.h:58
DDMaterial cerMat() const
Definition: DDEcalAPDAlgo.h:45
double bsiXSize() const
Definition: DDEcalAPDAlgo.h:52
DDName sglName() const
Definition: DDEcalAPDAlgo.h:56
double capThick() const
Definition: DDEcalAPDAlgo.h:42
DDMaterial capMat() const
Definition: DDEcalAPDAlgo.h:39
double apdThick() const
Definition: DDEcalAPDAlgo.h:75
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
double capXSize() const
Definition: DDEcalAPDAlgo.h:40
DDName aglName() const
Definition: DDEcalAPDAlgo.h:64
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
Definition: DDSolid.cc:819
DDMaterial atjMat() const
Definition: DDEcalAPDAlgo.h:61
DDName apdName() const
Definition: DDEcalAPDAlgo.h:72
double bsiYSize() const
Definition: DDEcalAPDAlgo.h:53
double cerXSize() const
Definition: DDEcalAPDAlgo.h:46
DDMaterial andMat() const
Definition: DDEcalAPDAlgo.h:69
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string &copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
double atjThick() const
Definition: DDEcalAPDAlgo.h:62
double capYSize() const
Definition: DDEcalAPDAlgo.h:41
DDName bsiName() const
Definition: DDEcalAPDAlgo.h:50
DDName andName() const
Definition: DDEcalAPDAlgo.h:68
DDName capName() const
Definition: DDEcalAPDAlgo.h:38
double aglThick() const
Definition: DDEcalAPDAlgo.h:66
void DDEcalAPDAlgo::initialize ( const DDNumericArguments nArgs,
const DDVectorArguments vArgs,
const DDMapArguments mArgs,
const DDStringArguments sArgs,
const DDStringVectorArguments vsArgs 
)
override

Definition at line 62 of file DDEcalAPDAlgo.cc.

References createfilelist::int, LogDebug, m_AGLMat, m_AGLName, m_AGLThick, m_ANDMat, m_ANDName, m_ANDThick, m_APDHere, m_APDMat, m_APDName, m_APDSide, m_APDThick, m_APDX1, m_APDX2, m_APDZ, m_ATJMat, m_ATJName, m_ATJThick, m_BSiMat, m_BSiName, m_BSiThick, m_BSiXSize, m_BSiYSize, m_capMat, m_capName, m_capThick, m_capXSize, m_capYSize, m_CERMat, m_CERName, m_CERThick, m_CERXSize, m_CERYSize, m_idNameSpace, m_SGLMat, m_SGLName, m_SGLThick, m_vecCerPos, and class-composition::parent.

66  {
67 
68  LogDebug("EcalGeom") << "DDEcalAPDAlgo info: Initialize" ;
69 
70  m_idNameSpace = parent().name().ns();
71 
72  m_vecCerPos= vArgs["CerPos" ] ;
73  m_APDHere = (int)(nArgs["APDHere"]) ;
74 
75  m_capName = sArgs["CapName"] ;
76  m_capMat = sArgs["CapMat"] ;
77  m_capXSize = nArgs["CapXSize"] ;
78  m_capYSize = nArgs["CapYSize"] ;
79  m_capThick = nArgs["CapThick"] ;
80 
81  m_CERName = sArgs["CerName"] ;
82  m_CERMat = sArgs["CerMat"] ;
83  m_CERXSize = nArgs["CerXSize"] ;
84  m_CERYSize = nArgs["CerYSize"] ;
85  m_CERThick = nArgs["CerThick"] ;
86 
87  m_BSiName = sArgs["BSiName"] ;
88  m_BSiMat = sArgs["BSiMat"] ;
89  m_BSiXSize = nArgs["BSiXSize"] ;
90  m_BSiYSize = nArgs["BSiYSize"] ;
91  m_BSiThick = nArgs["BSiThick"] ;
92 
93  m_APDName = sArgs["APDName"] ;
94  m_APDMat = sArgs["APDMat"] ;
95  m_APDSide = nArgs["APDSide"] ;
96  m_APDThick = nArgs["APDThick"] ;
97  m_APDZ = nArgs["APDZ"] ;
98  m_APDX1 = nArgs["APDX1"] ;
99  m_APDX2 = nArgs["APDX2"] ;
100 
101  m_ATJName = sArgs["ATJName"] ;
102  m_ATJMat = sArgs["ATJMat"] ;
103  m_ATJThick = nArgs["ATJThick"] ;
104 
105  m_SGLName = sArgs["SGLName"] ;
106  m_SGLMat = sArgs["SGLMat"] ;
107  m_SGLThick = nArgs["SGLThick"] ;
108 
109  m_AGLName = sArgs["AGLName"] ;
110  m_AGLMat = sArgs["AGLMat"] ;
111  m_AGLThick = nArgs["AGLThick"] ;
112 
113  m_ANDName = sArgs["ANDName"] ;
114  m_ANDMat = sArgs["ANDMat"] ;
115  m_ANDThick = nArgs["ANDThick"] ;
116 
117  LogDebug("EcalGeom") << "DDEcalAPDAlgo info: end initialize" ;
118 }
#define LogDebug(id)
std::string m_BSiName
Definition: DDEcalAPDAlgo.h:99
double m_CERXSize
Definition: DDEcalAPDAlgo.h:95
std::string m_ATJMat
std::string m_SGLName
std::string m_BSiMat
std::string m_AGLMat
double m_capXSize
Definition: DDEcalAPDAlgo.h:89
std::string m_CERName
Definition: DDEcalAPDAlgo.h:93
std::string m_idNameSpace
Definition: DDEcalAPDAlgo.h:82
std::string m_capMat
Definition: DDEcalAPDAlgo.h:88
std::string m_CERMat
Definition: DDEcalAPDAlgo.h:94
double m_CERThick
Definition: DDEcalAPDAlgo.h:97
std::string m_APDName
std::string m_APDMat
std::string m_AGLName
std::string m_SGLMat
double m_capYSize
Definition: DDEcalAPDAlgo.h:90
double m_CERYSize
Definition: DDEcalAPDAlgo.h:96
std::string m_capName
Definition: DDEcalAPDAlgo.h:87
double m_capThick
Definition: DDEcalAPDAlgo.h:91
std::string m_ANDMat
std::vector< double > m_vecCerPos
Definition: DDEcalAPDAlgo.h:84
std::string m_ATJName
std::string m_ANDName
DDMaterial DDEcalAPDAlgo::sglMat ( ) const
inlineprivate

Definition at line 57 of file DDEcalAPDAlgo.h.

References ddname(), and m_SGLMat.

Referenced by execute().

57 { return DDMaterial( ddname(m_SGLMat) ) ; }
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
DDName ddname(const std::string &s) const
std::string m_SGLMat
DDName DDEcalAPDAlgo::sglName ( ) const
inlineprivate

Definition at line 56 of file DDEcalAPDAlgo.h.

References ddname(), and m_SGLName.

Referenced by execute().

56 { return ddname(m_SGLName) ; }
std::string m_SGLName
DDName ddname(const std::string &s) const
double DDEcalAPDAlgo::sglThick ( ) const
inlineprivate

Definition at line 58 of file DDEcalAPDAlgo.h.

References m_SGLThick.

Referenced by execute().

58 { return m_SGLThick; }
const std::vector<double>& DDEcalAPDAlgo::vecCerPos ( ) const
inlineprivate

Definition at line 35 of file DDEcalAPDAlgo.h.

References m_vecCerPos.

Referenced by execute().

35 { return m_vecCerPos ; }
std::vector< double > m_vecCerPos
Definition: DDEcalAPDAlgo.h:84

Member Data Documentation

std::string DDEcalAPDAlgo::m_AGLMat
private

Definition at line 122 of file DDEcalAPDAlgo.h.

Referenced by aglMat(), and initialize().

std::string DDEcalAPDAlgo::m_AGLName
private

Definition at line 121 of file DDEcalAPDAlgo.h.

Referenced by aglName(), and initialize().

double DDEcalAPDAlgo::m_AGLThick
private

Definition at line 123 of file DDEcalAPDAlgo.h.

Referenced by aglThick(), and initialize().

std::string DDEcalAPDAlgo::m_ANDMat
private

Definition at line 126 of file DDEcalAPDAlgo.h.

Referenced by andMat(), and initialize().

std::string DDEcalAPDAlgo::m_ANDName
private

Definition at line 125 of file DDEcalAPDAlgo.h.

Referenced by andName(), and initialize().

double DDEcalAPDAlgo::m_ANDThick
private

Definition at line 127 of file DDEcalAPDAlgo.h.

Referenced by andThick(), and initialize().

int DDEcalAPDAlgo::m_APDHere
private

Definition at line 85 of file DDEcalAPDAlgo.h.

Referenced by apdHere(), and initialize().

std::string DDEcalAPDAlgo::m_APDMat
private

Definition at line 106 of file DDEcalAPDAlgo.h.

Referenced by apdMat(), and initialize().

std::string DDEcalAPDAlgo::m_APDName
private

Definition at line 105 of file DDEcalAPDAlgo.h.

Referenced by apdName(), and initialize().

double DDEcalAPDAlgo::m_APDSide
private

Definition at line 107 of file DDEcalAPDAlgo.h.

Referenced by apdSide(), and initialize().

double DDEcalAPDAlgo::m_APDThick
private

Definition at line 108 of file DDEcalAPDAlgo.h.

Referenced by apdThick(), and initialize().

double DDEcalAPDAlgo::m_APDX1
private

Definition at line 110 of file DDEcalAPDAlgo.h.

Referenced by apdX1(), and initialize().

double DDEcalAPDAlgo::m_APDX2
private

Definition at line 111 of file DDEcalAPDAlgo.h.

Referenced by apdX2(), and initialize().

double DDEcalAPDAlgo::m_APDZ
private

Definition at line 109 of file DDEcalAPDAlgo.h.

Referenced by apdZ(), and initialize().

std::string DDEcalAPDAlgo::m_ATJMat
private

Definition at line 114 of file DDEcalAPDAlgo.h.

Referenced by atjMat(), and initialize().

std::string DDEcalAPDAlgo::m_ATJName
private

Definition at line 113 of file DDEcalAPDAlgo.h.

Referenced by atjName(), and initialize().

double DDEcalAPDAlgo::m_ATJThick
private

Definition at line 115 of file DDEcalAPDAlgo.h.

Referenced by atjThick(), and initialize().

std::string DDEcalAPDAlgo::m_BSiMat
private

Definition at line 100 of file DDEcalAPDAlgo.h.

Referenced by bsiMat(), and initialize().

std::string DDEcalAPDAlgo::m_BSiName
private

Definition at line 99 of file DDEcalAPDAlgo.h.

Referenced by bsiName(), and initialize().

double DDEcalAPDAlgo::m_BSiThick
private

Definition at line 103 of file DDEcalAPDAlgo.h.

Referenced by bsiThick(), and initialize().

double DDEcalAPDAlgo::m_BSiXSize
private

Definition at line 101 of file DDEcalAPDAlgo.h.

Referenced by bsiXSize(), and initialize().

double DDEcalAPDAlgo::m_BSiYSize
private

Definition at line 102 of file DDEcalAPDAlgo.h.

Referenced by bsiYSize(), and initialize().

std::string DDEcalAPDAlgo::m_capMat
private

Definition at line 88 of file DDEcalAPDAlgo.h.

Referenced by capMat(), and initialize().

std::string DDEcalAPDAlgo::m_capName
private

Definition at line 87 of file DDEcalAPDAlgo.h.

Referenced by capName(), and initialize().

double DDEcalAPDAlgo::m_capThick
private

Definition at line 91 of file DDEcalAPDAlgo.h.

Referenced by capThick(), and initialize().

double DDEcalAPDAlgo::m_capXSize
private

Definition at line 89 of file DDEcalAPDAlgo.h.

Referenced by capXSize(), and initialize().

double DDEcalAPDAlgo::m_capYSize
private

Definition at line 90 of file DDEcalAPDAlgo.h.

Referenced by capYSize(), and initialize().

std::string DDEcalAPDAlgo::m_CERMat
private

Definition at line 94 of file DDEcalAPDAlgo.h.

Referenced by cerMat(), and initialize().

std::string DDEcalAPDAlgo::m_CERName
private

Definition at line 93 of file DDEcalAPDAlgo.h.

Referenced by cerName(), and initialize().

double DDEcalAPDAlgo::m_CERThick
private

Definition at line 97 of file DDEcalAPDAlgo.h.

Referenced by cerThick(), and initialize().

double DDEcalAPDAlgo::m_CERXSize
private

Definition at line 95 of file DDEcalAPDAlgo.h.

Referenced by cerXSize(), and initialize().

double DDEcalAPDAlgo::m_CERYSize
private

Definition at line 96 of file DDEcalAPDAlgo.h.

Referenced by cerYSize(), and initialize().

std::string DDEcalAPDAlgo::m_idNameSpace
private

Definition at line 82 of file DDEcalAPDAlgo.h.

Referenced by ddname(), and initialize().

std::string DDEcalAPDAlgo::m_SGLMat
private

Definition at line 118 of file DDEcalAPDAlgo.h.

Referenced by initialize(), and sglMat().

std::string DDEcalAPDAlgo::m_SGLName
private

Definition at line 117 of file DDEcalAPDAlgo.h.

Referenced by initialize(), and sglName().

double DDEcalAPDAlgo::m_SGLThick
private

Definition at line 119 of file DDEcalAPDAlgo.h.

Referenced by initialize(), and sglThick().

std::vector<double> DDEcalAPDAlgo::m_vecCerPos
private

Definition at line 84 of file DDEcalAPDAlgo.h.

Referenced by initialize(), and vecCerPos().