SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
Placement.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) CERN for the benefit of the SHiP Collaboration
3
4#pragma once
5
6#include <GeoModelKernel/GeoDefinitions.h>
7#include <GeoModelKernel/GeoIdentifierTag.h>
8#include <GeoModelKernel/GeoNameTag.h>
9#include <GeoModelKernel/GeoTransform.h>
10#include <GeoModelKernel/GeoVPhysVol.h>
11
12#include <string>
13
14namespace SHiPGeometry {
15
19inline void placeChild(GeoVPhysVol* mother, GeoVPhysVol* child, const std::string& name, int id,
20 const GeoTrf::Transform3D& transform) {
21 mother->add(new GeoNameTag(name));
22 mother->add(new GeoIdentifierTag(id));
23 mother->add(new GeoTransform(transform));
24 mother->add(child);
25}
26
27} // namespace SHiPGeometry
Definition ConfigPath.h:9
void placeChild(GeoVPhysVol *mother, GeoVPhysVol *child, const std::string &name, int id, const GeoTrf::Transform3D &transform)
Place child under mother using the repo's standard tag sequence: a name tag, an identifier tag,...
Definition Placement.h:19