Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:56

0001 #ifndef G4EVALFN__H
0002 #define G4EVALFN__H
0003 
0004 #include "TrkrClusLoc.h"
0005 
0006 class TrkrClusterIsMatcher;
0007 class EmbRecoMatchContainer;
0008 class SvtxTrackMap;
0009 
0010 namespace g4evalfn
0011 {
0012 
0013   enum DET
0014   {
0015     MVTX = 0,
0016     INTT = 1,
0017     TPC = 2,
0018     TPOT = 3
0019   };  //
0020 
0021   int trklayer_det(TrkrDefs::hitsetkey);  // 0:MVTX 1:INTt 2:TPC 3:TPOT and beyond
0022   int trklayer_det(TrkrDefs::cluskey);
0023   int trklayer_det(int layer);
0024 
0025   TrkrClusLoc clusloc_PHG4(TrkrClusterIsMatcher*, TrkrDefs::cluskey);
0026   TrkrClusLoc clusloc_SVTX(TrkrClusterIsMatcher*, TrkrDefs::cluskey);
0027 
0028   inline float abs_dphi(float aphi, float bphi)
0029   {
0030     float phi_delta = fabs(aphi - bphi);
0031     while (phi_delta > M_PI) phi_delta = fabs(phi_delta - 2 * M_PI);
0032     return phi_delta;
0033   }
0034 
0035   std::vector<int> unmatchedSvtxTrkIds(EmbRecoMatchContainer*, SvtxTrackMap*);
0036 
0037   float calc_match_statistic(TrkrClusterIsMatcher* ismatcher, TrkrDefs::cluskey key_A, TrkrDefs::cluskey key_B);
0038 }  // namespace g4evalfn
0039 
0040 #endif