Analysis Software
Documentation for sPHENIX simulation software
 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 
23  virtual ~PidInfoContainer() {}
24 
25  void Reset();
26  int isValid() const;
27  void identify(std::ostream& os=std::cout) const;
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:
38 
39  ClassDef(PidInfoContainer,1)
40 };
41 
42 #endif /* PIDINFOCONTAINER_H__ */