ATLAS Offline Software
JetMomentMap.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef JETEVENT_JETMOMENTMAP_H
8 #define JETEVENT_JETMOMENTMAP_H
9 
10 #include "AthenaKernel/CLASS_DEF.h"
11 
12 #include "AthLinks/ElementLinkVector.h"
13 
14 #include "JetEvent/JetMapBase.h"
15 #include "JetEvent/JetMoment.h"
16 
17 #include <vector>
18 #include <map>
19 
20 class JetMomentMap : public JetMapBase<JetMoment::MomentData>
21 {
22 public:
23 
24  // make the JetCollection a friend
25  friend class JetCollection;
26 
33 
34  JetMomentMap();
35  virtual ~JetMomentMap();
36 
37  virtual bool setMoment(size_t jetIndex,size_t keyIndex,float_t moment);
38  virtual bool setMoment(size_t jetIndex,size_t keyIndex,float_t moment)
39  const;
40  virtual bool getMoment(size_t jetIndex,size_t keyIndex,float_t& moment)
41  const;
42  virtual float_t getMoment(size_t jetIndex,size_t keyIndex) const;
43 
44  // dummy implementation, needed for the DataLink to call the converter
45  void access() const { };
46 
47 
48 protected:
49 
50 };
51 
52 CLASS_DEF(JetMomentMap, 117927529, 1)
53 
54 
56 public:
57  friend class JetGlobalEventSetup;
58 
60 };
61 
62 
77 #endif
JetMomentMap
Definition: JetMomentMap.h:21
JetMapBase.h
JetMomentMap::~JetMomentMap
virtual ~JetMomentMap()
JetGlobalEventSetup
Perform setup actions for jet handling at each event.
Definition: JetGlobalEventSetup.h:25
JetMoment::float_t
float float_t
Definition: JetMoment.h:13
JetMoment::MomentData
Definition: JetMoment.h:21
JetMomentMap::JetMomentMap
JetMomentMap()
Definition: JetMomentMap.cxx:9
JetMoment.h
OrphanJetMomentMap::instance
static OrphanJetMomentMap instance
Definition: JetMomentMap.h:59
JetMomentMap::float_t
JetMoment::float_t float_t
Definition: JetMomentMap.h:27
JetMapBase
Definition: JetMapBase.h:17
JetMoment::tag_t
bool tag_t
Definition: JetMoment.h:14
JetMomentMap::access
void access() const
Definition: JetMomentMap.h:45
JetMomentMap::tag_t
JetMoment::tag_t tag_t
Definition: JetMomentMap.h:28
JetMomentMap::record_t
base_t::record_t record_t
Definition: JetMomentMap.h:32
OrphanJetMomentMap
Definition: JetMomentMap.h:55
JetMomentMap::data_t
JetMoment::MomentData data_t
Definition: JetMomentMap.h:29
JetMomentMap::base_t
JetMapBase< data_t > base_t
Definition: JetMomentMap.h:30
JetMapBase::map_t
std::map< key_t, record_ptr_t > map_t
publish store type
Definition: JetMapBase.h:52
JetCollection
Container for Jets
Definition: JetCollection.h:30
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
JetMapBase::record_t
std::vector< data_t > record_t
Publish record type.
Definition: JetMapBase.h:23
CLASS_DEF.h
macros to associate a CLID to a type
JetMomentMap::setMoment
virtual bool setMoment(size_t jetIndex, size_t keyIndex, float_t moment)
Definition: JetMomentMap.cxx:18
JetMomentMap::map_t
base_t::map_t map_t
Definition: JetMomentMap.h:31
OrphanJetCounter
Definition: JetMapBase.h:171
JetMomentMap::getMoment
virtual bool getMoment(size_t jetIndex, size_t keyIndex, float_t &moment) const
Definition: JetMomentMap.cxx:34