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 Member Functions | Private Attributes
NoPileUpPFMEtDataProducer Class Reference

#include <NoPileUpPFMEtDataProducer.h>

Inheritance diagram for NoPileUpPFMEtDataProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 NoPileUpPFMEtDataProducer (const edm::ParameterSet &)
 
 ~NoPileUpPFMEtDataProducer ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &)
 

Private Attributes

double dZcut_
 
std::string jetEnOffsetCorrLabel_
 
PileupJetIdentifier::Id jetIdSelection_
 
PFJetIDSelectionFunctorlooseJetIdAlgo_
 
int maxWarnings_
 
double minJetPt_
 
double minJetPtForMEtCov_
 
std::string moduleLabel_
 
int numWarnings_
 
PFMEtSignInterfaceBasepfMEtSignInterface_
 
edm::EDGetTokenT
< reco::VertexCollection
srcHardScatterVertex_
 
edm::EDGetTokenT
< edm::ValueMap< int > > 
srcJetIds_
 
edm::EDGetTokenT
< reco::PFJetCollection
srcJets_
 
edm::EDGetTokenT
< reco::PFJetCollection
srcJetsForMEtCov_
 
edm::EDGetTokenT
< reco::PFCandidateCollection
srcPFCandidates_
 
edm::EDGetTokenT< edm::View
< reco::PFCandidate > > 
srcPFCandidatesView_
 
edm::EDGetTokenT
< PFCandToVertexAssMap
srcPFCandToVertexAssociations_
 
int verbosity_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Produce input objects used to compute MVA/No-PU MET

Authors
Phil Harris, CERN Christian Veelken, LLR

Definition at line 41 of file NoPileUpPFMEtDataProducer.h.

Constructor & Destructor Documentation

NoPileUpPFMEtDataProducer::NoPileUpPFMEtDataProducer ( const edm::ParameterSet cfg)

Definition at line 16 of file NoPileUpPFMEtDataProducer.cc.

References edm::ParameterSet::addParameter(), dZcut_, edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), jetEnOffsetCorrLabel_, jetIdSelection_, PileupJetIdentifier::kLoose, PileupJetIdentifier::kMedium, PileupJetIdentifier::kTight, looseJetIdAlgo_, maxWarnings_, minJetPt_, minJetPtForMEtCov_, numWarnings_, pfMEtSignInterface_, srcHardScatterVertex_, srcJetIds_, srcJets_, srcJetsForMEtCov_, srcPFCandidates_, srcPFCandidatesView_, srcPFCandToVertexAssociations_, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity_.

