CMS 3D CMS Logo

Public Member Functions | Private Attributes

metsig::SignPFSpecificAlgo Class Reference

#include <SignPFSpecificAlgo.h>

List of all members.

Public Member Functions

void addPFCandidate (reco::PFCandidatePtr pf)
void addPFJets (edm::Handle< edm::View< reco::PFJet > > PFJets)
TMatrixD getSignifMatrix () const
void setResolutions (metsig::SignAlgoResolutions *resolutions)
 SignPFSpecificAlgo ()
 ~SignPFSpecificAlgo ()

Private Attributes

metsig::significanceAlgo algo_
std::set< reco::PFCandidatePtrclusteredParticlePtrs_
metsig::SignAlgoResolutionsresolutions_

Detailed Description

Definition at line 17 of file SignPFSpecificAlgo.h.


Constructor & Destructor Documentation

metsig::SignPFSpecificAlgo::SignPFSpecificAlgo ( )

Definition at line 10 of file SignPFSpecificAlgo.cc.

References clusteredParticlePtrs_.

metsig::SignPFSpecificAlgo::~SignPFSpecificAlgo ( )

Definition at line 15 of file SignPFSpecificAlgo.cc.

{}

Member Function Documentation

void metsig::SignPFSpecificAlgo::addPFCandidate ( reco::PFCandidatePtr  pf)

Definition at line 37 of file SignPFSpecificAlgo.cc.

                                                             {
    if(clusteredParticlePtrs_.find(pf) != clusteredParticlePtrs_.end()) return; //pf candidate already added in jet collection
    std::vector<metsig::SigInputObj> vobj;
    vobj.push_back(resolutions_->evalPF(&(*pf)));
    algo_.addObjects(vobj);
}
void metsig::SignPFSpecificAlgo::addPFJets ( edm::Handle< edm::View< reco::PFJet > >  PFJets)

Definition at line 24 of file SignPFSpecificAlgo.cc.

References i, and metsig::jet.

                                                                        {
    std::vector<metsig::SigInputObj> vobj;
    for(edm::View<reco::PFJet>::const_iterator jet = PFJets->begin(); jet != PFJets->end(); ++jet){
        vobj.push_back(resolutions_->evalPFJet(&(*jet)));
        //save jet constituents
        std::vector<reco::PFCandidatePtr> pfs = jet->getPFConstituents();
        for(unsigned int i=0; i<pfs.size(); i++) clusteredParticlePtrs_.insert(pfs[i]);
    }
    algo_.addObjects(vobj);
}
TMatrixD metsig::SignPFSpecificAlgo::getSignifMatrix ( ) const [inline]

Definition at line 27 of file SignPFSpecificAlgo.h.

References algo_, and metsig::significanceAlgo::getSignifMatrix().

{return algo_.getSignifMatrix();}
void metsig::SignPFSpecificAlgo::setResolutions ( metsig::SignAlgoResolutions resolutions)

Definition at line 18 of file SignPFSpecificAlgo.cc.

                                                                                {
  resolutions_ = resolutions;
}

Member Data Documentation

Definition at line 33 of file SignPFSpecificAlgo.h.

Referenced by getSignifMatrix().

Definition at line 32 of file SignPFSpecificAlgo.h.

Referenced by SignPFSpecificAlgo().

Definition at line 31 of file SignPFSpecificAlgo.h.