CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

PFTauElecRejectionBenchmarkAnalyzer Class Reference

Inheritance diagram for PFTauElecRejectionBenchmarkAnalyzer:
edm::EDAnalyzer

List of all members.

Public Member Functions

 PFTauElecRejectionBenchmarkAnalyzer (const edm::ParameterSet &)
 PFTauElecRejection Benchmark.
 ~PFTauElecRejectionBenchmarkAnalyzer ()

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob ()
virtual void endJob ()

Private Attributes

bool applyEcalCrackCut
string benchmarkLabel
DQMStoredb
double maxDeltaR
double maxMCAbsEta
double maxRecoAbsEta
double minMCPt
double minRecoPt
string outputfile
InputTag pfTauDiscriminatorAgainstElectronProducer
InputTag pfTauDiscriminatorByIsolationProducer
PFTauElecRejectionBenchmark PFTauElecRejectionBenchmark_
InputTag pfTauProducer
string sGenMatchObjectLabel
InputTag sGenParticleSource

Detailed Description

Definition at line 26 of file PFTauElecRejectionBenchMarkAnalyzer.cc.


Constructor & Destructor Documentation

PFTauElecRejectionBenchmarkAnalyzer::PFTauElecRejectionBenchmarkAnalyzer ( const edm::ParameterSet iConfig) [explicit]

PFTauElecRejection Benchmark.

Definition at line 68 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

References EcalCondDB::db, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), cppFunctionSkipper::operator, and estimatePileup_makeJSON::outputfile.

{
  //now do what ever initialization is needed
  outputfile = 
    iConfig.getUntrackedParameter<string>("OutputFile");
  benchmarkLabel =
    iConfig.getParameter<string>("BenchmarkLabel");
  sGenParticleSource = 
    iConfig.getParameter<InputTag>("InputTruthLabel");
  maxDeltaR = 
    iConfig.getParameter<double>("maxDeltaR");    
  minMCPt  = 
    iConfig.getParameter<double>("minMCPt"); 
  maxMCAbsEta = 
    iConfig.getParameter<double>("maxMCAbsEta"); 
  minRecoPt  = 
    iConfig.getParameter<double>("minRecoPt"); 
  maxRecoAbsEta = 
    iConfig.getParameter<double>("maxRecoAbsEta"); 
  pfTauProducer = 
    iConfig.getParameter<InputTag>("PFTauProducer");
  pfTauDiscriminatorByIsolationProducer = 
    iConfig.getParameter<InputTag>("PFTauDiscriminatorByIsolationProducer");
  pfTauDiscriminatorAgainstElectronProducer = 
    iConfig.getParameter<InputTag>("PFTauDiscriminatorAgainstElectronProducer");
  sGenMatchObjectLabel =
    iConfig.getParameter<string>("GenMatchObjectLabel");
  applyEcalCrackCut =
    iConfig.getParameter<bool>("ApplyEcalCrackCut");


  db = edm::Service<DQMStore>().operator->();
  

  PFTauElecRejectionBenchmark_.setup(
                        outputfile,
                        benchmarkLabel,
                        maxDeltaR,
                        minRecoPt, 
                        maxRecoAbsEta,
                        minMCPt, 
                        maxMCAbsEta,
                        sGenMatchObjectLabel,
                        applyEcalCrackCut,
                        db);
}
PFTauElecRejectionBenchmarkAnalyzer::~PFTauElecRejectionBenchmarkAnalyzer ( )

Definition at line 117 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

{
  // do anything here that needs to be done at desctruction time
  // (e.g. close files, deallocate resources etc.)
}

Member Function Documentation

void PFTauElecRejectionBenchmarkAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 130 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

References edm::Event::getByLabel().

{

  // get gen products
  Handle<HepMCProduct> mcevt;
  iEvent.getByLabel(sGenParticleSource, mcevt);

  // get pftau collection
  Handle<PFTauCollection> thePFTau;
  iEvent.getByLabel(pfTauProducer,thePFTau);
  
  // get iso discriminator association vector
  Handle<PFTauDiscriminator> thePFTauDiscriminatorByIsolation;
  iEvent.getByLabel(pfTauDiscriminatorByIsolationProducer,thePFTauDiscriminatorByIsolation);

  // get anti-elec discriminator association vector
  Handle<PFTauDiscriminator> thePFTauDiscriminatorAgainstElectron;
  iEvent.getByLabel(pfTauDiscriminatorAgainstElectronProducer,thePFTauDiscriminatorAgainstElectron);

  PFTauElecRejectionBenchmark_.process(mcevt, thePFTau, thePFTauDiscriminatorByIsolation, 
                                       thePFTauDiscriminatorAgainstElectron);
}
void PFTauElecRejectionBenchmarkAnalyzer::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 156 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

{
}
void PFTauElecRejectionBenchmarkAnalyzer::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 162 of file PFTauElecRejectionBenchMarkAnalyzer.cc.


Member Data Documentation

Definition at line 50 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 40 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 39 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 42 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 44 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 46 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 43 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 45 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 38 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 49 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 48 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 53 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 47 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 51 of file PFTauElecRejectionBenchMarkAnalyzer.cc.

Definition at line 41 of file PFTauElecRejectionBenchMarkAnalyzer.cc.