17  : moduleLabel_(cfg.getParameter<std::string>("@module_label")),
18  looseJetIdAlgo_(nullptr),
19  pfMEtSignInterface_(nullptr)
20 {
21  srcJets_ = consumes<reco::PFJetCollection>(cfg.getParameter<edm::InputTag>("srcJets"));
22  srcJetIds_ = consumes<edm::ValueMap<int> >(cfg.getParameter<edm::InputTag>("srcJetIds"));
23  minJetPt_ = cfg.getParameter<double>("minJetPt");
24  std::string jetIdSelection_string = cfg.getParameter<std::string>("jetIdSelection");
25  if ( jetIdSelection_string == "loose" ) jetIdSelection_ = PileupJetIdentifier::kLoose;
26  else if ( jetIdSelection_string == "medium" ) jetIdSelection_ = PileupJetIdentifier::kMedium;
27  else if ( jetIdSelection_string == "tight" ) jetIdSelection_ = PileupJetIdentifier::kTight;
28  else throw cms::Exception("NoPileUpPFMEtDataProducer")
29  << "Invalid Configuration Parameter 'jetIdSelection' = " << jetIdSelection_string << " !!\n";
30  jetEnOffsetCorrLabel_ = cfg.getParameter<std::string>("jetEnOffsetCorrLabel");
31 
32  srcPFCandidates_ = consumes<reco::PFCandidateCollection>(cfg.getParameter<edm::InputTag>("srcPFCandidates"));
33  srcPFCandidatesView_ = consumes<edm::View<reco::PFCandidate> >(cfg.getParameter<edm::InputTag>("srcPFCandidates"));
34  srcPFCandToVertexAssociations_ = consumes<PFCandToVertexAssMap>(cfg.getParameter<edm::InputTag>("srcPFCandToVertexAssociations"));
35  srcJetsForMEtCov_ = mayConsume<reco::PFJetCollection>(cfg.getParameter<edm::InputTag>("srcJetsForMEtCov"));
36  minJetPtForMEtCov_ = cfg.getParameter<double>("minJetPtForMEtCov");
37  srcHardScatterVertex_ = consumes<reco::VertexCollection>(cfg.getParameter<edm::InputTag>("srcHardScatterVertex"));
38  dZcut_ = cfg.getParameter<double>("dZcut");
39 
40  edm::ParameterSet cfgPFJetIdAlgo;
41  cfgPFJetIdAlgo.addParameter<std::string>("version", "FIRSTDATA");
42  cfgPFJetIdAlgo.addParameter<std::string>("quality", "LOOSE");
43  looseJetIdAlgo_ = new PFJetIDSelectionFunctor(cfgPFJetIdAlgo);
44 
46 
47  maxWarnings_ = ( cfg.exists("maxWarnings") ) ?
48  cfg.getParameter<int>("maxWarnings") : 1;
49  numWarnings_ = 0;
50 
51  verbosity_ = ( cfg.exists("verbosity") ) ?
52  cfg.getParameter<int>("verbosity") : 0;
53 
54  produces<reco::PUSubMETCandInfoCollection>("jetInfos");
55  produces<reco::PUSubMETCandInfoCollection>("pfCandInfos");
56 }
T getParameter(std::string const &) const
edm::EDGetTokenT< PFCandToVertexAssMap > srcPFCandToVertexAssociations_
bool exists(std::string const &parameterName) const
checks if a parameter exists
edm::EDGetTokenT< reco::PFJetCollection > srcJetsForMEtCov_
edm::EDGetTokenT< reco::VertexCollection > srcHardScatterVertex_
edm::EDGetTokenT< edm::View< reco::PFCandidate > > srcPFCandidatesView_
edm::EDGetTokenT< reco::PFCandidateCollection > srcPFCandidates_
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:143
edm::EDGetTokenT< reco::PFJetCollection > srcJets_
PFJetIDSelectionFunctor * looseJetIdAlgo_
PFMEtSignInterfaceBase * pfMEtSignInterface_
PF Jet selector for pat::Jets.
edm::EDGetTokenT< edm::ValueMap< int > > srcJetIds_
PileupJetIdentifier::Id jetIdSelection_
NoPileUpPFMEtDataProducer::~NoPileUpPFMEtDataProducer ( )

Definition at line 58 of file NoPileUpPFMEtDataProducer.cc.

References looseJetIdAlgo_, and pfMEtSignInterface_.

59 {
60  delete looseJetIdAlgo_;
61  delete pfMEtSignInterface_;
62 }
PFJetIDSelectionFunctor * looseJetIdAlgo_
PFMEtSignInterfaceBase * pfMEtSignInterface_

Member Function Documentation

void NoPileUpPFMEtDataProducer::produce ( edm::Event evt,
const edm::EventSetup es 
)
privatevirtual

Implements edm::stream::EDProducerBase.

Definition at line 121 of file NoPileUpPFMEtDataProducer.cc.

