 |
Belle II Software
release-05-02-19
|
14 #include <cdc/dataobjects/CDCHit.h>
15 #include <cdc/dataobjects/ADCCountTranslatorBase.h>
16 #include <cdc/dataobjects/CDCGeometryTranslatorBase.h>
17 #include <cdc/dataobjects/TDCCountTranslatorBase.h>
19 #include <genfit/AbsMeasurement.h>
20 #include <genfit/MeasurementOnPlane.h>
21 #include <genfit/TrackCandHit.h>
22 #include <genfit/HMatrixU.h>
24 #include <framework/geometry/B2Vector3.h>
62 bool useTrackTime =
false,
bool cosmics =
false);
93 bool usePlaneFromFit =
false);
121 #ifndef __CINT__ // rootcint doesn't know smart pointers
const CDCHit * m_cdcHit
Pointer to the CDCHit used to created this CDCRecoHit.
Base class for translation of Drift Time into Drift Length.
Class to identify a wire inside the CDC.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
void setLeftRightResolution(int lr)
select how to resolve the left/right ambiguity: -1: negative (left) side on vector (wire direction) x...
bool getFlyByDistanceVector(B2Vector3D &pointingVector, B2Vector3D &trackDir, const genfit::AbsTrackRep *rep=NULL, bool usePlaneFromFit=false)
Get the vector pointing from the wire to the fitted trajectory as well as the direction of the track ...
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
signed char m_leftRight
Flag showing left/right passage.
A state with arbitrary dimension defined in a DetPlane.
unsigned short m_tdcCount
TDC Count as out of CDCHit.
std::vector< double > timeDerivativesMeasurementsOnPlane(const genfit::StateOnPlane &state) const
Get the time derivative of the MesuredStateOnPlane (derived from the track fit).
static void setTranslators(CDC::ADCCountTranslatorBase *const adcCountTranslator, CDC::CDCGeometryTranslatorBase *const cdcGeometryTranslator, CDC::TDCCountTranslatorBase *const tdcCountTranslator, bool useTrackTime=false, bool cosmics=false)
Setter for the Translators.
Hit object for use in TrackCand.
Abstract base class for a track representation.
genfit::SharedPlanePtr constructPlane(const genfit::StateOnPlane &state) const override
Methods that actually interface to Genfit.
std::vector< genfit::MeasurementOnPlane * > constructMeasurementsOnPlane(const genfit::StateOnPlane &state) const override
build MeasurementsOnPlane
virtual const genfit::HMatrixU * constructHMatrix(const genfit::AbsTrackRep *) const override
construct error matrix
Abstract Base class for the geometry translator.
static std::unique_ptr< CDC::ADCCountTranslatorBase > s_adcCountTranslator
Object for ADC Count translation.
This class is used to transfer CDC information to the track fit.
CDCRecoHit * clone() const override
Creating a copy of this hit.
ClassDefOverride(CDCRecoHit, 10)
ROOT Macro.
Contains the measurement and covariance in raw detector coordinates.
WireID m_wireID
Wire Identifier.
WireID getWireID() const
Getter for WireID object.
int getLeftRightResolution() const override
Getter for left/right passage flag.
static bool s_cosmics
Switch to use cosmic events, or physics events from IP.
Abstract base class for different kinds of events.
static std::unique_ptr< CDC::TDCCountTranslatorBase > s_tdcCountTranslator
Object for getting drift-length and -resolution.
bool isLeftRightMeasurement() const override
CDC RecoHits always have left-right ambiguity.
unsigned short m_adcCount
ADC Count as out of CDCHit.
AbsHMatrix implementation for one-dimensional MeasurementOnPlane and RKTrackRep parameterization.
const CDCHit * getCDCHit() const
get the pointer to the CDCHit object that was used to create this CDCRecoHit object.
static std::unique_ptr< CDC::CDCGeometryTranslatorBase > s_cdcGeometryTranslator
Object for geometry translation.
Abstract Base class for the ADC count translator.
CDCRecoHit()
Default Constructor for ROOT IO.
static bool s_useTrackTime
Whether to use the track time or not when building the measurementOnPlane.