ATLAS Offline Software
ITagInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  ITagInfo.h - Description
7  -------------------
8  begin : 04-06-2004
9  authors : Andreas Wildauer (CERN PH-ATC), Fredrik Akesson (CERN PH-ATC)
10  email : andreas.wildauer@cern.ch, fredrik.akesson@cern.ch
11 
12  changes : 01-13-2005 (FD) introduce muon case
13  01-21-2005 (AW) moved to JetTagging/JetTagInfo
14  changed namespace to Analysis (from BTAG)
15 
16  ***************************************************************************/
17 
18 #ifndef JETTAGINFO_ITAGINFO_H
19 #define JETTAGINFO_ITAGINFO_H
20 
21 // This has been moved to JetEvent.
23 
24 #if 0
25 #include<vector>
26 #include<string>
27 
28 namespace Analysis
29 {
30 
35  typedef std::string TagInfoType;
36 
44  class ITagInfo
45  {
46  public:
47  virtual ~ITagInfo() {};
48  virtual void setTagLikelihood(const std::vector<double>&) = 0;
49  virtual void setTagLikelihood(std::vector<double>&&) = 0;
50  virtual const std::vector<double>& tagLikelihood(void) const = 0;
51 // virtual double lhSig(void) const = 0; //!< shortcut to retrieve the first element of the tagLikelihood
52  virtual void setWeight(double weight) = 0;
53  virtual double weight() const = 0;
54  virtual void makeValid() = 0;
55  virtual bool isValid() const = 0;
56  virtual TagInfoType infoType() const = 0;
57  virtual ITagInfo* clone() const = 0;
58  };
59 }
60 #endif
61 
62 #endif
Analysis::ITagInfo::setTagLikelihood
virtual void setTagLikelihood(const std::vector< double > &)=0
Analysis::ITagInfo::setWeight
virtual void setWeight(double weight)=0
get the weight of one tagger
JetTagInfoBase.h
Analysis::ITagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const =0
set the weight for one tagger
Analysis::ITagInfo::makeValid
virtual void makeValid()=0
returns true if the tag was successfull
Analysis::ITagInfo::~ITagInfo
virtual ~ITagInfo()=default
< destructor
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::ITagInfo::infoType
virtual TagInfoType infoType() const =0
a clone method for the proper workings of the copy constructor
Analysis::ITagInfo::isValid
virtual bool isValid() const =0
returns the infoType of the info objects.
Analysis::ITagInfo::clone
virtual ITagInfo * clone() const =0
Analysis::ITagInfo::weight
virtual double weight() const =0
sets the isValid flag to true, cannot be reversed!