|
ATLAS Offline Software
|
Go to the documentation of this file.
14 DecisionConnector::DecisionConnector(
const std::string &
name,
15 const vector<string> &
inputs,
17 const vector<string> &
outputs) :
19 m_decisionAlgorithm(0)
28 unsigned int index(0);
30 if(
tl.name() == trigger)
31 return m_decision.bit(
index);
34 TCS_EXCEPTION(
"Decision connector '" <<
name() <<
"' has no output trigger '" << trigger <<
"'");
41 unsigned int index(0);
43 if(
tl.name() == trigger)
44 return m_outputData[
index];
47 TCS_EXCEPTION(
"Decision connector '" <<
name() <<
"' has no output trigger '" << trigger <<
"'");
70 cerr <<
"Error: algorithm" <<
alg->name() <<
" is not a DecisionAlg" << endl;
79 TCS_EXCEPTION(
"Trying to attach data to decision connector '" <<
name() <<
"' which has already data attached");
99 o <<
"(" <<
join(
conn.inputNames()) <<
") ---[ " <<
conn.algorithmName() <<
" ]---> (" <<
join(
conn.outputNames()) <<
")";
char data[hepevt_bytes_allocation_ATLAS]
void attachOutputData(const std::vector< TOBArray * > &)
TCS::DecisionAlg * m_decisionAlgorithm
virtual ~DecisionConnector()
a TriggerLine entry describes the location of a threshold multiplicity on a cable (connector)
#define TCS_EXCEPTION(MSG)
TOBArray const * output(const std::string &trigger) const
std::string join(const std::vector< std::string > &v, const char c=',')
const std::string & name() const
virtual StatusCode clearOutput()
std::vector< TOBArray const * > m_outputData
void setFirstOutputBit(unsigned int firstOutputBit)
const Decision & decision() const
std::ostream & operator<<(std::ostream &, const TCS::CountingConnector &)
void setFirstBit(unsigned int startBit)
virtual void setAlgorithm(TCS::ConfigurableAlg *)
void setAlgorithm(TCS::ConfigurableAlg *alg)