ATLAS Offline Software
SVInfoBase.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
7 #include <math.h>
8 #include <iostream>
9 
10 namespace Analysis {
11 
14  m_tagLikelihood.clear();
15  }
16 
18  SVInfoBase::SVInfoBase(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType) {
19  m_tagLikelihood.clear();
20  }
21 
26  }
27 
30  {
31  if (this!=&rhs)
32  {
35  }
36  return *this;
37  }
38 
41  }
42 
44  MsgStream& operator<<( MsgStream& out, const SVInfoBase& info) {
45  double pb = info.tagLikelihood()[0];
46  double pu = info.tagLikelihood()[1];
47  double ww = log(pb/pu);
48  out << " - Tag type " << info.infoType()
49  << " : P(b)= " << pb << " P(u)= " << pu << " W= " << ww << endmsg;
50  return out;
51  }
52 
54  std::ostream& operator<<( std::ostream& out, const SVInfoBase& info) {
55  double pb = info.tagLikelihood()[0];
56  double pu = info.tagLikelihood()[1];
57  double ww = log(pb/pu);
58  out << " - Tag type " << info.infoType()
59  << " : P(b)= " << pb << " P(u)= " << pu << " W= " << ww << std::endl;
60  return out;
61  }
62 
63 }
grepfile.info
info
Definition: grepfile.py:38
Analysis::SVInfoBase::operator=
SVInfoBase & operator=(const SVInfoBase &rhs)
assigenment operator
Definition: SVInfoBase.cxx:29
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Analysis::SVInfoBase::SVInfoBase
SVInfoBase()
default constructor
Definition: SVInfoBase.cxx:13
Analysis::SVInfoBase::~SVInfoBase
virtual ~SVInfoBase()
default destructor
Definition: SVInfoBase.cxx:40
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
CheckAppliedSFs.pu
pu
Definition: CheckAppliedSFs.py:311
python.CaloCondTools.log
log
Definition: CaloCondTools.py: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
SVInfoBase.h
Analysis::SVInfoBase
Definition: SVInfoBase.h:19