ATLAS Offline Software
TopoCoreSimResult.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 // TopoCoreSimResult.h
5 // L1TopoEvent
6 // Created by Joerg Stelzer on 11/29/12.
7 
8 #ifndef __L1TopoEvent__TopoCoreSimResult__
9 #define __L1TopoEvent__TopoCoreSimResult__
10 
12 
13 #include "TrigConfData/L1Menu.h"
14 
15 #include <iostream>
18 #include <vector>
19 #include <map>
20 #include <set>
21 
22 namespace TCS { class TopoCoreSimResult; }
23 
24 std::ostream& operator<<(std::ostream&, const TCS::TopoCoreSimResult &);
25 
26 namespace TXC {
27  class L1TopoMenu;
28 }
29 
30 namespace TCS {
31 
32  class TOBArray;
33  class DecisionConnector;
34  class CountingConnector;
35 
37  public:
40 
41  bool triggerDecision(const std::string & triggerName) const;
42 
43  const TCS::TOBArray* triggerOutput(const std::string & triggerName) const;
44 
45  const GlobalOutput& globalOutput() const { return m_globalOutput; }
46 
47  const std::vector<const TCS::TOBArray*> & output(const std::string & connName) const;
48 
49  StatusCode setupFromMenu(const std::map<std::string, TCS::DecisionConnector*>& outputConnectorMap, const std::map<std::string, TCS::CountingConnector*>& countConnectorMap);
50 
51  StatusCode collectResult(TCS::DecisionConnector* outputConn = nullptr, TCS::CountingConnector* countConn = nullptr );
52 
53  StatusCode reset();
54 
56 
57  private:
58  friend std::ostream& ::operator<<(std::ostream&, const TCS::TopoCoreSimResult &);
59 
61 
62  // map from connector name to decision connectors
63  std::map<std::string, TCS::DecisionConnector*> m_outputConnectorMap;
64 
65  // map from trigger name to decision connectors
66  std::map<std::string, TCS::DecisionConnector*> m_triggerLocationDec;
67 
68  std::set<TCS::DecisionConnector*> m_outputConnectors;
69 
70  // map from connector name to counting connectors
71  std::map<std::string, TCS::CountingConnector*> m_countConnectorMap;
72 
73  // map from trigger name to counting connectors
74  std::map<std::string, TCS::CountingConnector*> m_triggerLocationCount;
75 
76  std::set<TCS::CountingConnector*> m_countConnectors;
77 
78 
79  };
80 
81 }
82 
83 
84 #endif
TCS::TopoCoreSimResult::m_globalOutput
GlobalOutput m_globalOutput
Definition: TopoCoreSimResult.h:60
TCS::TopoCoreSimResult::m_countConnectorMap
std::map< std::string, TCS::CountingConnector * > m_countConnectorMap
Definition: TopoCoreSimResult.h:71
TCS::TopoCoreSimResult::reset
StatusCode reset()
Definition: TopoCoreSimResult.cxx:73
TCS::TopoCoreSimResult::TopoCoreSimResult
TopoCoreSimResult()
Definition: TopoCoreSimResult.cxx:26
operator<<
std::ostream & operator<<(std::ostream &, const TCS::TopoCoreSimResult &)
Definition: TopoCoreSimResult.cxx:142
TCS::TopoCoreSimResult::m_outputConnectors
std::set< TCS::DecisionConnector * > m_outputConnectors
Definition: TopoCoreSimResult.h:68
TCS::CountingConnector
Definition: CountingConnector.h:26
TCS::TopoCoreSimResult::output
const std::vector< const TCS::TOBArray * > & output(const std::string &connName) const
Definition: TopoCoreSimResult.cxx:125
TCS::TopoCoreSimResult::triggerOutput
const TCS::TOBArray * triggerOutput(const std::string &triggerName) const
Definition: TopoCoreSimResult.cxx:43
TCS::TopoCoreSimResult::m_countConnectors
std::set< TCS::CountingConnector * > m_countConnectors
Definition: TopoCoreSimResult.h:76
TCS::TopoCoreSimResult::m_triggerLocationCount
std::map< std::string, TCS::CountingConnector * > m_triggerLocationCount
Definition: TopoCoreSimResult.h:74
TCS::GlobalOutput
Definition: GlobalOutput.h:37
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
TCS::TopoCoreSimResult::globalOutput
const GlobalOutput & globalOutput() const
Definition: TopoCoreSimResult.h:45
TCS::TopoCoreSimResult::setupFromMenu
StatusCode setupFromMenu(const std::map< std::string, TCS::DecisionConnector * > &outputConnectorMap, const std::map< std::string, TCS::CountingConnector * > &countConnectorMap)
Definition: TopoCoreSimResult.cxx:79
GlobalOutput.h
StatusCode.h
TCS::TopoCoreSimResult::setMsgLevel
void setMsgLevel(TrigConf::MSGTC::Level lvl)
Definition: TopoCoreSimResult.cxx:160
TCS::TopoCoreSimResult::~TopoCoreSimResult
~TopoCoreSimResult()
Definition: TopoCoreSimResult.cxx:30
TCS::TopoCoreSimResult::collectResult
StatusCode collectResult(TCS::DecisionConnector *outputConn=nullptr, TCS::CountingConnector *countConn=nullptr)
Definition: TopoCoreSimResult.cxx:53
TCS::TopoCoreSimResult
Definition: TopoCoreSimResult.h:36
TCS::TOBArray
Definition: TOBArray.h:24
TXC
Definition: IL1TopoMenuLoader.h:10
TCS::TopoCoreSimResult::m_triggerLocationDec
std::map< std::string, TCS::DecisionConnector * > m_triggerLocationDec
Definition: TopoCoreSimResult.h:66
TrigConf::TrigConfMessaging
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
Definition: TrigConfMessaging.h:28
TCS::TopoCoreSimResult::triggerDecision
bool triggerDecision(const std::string &triggerName) const
Definition: TopoCoreSimResult.cxx:35
TCS::TopoCoreSimResult::m_outputConnectorMap
std::map< std::string, TCS::DecisionConnector * > m_outputConnectorMap
Definition: TopoCoreSimResult.h:63
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TrigConfMessaging.h
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
L1Menu.h
TCS::DecisionConnector
Definition: DecisionConnector.h:23
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15