LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
CollectionParameterMap.h
1 #ifndef CollectionParameterMap_h
2 #define CollectionParameterMap_h 1
3 
4 #include "EVENT/LCCollection.h"
5 
6 #include <map>
7 #include <string>
8 
9 using namespace EVENT;
10 
11 
12 namespace UTIL{
13 
14 
27 
28  public:
29 
30  typedef std::map< std::string, int > map_type ;
31 
35  CollectionParameterMap( const std::string& keyName , const std::string& valueName, LCCollection* col ) ;
36 
40  CollectionParameterMap( const std::string& keyName , const std::string& valueName, const LCCollection* col ) ;
41 
45 
48  map_type& map() { return _map ; }
49 
50 
51  protected:
52 
54 
55  void init( const LCCollection* col ) ;
56 
57  std::string _keyName ;
58  std::string _valueName ;
59  LCCollection* _col ;
60  map_type _map ;
61 
62 
63  } ;
64 
65 } // namespace
66 #endif
67 
68 
Helper class for setting and retrieving an std::map<string,int> as collection parameters.
Definition: CollectionParameterMap.h:26
map_type & map()
The std::map< std::string, int >.
Definition: CollectionParameterMap.h:48
The generic collection used in LCIO.
Definition: LCCollection.h:29