ATLAS Offline Software
AcceptAllCondition.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 #
5 #include "./AcceptAllCondition.h"
8 
9 #include <sstream>
10 #include <cmath>
11 #include <TLorentzVector.h>
12 
13 bool
15  const std::unique_ptr<ITrigJetHypoInfoCollector>& collector) const {
16 
17  if(collector){
18  std::stringstream ss0;
19  const void* address = static_cast<const void*>(this);
20  ss0 << "AcceptAllCondition: (" << address << ") "
21  << " true jet group: \n";
22 
23  std::stringstream ss1;
24 
25  for(const auto& ip : ips){
26  address = static_cast<const void*>(ip.get());
27  ss1 << " " << address << " " << ip->eta() << " e " << ip->e() << '\n';
28  }
29  ss1 << '\n';
30  collector -> collect(ss0.str(), ss1.str());
31  }
32 
33  return true;
34 }
35 
36 
37 
38 std::string AcceptAllCondition::toString() const {
39  std::stringstream ss;
40 
41  ss << "AcceptAllCondition (" << this << ")\n";
42  return ss.str();
43 }
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
IJet.h
AcceptAllCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: AcceptAllCondition.cxx:14
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
ITrigJetHypoInfoCollector.h
Trig::FeatureAccessImpl::collect
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...
Definition: FeatureCollectAthena.h:299
AcceptAllCondition.h
AcceptAllCondition::toString
std::string toString() const override
Definition: AcceptAllCondition.cxx:38