CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MkStandaloneSeqs.h
Go to the documentation of this file.
1 #ifndef RecoTracker_MkFitCMS_standalone_MkStandaloneSeqs_h
2 #define RecoTracker_MkFitCMS_standalone_MkStandaloneSeqs_h
3 
4 #include <vector>
5 #include <map>
6 
7 namespace mkfit {
8 
9  class EventOfHits;
10  class Track;
11  class TrackExtra;
12  typedef std::vector<Track> TrackVec;
13  typedef std::vector<TrackExtra> TrackExtraVec;
14 
15  class Event;
16 
17  namespace StdSeq {
18 
20 
22 
23  void dump_simtracks(Event *event);
24  void track_print(Event *event, const Track &t, const char *pref);
25 
26  // Validation quality & ROOT
27  //--------------------------
28 
29  struct Quality {
30  int m_cnt = 0, m_cnt1 = 0, m_cnt2 = 0, m_cnt_8 = 0, m_cnt1_8 = 0, m_cnt2_8 = 0, m_cnt_nomc = 0;
31 
32  void quality_val(Event *event);
33  void quality_reset();
34  void quality_process(Event *event, Track &tkcand, const int itrack, std::map<int, int> &cmsswLabelToPos);
35  void quality_print();
36  };
37 
39  void root_val(Event *event);
40 
42  void prep_simtracks(Event *event);
44  void prep_reftracks(Event *event, TrackVec &tracks, TrackExtraVec &extras, const bool realigntracks);
45  // sort hits by layer, init track extras, align track labels if true
46  void prep_tracks(Event *event, TrackVec &tracks, TrackExtraVec &extras, const bool realigntracks);
47  void score_tracks(TrackVec &tracks); // if track score is not already assigned
48 
49  } // namespace StdSeq
50 
51 } // namespace mkfit
52 
53 #endif
void prep_reftracks(Event *event, TrackVec &tracks, TrackExtraVec &extras, const bool realigntracks)
std::vector< TrackExtra > TrackExtraVec
void root_val(Event *event)
auto const & tracks
cannot be loose
void quality_process(Event *event, Track &tkcand, const int itrack, std::map< int, int > &cmsswLabelToPos)
void prep_simtracks(Event *event)
void prep_tracks(Event *event, TrackVec &tracks, TrackExtraVec &extras, const bool realigntracks)
void loadHitsAndBeamSpot(Event &ev, EventOfHits &eoh)
void track_print(Event *event, const Track &t, const char *pref)
void score_tracks(TrackVec &tracks)
void prep_recotracks(Event *event)
std::vector< Track > TrackVec
void dump_simtracks(Event *event)
void handle_duplicates(Event *event)
void root_val_dumb_cmssw(Event *event)
void quality_val(Event *event)
void prep_cmsswtracks(Event *event)