ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
20class JetMomentMap : public JetMapBase<JetMoment::MomentData>
21{
22public:
23
24 // make the JetCollection a friend
25 friend class JetCollection;
26
33
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
48protected:
49
50};
51
52CLASS_DEF(JetMomentMap, 117927529, 1)
53
54
56public:
57 friend class JetGlobalEventSetup;
58
60};
61
62
76
77#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::map< key_t, record_ptr_t > map_t
Definition JetMapBase.h:52
std::vector< data_t > record_t
Definition JetMapBase.h:23
base_t::map_t map_t
virtual bool getMoment(size_t jetIndex, size_t keyIndex, float_t &moment) const
JetMoment::float_t float_t
JetMoment::tag_t tag_t
friend class JetCollection
virtual ~JetMomentMap()
JetMapBase< data_t > base_t
base_t::record_t record_t
virtual bool setMoment(size_t jetIndex, size_t keyIndex, float_t moment)
void access() const
JetMoment::MomentData data_t
friend class JetGlobalEventSetup
static OrphanJetMomentMap instance
float float_t
Definition JetMoment.h:13
bool tag_t
Definition JetMoment.h:14