Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
g4evalfn.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file g4evalfn.h
1 #ifndef G4EVALFN__H
2 #define G4EVALFN__H
3 
4 #include "TrkrClusLoc.h"
5 
8 class SvtxTrackMap;
9 
10 namespace g4evalfn {
11 
12  enum DET { MVTX=0, INTT=1, TPC=2, TPOT=3 }; //
13 
14  int trklayer_det(TrkrDefs::hitsetkey); // 0:MVTX 1:INTt 2:TPC 3:TPOT and beyond
16  int trklayer_det(int layer);
17 
20 
21  inline float abs_dphi (float aphi, float bphi) {
22  float phi_delta = fabs(aphi-bphi);
23  while (phi_delta > M_PI) phi_delta = fabs(phi_delta-2*M_PI);
24  return phi_delta;
25  }
26 
28 
30 }
31 
32 #endif