ATLAS Offline Software
InputConnector.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
5 
6 using namespace std;
7 using namespace TCS;
8 
9 InputConnector::InputConnector(const string & name) :
11  m_inputTOBType (inputType(name))
12 {
13 }
14 
16 {}
17 
18 
21  m_outputData = 0;
22  return StatusCode::SUCCESS;
23 }
24 
25 
26 // attaches the input data to the connector (does not take ownership)
27 void
29  if(m_outputData != 0) {
30  TCS_EXCEPTION("Trying to attach data to input connector " << name() << " which has already data attached")
31  }
32  m_outputData = data;
33 }
34 
35 
36 namespace TCS {
37 
38 
39 ostream &
40 operator<<(ostream &o, const TCS::InputConnector & conn) {
41  o << conn.name();
42  return o;
43 }
44 
45 
46 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
checkCorrelInHIST.conn
conn
Definition: checkCorrelInHIST.py:25
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::InputConnector::~InputConnector
virtual ~InputConnector()
Definition: InputConnector.cxx:15
TCS::Connector
Definition: Connector.h:22
InputConnector.h
TCS::InputConnector::clearOutput
StatusCode clearOutput()
Definition: InputConnector.cxx:20
TCS::InputConnector::attachOutputData
void attachOutputData(const InputTOBArray *data)
Definition: InputConnector.cxx:28
jobOptions_CavernBackground.inputType
inputType
Definition: jobOptions_CavernBackground.py:21
TCS::InputConnector
Definition: InputConnector.h:22
TCS::InputTOBArray
Definition: InputTOBArray.h:15
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
internal_poltrig::INPUT
@ INPUT
Definition: PolygonTriangulator.cxx:112
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::operator<<
std::ostream & operator<<(std::ostream &, const TCS::CountingConnector &)
Definition: CountingConnector.cxx:93
Exception.h
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15