20 edm::Handle<reco::PFTauCollection> taus,
edm::Handle<reco::PFTauDiscriminator> DMFindingOldTaus,
edm::Handle<reco::PFTauDiscriminator> DMFindingTaus,
edm::Handle<reco::PFTauDiscriminator> TightIsoTaus,
edm::Handle<reco::PFTauDiscriminator> LooseIsoTaus,
edm::Handle<reco::PFTauDiscriminator> LooseAntiMuon,
edm::Handle<reco::PFTauDiscriminator> TightAntiMuon,
edm::Handle<reco::PFTauDiscriminator> VLooseAntiElectron,
edm::Handle<reco::PFTauDiscriminator> LooseAntiElectron,
edm::Handle<reco::PFTauDiscriminator> TightAntiElectron,
unsigned maxTau)
22 unsigned int nTausTightIso=0;
25 it!=TightIsoTaus->end() && nTausTightIso < maxTau;
28 recoTau_.TightIsoFlag.push_back((*it).second);
32 unsigned int nTausLooseIso=0;
35 it!=LooseIsoTaus->end() && nTausLooseIso < maxTau;
38 recoTau_.LooseIsoFlag.push_back((*it).second);
42 unsigned int nTausLooseAntiMuon=0;
45 it!=LooseAntiMuon->end() && nTausLooseAntiMuon < maxTau;
48 recoTau_.LooseAntiMuonFlag.push_back((*it).second);
52 unsigned int nTausTightAntiMuon=0;
55 it!=TightAntiMuon->end() && nTausTightAntiMuon < maxTau;
58 recoTau_.TightAntiMuonFlag.push_back((*it).second);
62 unsigned int nTausVLooseAntiElectron=0;
65 it!=VLooseAntiElectron->end() && nTausVLooseAntiElectron < maxTau;
68 recoTau_.VLooseAntiElectronFlag.push_back((*it).second);
69 nTausVLooseAntiElectron++;
72 unsigned int nTausLooseAntiElectron=0;
75 it!=LooseAntiElectron->end() && nTausLooseAntiElectron < maxTau;
78 recoTau_.LooseAntiElectronFlag.push_back((*it).second);
79 nTausLooseAntiElectron++;
82 unsigned int nTausTightAntiElectron=0;
85 it!=TightAntiElectron->end() && nTausTightAntiElectron < maxTau;
88 recoTau_.TightAntiElectronFlag.push_back((*it).second);
89 nTausTightAntiElectron++;
92 unsigned int nTausDMFindingOld=0;
95 it!=DMFindingOldTaus->end() && nTausDMFindingOld < maxTau;
98 recoTau_.DMFindingOldDMs.push_back((*it).second);
102 unsigned int nTausDMFinding=0;
105 it!=DMFindingTaus->end() && nTausDMFinding < maxTau;
108 recoTau_.DMFindingNewDMs.push_back((*it).second);
114 for(reco::PFTauCollection::const_iterator it=taus->begin();
115 it!=taus->end() && recoTau_.nTaus < maxTau;
118 recoTau_.e.push_back(it->energy());
119 recoTau_.pt.push_back(it->pt());
120 recoTau_.et.push_back(it->et());
121 recoTau_.eta.push_back(it->eta());
122 recoTau_.phi.push_back(it->phi());
transient_vector_type::const_iterator const_iterator
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")