ATLAS Offline Software
Loading...
Searching...
No Matches
IPInfoPlus.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETTAGINFO_IPINFOPLUS_H
6#define JETTAGINFO_IPINFOPLUS_H
9#include <vector>
10#include <iostream>
11
12class MsgStream;
13namespace Rec { class TrackParticle; }
14
15namespace Analysis {
16
24
25class IPInfoPlus : public BaseTagInfo {
26public:
28 IPInfoPlus();
30 IPInfoPlus(const TagInfoType& x);
32 IPInfoPlus &operator= (const IPInfoPlus& rhs);
33 virtual ~IPInfoPlus();
34 virtual IPInfoPlus* clone() const;
35
37 inline int numTrackInfo() const { return m_trackinfo.size();}
39 inline void addTrackInfo(const IPTrackInfo& i) { m_trackinfo.push_back(i); }
41 inline const IPTrackInfo& getTrackInfo(uint i) const {
42 return m_trackinfo.at(i);
43 }
44
45 void updateTrackWeight(const Rec::TrackParticle* trk, const std::string& view, double w);
46
47private:
48 std::vector<IPTrackInfo> m_trackinfo;
49
50};
51
52MsgStream& operator<<(MsgStream& out, const IPInfoPlus&);
53
54std::ostream& operator<<(std::ostream& out, const IPInfoPlus&);
55
56inline IPInfoPlus* IPInfoPlus::clone() const {
57 return new IPInfoPlus(*this);
58}
59
60}
61#endif // JETTAGINFO_IPINFOPLUS
unsigned int uint
#define x
BaseTagInfo()
default constructor
This class contains additional information for tags based on impact parameter, like pointers to the T...
Definition IPInfoPlus.h:25
void addTrackInfo(const IPTrackInfo &i)
Insert a new track info object.
Definition IPInfoPlus.h:39
virtual IPInfoPlus * clone() const
a clone method for the proper workings of the copy constructor
Definition IPInfoPlus.h:56
void updateTrackWeight(const Rec::TrackParticle *trk, const std::string &view, double w)
Update the track weights for a trackparticle.
int numTrackInfo() const
Number of track info objects stored.
Definition IPInfoPlus.h:37
std::vector< IPTrackInfo > m_trackinfo
Definition IPInfoPlus.h:48
IPInfoPlus & operator=(const IPInfoPlus &rhs)
IPInfoPlus()
Default constructor.
const IPTrackInfo & getTrackInfo(uint i) const
Get a track info object.
Definition IPInfoPlus.h:41
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
std::string TagInfoType
Gaudi Tools.