References PFMEtSignInterfaceBase::compResolution(), JetCorrector::correction(), funct::cos(), dZcut_, reco::LeafCandidate::energy(), edm::hlt::Exception, flag_isWithinFakeJet, flag_isWithinJetForMEtCov, flag_isWithinSelectedJet, edm::Ptr< T >::get(), metsig::SigInputObj::get_energy(), metsig::SigInputObj::get_phi(), metsig::SigInputObj::get_sigma_e(), metsig::SigInputObj::get_sigma_tan(), metsig::SigInputObj::get_type(), edm::Event::getByToken(), JetCorrector::getJetCorrector(), customizeTrackingMonitorSeedNumber::idx, edm::EDGetTokenT< T >::isUninitialized(), noPuUtils::isVertexAssociated_fast(), reco::PUSubMETCandInfo::isWithinJet(), metsig::jet, jetEnOffsetCorrLabel_, jetIdSelection_, fwrapper::jets, reco::PUSubMETCandInfo::kChHS, noPuUtils::kChHSAssoc, reco::PUSubMETCandInfo::kChPU, edm::Ptr< T >::key(), reco::PUSubMETCandInfo::kHS, reco::PUSubMETCandInfo::kNeutral, reco::PUSubMETCandInfo::kPU, LogDebug, maxWarnings_, minJetPt_, minJetPtForMEtCov_, moduleLabel_, numWarnings_, PileupJetIdentifier::passJetId(), reco::tau::pfCandidates(), pfMEtSignInterface_, edm::Event::put(), noPuUtils::reversePFCandToVertexAssociation(), metsig::SigInputObj::set(), reco::PUSubMETCandInfo::setCharge(), reco::PUSubMETCandInfo::setChargedEnFrac(), reco::PUSubMETCandInfo::setIsWithinJet(), reco::PUSubMETCandInfo::setMEtSignObj(), reco::PUSubMETCandInfo::setOffsetEnCorr(), reco::PUSubMETCandInfo::setP4(), reco::LeafCandidate::setP4(), reco::PUSubMETCandInfo::setPassesLooseJetId(), reco::PUSubMETCandInfo::setType(), funct::sin(), srcHardScatterVertex_, srcJetIds_, srcJets_, srcJetsForMEtCov_, srcPFCandidates_, srcPFCandidatesView_, and srcPFCandToVertexAssociations_.

