ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
DerivationFramework::BMuonTrackIsoTool::MuIsoItem Class Reference

#include <BMuonTrackIsoTool.h>

Inheritance diagram for DerivationFramework::BMuonTrackIsoTool::MuIsoItem:
Collaboration diagram for DerivationFramework::BMuonTrackIsoTool::MuIsoItem:

Public Member Functions

 MuIsoItem (const std::string &Name="_none_", const std::string &Bname="muiso", const std::string &Prefix="")
 
virtual ~MuIsoItem ()
 
virtual void resetVals () override
 
virtual void copyVals (const BaseItem &item) override
 
void copyVals (const MuIsoItem &item)
 
void fill (double isoValue=-2., int nTracks=-1, const xAOD::Muon *muon=NULL)
 
std::string muIsoName () const
 
std::string nTracksName () const
 
std::string muLinkName () const
 
virtual void setup (const std::string &Name, const std::string &Bname="iso", const std::string &Prefix="")
 
virtual void setPrefix (std::string Prefix)
 
virtual std::string buildName (const std::string &qualifier="", const std::string &suffix="") const
 
virtual std::string toString () const
 

Public Attributes

std::vector< float > vIsoValues
 
std::vector< int > vNTracks
 
MuonBag vMuons {}
 
std::string name
 
std::string bname
 
std::string prefix
 

Detailed Description

Definition at line 41 of file BMuonTrackIsoTool.h.

Constructor & Destructor Documentation

◆ MuIsoItem()

DerivationFramework::BMuonTrackIsoTool::MuIsoItem::MuIsoItem ( const std::string &  Name = "_none_",
const std::string &  Bname = "muiso",
const std::string &  Prefix = "" 
)

Definition at line 52 of file BMuonTrackIsoTool.cxx.

54  :
55  BaseItem(Name, Bname, Prefix) {
56  }

◆ ~MuIsoItem()

DerivationFramework::BMuonTrackIsoTool::MuIsoItem::~MuIsoItem ( )
virtual

Definition at line 58 of file BMuonTrackIsoTool.cxx.

58  {
59  }

Member Function Documentation

◆ buildName()

std::string DerivationFramework::BPhysVertexTrackBase::BaseItem::buildName ( const std::string &  qualifier = "",
const std::string &  suffix = "" 
) const
virtualinherited

Definition at line 201 of file BPhysVertexTrackBase.cxx.

202  {
203  std::string f = std::format("{}{}{}{}{}",
204  (prefix.length() > 0 ? prefix + "_" : ""),
205  (bname.length() > 0 ? bname + "_" : ""),
206  (qualifier.length() > 0 ? qualifier + "_" : ""),
207  name,
208  suffix);
209  return f;
210  }

◆ copyVals() [1/2]

void DerivationFramework::BMuonTrackIsoTool::MuIsoItem::copyVals ( const BaseItem item)
overridevirtual

Implements DerivationFramework::BPhysVertexTrackBase::BaseItem.

Definition at line 67 of file BMuonTrackIsoTool.cxx.

67  {
68  copyVals((const MuIsoItem&)item);
69  }

◆ copyVals() [2/2]

void DerivationFramework::BMuonTrackIsoTool::MuIsoItem::copyVals ( const MuIsoItem item)

Definition at line 71 of file BMuonTrackIsoTool.cxx.

71  {
72  vIsoValues = item.vIsoValues;
73  vNTracks = item.vNTracks;
74  vMuons = item.vMuons;
75  }

◆ fill()

void DerivationFramework::BMuonTrackIsoTool::MuIsoItem::fill ( double  isoValue = -2.,
int  nTracks = -1,
const xAOD::Muon muon = NULL 
)

Definition at line 77 of file BMuonTrackIsoTool.cxx.

78  {
79  vIsoValues.push_back(isoValue);
80  vNTracks.push_back(nTracks);
81  vMuons.push_back(muon);
82  }

◆ muIsoName()

std::string DerivationFramework::BMuonTrackIsoTool::MuIsoItem::muIsoName ( ) const

Definition at line 84 of file BMuonTrackIsoTool.cxx.

84  {
85  return buildName();
86  }

◆ muLinkName()

std::string DerivationFramework::BMuonTrackIsoTool::MuIsoItem::muLinkName ( ) const

Definition at line 92 of file BMuonTrackIsoTool.cxx.

92  {
93  return buildName("", "_muLink");
94  }

◆ nTracksName()

std::string DerivationFramework::BMuonTrackIsoTool::MuIsoItem::nTracksName ( ) const

