CMS 3D CMS Logo

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

#include <L1AnalysisRecoTau.h>

Public Member Functions

L1AnalysisRecoTauDataFormatgetData ()
 
 L1AnalysisRecoTau ()
 
void Reset ()
 
void SetTau (const edm::Event &event, const edm::EventSetup &setup, const edm::Handle< reco::PFTauCollection > taus, const edm::Handle< reco::PFTauDiscriminator > DMFindingOldTaus, const edm::Handle< reco::PFTauDiscriminator > DMFindingTaus, const edm::Handle< reco::PFTauDiscriminator > TightIsoTaus, const edm::Handle< reco::PFTauDiscriminator > TightRawIsoTaus, const edm::Handle< reco::PFTauDiscriminator > LooseIsoTaus, const edm::Handle< reco::PFTauDiscriminator > LooseAntiMuon, const edm::Handle< reco::PFTauDiscriminator > TightAntiMuon, const edm::Handle< reco::PFTauDiscriminator > VLooseAntiElectron, const edm::Handle< reco::PFTauDiscriminator > LooseAntiElectron, const edm::Handle< reco::PFTauDiscriminator > TightAntiElectron, unsigned maxTau)
 
 ~L1AnalysisRecoTau ()
 

Private Attributes

L1AnalysisRecoTauDataFormat recoTau_
 

Detailed Description

Definition at line 24 of file L1AnalysisRecoTau.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoTau::L1AnalysisRecoTau ( )

Definition at line 8 of file L1AnalysisRecoTau.cc.

8 {}
L1Analysis::L1AnalysisRecoTau::~L1AnalysisRecoTau ( )

Definition at line 10 of file L1AnalysisRecoTau.cc.

10 {}

Member Function Documentation

L1AnalysisRecoTauDataFormat* L1Analysis::L1AnalysisRecoTau::getData ( void  )
inline

Definition at line 55 of file L1AnalysisRecoTau.h.

References recoTau_.

Referenced by L1TauRecoTreeProducer::L1TauRecoTreeProducer().

55 { return &recoTau_; }
L1AnalysisRecoTauDataFormat recoTau_
void L1Analysis::L1AnalysisRecoTau::Reset ( )
inline
void L1Analysis::L1AnalysisRecoTau::SetTau ( const edm::Event event,
const edm::EventSetup setup,
const edm::Handle< reco::PFTauCollection taus,
const edm::Handle< reco::PFTauDiscriminator DMFindingOldTaus,
const edm::Handle< reco::PFTauDiscriminator DMFindingTaus,
const edm::Handle< reco::PFTauDiscriminator TightIsoTaus,
const edm::Handle< reco::PFTauDiscriminator TightRawIsoTaus,
const edm::Handle< reco::PFTauDiscriminator LooseIsoTaus,
const edm::Handle< reco::PFTauDiscriminator LooseAntiMuon,
const edm::Handle< reco::PFTauDiscriminator TightAntiMuon,
const edm::Handle< reco::PFTauDiscriminator VLooseAntiElectron,
const edm::Handle< reco::PFTauDiscriminator LooseAntiElectron,
const edm::Handle< reco::PFTauDiscriminator TightAntiElectron,
unsigned  maxTau 
)

Definition at line 12 of file L1AnalysisRecoTau.cc.

Referenced by L1TauRecoTreeProducer::analyze().

25  {
26  recoTau_.nTaus = 0;
27 
28  for (reco::PFTauCollection::const_iterator it = taus->begin(); it != taus->end() && recoTau_.nTaus < maxTau; ++it) {
29  recoTau_.e.push_back(it->energy());
30  recoTau_.pt.push_back(it->pt());
31  recoTau_.et.push_back(it->et());
32  recoTau_.eta.push_back(it->eta());
33  recoTau_.phi.push_back(it->phi());
34 
36  recoTau_.TightIsoFlag.push_back((*TightIsoTaus)[tauEdmRef]);
37  recoTau_.RawIso.push_back((*TightRawIsoTaus)[tauEdmRef]);
38  recoTau_.LooseIsoFlag.push_back((*LooseIsoTaus)[tauEdmRef]);
39  recoTau_.LooseAntiMuonFlag.push_back((*LooseAntiMuon)[tauEdmRef]);
40  recoTau_.TightAntiMuonFlag.push_back((*TightAntiMuon)[tauEdmRef]);
41  recoTau_.VLooseAntiElectronFlag.push_back((*VLooseAntiElectron)[tauEdmRef]);
42  recoTau_.LooseAntiElectronFlag.push_back((*LooseAntiElectron)[tauEdmRef]);
43  recoTau_.TightAntiElectronFlag.push_back((*TightAntiElectron)[tauEdmRef]);
44  recoTau_.DMFindingOldDMs.push_back((*DMFindingOldTaus)[tauEdmRef]);
45  recoTau_.DMFindingNewDMs.push_back((*DMFindingTaus)[tauEdmRef]);
46  recoTau_.charge.push_back(it->charge());
47 
48  recoTau_.nTaus++;
49  }
50 }
L1AnalysisRecoTauDataFormat recoTau_

Member Data Documentation

L1AnalysisRecoTauDataFormat L1Analysis::L1AnalysisRecoTau::recoTau_
private

Definition at line 59 of file L1AnalysisRecoTau.h.

Referenced by getData(), and Reset().