122 {
123  LogDebug ("produce")
124  << "<NoPileUpPFMEtDataProducer::produce>:\n"
125  << " moduleLabel = " << moduleLabel_ << std::endl;
126 
127  // get jets
129  evt.getByToken(srcJets_, jets);
130 
131  typedef edm::ValueMap<int> jetIdMap;
132  edm::Handle<jetIdMap> jetIds;
133  evt.getByToken(srcJetIds_, jetIds);
134 
135  // get jets for computing contributions to PFMEt significance matrix
137  if ( ! srcJetsForMEtCov_.isUninitialized() ) evt.getByToken(srcJetsForMEtCov_, jetsForMEtCov);
138 
139  // get PFCandidates
141  evt.getByToken(srcPFCandidatesView_, pfCandidates);
142 
143  std::vector<int> pfCandidateFlags(pfCandidates->size());
144  std::vector<const reco::PFJet*> pfCandidateToJetAssociations(pfCandidates->size());
145 
147  evt.getByToken(srcPFCandidates_, pfCandidateHandle);
148 
149  // get PFCandidate-to-vertex associations and "the" hard-scatter vertex
150  edm::Handle<PFCandToVertexAssMap> pfCandToVertexAssociations;
151  evt.getByToken(srcPFCandToVertexAssociations_, pfCandToVertexAssociations);
152 
153  noPuUtils::reversedPFCandToVertexAssMap pfCandToVertexAssociations_reversed = noPuUtils::reversePFCandToVertexAssociation(*pfCandToVertexAssociations);
154 
155  edm::Handle<reco::VertexCollection> hardScatterVertex;
156  evt.getByToken(srcHardScatterVertex_, hardScatterVertex);
157 
158  std::auto_ptr<reco::PUSubMETCandInfoCollection> jetInfos(new reco::PUSubMETCandInfoCollection());
159  std::auto_ptr<reco::PUSubMETCandInfoCollection> pfCandInfos(new reco::PUSubMETCandInfoCollection());
160 
161  const JetCorrector* jetEnOffsetCorrector = nullptr;
162  if ( jetEnOffsetCorrLabel_ != "" ) {
163  jetEnOffsetCorrector = JetCorrector::getJetCorrector(jetEnOffsetCorrLabel_, es);
164  if ( !jetEnOffsetCorrector )
165  throw cms::Exception("NoPileUpPFMEtDataProducer::produce")
166  << "Failed to access Jet corrections for = " << jetEnOffsetCorrLabel_ << " !!\n";
167  }
168 
169  size_t numJets = jets->size();
170  for ( size_t iJet = 0; iJet < numJets; ++iJet ) {
171  reco::PFJetRef jet(jets, iJet);
172  if ( !(jet->pt() > minJetPt_) ) continue;
173 
174  bool passesLooseJetId = (*looseJetIdAlgo_)(*jet);
175  if ( !passesLooseJetId ) {
176  setPFCandidateFlag(*jet, *pfCandidates, pfCandidateFlags, flag_isWithinFakeJet, numWarnings_, maxWarnings_);
177  }
178  setPFCandidateFlag(*jet, *pfCandidates, pfCandidateFlags, flag_isWithinSelectedJet, numWarnings_, maxWarnings_);
179 
180  reco::PUSubMETCandInfo jetInfo;
181  jetInfo.setP4( jet->p4() );
182  int jetId = (*jetIds)[jet];
183  bool jetIdSelection_passed = PileupJetIdentifier::passJetId(jetId, jetIdSelection_);
184  jetInfo.setType( ( jetIdSelection_passed ) ?
186  jetInfo.setPassesLooseJetId( passesLooseJetId );
187  double jetEnergy_uncorrected =
188  jet->chargedHadronEnergy()
189  + jet->neutralHadronEnergy()
190  + jet->photonEnergy()
191  + jet->electronEnergy()
192  + jet->muonEnergy()
193  + jet->HFHadronEnergy()
194  + jet->HFEMEnergy();
195  double jetPx_uncorrected = cos(jet->phi())*sin(jet->theta())*jetEnergy_uncorrected;
196  double jetPy_uncorrected = sin(jet->phi())*sin(jet->theta())*jetEnergy_uncorrected;
197  double jetPz_uncorrected = cos(jet->theta())*jetEnergy_uncorrected;
198  reco::Candidate::LorentzVector rawJetP4(jetPx_uncorrected, jetPy_uncorrected, jetPz_uncorrected, jetEnergy_uncorrected);
199  reco::PFJet rawJet(*jet);
200  rawJet.setP4(rawJetP4);
201  double jetNeutralEnFrac = ( jetEnergy_uncorrected > 0. ) ?
202  (jet->neutralEmEnergy() + jet->neutralHadronEnergy())/jetEnergy_uncorrected : -1.;
203  jetInfo.setChargedEnFrac( (1-jetNeutralEnFrac) );
204  jetInfo.setOffsetEnCorr( ( jetEnOffsetCorrector ) ?
205  rawJet.energy()*(1. - jetEnOffsetCorrector->correction(rawJet, evt, es)) : 0.);
206  jetInfo.setMEtSignObj( pfMEtSignInterface_->compResolution(&(*jet)) );
207 
208  jetInfos->push_back(jetInfo);
209  }
210  LogDebug ("produce") << "#jetInfos = " << jetInfos->size() << std::endl;
211 
212  for ( reco::PFJetCollection::const_iterator jet = jets->begin();
213  jet != jets->end(); ++jet ) {
214  if ( jet->pt() > minJetPtForMEtCov_ ) {
215  setPFCandidateFlag(*jet, *pfCandidates, pfCandidateFlags, flag_isWithinJetForMEtCov, numWarnings_, maxWarnings_, &pfCandidateToJetAssociations);
216  }
217  }
218 
219  size_t numPFCandidates = pfCandidates->size();
220  for ( size_t iPFCandidate = 0; iPFCandidate < numPFCandidates; ++iPFCandidate ) {
221  reco::PFCandidatePtr pfCandidatePtr = pfCandidates->ptrAt(iPFCandidate);
222 
223  int idx = pfCandidatePtr.key();
224  reco::PUSubMETCandInfo pfCandInfo;
225  pfCandInfo.setP4( pfCandidatePtr->p4() );
226  pfCandInfo.setCharge( pfCandidatePtr->charge() );
227  pfCandInfo.setType( -1 );
228  // CV: need to call isVertexAssociated_fast instead of isVertexAssociated function
229  // (makes run-time of MVAPFMEtDataProducer::produce decrease from ~1s per event to ~0.35s per event)
230  //int vtxAssociationType = isVertexAssociated(*pfCandidatePtr, *pfCandToVertexAssociations, *hardScatterVertex, dZcut_);
231  reco::PFCandidateRef pfCandidateRef( pfCandidateHandle, iPFCandidate);
232  int vtxAssociationType = noPuUtils::isVertexAssociated_fast(pfCandidateRef, pfCandToVertexAssociations_reversed, *hardScatterVertex, dZcut_, numWarnings_, maxWarnings_);
233  bool isHardScatterVertex_associated = (vtxAssociationType == noPuUtils::kChHSAssoc);
234  if ( pfCandidatePtr->charge() == 0 ) pfCandInfo.setType( reco::PUSubMETCandInfo::kNeutral );
235  else if ( isHardScatterVertex_associated ) pfCandInfo.setType( reco::PUSubMETCandInfo::kChHS );
236  else pfCandInfo.setType( reco::PUSubMETCandInfo::kChPU );
237  pfCandInfo.setIsWithinJet( (pfCandidateFlags[idx] & flag_isWithinSelectedJet) );
238  if ( pfCandInfo.isWithinJet() ) pfCandInfo.setPassesLooseJetId( (pfCandidateFlags[idx] & flag_isWithinFakeJet) );
239  else pfCandInfo.setPassesLooseJetId( true );
240 
241  // CV: for PFCandidates that are within PFJets (of Pt between 'minJetPtForMEtCov' and 'minJetPt'),
242  // take contribution to PFMEt significance matrix from associated PFJet.
243  // (energy uncertainty scaled by ratio of PFCandidate/PFJet energy)
244  const reco::PFJet* jet_matched = pfCandidateToJetAssociations[idx];
245  if ( jet_matched ) {
246  metsig::SigInputObj pfCandResolution = pfMEtSignInterface_->compResolution(pfCandidatePtr.get());
247  metsig::SigInputObj jetResolution = pfMEtSignInterface_->compResolution(jet_matched);
248 
249  metsig::SigInputObj metSign;
250  metSign.set(pfCandResolution.get_type(),
251  pfCandResolution.get_energy(),
252  pfCandResolution.get_phi(),
253  jetResolution.get_sigma_e()*(pfCandidatePtr->energy()/jet_matched->energy()),
254  jetResolution.get_sigma_tan());
255  pfCandInfo.setMEtSignObj( metSign );
256  } else {
257  pfCandInfo.setMEtSignObj( pfMEtSignInterface_->compResolution(pfCandidatePtr.get()) );
258  }
259 
260  pfCandInfos->push_back(pfCandInfo);
261  }
262 
263  LogDebug ("produce") << "#pfCandInfos = " << pfCandInfos->size() << std::endl;
264 
265  evt.put(jetInfos,"jetInfos");
266  evt.put(pfCandInfos,"pfCandInfos");
267 }
#define LogDebug(id)
double get_sigma_tan() const
Definition: SigInputObj.h:46
edm::EDGetTokenT< PFCandToVertexAssMap > srcPFCandToVertexAssociations_
const int flag_isWithinSelectedJet
key_type key() const
Definition: Ptr.h:169
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
double get_phi() const
Definition: SigInputObj.h:44
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
T const * get() const
Returns C++ pointer to the item.
Definition: Ptr.h:143
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
void setP4(const reco::Candidate::LorentzVector p4)
Definition: PUSubMETData.h:50
edm::EDGetTokenT< reco::PFJetCollection > srcJetsForMEtCov_
const int flag_isWithinFakeJet
noPuUtils::reversedPFCandToVertexAssMap reversePFCandToVertexAssociation(const PFCandToVertexAssMap &)
edm::EDGetTokenT< reco::VertexCollection > srcHardScatterVertex_
Jets made from PFObjects.
Definition: PFJet.h:21
void set(const std::string &m_type, const double &m_energy, const double &m_phi, const double &m_sigma_e, const double &m_sigma_tan)
Definition: SigInputObj.h:48
edm::EDGetTokenT< edm::View< reco::PFCandidate > > srcPFCandidatesView_
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
virtual double energy() const
energy
static bool passJetId(int flag, Id level)
const int flag_isWithinJetForMEtCov
edm::EDGetTokenT< reco::PFCandidateCollection > srcPFCandidates_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:113
bool isWithinJet() const
Definition: PUSubMETData.h:41
vector< PseudoJet > jets
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
std::vector< reco::PUSubMETCandInfo > PUSubMETCandInfoCollection
void setIsWithinJet(bool isWJ)
Definition: PUSubMETData.h:57
edm::EDGetTokenT< reco::PFJetCollection > srcJets_
PFMEtSignInterfaceBase * pfMEtSignInterface_
void setPassesLooseJetId(float jetId)
Definition: PUSubMETData.h:58
void setCharge(int charge)
Definition: PUSubMETData.h:54
edm::EDGetTokenT< edm::ValueMap< int > > srcJetIds_
void setChargedEnFrac(float chEnF)
Definition: PUSubMETData.h:61
double get_energy() const
Definition: SigInputObj.h:43
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
Definition: JetCorrector.cc:50
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setType(int type)
Definition: PUSubMETData.h:53
int isVertexAssociated_fast(const reco::PFCandidateRef &, const noPuUtils::reversedPFCandToVertexAssMap &, const reco::VertexCollection &, double, int &, int)
PileupJetIdentifier::Id jetIdSelection_
bool isUninitialized() const
Definition: EDGetToken.h:71
std::string get_type() const
Definition: SigInputObj.h:42
metsig::SigInputObj compResolution(const T *particle) const
void setMEtSignObj(metsig::SigInputObj msig)
Definition: PUSubMETData.h:63
void setOffsetEnCorr(float offset)
Definition: PUSubMETData.h:59
double get_sigma_e() const
Definition: SigInputObj.h:45

Member Data Documentation

double NoPileUpPFMEtDataProducer::dZcut_
private

Definition at line 66 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

std::string NoPileUpPFMEtDataProducer::jetEnOffsetCorrLabel_
private

Definition at line 58 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

PileupJetIdentifier::Id NoPileUpPFMEtDataProducer::jetIdSelection_
private

Definition at line 57 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

PFJetIDSelectionFunctor* NoPileUpPFMEtDataProducer::looseJetIdAlgo_
private
int NoPileUpPFMEtDataProducer::maxWarnings_
private

Definition at line 72 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

double NoPileUpPFMEtDataProducer::minJetPt_
private

Definition at line 56 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

double NoPileUpPFMEtDataProducer::minJetPtForMEtCov_
private

Definition at line 64 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

std::string NoPileUpPFMEtDataProducer::moduleLabel_
private
int NoPileUpPFMEtDataProducer::numWarnings_
private

Definition at line 73 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

PFMEtSignInterfaceBase* NoPileUpPFMEtDataProducer::pfMEtSignInterface_
private
edm::EDGetTokenT<reco::VertexCollection> NoPileUpPFMEtDataProducer::srcHardScatterVertex_
private

Definition at line 65 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<edm::ValueMap<int> > NoPileUpPFMEtDataProducer::srcJetIds_
private

Definition at line 55 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<reco::PFJetCollection> NoPileUpPFMEtDataProducer::srcJets_
private

Definition at line 54 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<reco::PFJetCollection> NoPileUpPFMEtDataProducer::srcJetsForMEtCov_
private

Definition at line 63 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<reco::PFCandidateCollection> NoPileUpPFMEtDataProducer::srcPFCandidates_
private

Definition at line 60 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<edm::View<reco::PFCandidate> > NoPileUpPFMEtDataProducer::srcPFCandidatesView_
private

Definition at line 61 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

edm::EDGetTokenT<PFCandToVertexAssMap> NoPileUpPFMEtDataProducer::srcPFCandToVertexAssociations_
private

Definition at line 62 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer(), and produce().

int NoPileUpPFMEtDataProducer::verbosity_
private

Definition at line 75 of file NoPileUpPFMEtDataProducer.h.

Referenced by NoPileUpPFMEtDataProducer().