Definition at line 88 of file BMuonTrackIsoTool.cxx.

88  {
89  return buildName("Ntracks");
90  }

◆ resetVals()

void DerivationFramework::BMuonTrackIsoTool::MuIsoItem::resetVals ( )
overridevirtual

Reimplemented from DerivationFramework::BPhysVertexTrackBase::BaseItem.

Definition at line 61 of file BMuonTrackIsoTool.cxx.

61  {
62  vIsoValues.clear();
63  vNTracks.clear();
64  vMuons.clear();
65  }

◆ setPrefix()

void DerivationFramework::BPhysVertexTrackBase::BaseItem::setPrefix ( std::string  Prefix)
virtualinherited

Definition at line 193 of file BPhysVertexTrackBase.cxx.

193  {
194  prefix = std::move(Prefix);
195  }

◆ setup()

void DerivationFramework::BPhysVertexTrackBase::BaseItem::setup ( const std::string &  Name,
const std::string &  Bname = "iso",
const std::string &  Prefix = "" 
)
virtualinherited

Reimplemented in DerivationFramework::BVertexTrackIsoTool::IsoItem.

Definition at line 185 of file BPhysVertexTrackBase.cxx.

187  {
188  name = std::move(Name);
189  bname = std::move(Bname);
190  prefix = std::move(Prefix);
191  }

◆ toString()

std::string DerivationFramework::BPhysVertexTrackBase::BaseItem::toString ( ) const
virtualinherited

Definition at line 212 of file BPhysVertexTrackBase.cxx.

212  {
213  std::string f = std::format("nm: {}\nbn: {}", name, bname);
214  return f;
215  }

Member Data Documentation

◆ bname

std::string DerivationFramework::BPhysVertexTrackBase::BaseItem::bname
inherited

Definition at line 80 of file BPhysVertexTrackBase.h.

◆ name

std::string DerivationFramework::BPhysVertexTrackBase::BaseItem::name
inherited

Definition at line 79 of file BPhysVertexTrackBase.h.

◆ prefix

std::string DerivationFramework::BPhysVertexTrackBase::BaseItem::prefix
inherited

Definition at line 81 of file BPhysVertexTrackBase.h.

◆ vIsoValues

std::vector<float> DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vIsoValues

Definition at line 59 of file BMuonTrackIsoTool.h.

◆ vMuons

MuonBag DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vMuons {}

Definition at line 61 of file BMuonTrackIsoTool.h.

◆ vNTracks

std::vector<int> DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vNTracks

Definition at line 60 of file BMuonTrackIsoTool.h.


The documentation for this class was generated from the following files:
DerivationFramework::BPhysVertexTrackBase::BaseItem::prefix
std::string prefix
Definition: BPhysVertexTrackBase.h:81
DerivationFramework::BPhysVertexTrackBase::BaseItem::name
std::string name
Definition: BPhysVertexTrackBase.h:79
DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vMuons
MuonBag vMuons
Definition: BMuonTrackIsoTool.h:61
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
vtune_athena.format
format
Definition: vtune_athena.py:14
DerivationFramework::BPhysVertexTrackBase::BaseItem::BaseItem
BaseItem(const std::string &Name="_none_", const std::string &Bname="iso", const std::string &Prefix="")
Definition: BPhysVertexTrackBase.cxx:176
DerivationFramework::BMuonTrackIsoTool::MuIsoItem::MuIsoItem
MuIsoItem(const std::string &Name="_none_", const std::string &Bname="muiso", const std::string &Prefix="")
Definition: BMuonTrackIsoTool.cxx:52
DerivationFramework::BPhysVertexTrackBase::BaseItem::buildName
virtual std::string buildName(const std::string &qualifier="", const std::string &suffix="") const
Definition: BPhysVertexTrackBase.cxx:201
DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vIsoValues
std::vector< float > vIsoValues
Definition: BMuonTrackIsoTool.h:59
hist_file_dump.f
f
Definition: hist_file_dump.py:135
DerivationFramework::BPhysVertexTrackBase::BaseItem::bname
std::string bname
Definition: BPhysVertexTrackBase.h:80
DerivationFramework::BMuonTrackIsoTool::MuIsoItem::vNTracks
std::vector< int > vNTracks
Definition: BMuonTrackIsoTool.h:60
item
Definition: ItemListSvc.h:43
Name
JetDumper::Name Name
Definition: JetDumper.cxx:19
DerivationFramework::BMuonTrackIsoTool::MuIsoItem::copyVals
virtual void copyVals(const BaseItem &item) override
Definition: BMuonTrackIsoTool.cxx:67