Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:16

0001 #ifndef RecoTracker_MkFitCore_interface_FunctionTypes_h
0002 #define RecoTracker_MkFitCore_interface_FunctionTypes_h
0003 
0004 #include <functional>
0005 
0006 namespace mkfit {
0007 
0008   struct BeamSpot;
0009   class EventOfHits;
0010   class TrackerInfo;
0011   class Track;
0012   class TrackCand;
0013   class MkJob;
0014   class IterationConfig;
0015   class IterationSeedPartition;
0016 
0017   typedef std::vector<Track> TrackVec;
0018 
0019   // ----------------------------------------------------------
0020 
0021   using clean_seeds_cf = int(TrackVec &, const IterationConfig &, const BeamSpot &);
0022   using clean_seeds_func = std::function<clean_seeds_cf>;
0023 
0024   using partition_seeds_cf = void(const TrackerInfo &, const TrackVec &, const EventOfHits &, IterationSeedPartition &);
0025   using partition_seeds_func = std::function<partition_seeds_cf>;
0026 
0027   using filter_candidates_cf = bool(const TrackCand &, const MkJob &);
0028   using filter_candidates_func = std::function<filter_candidates_cf>;
0029 
0030   using clean_duplicates_cf = void(TrackVec &, const IterationConfig &);
0031   using clean_duplicates_func = std::function<clean_duplicates_cf>;
0032 
0033   using track_score_cf = float(const int nfoundhits,
0034                                const int ntailholes,
0035                                const int noverlaphits,
0036                                const int nmisshits,
0037                                const float chi2,
0038                                const float pt,
0039                                const bool inFindCandidates);
0040   using track_score_func = std::function<track_score_cf>;
0041 
0042 }  // end namespace mkfit
0043 
0044 #endif