5#ifndef FAKEBKGTOOLS_DATABASE_H
6#define FAKEBKGTOOLS_DATABASE_H
86 for(
auto& dim :
m_dimensions) nBins *= (dim.nBounds - 1);
101 #if __cplusplus >= 201402L
102 return std::equal(
ptr,
endptr, s, s+std::strlen(s));
116 void set(
const char* newptr,
const char* newendptr) { *
this =
StringRef(newptr, newendptr); }
118 std::string
trim()
const;
170 const std::bitset<N_EFFICIENCY_TYPES>
affects;
193 float scale,
StatMode statMode,
unsigned short& globalStatUID,
const StringRef& xmlStream);
205 template<
typename ReturnValue,
typename...
Args>
209 static constexpr unsigned short maxIndex() {
return 0x4000; }
210 static std::string getTypeAsString(EfficiencyType
type);
213 template<
typename ReturnValue>
214 static inline ReturnValue getAttribute(
const StringRef& attr,
const char*
ref, ReturnValue rv);
215 template<
typename ReturnValue,
typename...
Args>
216 static inline ReturnValue getAttribute(
const StringRef& attr,
const char*
ref, ReturnValue rv,
Args... args);
219 static constexpr unsigned short indexFromUID(
unsigned short uid) {
return uid&0x3FFF; }
222 static constexpr bool isSystUID(
unsigned short uid) {
return ((uid&0xC000) == 0x4000); }
223 static constexpr bool isStatUID(
unsigned short uid) {
return ((uid&0xC000) == 0x8000); }
251 std::map<int, std::vector<EfficiencyTable>>
m_tables;
const boost::regex ref(r_ef)
bool operator==(const DataVector< T > &a, const DataVector< T > &b)
Vector equality comparison.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Class providing the definition of the 4-vector interface.
void contents(std::vector< std::string > &keys, TDirectory *td, const std::string &directory, const std::string &pattern, const std::string &path)
EventInfo_v1 EventInfo
Definition of the latest event info version.