16 #ifndef PHASE2GMT_TOPOLOGICALALGORITHM 17 #define PHASE2GMT_TOPOLOGICALALGORITHM 37 int deltaZ0(
const int Z01,
const int Z02);
41 std::vector<l1t::TrackerMuon> *
trkMus;
56 inline void TopoAlgo::load(std::vector<l1t::TrackerMuon> &trkMus_, std::vector<ConvertedTTTrack> &convertedTracks_) {
62 static std::atomic<int> nevti = 0;
66 int constexpr exptotal = 12 + 18 * 100;
67 for (
unsigned int i = 0;
i < 12; ++
i) {
68 if (i < trkMus->
size())
73 dumpInput <<
" " << evti <<
" 0 " <<
i <<
" " << 0 <<
" " << 0 <<
" " << 0 <<
" " << 0 <<
" " << 0 << std::endl;
85 while (totalsize < exptotal) {
86 dumpInput <<
" " << evti <<
" 1 " << ntrks++ <<
" " << 0 <<
" " << 0 <<
" " << 0 <<
" " << 0 <<
" " << 0 <<
" " 93 static const int maxbits = (1 <<
BITSETA) - 1;
100 static const int maxbits = (1 <<
BITSZ0) - 1;
101 int dZ0 =
abs(Z01 - Z02);
108 static const int maxbits = (1 <<
BITSPHI) - 1;
109 static const int pibits = (1 << (
BITSPHI - 1));
110 int dphi =
abs(phi1 - phi2);
112 dphi = maxbits - dphi;
117 #endif // ----- #ifndef PHASE2GMT_TOPOLOGICALALGORITHM -----
int deltaEta(const int eta1, const int eta2)
Abs< T >::type abs(const T &t)
std::vector< ConvertedTTTrack > * convertedTracks
std::vector< l1t::TrackerMuon > * trkMus
int deltaZ0(const int Z01, const int Z02)
int deltaPhi(int phi1, int phi2)
void load(std::vector< l1t::TrackerMuon > &trkMus, std::vector< ConvertedTTTrack > &convertedTracks)