|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CLHEP/Units/SystemOfUnits.h"
22 m_typeName(
"EmTauROI")
25 declareInterface<IDataRetriever>(
this);
26 declareProperty(
"readCPM",
m_readCPM=
false,
"If 'true' reads low-level ROI data from L1Calo hardware. False by default");
37 (
m_readCPM ?
" from CPMRoIs (ACR) " :
" EmTauROI (LVL1_ROI) ") <<
endmsg;
55 return StatusCode::SUCCESS;
63 LVL1_ROI::emtaus_type::const_iterator itEMe = (roi->
getEmTauROIs()).
end();
67 for (; itEM != itEMe; ++itEM)
69 phi.push_back(
DataType( itEM->getPhi()));
70 eta.push_back(
DataType( itEM->getEta()));
92 return StatusCode::SUCCESS;
99 for(;roi_it!=roi_end;++roi_it) {
103 auto fixphi = [] (
double phi)
105 if (phi >
M_PI)
return phi - 2*
M_PI;
121 energyTAU.push_back(
DataType( 1 ) );
129 myDataMap[
"energy"] =
energy;
130 myDataMap[
"phi"] = phi;
131 myDataMap[
"eta"] = eta;
132 myDataMap[
"energy"] =
energy;
133 myDataMap[
"energyEM"] = energyEM;
134 myDataMap[
"energyTAU"] = energyTAU;
135 myDataMap[
"roiWord"] =
roiWord;
Const iterator class for DataVector/DataList.
constexpr float roiPhi(const AnyRoIPointer &roi)
bool m_maskLowerThresholds
decoder
def channelSelection(self, channelList, groupType): if groupType == self.SingleGroup: pass elif group...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
EmTauROIRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
bool msgLvl(const MSG::Level lvl) const
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
setTeId setLumiBlock setRoiId setRoiSubsystem setRoiNumber roiEta
int hits() const
Return hit thresholds map.
std::map< std::string, DataVect > DataMap
const jets_type & getJetROIs() const
Get all the jet RoIs in the event.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
CoordinateRange class declaration.
::StatusCode StatusCode
StatusCode definition for legacy code.
Top level AOD object storing LVL1 RoIs.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
uint32_t roiWord() const
Return packed RoI word.
virtual std::string dataTypeName() const
Return the name of the data type.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
const emtaus_type & getEmTauROIs() const
Get all the em/tau RoIs in the event.
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.