Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
6
void
TpcSeedTrackMapv1::Reset
()
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
17
TpcSeedTrackMapv1::ConstRange
TpcSeedTrackMapv1::getAssocTracks
(
unsigned
int
tpc_key)
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
23
TpcSeedTrackMapv1::ConstRange
TpcSeedTrackMapv1::getAll
()
24
{
25
return
std::make_pair(
SeedTrackMap
.begin(),
SeedTrackMap
.end() );
26
}
27
28
unsigned
int
TpcSeedTrackMapv1::size
()
29
{
30
return
SeedTrackMap
.size();
31
}
coresoftware
blob
master
offline
packages
trackbase
TpcSeedTrackMapv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration