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 #17292 from cms-tau-pog/CMSSW_8_0_X_tau-pog_miniAO…
…D-backport Backport of access to tauID and electron discrimination from miniAOD
- Loading branch information
Showing
33 changed files
with
3,076 additions
and
250 deletions.
There are no files selected for viewing
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,28 @@ | ||
#ifndef DataFormats_PatCandidates_PATTauDiscriminator_h | ||
#define DataFormats_PatCandidates_PATTauDiscriminator_h | ||
#include "DataFormats/Common/interface/AssociationVector.h" | ||
#include "DataFormats/Common/interface/RefProd.h" | ||
#include "DataFormats/PatCandidates/interface/Tau.h" | ||
|
||
#include <vector> | ||
|
||
namespace pat { | ||
typedef edm::AssociationVector<pat::TauRefProd,std::vector<float> > PATTauDiscriminatorBase; | ||
|
||
class PATTauDiscriminator : public PATTauDiscriminatorBase { | ||
public: | ||
/// empty constructor | ||
PATTauDiscriminator(); // : PATTauDiscriminatorBase() {} | ||
/// constructor from reference to pat::Tau | ||
PATTauDiscriminator(const pat::TauRefProd & ref) : PATTauDiscriminatorBase(ref) {} | ||
/// constructor from base object | ||
PATTauDiscriminator(const PATTauDiscriminatorBase &v) : PATTauDiscriminatorBase(v) {} | ||
}; | ||
|
||
typedef pat::PATTauDiscriminator::value_type PATTauDiscriminatorVT; | ||
typedef edm::Ref<pat::PATTauDiscriminator> PATTauDiscriminatorRef; | ||
typedef edm::RefProd<pat::PATTauDiscriminator> PATTauDiscriminatorRefProd; | ||
typedef edm::RefVector<pat::PATTauDiscriminator> PATTauDiscriminatorRefVector; | ||
} | ||
|
||
#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 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,3 @@ | ||
#include "DataFormats/PatCandidates/interface/PATTauDiscriminator.h" | ||
|
||
pat::PATTauDiscriminator::PATTauDiscriminator() : PATTauDiscriminatorBase() {}; |
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 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 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 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
dumpTauVariables = cms.EDProducer( | ||
"CandViewNtpProducer", | ||
## can be selectedTausCandidates or slimmedTaus from miniAOD | ||
src = cms.InputTag("slimmedTaus"), | ||
## prefix for variables for the dump | ||
prefix = cms.untracked.string(""), | ||
## allow access to function calls from derived classes | ||
lazyParser = cms.untracked.bool(True), | ||
## add run, event number and lumi section | ||
eventInfo = cms.untracked.bool(True), | ||
## define variables to be dumped | ||
variables = cms.VPSet() | ||
) |
Oops, something went wrong.