20 std::auto_ptr<CaloSubdetectorGeometry>
23 std::cout <<
"[EcalTBHodoscopeGeometryLoaderFromDDD]:: start the construction of EcalTBHodoscope" << std::endl;
25 std::auto_ptr<CaloSubdetectorGeometry> ebg
30 std::cout <<
"[EcalTBHodoscopeGeometryLoaderFromDDD]:: Returning EcalTBHodoscopeGeometry" << std::endl;
54 if (answer !=
"EcalTBH4BeamHits")
63 <<
"\n CaloGeometryEcalTBHodoscope::upDate(...): currently only box fiber shapes supported ";
64 edm::LogWarning(
"EcalTBHodoscopeGeometry") <<
"Wrong shape for sensitive volume!" << solid;
74 CLHEP::Hep3Vector hx(x.X(), x.Y(), x.Z());
75 CLHEP::Hep3Vector hy(y.X(), y.Y(), y.Z());
76 CLHEP::Hep3Vector hz(z.X(), z.Y(), z.Z());
77 CLHEP::HepRotation hrot(hx, hy, hz);
82 const HepGeom::Transform3D ht3d ( hrot,
85 const HepGeom::Point3D<float> ctr (
86 ht3d*HepGeom::Point3D<float> (0,0,0) ) ;
88 const GlobalPoint refPoint ( ctr.x(), ctr.y(), ctr.z() ) ;
90 std::vector<CCGFloat> vv ;
91 vv.reserve( pv.size() + 1 ) ;
92 for(
unsigned int i ( 0 ) ;
i != pv.size() ; ++
i )
105 ebg->
newCell( refPoint, refPoint, refPoint,
119 assert(parents.size() >= 3);
124 for(
unsigned int i=1 ;
i <= parents.size();
i++)
126 baseNumber.
addLevel( parents[ parents.size() -
i ].logicalPart().name().name(),
127 parents[ parents.size() -
i ].copyno() ) ;
138 "EcalTBH4BeamDetector",
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
void addFilter(const DDFilter &, log_op op=AND)
std::auto_ptr< CaloSubdetectorGeometry > load(const DDCompactView *cpv)
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
bool nextSibling()
set the current node to the next sibling ...
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
type of data representation of DDCompactView
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
void allocatePar(ParVec::size_type n, unsigned int m)
A DDSolid represents the shape of a part.
std::string getDDDString(std::string s, DDFilteredView *fv)
void addLevel(const std::string &name, const int ©Number)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
CaloCellGeometry::CCGFloat CCGFloat
DDSolidShape shape(void) const
The type of the solid.
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
static const CCGFloat k_ScaleFromDDDtoGeant
std::vector< DDExpandedNode > DDGeoHistory
Geometrical 'path' of the current node up to the root-node.
CaloCellGeometry::CornersMgr * cornersMgr()
virtual uint32_t getUnitID(const EcalBaseNumber &baseNumber) const
bool firstChild()
set the current node to the first child ...
unsigned int getDetIdForDDDNode(const DDFilteredView &fv)
A Filter accepts or rejects a DDExpandedNode based on a user-coded decision rule. ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
EcalHodoscopeNumberingScheme _scheme
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
const DDTranslation & translation() const
The absolute translation of the current node.
void makeGeometry(const DDCompactView *cpv, CaloSubdetectorGeometry *ebg)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.