CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1AnalysisRecoTau.cc
Go to the documentation of this file.
2 
3 //#include "JetMETCorrections/Objects/interface/JetCorrector.h"
5 
6 using namespace std;
7 
9 {
10 }
11 
12 
14 {
15 }
16 
17 
19  const edm::EventSetup& setup,
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 
34  edm::Ref<reco::PFTauCollection> tauEdmRef(taus,recoTau_.nTaus);
35  recoTau_.TightIsoFlag.push_back((*TightIsoTaus)[tauEdmRef]);
36  recoTau_.LooseIsoFlag.push_back((*LooseIsoTaus)[tauEdmRef]);
37  recoTau_.LooseAntiMuonFlag.push_back((*LooseAntiMuon)[tauEdmRef]);
38  recoTau_.TightAntiMuonFlag.push_back((*TightAntiMuon)[tauEdmRef]);
39  recoTau_.VLooseAntiElectronFlag.push_back((*VLooseAntiElectron)[tauEdmRef]);
40  recoTau_.LooseAntiElectronFlag.push_back((*LooseAntiElectron)[tauEdmRef]);
41  recoTau_.TightAntiElectronFlag.push_back((*TightAntiElectron)[tauEdmRef]);
42  recoTau_.DMFindingOldDMs.push_back((*DMFindingOldTaus)[tauEdmRef]);
43  recoTau_.DMFindingNewDMs.push_back((*DMFindingTaus)[tauEdmRef]);
44 
45  recoTau_.nTaus++;
46 
47  }
48 }
49 
50 
51 // void L1Analysis::L1AnalysisRecoTau::SetPFJet(const edm::Event& event,
52 // const edm::EventSetup& setup,
53 // edm::Handle<reco::PFJetCollection> taus,
54 // unsigned maxTau)
55 // {
56 
57 // recoPFJet_.nTaus=0;
58 
59 // for(reco::CaloJetCollection::const_iterator it=taus->begin();
60 // it!=taus->end() && recoTau_.nTaus < maxTau;
61 // ++it) {
62 
63 // recoTau_.et.push_back(it->et());
64 // // recoTau_.etCorr.push_back(it->et());// * scale);
65 // // recoTau_.corrFactor.push_back(1.);//scale);
66 // recoTau_.eta.push_back(it->eta());
67 // recoTau_.phi.push_back(it->phi());
68 // recoTau_.e.push_back(it->energy());
69 // // recoTau_.eEMF.push_back(it->emEnergyFraction());
70 // // recoTau_.eEmEB.push_back(it->emEnergyInEB());
71 // // recoTau_.eEmEE.push_back(it->emEnergyInEE());
72 // // recoTau_.eEmHF.push_back(it->emEnergyInHF());
73 // // recoTau_.eHadHB.push_back(it->hadEnergyInHB());
74 // // recoTau_.eHadHE.push_back(it->hadEnergyInHE());
75 // // recoTau_.eHadHO.push_back(it->hadEnergyInHO());
76 // // recoTau_.eHadHF.push_back(it->hadEnergyInHF());
77 // // recoTau_.eMaxEcalTow.push_back(it->maxEInEmTowers());
78 // // recoTau_.eMaxHcalTow.push_back(it->maxEInHadTowers());
79 // // recoTau_.towerArea.push_back(it->towersArea());
80 // // recoTau_.towerSize.push_back(static_cast<int>(it->getCaloConstituents().size()));
81 // // recoTau_.n60.push_back(it->n60());
82 // // recoTau_.n90.push_back(it->n90());
83 
84 // // recoTau_.n90hits.push_back(1.); //int((*jetsID)[jetRef].n90Hits));
85 // // recoTau_.fHPD.push_back(1.); //(*jetsID)[jetRef].fHPD);
86 // // recoTau_.fRBX.push_back(1.); //(*jetsID)[jetRef].fRBX);
87 
88 // recoTau_.nTaus++;
89 
90 // }
91 // }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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 > 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)