Belle II Software development
IdealCDCGeometryTranslator.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <cdc/translators/CDCGeometryTranslatorBase.h>
12#include <cdc/geometry/CDCGeometryPar.h>
13
14namespace Belle2 {
19 namespace CDC {
22 public:
25
28
30 const ROOT::Math::XYZVector getWireForwardPosition(const WireID& wireID,
31 float) override
32 {
34 }
35
37 const ROOT::Math::XYZVector getWireForwardPosition(const WireID& wireID) override
38 {
40 }
41
43 const ROOT::Math::XYZVector getWireBackwardPosition(const WireID& wireID,
44 float) override
45 {
47 }
48
50 const ROOT::Math::XYZVector getWireBackwardPosition(const WireID& wireID) override
51 {
53 }
54 };
55 }
57}
const B2Vector3D wireForwardPosition(uint layerId, int cellId, EWirePosition set=c_Base) const
Returns the forward position of the input sense wire.
const B2Vector3D wireBackwardPosition(uint layerId, int cellId, EWirePosition set=c_Base) const
Returns the backward position of the input sense wire.
static CDCGeometryPar & Instance(const CDCGeometry *=nullptr)
Static method to get a reference to the CDCGeometryPar instance.
Abstract Base class for the geometry translator.
This class uses the ideal detector geometry for the translation of wire IDs into geometric positions.
const ROOT::Math::XYZVector getWireBackwardPosition(const WireID &wireID) override
The following (dummy) is needed to make this class compilable.
const ROOT::Math::XYZVector getWireForwardPosition(const WireID &wireID, float) override
As this is for the ideal geometry, I take simply the one used in the simulation.
const ROOT::Math::XYZVector getWireBackwardPosition(const WireID &wireID, float) override
As this is for the ideal geometry, I take simply the one used in the simulation.
const ROOT::Math::XYZVector getWireForwardPosition(const WireID &wireID) override
The following (dummy) is needed to make this class compilable.
Class to identify a wire inside the CDC.
Definition: WireID.h:34
Abstract base class for different kinds of events.