ATLAS Offline Software
PartonHistoryUtils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef ANALYSISTOP_TOPPARTONS_TOPPARTONUTILS_H
6 #define ANALYSISTOP_TOPPARTONS_TOPPARTONUTILS_H
7 
9 
10 #include "TLorentzVector.h"
11 #include <string>
12 
13 namespace xAOD{
14  class PartonHistory;
15 }
16 
17 namespace top {
18 namespace PartonHistoryUtils {
19 
20  struct HiggsDecay {
22  TLorentzVector decay1_vector;
24  TLorentzVector decay2_vector;
28 
30  TLorentzVector decay1_from_decay1_vector;
32  TLorentzVector decay2_from_decay1_vector;
34  TLorentzVector decay1_from_decay2_vector;
36  TLorentzVector decay2_from_decay2_vector;
42  };
43 
46 
49 
52 
55 
57  bool TauIsHadronic(const xAOD::TruthParticle* tau, bool &isOk);
58 
60  void
61  decorateWithMPtPhi(xAOD::PartonHistory* pHistory, const std::string & prefix, const TLorentzVector & vec );
62 }
63 }
64 
65 #endif
top::PartonHistoryUtils::HiggsDecay::tau_decay2_isHadronic
int tau_decay2_isHadronic
Definition: PartonHistoryUtils.h:27
top::PartonHistoryUtils::HiggsDecay::tau_decay1_isHadronic
int tau_decay1_isHadronic
Definition: PartonHistoryUtils.h:26
xAOD::PartonHistory
Interface class.
Definition: PartonHistory.h:48
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::PartonHistoryUtils::HiggsDecay::decay2_from_decay1_pdgId
int decay2_from_decay1_pdgId
Definition: PartonHistoryUtils.h:33
TruthParticleContainer.h
top::PartonHistoryUtils::HiggsDecay::decay1_from_decay1_vector
TLorentzVector decay1_from_decay1_vector
subsequent decays of W/Z
Definition: PartonHistoryUtils.h:30
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
top::PartonHistoryUtils::HiggsDecay::decay1_from_decay2_vector
TLorentzVector decay1_from_decay2_vector
Definition: PartonHistoryUtils.h:34
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
top::PartonHistoryUtils::HiggsDecay::decay2_from_decay2_pdgId
int decay2_from_decay2_pdgId
Definition: PartonHistoryUtils.h:37
top::PartonHistoryUtils::HiggsDecay::decay1_pdgId
int decay1_pdgId
Definition: PartonHistoryUtils.h:23
top::PartonHistoryUtils::findAfterFSR
const xAOD::TruthParticle * findAfterFSR(const xAOD::TruthParticle *particle)
Return particle after FSR (before the decay vertex)
Definition: PartonHistoryUtils.cxx:8
top::PartonHistoryUtils::TauIsHadronic
bool TauIsHadronic(const xAOD::TruthParticle *tau, bool &isOk)
Check if tau decays hadronically or not.
Definition: PartonHistoryUtils.cxx:119
top::PartonHistoryUtils::HiggsDecay::decay2_from_decay2_vector
TLorentzVector decay2_from_decay2_vector
Definition: PartonHistoryUtils.h:36
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
top::PartonHistoryUtils::HiggsDecay::tau_decay1_from_decay1_isHadronic
int tau_decay1_from_decay1_isHadronic
Definition: PartonHistoryUtils.h:38
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
top::PartonHistoryUtils::HiggsDecay::decay2_from_decay1_vector
TLorentzVector decay2_from_decay1_vector
Definition: PartonHistoryUtils.h:32
top::PartonHistoryUtils::HiggsDecay::decay1_from_decay1_pdgId
int decay1_from_decay1_pdgId
Definition: PartonHistoryUtils.h:31
top::PartonHistoryUtils::AnalyzeHiggsDecay
HiggsDecay AnalyzeHiggsDecay(const xAOD::TruthParticle *higgs)
Store higgs decay information.
Definition: PartonHistoryUtils.cxx:41
top::PartonHistoryUtils::HiggsDecay::tau_decay1_from_decay2_isHadronic
int tau_decay1_from_decay2_isHadronic
Definition: PartonHistoryUtils.h:40
top::PartonHistoryUtils::HiggsDecay::tau_decay2_from_decay2_isHadronic
int tau_decay2_from_decay2_isHadronic
Definition: PartonHistoryUtils.h:41
top::PartonHistoryUtils::HiggsDecay::decay2_vector
TLorentzVector decay2_vector
Definition: PartonHistoryUtils.h:24
top::PartonHistoryUtils::HiggsDecay
Definition: PartonHistoryUtils.h:20
top::PartonHistoryUtils::HiggsDecay::decay1_from_decay2_pdgId
int decay1_from_decay2_pdgId
Definition: PartonHistoryUtils.h:35
top::PartonHistoryUtils::findAfterGamma
const xAOD::TruthParticle * findAfterGamma(const xAOD::TruthParticle *particle)
handle gamma radiation of taus
top::PartonHistoryUtils::HiggsDecay::tau_decay2_from_decay1_isHadronic
int tau_decay2_from_decay1_isHadronic
Definition: PartonHistoryUtils.h:39
top::PartonHistoryUtils::HiggsDecay::decay2_pdgId
int decay2_pdgId
Definition: PartonHistoryUtils.h:25
top::PartonHistoryUtils::HiggsDecay::decay1_vector
TLorentzVector decay1_vector
direct higgs decay
Definition: PartonHistoryUtils.h:22
top::PartonHistoryUtils::hasParticleIdenticalParent
bool hasParticleIdenticalParent(const xAOD::TruthParticle *particle)
Return true when particle is a top before FSR.
Definition: PartonHistoryUtils.cxx:28
top::PartonHistoryUtils::decorateWithMPtPhi
void decorateWithMPtPhi(xAOD::PartonHistory *pHistory, const std::string &prefix, const TLorentzVector &vec)
Perform decoration M, Pt, Phi of the history from a TLorentzVector.
Definition: PartonHistoryUtils.cxx:187