ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcSeedTrackMapv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcSeedTrackMapv1.cc
1 #include "TpcSeedTrackMapv1.h"
2 
3 #include <TSystem.h>
4 #include <iostream>
5 
7 {
8  SeedTrackMap.clear();
9 }
10 
11 void TpcSeedTrackMapv1::addAssoc(unsigned int tpc_key, unsigned int track_key)
12 {
13  SeedTrackMap.insert(std::make_pair(tpc_key, track_key));
14 }
15 
16  // get map entries for one TPC seed
18  {
19  return std::make_pair( SeedTrackMap.lower_bound(tpc_key), SeedTrackMap.upper_bound(tpc_key) );
20  }
21 
22  // get map entries for all TPC seed
24  {
25  return std::make_pair( SeedTrackMap.begin(), SeedTrackMap.end() );
26  }
27 
29  {
30  return SeedTrackMap.size();
31  }