143 bool singleTrigFlag1 =
false;
149 if (!ev.getByLabel(
trigTag_, triggerResults)) {
150 LogWarning(
"") <<
">>> TRIGGER collection does not exist !!!";
153 ev.getByLabel(
trigTag_, triggerResults);
156 bool trigger_fired =
false;
157 for (
unsigned int i=0;
i<triggerResults->size();
i++) {
161 if ( trigName ==
hltPath_ && triggerResults->accept(
i)) {
162 trigger_fired =
true;
167 if ( ! ev.getByLabel(
trigEv_, handleTriggerEvent )) {
168 LogWarning(
"errorTriggerEventValid" ) <<
"trigger::TriggerEvent product with InputTag " <<
trigEv_.
encode() <<
" not in event";
171 ev.getByLabel(
trigEv_, handleTriggerEvent );
174 std::vector<reco::Particle> HLTMuMatched;
175 for (
size_t ia = 0; ia < handleTriggerEvent->sizeFilters(); ++ ia) {
176 std::string fullname = handleTriggerEvent->filterTag(ia).encode();
178 size_t p = fullname.find_first_of(
':');
179 if ( p != std::string::npos) {
180 name = fullname.substr(0, p);
187 for (trigger::Keys::const_iterator ki = k.begin(); ki !=k.end(); ++ki ) {
189 HLTMuMatched.push_back(toc[*ki].particle());
198 if (!ev.getByLabel(
muonTag_, muons)) {
199 LogError(
"") <<
">>> muon collection does not exist !!!";
205 std::vector<reco::Muon> highPtGlbMuons;
207 for (
unsigned int i=0;
i<muons->size();
i++ ){
215 unsigned int nHighPtGlbMu = highPtGlbMuons.size();
216 std::cout <<
"I've got " << nHighPtGlbMu <<
" nHighPtGlbMu" << std::endl;
220 (nHighPtGlbMu> 10)? nHighPtGlbMu=10 : 1;
222 if (nHighPtGlbMu>0 ){
224 for(
unsigned int i =0 ;
i < nHighPtGlbMu ;
i++) {
bool isGlobalMuon() const
edm::TriggerNames const * trigNames_
Strings const & triggerNames() const
virtual double eta() const
momentum pseudorapidity
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
virtual double pt() const
transverse momentum
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
bool IsMuMatchedToHLTMu(const reco::Muon &, std::vector< reco::Particle >, double, double)
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
std::string L3FilterName_