Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6266 from HuguesBrun/codeForMuonPFin73
PF cluster isolation for muons + TimeCleaned RecHit producer.
- Loading branch information
Showing
18 changed files
with
862 additions
and
473 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
DataFormats/RecoCandidate/interface/RecoChargedCandidateIsolation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef RecoCandidates_RecoChargedCandidateIsolationAssociation_h | ||
#define RecoCandidates_RecoChargedCandidateIsolationAssociation_h | ||
// \class RecoChargedCandidateIsolationAssociation | ||
// | ||
// \short association of Isolation to a RecoChargedCandidate | ||
// | ||
|
||
#include "DataFormats/Common/interface/AssociationMap.h" | ||
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h" | ||
#include <vector> | ||
|
||
namespace reco { | ||
typedef edm::AssociationMap<edm::OneToValue<std::vector<reco::RecoChargedCandidate>, float > > RecoChargedCandidateIsolationMap; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#ifndef HLTGenericFilter_h | ||
#define HLTGenericFilter_h | ||
|
||
/** \class HLTGenericFilter | ||
* | ||
* \author Roberto Covarelli (CERN) | ||
* | ||
*/ | ||
|
||
#include "HLTrigger/HLTcore/interface/HLTFilter.h" | ||
|
||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EDProducer.h" | ||
#include "FWCore/PluginManager/interface/ModuleDef.h" | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "DataFormats/RecoCandidate/interface/RecoEcalCandidate.h" | ||
#include "DataFormats/RecoCandidate/interface/RecoEcalCandidateIsolation.h" | ||
|
||
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h" | ||
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateIsolation.h" | ||
|
||
#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h" | ||
|
||
namespace edm { | ||
class ConfigurationDescriptions; | ||
} | ||
|
||
// | ||
// class declaration | ||
// | ||
|
||
template<typename T1> | ||
class HLTGenericFilter : public HLTFilter { | ||
|
||
typedef std::vector<T1> T1Collection; | ||
typedef edm::Ref<T1Collection> T1Ref; | ||
typedef edm::AssociationMap<edm::OneToValue<std::vector<T1>, float > > T1IsolationMap; | ||
|
||
public: | ||
explicit HLTGenericFilter(const edm::ParameterSet&); | ||
~HLTGenericFilter(); | ||
virtual bool hltFilter(edm::Event&, const edm::EventSetup&, trigger::TriggerFilterObjectWithRefs & filterproduct) const override; | ||
static void fillDescriptions(edm::ConfigurationDescriptions & descriptions); | ||
|
||
private: | ||
|
||
float getEnergy(T1Ref) const; | ||
float getEt(T1Ref) const; | ||
|
||
edm::InputTag candTag_; // input tag identifying product that contains filtered photons | ||
edm::InputTag isoTag_; // input tag identifying product that contains isolated map | ||
edm::InputTag nonIsoTag_; // input tag identifying product that contains non-isolated map | ||
edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> candToken_; | ||
edm::EDGetTokenT<T1IsolationMap> isoToken_; | ||
edm::EDGetTokenT<T1IsolationMap> nonIsoToken_; | ||
bool lessThan_; // the cut is "<" or ">" ? | ||
bool useEt_; // use E or Et in relative isolation cuts | ||
double thrRegularEB_; // threshold for regular cut (x < thr) - ECAL barrel | ||
double thrRegularEE_; // threshold for regular cut (x < thr) - ECAL endcap | ||
double thrOverEEB_; // threshold for x/E < thr cut (isolations) - ECAL barrel | ||
double thrOverEEE_; // threshold for x/E < thr cut (isolations) - ECAL endcap | ||
double thrOverE2EB_; // threshold for x/E^2 < thr cut (isolations) - ECAL barrel | ||
double thrOverE2EE_; // threshold for x/E^2 < thr cut (isolations) - ECAL endcap | ||
int ncandcut_; // number of photons required | ||
bool doIsolated_; | ||
|
||
edm::InputTag L1IsoCollTag_; | ||
edm::InputTag L1NonIsoCollTag_; | ||
}; | ||
|
||
#endif //HLTGenericFilter_h | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.