ATLAS Offline Software
SoftLeptonTruthInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETTAGINFO_SOFTLEPTONTRUTHINFO_H
6 #define JETTAGINFO_SOFTLEPTONTRUTHINFO_H
9 #include <vector>
10 
11 namespace Analysis
12 {
13 
18 {
19 public:
22 
25 
28 
31 
33  virtual ~SoftLeptonTruthInfo();
34 
36  virtual SoftLeptonTruthInfo* clone() const;
37 
38 
40  inline int numSLTrueInfo() const { return m_sltrueinfo.size();}
42  inline void addSLTrueInfo(const SLTrueInfo& i) { m_sltrueinfo.push_back(i); }
44  inline const SLTrueInfo& getSLTrueInfo(uint i) const {
45  return m_sltrueinfo.at(i);
46  }
47 
48 private:
49 
50  std::vector<SLTrueInfo> m_sltrueinfo;
51 
52 }; // End class
53 
55  return new SoftLeptonTruthInfo(*this);
56 }
57 
58 
59 } // End namespace
60 #endif
61 
Analysis::SoftLeptonTruthInfo::addSLTrueInfo
void addSLTrueInfo(const SLTrueInfo &i)
Insert a new track info object.
Definition: SoftLeptonTruthInfo.h:42
Analysis::SoftLeptonTruthInfo::operator=
SoftLeptonTruthInfo & operator=(const SoftLeptonTruthInfo &rhs)
assigenment operator
Definition: SoftLeptonTruthInfo.cxx:28
Analysis::SoftLeptonTruthInfo::m_sltrueinfo
std::vector< SLTrueInfo > m_sltrueinfo
Definition: SoftLeptonTruthInfo.h:50
Analysis::SoftLeptonTruthInfo::clone
virtual SoftLeptonTruthInfo * clone() const
clone method
Definition: SoftLeptonTruthInfo.h:54
SLTrueInfo.h
Analysis::SoftLeptonTruthInfo::numSLTrueInfo
int numSLTrueInfo() const
Number of truth lepton info objects stored.
Definition: SoftLeptonTruthInfo.h:40
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
Analysis::SoftLeptonTruthInfo::~SoftLeptonTruthInfo
virtual ~SoftLeptonTruthInfo()
default destructor
Definition: SoftLeptonTruthInfo.cxx:38
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::SoftLeptonTruthInfo
Class SoftLeptonTruthInfo: Class to store truth information about lepton in jet.
Definition: SoftLeptonTruthInfo.h:18
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
BaseTagInfo.h
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SoftLeptonTruthInfo::getSLTrueInfo
const SLTrueInfo & getSLTrueInfo(uint i) const
Get a track info object.
Definition: SoftLeptonTruthInfo.h:44
Analysis::SLTrueInfo
Definition: SLTrueInfo.h:15
Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo
SoftLeptonTruthInfo()
default constructor
Definition: SoftLeptonTruthInfo.cxx:11