PFTauTagInfo

Macros

Line Code
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 42 43 44 45
#ifndef DataFormats_TauReco_PFTauTagInfo_h
#define DataFormats_TauReco_PFTauTagInfo_h

/* class PFTauTagInfo
 * the object of this class is created by RecoTauTag/RecoTau PFRecoTauTagInfoProducer EDProducer starting from JetTrackAssociations <a PFJet,a list of Tracks> object
 *                          is the initial object for building a PFTau object
 * created: Aug 29 2007,
 * revised: Sep 10 2007,
 * authors: Ludovic Houchu
 */

#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/JetReco/interface/JetCollection.h"
#include "DataFormats/TauReco/interface/PFTauTagInfoFwd.h"
#include "DataFormats/TauReco/interface/BaseTauTagInfo.h"

namespace reco {
  class PFTauTagInfo : public BaseTauTagInfo {
  public:
    PFTauTagInfo() {}
    ~PFTauTagInfo() override {}
    virtual PFTauTagInfo* clone() const;

    //get the PFCandidates which compose the PF jet and were filtered by RecoTauTag/TauTagTools/ TauTagTools::filteredPFChargedHadrCands(.,...), filteredPFNeutrHadrCands(.), filteredPFGammaCands(.) functions through RecoTauTag/RecoTauTag/ PFRecoTauTagInfoProducer EDProducer
    std::vector<reco::CandidatePtr> PFCands() const;
    const std::vector<reco::CandidatePtr>& PFChargedHadrCands() const;
    void setPFChargedHadrCands(const std::vector<reco::CandidatePtr>&);
    const std::vector<reco::CandidatePtr>& PFNeutrHadrCands() const;
    void setPFNeutrHadrCands(const std::vector<reco::CandidatePtr>&);
    const std::vector<reco::CandidatePtr>& PFGammaCands() const;
    void setPFGammaCands(const std::vector<reco::CandidatePtr>&);

    //the reference to the PFJet
    const JetBaseRef& pfjetRef() const;
    void setpfjetRef(const JetBaseRef);

  private:
    JetBaseRef PFJetRef_;
    std::vector<reco::CandidatePtr> PFChargedHadrCands_;
    std::vector<reco::CandidatePtr> PFNeutrHadrCands_;
    std::vector<reco::CandidatePtr> PFGammaCands_;
  };
}  // namespace reco
#endif