20 const IInterface* parent) :
24 declareInterface<LVL1::IInputTOBConverter>(
this );
25 declareProperty(
"EmTauROILocation",
m_emTauLocation,
"Storegate key for the EMTAU info from CMX" );
38 return StatusCode::SUCCESS;
56 ATH_MSG_WARNING(
"No CPCMXTopoDataCollection with SG key '" <<
m_emTauLocation.key() <<
"' found in the event. No EM or TAU input for the L1Topo simulation.");
57 return StatusCode::RECOVERABLE;
60 ATH_MSG_DEBUG(
"Filling the input event. Number of emtau topo data objects: " << emtau->size());
62 for(
auto iTopoData = emtau->rbegin(); iTopoData != emtau->rend(); ++iTopoData) {
66 std::vector< CPTopoTOB > tobs;
68 ATH_MSG_DEBUG(
"Emtau topo data object has # TOBs: " << tobs.size());
70 ATH_MSG_DEBUG(
"EMTAU TOB with cmx = " << tob.cmx() <<
"[" << (tob.cmx()==0?
"EM":
"TAU") <<
"]"
71 <<
" : e = " << setw(3) << tob.et() <<
", isolation " << tob.isolation()
72 <<
", eta = " << setw(2) << tob.eta() <<
", phi = " << tob.phi()
73 <<
", ieta = " << setw(2) << tob.ieta() <<
", iphi = " << tob.iphi()
74 <<
", word = " << hex << tob.roiWord() << dec
78 cl.setEtaDouble( tob.eta() );
79 cl.setPhiDouble( tob.phi() );
100 return StatusCode::SUCCESS;
106 constexpr double TwoPI = 2 *
M_PI;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
bool overflow() const
Return overflow flag.
void tobs(std::vector< CPTopoTOB > &tobs) const
Fill a vector of TOBs.
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
CoordinateRange class declaration.
double phi() const
return phi
double eta() const
return eta
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
void setOverflowFromEmtauInput(bool v)
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...