Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:20:48

0001 #ifndef TRACKBASEHISTORIC_TRACKSEEDHELPER_H
0002 #define TRACKBASEHISTORIC_TRACKSEEDHELPER_H
0003 
0004 /*!
0005  * \file TrackSeedHelper.h
0006  * \author Hugo Pereira Da Costa <hugo.pereira-da-costa@lanl.gov>
0007  */
0008 
0009 #include <trackbase/TrkrDefs.h>
0010 
0011 #include <Acts/Definitions/Algebra.hpp>
0012 
0013 #include <cstdint>
0014 #include <map>
0015 
0016 class TrackSeed;
0017 
0018 namespace TrackSeedHelper
0019 {
0020   using position_map_t = std::map<TrkrDefs::cluskey, Acts::Vector3>;
0021 
0022   float get_phi(TrackSeed const*, const position_map_t&);
0023   float get_phi_fastsim(TrackSeed const*);
0024   void circleFitByTaubin(
0025     TrackSeed*, const position_map_t& positions,
0026     uint8_t startLayer = 0,
0027     uint8_t endLayer = 58);
0028   std::pair<float, float> findRoot(TrackSeed const* seed);
0029   std::pair<float, float> findRoot(const float& qOverR, const float& X0, const float& Y0);
0030 
0031   void lineFit(
0032       TrackSeed*, const position_map_t& positions,
0033       uint8_t startLayer = 0,
0034       uint8_t endLayer = 58);
0035 
0036   float get_x(TrackSeed const*);
0037   float get_y(TrackSeed const*);
0038   float get_z(TrackSeed const*);
0039   Acts::Vector3 get_xyz(TrackSeed const*);
0040 }
0041 
0042 #endif