Project
Loading...
Searching...
No Matches
HitFinder.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef O2_MID_HITFINDER_H
18#define O2_MID_HITFINDER_H
19
20#include "MathUtils/Cartesian.h"
24
25namespace o2
26{
27namespace mid
28{
31{
32 public:
35 HitFinder(const GeometryTransformer& geoTrans);
36
38 ~HitFinder() = default;
39
41 const GeometryTransformer& getGeometryTransformer() const { return mGeometryTransformer; }
42
47 std::vector<int> getFiredDE(const Track& track, int chamber) const;
48
54 std::vector<Cluster> getLocalPositions(const Track& track, int chamber, bool withUncertainties = false) const;
55
56 private:
61 math_utils::Point3D<double> getIntersectInDefaultPlane(const Track& track, int chamber) const;
62
68 Cluster getIntersect(const Track& track, int deId) const;
69
74 int guessRPC(double yPos, int chamber) const;
75
79 void addUncertainty(Cluster& cl, Track track) const;
80
81 GeometryTransformer mGeometryTransformer;
82 const double mTanTheta;
83 const double mCosTheta;
84};
85} // namespace mid
86} // namespace o2
87
88#endif /* O2_MID_HITFINDER_H */
Reconstructed MID cluster.
Reconstructed MID track.
Geometry transformer for MID.
Class to find the impact point of a track on the chamber.
Definition HitFinder.h:31
~HitFinder()=default
Default destructor.
std::vector< int > getFiredDE(const Track &track, int chamber) const
Definition HitFinder.cxx:74
const GeometryTransformer & getGeometryTransformer() const
Returns the geometry transformer.
Definition HitFinder.h:41
std::vector< Cluster > getLocalPositions(const Track &track, int chamber, bool withUncertainties=false) const
This class defines the MID track.
Definition Track.h:30
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
cluster structure for MID
Definition Cluster.h:30