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.

55 { return &recoTau_; }

References recoTau_.

Referenced by L1TauRecoTreeProducer::L1TauRecoTreeProducer().

◆ 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.

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 }

References l1TauRecoTree_2015_cfi::maxTau, and Tau3MuMonitor_cff::taus.

Referenced by L1TauRecoTreeProducer::analyze().

Member Data Documentation

◆ recoTau_

L1AnalysisRecoTauDataFormat L1Analysis::L1AnalysisRecoTau::recoTau_
private

Definition at line 59 of file L1AnalysisRecoTau.h.

Referenced by getData(), and Reset().

L1Analysis::L1AnalysisRecoTauDataFormat::VLooseAntiElectronFlag
std::vector< float > VLooseAntiElectronFlag
Definition: L1AnalysisRecoTauDataFormat.h:52
L1Analysis::L1AnalysisRecoTauDataFormat::eta
std::vector< float > eta
Definition: L1AnalysisRecoTauDataFormat.h:43
L1Analysis::L1AnalysisRecoTauDataFormat::charge
std::vector< int > charge
Definition: L1AnalysisRecoTauDataFormat.h:55
Tau3MuMonitor_cff.taus
taus
Definition: Tau3MuMonitor_cff.py:7
L1Analysis::L1AnalysisRecoTauDataFormat::pt
std::vector< float > pt
Definition: L1AnalysisRecoTauDataFormat.h:42
L1Analysis::L1AnalysisRecoTauDataFormat::DMFindingOldDMs
std::vector< float > DMFindingOldDMs
Definition: L1AnalysisRecoTauDataFormat.h:46
L1Analysis::L1AnalysisRecoTauDataFormat::TightIsoFlag
std::vector< float > TightIsoFlag
Definition: L1AnalysisRecoTauDataFormat.h:47
L1Analysis::L1AnalysisRecoTauDataFormat::e
std::vector< float > e
Definition: L1AnalysisRecoTauDataFormat.h:40
L1Analysis::L1AnalysisRecoTau::recoTau_
L1AnalysisRecoTauDataFormat recoTau_
Definition: L1AnalysisRecoTau.h:59
L1Analysis::L1AnalysisRecoTauDataFormat::DMFindingNewDMs
std::vector< float > DMFindingNewDMs
Definition: L1AnalysisRecoTauDataFormat.h:45
l1TauRecoTree_2015_cfi.maxTau
maxTau
Definition: l1TauRecoTree_2015_cfi.py:5
edm::Ref
Definition: AssociativeIterator.h:58
L1Analysis::L1AnalysisRecoTauDataFormat::LooseIsoFlag
std::vector< float > LooseIsoFlag
Definition: L1AnalysisRecoTauDataFormat.h:49
L1Analysis::L1AnalysisRecoTauDataFormat::LooseAntiMuonFlag
std::vector< float > LooseAntiMuonFlag
Definition: L1AnalysisRecoTauDataFormat.h:50
L1Analysis::L1AnalysisRecoTauDataFormat::Reset
void Reset()
Definition: L1AnalysisRecoTauDataFormat.h:18
L1Analysis::L1AnalysisRecoTauDataFormat::TightAntiElectronFlag
std::vector< float > TightAntiElectronFlag
Definition: L1AnalysisRecoTauDataFormat.h:54
L1Analysis::L1AnalysisRecoTauDataFormat::TightAntiMuonFlag
std::vector< float > TightAntiMuonFlag
Definition: L1AnalysisRecoTauDataFormat.h:51
L1Analysis::L1AnalysisRecoTauDataFormat::RawIso
std::vector< float > RawIso
Definition: L1AnalysisRecoTauDataFormat.h:48
L1Analysis::L1AnalysisRecoTauDataFormat::LooseAntiElectronFlag
std::vector< float > LooseAntiElectronFlag
Definition: L1AnalysisRecoTauDataFormat.h:53
L1Analysis::L1AnalysisRecoTauDataFormat::et
std::vector< float > et
Definition: L1AnalysisRecoTauDataFormat.h:41
L1Analysis::L1AnalysisRecoTauDataFormat::phi
std::vector< float > phi
Definition: L1AnalysisRecoTauDataFormat.h:44
L1Analysis::L1AnalysisRecoTauDataFormat::nTaus
unsigned nTaus
Definition: L1AnalysisRecoTauDataFormat.h:39