ATLAS Offline Software
JetConstituentFiller.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // JetConstituentFiller.h
6 
7 #ifndef jet__JetConstituentFiller_H
8 #define jet__JetConstituentFiller_H
9 
10 // David Adams and Pierre-Antoine Delsart
11 // January 2014
12 //
13 // Utility that copies the pseudojet constituents to
14 // ATLAS jet constituents (including ghosts).
15 
16 #include <string>
17 #include <vector>
18 #include "xAODJet/Jet.h"
19 #include "JetEDM/PseudoJetVector.h"
20 
21 namespace xAOD {
22  class IParticle;
23 }
24 
25 namespace jet {
26 
28 
29 public :
30 
31  JetConstituentFiller(bool isTrig=false) :m_isTrigger(isTrig){}
32 
33  typedef std::vector<std::string> NameList;
34 
41  int extractConstituents(xAOD::Jet& jet, const NameList* pghostlabs,
42  const fastjet::PseudoJet* ppj =0);
43 
50  int extractConstituents(xAOD::Jet& jet, const fastjet::PseudoJet* ppj =0);
51 
54  static PseudoJetVector constituentPseudoJets(const xAOD::Jet& jet, bool ignoreGhosts=true, bool requireJetStructure=false);
55 
56  protected:
58 
59 };
60 
61 } // end jet namespace
62 
63 #endif
Jet.h
PseudoJetVector.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
jet::JetConstituentFiller::extractConstituents
int extractConstituents(xAOD::Jet &jet, const NameList *pghostlabs, const fastjet::PseudoJet *ppj=0)
Build and fill constituents of jet from its PseudoJet (or from ppj) Returns the number of pseudojet c...
Definition: JetConstituentFiller.cxx:41
jet::PseudoJetVector
std::vector< fastjet::PseudoJet > PseudoJetVector
Definition: PseudoJetVector.h:21
jet::JetConstituentFiller::m_isTrigger
bool m_isTrigger
Definition: JetConstituentFiller.h:57
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::JetConstituentFiller::JetConstituentFiller
JetConstituentFiller(bool isTrig=false)
Definition: JetConstituentFiller.h:31
jet::JetConstituentFiller::constituentPseudoJets
static PseudoJetVector constituentPseudoJets(const xAOD::Jet &jet, bool ignoreGhosts=true, bool requireJetStructure=false)
Returns the jet's constituents as a vector of PseudoJet if ignoreGhosts==true, ghost constituents are...
Definition: JetConstituentFiller.cxx:164
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
jet::JetConstituentFiller
Definition: JetConstituentFiller.h:27
jet::JetConstituentFiller::NameList
std::vector< std::string > NameList
Definition: JetConstituentFiller.h:33
IParticle
Definition: Event/EventKernel/EventKernel/IParticle.h:43