#include <FourMuonTool.h>
Definition at line 36 of file FourMuonTool.h.
◆ combinationCharges()
| std::string DerivationFramework::Combination::combinationCharges |
( |
| ) |
|
|
inline |
Definition at line 42 of file FourMuonTool.h.
42 {
43 std::string chargeStr = "";
44 if (
muons.at(0)->charge() > 0) {chargeStr +=
"+";}
45 else {chargeStr += "-";}
46 if (
muons.at(1)->charge() > 0) {chargeStr +=
"+";}
47 else {chargeStr += "-";}
48 if (
muons.size()==4) {
49 if (
muons.at(2)->charge() > 0) {chargeStr +=
"+";}
50 else {chargeStr += "-";}
51 if (
muons.at(3)->charge() > 0) {chargeStr +=
"+";}
52 else {chargeStr += "-";}
53 }
54 return chargeStr;
55 }
std::vector< const xAOD::Muon * > muons
◆ combinationIndices()
| std::string DerivationFramework::Combination::combinationIndices |
( |
| ) |
|
|
inline |
Definition at line 57 of file FourMuonTool.h.
57 {
58 std::string indexStr = "";
60 if (
muons.size()==2) {
61 ss.str(
"");
ss.clear();
64 ss.str(
"");
ss.clear();
67 }
68 if (
muons.size()==4) {
69 for (
unsigned int i=0;
i<4; ++
i) {
70 ss.str(
"");
ss.clear();
73 }
74 }
75 return indexStr;
76 }
std::vector< unsigned int > quadIndices
std::pair< unsigned int, unsigned int > pairIndices
◆ GetMuonTrack()
Definition at line 78 of file FourMuonTool.h.
78 {
79 auto& link =
mu->inDetTrackParticleLink();
80 return link.isValid() ? *link : nullptr;
81 }
◆ trackParticles()
| std::vector< const xAOD::TrackParticle * > DerivationFramework::Combination::trackParticles |
( |
const std::string & | specify | ) |
|
|
inline |
Definition at line 83 of file FourMuonTool.h.
83 {
84 std::vector<const xAOD::TrackParticle*> theTracks;
85 bool oppCh(false);
86 if (
muons.at(0)->charge()*
muons.at(1)->charge() < 0) oppCh=
true;
87 if (specify=="pair1") {
90 }
91 if (specify=="pair2") {
94 }
95 if (specify=="DC") {
96 if (oppCh) {
101 } else {
106 }
107 }
108 if (specify=="AC") {
113 }
114 if (specify=="SS") {
115 if (oppCh) {
120 } else {
125 }
126 }
127 return theTracks;
128 }
const xAOD::TrackParticle * GetMuonTrack(const xAOD::Muon *mu) const
◆ muons
| std::vector<const xAOD::Muon*> DerivationFramework::Combination::muons |
◆ pairIndices
| std::pair<unsigned int, unsigned int> DerivationFramework::Combination::pairIndices |
◆ quadIndices
| std::vector<unsigned int> DerivationFramework::Combination::quadIndices |
The documentation for this struct was generated from the following file: