CMS 3D CMS Logo

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

◆ L1AnalysisRecoTau()

L1Analysis::L1AnalysisRecoTau::L1AnalysisRecoTau ( )

Definition at line 8 of file L1AnalysisRecoTau.cc.

8 {}

◆ ~L1AnalysisRecoTau()

L1Analysis::L1AnalysisRecoTau::~L1AnalysisRecoTau ( )

Definition at line 10 of file L1AnalysisRecoTau.cc.

10 {}

Member Function Documentation

◆ getData()

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

Definition at line 55 of file L1AnalysisRecoTau.h.

References recoTau_.

55 { return &recoTau_; }
L1AnalysisRecoTauDataFormat recoTau_

◆ Reset()

void L1Analysis::L1AnalysisRecoTau::Reset ( )
inline

◆ SetTau()

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.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, l1TauRecoTree_2015_cfi::maxTau, and Tau3MuMonitor_cff::taus.

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

◆ recoTau_

L1AnalysisRecoTauDataFormat L1Analysis::L1AnalysisRecoTau::recoTau_
private

Definition at line 59 of file L1AnalysisRecoTau.h.

Referenced by getData(), and Reset().