Belle II Software  release-08-01-10
DriftLengthEstimator.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 #pragma once
9 
10 #include <string>
11 #include <cmath>
12 
13 namespace Belle2 {
18  class ModuleParamList;
20 }
21 
22 namespace Belle2 {
27  namespace TrackFindingCDC {
28  class CDCFacet;
29  class CDCRecoHit2D;
30  class CDCRecoHit3D;
31  class CDCSegment2D;
32  class CDCSegment3D;
33  class CDCTrack;
34 
37 
39  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix);
40 
42  double updateDriftLength(CDCRecoHit2D& recoHit2D);
43 
45  double updateDriftLength(CDCRecoHit3D& recoHit3D, double tanLambda);
46 
52  void updateDriftLength(CDCFacet& facet);
53 
55  void updateDriftLength(CDCSegment2D& segment);
56 
58  void updateDriftLength(CDCSegment3D& segment, double tanLambda);
59 
61  void updateDriftLength(CDCTrack& track, double tanLambda);
62 
65 
67  double m_param_tofMassScale = NAN;
68  };
69  }
71 }
The Module parameter list class.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
Class representing a two dimensional reconstructed hit in the central drift chamber.
Definition: CDCRecoHit2D.h:47
Class representing a three dimensional reconstructed hit.
Definition: CDCRecoHit3D.h:52
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
A segment consisting of three dimensional reconstructed hits.
Definition: CDCSegment3D.h:26
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Abstract base class for different kinds of events.
Helper construct implementing the (re)estimation of the drift length for various hit objects.
double m_param_tofMassScale
Parameter : Mass to estimate the velocity in the flight time to the hit.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Add the parameters of the estimator to the module.
bool m_param_useAlphaInDriftLength
Parameter : Switch to serve the alpha angle to the drift length translator.
double updateDriftLength(CDCRecoHit2D &recoHit2D)
Update the drift length of the reconstructed hit in place.