Skip to content
Snippets Groups Projects
Commit 150f7616 authored by scott snyder's avatar scott snyder
Browse files

TrigT1CaloToolInterfaces: Make mapping methods const.

Declare IL1CaloMappingTool::mapping() as const.

Use DeclareInterfaceID.
parent a07d4724
No related branches found
No related tags found
No related merge requests found
......@@ -10,25 +10,18 @@
namespace LVL1 {
static const InterfaceID IID_IL1CaloMappingTool("LVL1::IL1CaloMappingTool", 1, 0);
class IL1CaloMappingTool : virtual public IAlgTool {
public:
static const InterfaceID& interfaceID();
public:
DeclareInterfaceID (IL1CaloMappingTool, 1, 0);
virtual bool mapping(int crate, int module, int channel,
double& eta, double& phi, int& layer) = 0;
double& eta, double& phi, int& layer) const = 0;
virtual bool mapping(double eta, double phi, int layer,
int& crate, int& module, int& channel) = 0;
int& crate, int& module, int& channel) const = 0;
};
inline const InterfaceID& IL1CaloMappingTool::interfaceID()
{
return IID_IL1CaloMappingTool;
}
} // end of namespace
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment