ATLAS Offline Software
Loading...
Searching...
No Matches
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#
8
9#include <sstream>
10#include <cmath>
11#include <TLorentzVector.h>
12
13bool
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
38std::string AcceptAllCondition::toString() const {
39 std::stringstream ss;
40
41 ss << "AcceptAllCondition (" << this << ")\n";
42 return ss.str();
43}
std::vector< pHypoJet > HypoJetVector
Definition HypoJetDefs.h:27
static Double_t ss
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
std::string toString() const override