ATLAS Offline Software
SoftMuonInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: SoftMuonInfo.cxx
8 PACKAGE: offline/PhysicsAnalysis/BTaggingID/BTaggingUtils
9 PURPOSE: EDM for b-tagging based on soft muon identification
10 ********************************************************************/
11 
13 
14 namespace Analysis
15 {
16 
18 SoftMuonInfo::SoftMuonInfo() : BaseTagInfo(), m_trackinfo()
19 {
20 }
21 
23 SoftMuonInfo::SoftMuonInfo(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType), m_trackinfo()
24 {
25 }
26 
30 SoftMuonInfo::SoftMuonInfo(const SoftMuonInfo& rhs) : BaseTagInfo(rhs), m_trackinfo(rhs.m_trackinfo)
31 {}
32 
34 SoftMuonInfo& SoftMuonInfo::operator= (const SoftMuonInfo& rhs)
35 {
36  if (this!=&rhs)
37  {
38  m_trackinfo=rhs.m_trackinfo;
39  m_tagLikelihood=rhs.m_tagLikelihood;
40  m_tagJetInfoType=rhs.m_tagJetInfoType;
41  }
42  return *this;
43 }
44 
47 {}
48 
49  MsgStream& operator<<( MsgStream& out, const SoftMuonInfo& info) {
50  int ntrk = info.numTrackInfo();
51  out << " - Tag type " << info.infoType()
52  << " based on " << ntrk << " muon tracks:" << endmsg;
53  for(int i=0;i<ntrk;i++) {
54  out << " -> " << i << info.getTrackInfo(i) << endmsg;
55  }
56  return out;
57  }
58 
59  std::ostream& operator<<( std::ostream& out, const SoftMuonInfo& info) {
60  int ntrk = info.numTrackInfo();
61  out << " - Tag type " << info.infoType()
62  << " based on " << ntrk << " muon tracks:" << std::endl;
63  for(int i=0;i<ntrk;i++) {
64  out << " -> " << info.getTrackInfo(i) << std::endl;
65  }
66  return out;
67  }
68 
69 
70 }
71 
grepfile.info
info
Definition: grepfile.py:38
Analysis::SoftMuonInfo
Definition: SoftMuonInfo.h:31
Analysis::SoftMuonInfo::m_trackinfo
std::vector< SMTrackInfo > m_trackinfo
Definition: SoftMuonInfo.h:61
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
SoftMuonInfo.h
Analysis::SoftMuonInfo::operator=
SoftMuonInfo & operator=(const SoftMuonInfo &rhs)
assigenment operator
Definition: SoftMuonInfo.cxx:39
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Analysis::BaseTagInfo
Class BasetagInfo: Implements methods defined in ITagInfo.
Definition: BaseTagInfo.h:40
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::operator<<
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
Definition: IPInfoBase.cxx:47
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77
Analysis::SoftMuonInfo::~SoftMuonInfo
virtual ~SoftMuonInfo()
default destructor
Definition: SoftMuonInfo.cxx:51
Analysis::SoftMuonInfo::SoftMuonInfo
SoftMuonInfo()
default constructor
Definition: SoftMuonInfo.cxx:23