test
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 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 26 of file L1AnalysisRecoTau.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoTau::L1AnalysisRecoTau ( )

Definition at line 8 of file L1AnalysisRecoTau.cc.

9 {
10 }
L1Analysis::L1AnalysisRecoTau::~L1AnalysisRecoTau ( )

Definition at line 13 of file L1AnalysisRecoTau.cc.

14 {
15 }

Member Function Documentation

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

Definition at line 47 of file L1AnalysisRecoTau.h.

References recoTau_.

Referenced by L1TauRecoTreeProducer::L1TauRecoTreeProducer().

47 {return &recoTau_;}
L1AnalysisRecoTauDataFormat recoTau_
void L1Analysis::L1AnalysisRecoTau::Reset ( void  )
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 18 of file L1AnalysisRecoTau.cc.

Referenced by L1TauRecoTreeProducer::analyze().

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

Member Data Documentation

L1AnalysisRecoTauDataFormat L1Analysis::L1AnalysisRecoTau::recoTau_
private

Definition at line 51 of file L1AnalysisRecoTau.h.

Referenced by getData(), and Reset().