1 #ifndef RecoLocalCalo_HcalRecAlgos_rawEnergy_h
2 #define RecoLocalCalo_HcalRecAlgos_rawEnergy_h
4 #include "boost/cstdint.hpp"
6 namespace HcalRecAlgosPrivate {
11 typedef struct {
char a[2];}
Two;
12 template<
typename C>
static One test(
int C::*);
13 template<
typename C>
static Two test(...);
23 template<
void (T::*)(
float)>
struct tester;
25 typedef struct {
char a[2];}
Two;
27 template<
typename C>
static Two test(...);
45 template<
typename T,
bool>
61 template<
float (T::*)() const>
struct tester;
63 typedef struct {
char a[2];}
Two;
65 template<
typename C>
static Two test(...);
83 template<
typename T,
bool>
99 template<
void (T::*)(
float)>
struct tester;
101 typedef struct {
char a[2];}
Two;
103 template<
typename C>
static Two test(...);
121 template<
typename T,
bool>
133 template <
typename T>
137 template<
float (T::*)() const>
struct tester;
139 typedef struct {
char a[2];}
Two;
141 template<
typename C>
static Two test(...);
159 template<
typename T,
bool>
171 template <
typename T>
175 template<u
int32_t (T::*)() const>
struct tester;
177 typedef struct {
char a[2];}
Two;
179 template<
typename C>
static Two test(...);
197 template<
typename T,
bool>
214 template <
typename HcalRecHit>
224 template <
typename HcalRecHit>
225 inline float getRawEnergy(
const HcalRecHit&
h,
float valueIfNoSuchMember=-1.0e20)
231 template <
typename HcalRecHit>
237 template <
typename HcalRecHit>
238 inline float getAuxEnergy(
const HcalRecHit&
h,
float valueIfNoSuchMember=-1.0e20)
247 template <
typename HcalRecHit>
253 #endif // RecoLocalCalo_HcalRecAlgos_rawEnergy_h
static void setAuxEnergy(T &h, float e)
uint32_t getAuxRecHitWord(const HcalRecHit &h, uint32_t valueIfNoSuchMember=4294967295U)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static One test(int C::*)
static uint32_t getAuxRecHit(const T &h, uint32_t)
static void setRawEnergy(T &, float)
void setRawEnergy(HcalRecHit &h, float e)
static One test(tester<&C::setRawEnergy > *)
static One test(tester<&C::eaux > *)
static One test(tester<&C::setAuxEnergy > *)
static void setRawEnergy(T &h, float e)
float getAuxEnergy(const HcalRecHit &h, float valueIfNoSuchMember=-1.0e20)
static One test(tester<&C::auxHBHE > *)
static void setAuxEnergy(T &, float)
static float getAuxEnergy(const T &, float v)
static One test(tester<&C::eraw > *)
static float getRawEnergy(const T &h, float)
static float getAuxEnergy(const T &h, float)
static uint32_t getAuxRecHit(const T &, uint32_t v)
float getRawEnergy(const HcalRecHit &h, float valueIfNoSuchMember=-1.0e20)
void setAuxEnergy(HcalRecHit &h, float e)
static float getRawEnergy(const T &, float v)