TrackPseudoJetGetter.h 1.16 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// emacs : this file is -*- c++ -*-

/*
  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/

#ifndef JETRECTOOLS_TRACKPSEUDOJETGETTER_H
#define JETRECTOOLS_TRACKPSEUDOJETGETTER_H
////////////////////////////////////////////
/// \class TrackPseudoJetGetter
///
/// Specialized PseudoJetGetter for TrackParticle
///  The only thing done here is to specialize the templated append method and 
///  define a property for the TrackVertexAssociation
/// \author P-A Delsart
//////////////////////////////////////////////////

#include "JetRec/PseudoJetGetter.h"
#include "xAODTracking/TrackParticleContainer.h"


namespace jet{
  class TrackVertexAssociation;
}

class TrackPseudoJetGetter : public PseudoJetGetter {
  ASG_TOOL_CLASS(TrackPseudoJetGetter, IPseudoJetGetter)
public:
  TrackPseudoJetGetter(const std::string &name);

  virtual int appendTo(PseudoJetVector& psjs, const LabelIndex* pli) const;

protected:

  virtual jet::IConstituentUserInfo* buildCUI(const xAOD::IParticle* p, jet::IConstituentUserInfo::Index id, const LabelIndex* pli) const ;

  std::string m_trkVtxAssocName;
  mutable const jet::TrackVertexAssociation* m_trkVtxAssoc;
};

#endif