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

#include <TruthDressingTool.h>

Inheritance diagram for DerivationFramework::TruthDressingTool:
Collaboration diagram for DerivationFramework::TruthDressingTool:

Public Member Functions

 TruthDressingTool (const std::string &t, const std::string &n, const IInterface *p)
 
 ~TruthDressingTool ()
 
virtual StatusCode initialize () override final
 
virtual StatusCode addBranches (const EventContext &ctx) const override final
 

Private Attributes

SG::ReadHandleKey< xAOD::TruthParticleContainerm_particlesKey {this, "particlesKey", "TruthParticles", "ReadHandleKey for TruthParticles for photon list input"}
 ReadHandleKey input collection key. More...
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorationKey {this, "decorationName", m_particlesKey, "unusedPhotonDecoration", "Name of the decoration for photons that were used in dressing"}
 WriteDecorHandleKeys for decorations for particlesKey. More...
 
SG::ReadHandleKey< xAOD::TruthParticleContainerm_dressParticlesKey {this, "dressParticlesKey", "", "ReadHandleKey for input particles to be dressed. If taus are selected, everything in this input key will be used"}
 ReadHandleKey for particles to be dressed. More...
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_eKey {this, "e_dressed", m_dressParticlesKey, "e_dressed", "e_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_ptKey {this, "pt_dressed", m_dressParticlesKey, "pt_dressed", "pt_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_etaKey {this, "eta_dressed", m_dressParticlesKey, "eta_dressed", "eta_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_phiKey {this, "phi_dressed", m_dressParticlesKey, "phi_dressed", "phi_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_pt_visKey {this, "pt_vis_dressed", m_dressParticlesKey, "pt_vis_dressed", "pt_vis_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_eta_visKey {this, "eta_vis_dressed", m_dressParticlesKey, "eta_vis_dressed", "eta_vis_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_phi_visKey {this, "phi_vis_dressed", m_dressParticlesKey, "phi_vis_dressed", "phi_vis_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_m_visKey {this, "m_vis_dressed", m_dressParticlesKey, "m_vis_dressed", "m_vis_dressed decoration"}
 
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_decorator_nphotonKey {this, "nPhotons_dressed", m_dressParticlesKey, "nPhotons_dressed", "nPhotons_dressed decoration"}
 
SG::ReadDecorHandleKey< xAOD::TruthParticleContainerm_truthClassKey {this, "truthClassifierKey", m_dressParticlesKey, "Classification"}
 To ensure that the algorithm is scheduled after the truth classifier. More...
 
Gaudi::Property< bool > m_usePhotonsFromHadrons {this, "usePhotonsFromHadrons", false, "Add photons coming from hadron decays while dressing"}
 Parameter: Use photons from hadron decays? More...
 
Gaudi::Property< bool > m_useLeptonsFromHadrons {this, "useLeptonsFromHadrons", false, "Consider leptons coming from hadron decays?"}
 Parameter: Use leptons from hadron decays? More...
 
Gaudi::Property< float > m_coneSize {this, "dressingConeSize", 0.1, "Size of dR cone in which to include FSR photons in dressing"}
 Parameter: Cone size for dressing. More...
 
Gaudi::Property< std::vector< int > > m_listOfPIDs {this, "particleIDsToDress", {11,13}, "List of the pdgID's of particles to be dressed (usually 11,13). Special treatment for taus (15)"}
 Parameter: List of pdgIDs of particles to dress. More...
 
Gaudi::Property< bool > m_useAntiKt {this, "useAntiKt", false, "use anti-k_T instead of fixed-cone dressing"}
 Parameter: Use antikT algorithm for dressing? More...
 
Gaudi::Property< bool > m_decoratePhotons {this, "decoratePhotons", true, "Do we want to decorate the photons used for dressing?"}
 Parameter: Do we want to decorate the photons used for dressing? More...
 

Detailed Description

Definition at line 22 of file TruthDressingTool.h.

Constructor & Destructor Documentation

◆ TruthDressingTool()

DerivationFramework::TruthDressingTool::TruthDressingTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 31 of file TruthDressingTool.cxx.

34  : base_class(t,n,p)
35 {
36 }

◆ ~TruthDressingTool()

DerivationFramework::TruthDressingTool::~TruthDressingTool ( )

Definition at line 39 of file TruthDressingTool.cxx.

39  {
40 }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::TruthDressingTool::addBranches ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 74 of file TruthDressingTool.cxx.

75 {
76  // Get the event context
77 
78  // Retrieve the truth collections
80  if (!truthParticles.isValid()) {
81  ATH_MSG_ERROR("Couldn't retrieve TruthParticle collection with name " << m_particlesKey);
82  return StatusCode::FAILURE;
83  }
84 
86  if (!dressTruthParticles.isValid()) {
87  ATH_MSG_ERROR("Couldn't retrieve TruthParticle collection with name " << m_dressParticlesKey);
88  return StatusCode::FAILURE;
89  }
90 
91  // Decorators
96  // for truth taus, use 'vis' in the decoration name to avoid prompt/visible tau momentum ambiguity
97  // use (pt,eta,phi,m) for taus, for consistency with other TauAnalysisTools decorations
104  // If we want to decorate, then we need to decorate everything with false to begin with
105  if (m_decoratePhotons){
106  for (const auto * particle : *truthParticles){
107  dressDec(*particle) = 0;
108  }
109  } // We are using the decoration
110 
111  // accessors for truth tau visible momentum
112  static const SG::ConstAccessor<double> pt_visAcc("pt_vis");
113  static const SG::ConstAccessor<double> eta_visAcc("eta_vis");
114  static const SG::ConstAccessor<double> phi_visAcc("phi_vis");
115  static const SG::ConstAccessor<double> mvisAcc("m_vis");
116 
117  //get struct of helper functions
119 
120  std::vector<const xAOD::TruthParticle*> listOfParticlesToDress;
121  std::vector<xAOD::TruthParticle::FourMom_t> listOfDressedP4;
122  std::vector<xAOD::TruthParticle::FourMom_t> listOfBareP4;
123 
124  if (m_listOfPIDs.size()==1 && std::abs(m_listOfPIDs[0])==MC::TAU) {
125  // when dressing truth taus, it is assumed that the truth tau container has been built beforehand and is used as input
126  for (auto *pItr : *dressTruthParticles) {
127  if (!pItr->isTau()) {
128  ATH_MSG_ERROR("Input particles should be truth taus.");
129  return StatusCode::FAILURE;
130  }
131  if (!pt_visAcc.isAvailable(*pItr) || !eta_visAcc.isAvailable(*pItr) || !phi_visAcc.isAvailable(*pItr) || !mvisAcc.isAvailable(*pItr)) {
132  ATH_MSG_ERROR("Visible momentum not available for truth taus, cannot perform dressing!");
133  return StatusCode::FAILURE;
134  }
135 
136  listOfParticlesToDress.push_back(pItr);
137 
138  // we dresss the visible 4-momentum
140  bare_part.SetPtEtaPhiM(pt_visAcc(*pItr), eta_visAcc(*pItr), phi_visAcc(*pItr), mvisAcc(*pItr));
141  listOfDressedP4.push_back(bare_part);
142  }
143  // in the cone-based approach, make a copy of bare P4 to avoid recomputing it
144  if (!m_useAntiKt) {
145  listOfBareP4 = listOfDressedP4;
146  }
147  }
148  else {
149  // non-prompt particles are still included here to ensure all particles
150  // will get the decoration; however further down only the prompt particles
151  // are actually dressed depending on the value of m_useLeptonsFromHadrons
152  decayHelper.constructListOfFinalParticles(dressTruthParticles.ptr(), listOfParticlesToDress, m_listOfPIDs, true);
153 
154  for (const auto* part : listOfParticlesToDress) {
155  listOfDressedP4.push_back(part->p4());
156  }
157  }
158 
159  std::vector<int> dressedParticlesNPhot(listOfParticlesToDress.size(), 0);
160 
161  //fill the photon list
162  std::vector<const xAOD::TruthParticle*> photonsFSRList;
163  std::vector<int> photonPID{22};
164  const bool pass = decayHelper.constructListOfFinalParticles(truthParticles.ptr(), photonsFSRList,
165  photonPID, m_usePhotonsFromHadrons);
166  if (!pass) {
167  ATH_MSG_WARNING("Cannot construct the list of final state particles "<<m_truthClassKey.fullKey());
168  }
169 
170  // Do dR-based photon dressing (default)
171  if (!m_useAntiKt){
172  //loop over photons, uniquely associate each to nearest bare particle
173  for (const auto* phot : photonsFSRList) {
174  double dRmin = m_coneSize;
175  int idx = -1;
176 
177  for (size_t i = 0; i < listOfParticlesToDress.size(); ++i) {
179  if (!acc_origin.isAvailable(*listOfParticlesToDress[i])) {
180  ATH_MSG_WARNING("MCTruthClassifier "<<m_truthClassKey.fullKey() <<" not available, cannot apply notFromHadron veto!");
181  }
182  unsigned int result = acc_origin(*listOfParticlesToDress[i]);
183  const bool isPrompt = MCTruthPartClassifier::isPrompt(result, true);
184  if (!isPrompt) continue;
185  }
187  if (listOfParticlesToDress[i]->isTau()) {
188  bare_part = listOfBareP4[i];
189  }
190  else {
191  bare_part = listOfParticlesToDress[i]->p4();
192  }
193 
194  double dR = bare_part.DeltaR(phot->p4());
195  if (dR < dRmin) {
196  dRmin = dR;
197  idx = i;
198  }
199  }
200 
201  if(idx > -1) {
202  listOfDressedP4[idx] += phot->p4();
203  dressedParticlesNPhot[idx]++;
204  if (m_decoratePhotons){
205  dressDec(*phot) = 1;
206  }
207  }
208  }
209 
210  //loop over particles and add decorations
211  for (size_t i = 0; i < listOfParticlesToDress.size(); ++i) {
212  const xAOD::TruthParticle* part = listOfParticlesToDress[i];
213  const xAOD::TruthParticle::FourMom_t& dressedVec = listOfDressedP4[i];
214 
215  if(part->isTau()) {
216  decorator_pt_vis(*part) = dressedVec.Pt();
217  decorator_eta_vis(*part) = dressedVec.Eta();
218  decorator_phi_vis(*part) = dressedVec.Phi();
219  decorator_m_vis(*part) = dressedVec.M();
220  }
221  else {
222  decorator_e(*part) = dressedVec.E();
223  decorator_pt(*part) = dressedVec.Pt();
224  decorator_eta(*part) = dressedVec.Eta();
225  decorator_phi(*part) = dressedVec.Phi();
226  }
227  decorator_nphoton(*part) = dressedParticlesNPhot[i];
228  }
229  } // end of the dR matching part
230 
231  //build the anti-kt jet list
232  if (m_useAntiKt) {
233  std::vector<fastjet::PseudoJet> sorted_jets;
234  std::vector<fastjet::PseudoJet> fj_particles;
235  for (const auto* part : listOfParticlesToDress) {
236  if(part->isTau()) {
237  const xAOD::TruthParticle::FourMom_t& tauvis = listOfDressedP4[part->index()];
238  fj_particles.emplace_back(tauvis.Px(), tauvis.Py(), tauvis.Pz(), tauvis.E());
239  }
240  else {
241  fj_particles.emplace_back(part->px(), part->py(), part->pz(), part->e());
242  }
243 
244  fj_particles.back().set_user_index(HepMC::uniqueID(part));
245  }
246  for (const auto* part : photonsFSRList) {
247  fj_particles.emplace_back(part->px(), part->py(), part->pz(), part->e());
248  fj_particles.back().set_user_index(HepMC::uniqueID(part));
249  }
250 
251  //run the clustering
252  fastjet::JetAlgorithm alg=fastjet::antikt_algorithm;
253  const fastjet::JetDefinition jet_def(alg, m_coneSize);
254  fastjet::ClusterSequence cseq(fj_particles, jet_def);
255  sorted_jets = sorted_by_pt(cseq.inclusive_jets(0));
256  //associate clustered jets back to bare particles
257  std::vector<int> photon_uniqueIDs(50);
258  photon_uniqueIDs.clear();
259  for (const auto* part : listOfParticlesToDress) {
260  //loop over fastjet pseudojets and associate one with this particle
261  bool found=false;
262  auto pjItr=sorted_jets.begin();
263  while(!found && pjItr!=sorted_jets.end()) {
264  std::vector<fastjet::PseudoJet> constituents = pjItr->constituents();
265  for(const auto& constit : constituents) {
266  if (HepMC::uniqueID(part)==constit.user_index()) {
267 
268  // shall we count the number of photons among the pseudojet constituents
269  // to decorate leptons with the number of dressing photons found by the anti-kt algorithm?
270 
271  if(part->isTau()) {
272  decorator_pt_vis(*part) = pjItr->pt();
273  decorator_eta_vis(*part) = pjItr->pseudorapidity();
274  decorator_phi_vis(*part) = pjItr->phi_std(); //returns phi in [-pi,pi]
275  decorator_m_vis(*part) = pjItr->m();
276  }
277  else {
278  decorator_e(*part) = pjItr->e();
279  decorator_pt(*part) = pjItr->pt();
280  decorator_eta(*part) = pjItr->pseudorapidity();
281  decorator_phi(*part) = pjItr->phi_std(); //returns phi in [-pi,pi]
282  }
283  found=true;
284  break;
285  } // Found the matching unique ID
286  } // Loop over the jet constituents
287  if (found){
288  for(const auto& constit : constituents) {
289  photon_uniqueIDs.push_back(constit.user_index());
290  } // Loop over the constituents
291  } // Found one of the key leptons in this jet
292  ++pjItr;
293  }
294  if (!found) {
295  if(part->isTau()) {
296  decorator_pt_vis(*part) = 0.;
297  decorator_eta_vis(*part) = 0.;
298  decorator_phi_vis(*part) = 0.;
299  decorator_m_vis(*part) = 0.;
300  }
301  else {
302  decorator_e(*part) = 0;
303  decorator_pt(*part) = 0;
304  decorator_eta(*part) = 0;
305  decorator_phi(*part) = 0;
306  }
307  ATH_MSG_WARNING("Bare particle not found in constituents ");
308  }
309  }
310  // Check if we wanted to decorate photons used for dressing
311  if (m_decoratePhotons){
312  //loop over photons, uniquely associate each to nearest bare particle
313  for (const auto* phot : photonsFSRList ) {
314  bool found = std::find(photon_uniqueIDs.begin(), photon_uniqueIDs.end(), HepMC::uniqueID(phot)) != photon_uniqueIDs.end();
315  if (found) {
316  dressDec(*phot) = 1;
317  }
318  } // End of loop over photons
319  } // End of decoration of photons used in dressing
320  } // End of anti-kT dressing
321 
322  return StatusCode::SUCCESS;
323 }

◆ initialize()

StatusCode DerivationFramework::TruthDressingTool::initialize ( )
finaloverridevirtual

Definition at line 43 of file TruthDressingTool.cxx.

44 {
45  // Initialise handle keys
48 
59 
61 
62  // ensure we are not mixing truth taus with other truth particles
63  if (m_listOfPIDs.size() > 1) {
64  if (std::find(m_listOfPIDs.begin(), m_listOfPIDs.end(), MC::TAU) != m_listOfPIDs.end()) {
65  ATH_MSG_ERROR("Truth taus must be dressed separately from other truth particles");
66  return StatusCode::FAILURE;
67  }
68  }
69 
70  return StatusCode::SUCCESS;
71 }

Member Data Documentation

◆ m_coneSize

Gaudi::Property<float> DerivationFramework::TruthDressingTool::m_coneSize {this, "dressingConeSize", 0.1, "Size of dR cone in which to include FSR photons in dressing"}
private

Parameter: Cone size for dressing.

Definition at line 68 of file TruthDressingTool.h.

◆ m_decoratePhotons

Gaudi::Property<bool> DerivationFramework::TruthDressingTool::m_decoratePhotons {this, "decoratePhotons", true, "Do we want to decorate the photons used for dressing?"}
private

Parameter: Do we want to decorate the photons used for dressing?

Definition at line 77 of file TruthDressingTool.h.

◆ m_decorationKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorationKey {this, "decorationName", m_particlesKey, "unusedPhotonDecoration", "Name of the decoration for photons that were used in dressing"}
private

WriteDecorHandleKeys for decorations for particlesKey.

Definition at line 34 of file TruthDressingTool.h.

◆ m_decorator_eKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_eKey {this, "e_dressed", m_dressParticlesKey, "e_dressed", "e_dressed decoration"}
private

Definition at line 40 of file TruthDressingTool.h.

◆ m_decorator_eta_visKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_eta_visKey {this, "eta_vis_dressed", m_dressParticlesKey, "eta_vis_dressed", "eta_vis_dressed decoration"}
private

Definition at line 50 of file TruthDressingTool.h.

◆ m_decorator_etaKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_etaKey {this, "eta_dressed", m_dressParticlesKey, "eta_dressed", "eta_dressed decoration"}
private

Definition at line 44 of file TruthDressingTool.h.

◆ m_decorator_m_visKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_m_visKey {this, "m_vis_dressed", m_dressParticlesKey, "m_vis_dressed", "m_vis_dressed decoration"}
private

Definition at line 54 of file TruthDressingTool.h.

◆ m_decorator_nphotonKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_nphotonKey {this, "nPhotons_dressed", m_dressParticlesKey, "nPhotons_dressed", "nPhotons_dressed decoration"}
private

Definition at line 56 of file TruthDressingTool.h.

◆ m_decorator_phi_visKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_phi_visKey {this, "phi_vis_dressed", m_dressParticlesKey, "phi_vis_dressed", "phi_vis_dressed decoration"}
private

Definition at line 52 of file TruthDressingTool.h.

◆ m_decorator_phiKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_phiKey {this, "phi_dressed", m_dressParticlesKey, "phi_dressed", "phi_dressed decoration"}
private

Definition at line 46 of file TruthDressingTool.h.

◆ m_decorator_pt_visKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_pt_visKey {this, "pt_vis_dressed", m_dressParticlesKey, "pt_vis_dressed", "pt_vis_dressed decoration"}
private

Definition at line 48 of file TruthDressingTool.h.

◆ m_decorator_ptKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_decorator_ptKey {this, "pt_dressed", m_dressParticlesKey, "pt_dressed", "pt_dressed decoration"}
private

Definition at line 42 of file TruthDressingTool.h.

◆ m_dressParticlesKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_dressParticlesKey {this, "dressParticlesKey", "", "ReadHandleKey for input particles to be dressed. If taus are selected, everything in this input key will be used"}
private

ReadHandleKey for particles to be dressed.

Definition at line 37 of file TruthDressingTool.h.

◆ m_listOfPIDs

Gaudi::Property< std::vector<int> > DerivationFramework::TruthDressingTool::m_listOfPIDs {this, "particleIDsToDress", {11,13}, "List of the pdgID's of particles to be dressed (usually 11,13). Special treatment for taus (15)"}
private

Parameter: List of pdgIDs of particles to dress.

Definition at line 71 of file TruthDressingTool.h.

◆ m_particlesKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_particlesKey {this, "particlesKey", "TruthParticles", "ReadHandleKey for TruthParticles for photon list input"}
private

ReadHandleKey input collection key.

Definition at line 31 of file TruthDressingTool.h.

◆ m_truthClassKey

SG::ReadDecorHandleKey<xAOD::TruthParticleContainer> DerivationFramework::TruthDressingTool::m_truthClassKey {this, "truthClassifierKey", m_dressParticlesKey, "Classification"}
private

To ensure that the algorithm is scheduled after the truth classifier.

Definition at line 59 of file TruthDressingTool.h.

◆ m_useAntiKt

Gaudi::Property<bool> DerivationFramework::TruthDressingTool::m_useAntiKt {this, "useAntiKt", false, "use anti-k_T instead of fixed-cone dressing"}
private

Parameter: Use antikT algorithm for dressing?

Definition at line 74 of file TruthDressingTool.h.

◆ m_useLeptonsFromHadrons

Gaudi::Property<bool> DerivationFramework::TruthDressingTool::m_useLeptonsFromHadrons {this, "useLeptonsFromHadrons", false, "Consider leptons coming from hadron decays?"}
private

Parameter: Use leptons from hadron decays?

Definition at line 65 of file TruthDressingTool.h.

◆ m_usePhotonsFromHadrons

Gaudi::Property<bool> DerivationFramework::TruthDressingTool::m_usePhotonsFromHadrons {this, "usePhotonsFromHadrons", false, "Add photons coming from hadron decays while dressing"}
private

Parameter: Use photons from hadron decays?

Definition at line 62 of file TruthDressingTool.h.


The documentation for this class was generated from the following files:
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
DerivationFramework::TruthDressingTool::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
ReadHandleKey input collection key.
Definition: TruthDressingTool.h:32
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:79
get_generator_info.result
result
Definition: get_generator_info.py:21
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
SG::ReadHandle< xAOD::TruthParticleContainer >
DerivationFramework::TruthDressingTool::m_useLeptonsFromHadrons
Gaudi::Property< bool > m_useLeptonsFromHadrons
Parameter: Use leptons from hadron decays?
Definition: TruthDressingTool.h:66
DerivationFramework::TruthDressingTool::m_listOfPIDs
Gaudi::Property< std::vector< int > > m_listOfPIDs
Parameter: List of pdgIDs of particles to dress.
Definition: TruthDressingTool.h:72
DerivationFramework::TruthDressingTool::m_decorator_nphotonKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_nphotonKey
Definition: TruthDressingTool.h:57
DerivationFramework::TruthDressingTool::m_dressParticlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_dressParticlesKey
ReadHandleKey for particles to be dressed.
Definition: TruthDressingTool.h:38
DerivationFramework::TruthDressingTool::m_coneSize
Gaudi::Property< float > m_coneSize
Parameter: Cone size for dressing.
Definition: TruthDressingTool.h:69
SG::ConstAccessor< double >
DerivationFramework::DecayGraphHelper::constructListOfFinalParticles
bool constructListOfFinalParticles(const xAOD::TruthParticleContainer *allParticles, std::vector< const xAOD::TruthParticle * > &selectedlist, const std::vector< int > &pdgId, bool allowFromHadron=false, bool chargedOnly=false) const
Definition: DecayGraphHelper.h:218
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::TruthDressingTool::m_decorator_m_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_m_visKey
Definition: TruthDressingTool.h:55
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
DerivationFramework::TruthDressingTool::m_decoratePhotons
Gaudi::Property< bool > m_decoratePhotons
Parameter: Do we want to decorate the photons used for dressing?
Definition: TruthDressingTool.h:78
DerivationFramework::TruthDressingTool::m_usePhotonsFromHadrons
Gaudi::Property< bool > m_usePhotonsFromHadrons
Parameter: Use photons from hadron decays?
Definition: TruthDressingTool.h:63
DerivationFramework::TruthDressingTool::m_decorator_phi_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phi_visKey
Definition: TruthDressingTool.h:53
jet::ClusterSequence
fastjet::ClusterSequence ClusterSequence
Definition: ClusterSequence.h:21
lumiFormat.i
int i
Definition: lumiFormat.py:85
SG::ReadDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
DerivationFramework::TruthDressingTool::m_decorator_phiKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_phiKey
Definition: TruthDressingTool.h:47
beamspotman.n
n
Definition: beamspotman.py:727
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:116
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::TruthDressingTool::m_truthClassKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthClassKey
To ensure that the algorithm is scheduled after the truth classifier.
Definition: TruthDressingTool.h:59
DerivationFramework::TruthDressingTool::m_useAntiKt
Gaudi::Property< bool > m_useAntiKt
Parameter: Use antikT algorithm for dressing?
Definition: TruthDressingTool.h:75
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
isTau
bool isTau(const T &p)
Definition: AtlasPID.h:205
DerivationFramework::TruthDressingTool::m_decorator_eta_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eta_visKey
Definition: TruthDressingTool.h:51
DerivationFramework::TruthDressingTool::m_decorator_etaKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_etaKey
Definition: TruthDressingTool.h:45
DerivationFramework::DecayGraphHelper
Definition: DecayGraphHelper.h:26
RegSelToolConfig.alg
alg
Definition: RegSelToolConfig.py:332
checkTriggerxAOD.found
found
Definition: checkTriggerxAOD.py:328
xAOD::JetAlgorithmType::antikt_algorithm
@ antikt_algorithm
Definition: JetContainerInfo.h:33
DerivationFramework::TruthDressingTool::m_decorationKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorationKey
WriteDecorHandleKeys for decorations for particlesKey.
Definition: TruthDressingTool.h:35
DerivationFramework::TruthDressingTool::m_decorator_ptKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_ptKey
Definition: TruthDressingTool.h:43
DerivationFramework::TruthDressingTool::m_decorator_eKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_eKey
Definition: TruthDressingTool.h:41
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
MCTruthPartClassifier::isPrompt
int isPrompt(const unsigned int classify, bool allow_prompt_tau_decays=true)
Definition: TruthClassifiers.h:180
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
DerivationFramework::TruthDressingTool::m_decorator_pt_visKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decorator_pt_visKey
Definition: TruthDressingTool.h:49
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:27
xAOD::TruthParticle_v1::FourMom_t
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition: TruthParticle_v1.h:142