CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
metsig::SignPFSpecificAlgo Class Reference

#include <SignPFSpecificAlgo.h>

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_.

10  :
11 resolutions_(0),
12 algo_()
13 {clusteredParticlePtrs_.clear();}
std::set< reco::PFCandidatePtr > clusteredParticlePtrs_
metsig::significanceAlgo algo_
metsig::SignAlgoResolutions * resolutions_
metsig::SignPFSpecificAlgo::~SignPFSpecificAlgo ( )

Definition at line 15 of file SignPFSpecificAlgo.cc.

15 {}

Member Function Documentation

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

Definition at line 37 of file SignPFSpecificAlgo.cc.

37  {
38  if(clusteredParticlePtrs_.find(pf) != clusteredParticlePtrs_.end()) return; //pf candidate already added in jet collection
39  std::vector<metsig::SigInputObj> vobj;
40  vobj.push_back(resolutions_->evalPF(&(*pf)));
41  algo_.addObjects(vobj);
42 }
const void addObjects(const std::vector< metsig::SigInputObj > &EventVec)
metsig::SigInputObj evalPF(const reco::PFCandidate *candidate) const
std::set< reco::PFCandidatePtr > clusteredParticlePtrs_
metsig::significanceAlgo algo_
metsig::SignAlgoResolutions * resolutions_
void metsig::SignPFSpecificAlgo::addPFJets ( edm::Handle< edm::View< reco::PFJet > >  PFJets)

Definition at line 24 of file SignPFSpecificAlgo.cc.

References i, and metsig::jet.

24  {
25  std::vector<metsig::SigInputObj> vobj;
26  for(edm::View<reco::PFJet>::const_iterator jet = PFJets->begin(); jet != PFJets->end(); ++jet){
27  vobj.push_back(resolutions_->evalPFJet(&(*jet)));
28  //save jet constituents
29  std::vector<reco::PFCandidatePtr> pfs = jet->getPFConstituents();
30  for(unsigned int i=0; i<pfs.size(); i++) clusteredParticlePtrs_.insert(pfs[i]);
31  }
32  algo_.addObjects(vobj);
33 }
const void addObjects(const std::vector< metsig::SigInputObj > &EventVec)
int i
Definition: DBlmapReader.cc:9
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
std::set< reco::PFCandidatePtr > clusteredParticlePtrs_
metsig::SigInputObj evalPFJet(const reco::PFJet *jet) const
metsig::significanceAlgo algo_
metsig::SignAlgoResolutions * resolutions_
TMatrixD metsig::SignPFSpecificAlgo::getSignifMatrix ( ) const
inline

Definition at line 27 of file SignPFSpecificAlgo.h.

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

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

Definition at line 18 of file SignPFSpecificAlgo.cc.

18  {
19  resolutions_ = resolutions;
20 }
metsig::SignAlgoResolutions * resolutions_

Member Data Documentation

metsig::significanceAlgo metsig::SignPFSpecificAlgo::algo_
private

Definition at line 33 of file SignPFSpecificAlgo.h.

Referenced by getSignifMatrix().

std::set<reco::PFCandidatePtr> metsig::SignPFSpecificAlgo::clusteredParticlePtrs_
private

Definition at line 32 of file SignPFSpecificAlgo.h.

Referenced by SignPFSpecificAlgo().

metsig::SignAlgoResolutions* metsig::SignPFSpecificAlgo::resolutions_
private

Definition at line 31 of file SignPFSpecificAlgo.h.