![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
51 TLorentzVector t_before, t_after, t_after_SC;
54 TLorentzVector WpDecay1;
55 TLorentzVector WpDecay2;
60 Wp,
b, WpDecay1, WpDecay1_pdgId,
61 WpDecay2, WpDecay2_pdgId);
65 WpDecay1_pdgId, WpDecay2, WpDecay2_pdgId);
70 if (event_top || event_topbar) {
73 fillEtaBranch(ThqPartonHistory,
"MC_t_beforeFSR_eta", t_before);
76 fillEtaBranch(ThqPartonHistory,
"MC_t_afterFSR_eta", t_after);
78 if (event_top_SC || event_topbar_SC) {
80 fillEtaBranch(ThqPartonHistory,
"MC_t_afterFSR_SC_eta", t_after_SC);
90 ThqPartonHistory->
auxdecor<
int >(
"MC_Wdecay1_from_t_pdgId") = WpDecay1_pdgId;
91 fillEtaBranch(ThqPartonHistory,
"MC_Wdecay1_from_t_eta", WpDecay1);
94 ThqPartonHistory->
auxdecor<
int >(
"MC_Wdecay2_from_t_pdgId") = WpDecay2_pdgId;
95 fillEtaBranch(ThqPartonHistory,
"MC_Wdecay2_from_t_eta", WpDecay2);
145 if(
m_config->getDerivationStream() ==
"PHYS")
148 std::vector<std::string> collections = {
"TruthTop",
"TruthBosonsWithDecayParticles",
"HardScatterParticles"};
165 partonCont->setStore(partonAuxCont);
174 std::string outputSGKey =
m_config->sgKeyTopPartonHistory();
175 std::string outputSGKeyAux = outputSGKey +
"Aux.";
179 if (!
save || !saveAux) {
180 return StatusCode::FAILURE;
183 return StatusCode::SUCCESS;
int decay2_from_decay1_pdgId
def retrieve(aClass, aKey=None)
int tau_decay2_isHadronic
int tau_decay1_isHadronic
int decay2_from_decay2_pdgId
StatusCode buildContainerFromMultipleCollections(const std::vector< std::string > &collections, const std::string &out_contName)
used to build container from multiple collections in DAOD_PHYS we don't have the TruthParticles colle...
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
TopConfig A simple configuration that is NOT a singleton.
StatusCode linkBosonCollections()
currently in DAOD_PHYS TruthTop have links to Ws from the TruthBoson collection, which have no link t...
struct top::CalcThqPartonHistory::tH_values tH
int decay2_from_decay1_pdgId
int tau_decay1_isHadronic
TLorentzVector decay1_from_decay1_vector
subsequent decays of W/Z
int tau_decay2_isHadronic
TLorentzVector decay1_from_decay2_vector
TLorentzVector decay1_from_decay2_p4
int decay2_from_decay2_pdgId
TLorentzVector decay2_from_decay2_p4
int tau_decay1_from_decay2_isHadronic
Decorator< T, ALLOC >::reference_type auxdecor(const std::string &name) const
Fetch an aux decoration, as a non-const reference.
std::shared_ptr< top::TopConfig > m_config
bool HiggsAndDecay(const xAOD::TruthParticleContainer *truthParticles)
Store the four-momentum of several particles in the Higgs decay chain.
virtual StatusCode execute()
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
def save(self, fileName="./columbo.out")
bool b(const xAOD::TruthParticleContainer *truthParticles, TLorentzVector &b_beforeFSR, TLorentzVector &b_afterFSR)
Store the four-momentum of b (not from tops_ before and after FSR.
TLorentzVector decay2_from_decay2_vector
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
int tau_decay1_from_decay1_isHadronic
int tau_decay1_from_decay1_isHadronic
bool topAfterFSR_SC(const xAOD::TruthParticleContainer *truthParticles, int start, TLorentzVector &top_afterFSR_SC_p4)
Store the four-momentum of the post-FSR top or anti-top found using statusCodes This would only work ...
TLorentzVector decay2_from_decay1_vector
int decay1_from_decay1_pdgId
HiggsDecay AnalyzeHiggsDecay(const xAOD::TruthParticle *higgs)
Store higgs decay information.
int tau_decay1_from_decay2_isHadronic
int decay1_from_decay1_pdgId
int tau_decay2_from_decay2_isHadronic
value_type push_back(value_type pElem)
Add an element to the end of the collection.
CalcThqPartonHistory(const std::string &name)
void THHistorySaver(const xAOD::TruthParticleContainer *truthParticles, xAOD::PartonHistory *ThqPartonHistory)
int tau_decay2_from_decay2_isHadronic
TLorentzVector decay2_vector
int decay1_from_decay2_pdgId
TLorentzVector decay2_from_decay1_p4
bool topWb(const xAOD::TruthParticleContainer *truthParticles, int start, TLorentzVector &t_beforeFSR_p4, TLorentzVector &t_afterFSR_p4, TLorentzVector &W_p4, TLorentzVector &b_p4, TLorentzVector &Wdecay1_p4, int &Wdecay1_pdgId, TLorentzVector &Wdecay2_p4, int &Wdecay2_pdgId)
Store the four-momentum of several particles in the top decay chain.
int tau_decay2_from_decay1_isHadronic
void fillEtaBranch(xAOD::PartonHistory *partonHistory, std::string branchName, TLorentzVector &tlv)
int decay1_from_decay2_pdgId
int tau_decay2_from_decay1_isHadronic
TLorentzVector decay1_vector
direct higgs decay
TLorentzVector decay1_from_decay1_p4
void decorateWithMPtPhi(xAOD::PartonHistory *pHistory, const std::string &prefix, const TLorentzVector &vec)
Perform decoration M, Pt, Phi of the history from a TLorentzVector.