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
PidInfoContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PidInfoContainer.h
1
#ifndef PIDINFOCONTAINER_H__
2
#define PIDINFOCONTAINER_H__
3
4
#include <
phool/PHObject.h
>
5
#include <
phool/phool.h
>
6
#include <iostream>
7
#include <map>
8
9
class
PidInfo
;
10
11
class
PidInfoContainer
:
public
PHObject
12
{
13
14
public
:
15
16
typedef
std::map<int, PidInfo *>
Map
;
17
typedef
Map::iterator
Iterator
;
18
typedef
Map::const_iterator
ConstIterator
;
19
typedef
std::pair<Iterator, Iterator>
Range
;
20
typedef
std::pair<ConstIterator, ConstIterator>
ConstRange
;
21
22
PidInfoContainer
() {}
23
virtual
~PidInfoContainer
() {}
24
25
void
Reset
();
26
int
isValid
()
const
;
27
void
identify
(std::ostream&
os
=std::cout)
const
;
28
ConstIterator
AddPidInfo
(
PidInfo
*pidinfo);
29
PidInfo
*
getPidInfo
(
const
int
trackid);
31
ConstRange
getPidInfos
(
void
)
const
;
32
Range
getPidInfos
(
void
);
33
34
unsigned
int
size
()
const
{
return
_pidinfos
.size();}
35
36
protected
:
37
Map
_pidinfos
;
38
39
ClassDef(
PidInfoContainer
,1)
40
};
41
42
#endif
/* PIDINFOCONTAINER_H__ */
analysis
blob
master
ParticleID
RICHAnalysis
PidInfoContainer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:54
using
1.8.2 with
sPHENIX GitHub integration