CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions
lumi::NormDML Class Reference

#include <NormDML.h>

Classes

struct  normData
 

Public Types

enum  LumiType { HF, PIXEL }
 

Public Member Functions

void normById (const coral::ISchema &schema, unsigned long long normid, std::map< unsigned int, normData > &result)
 
 NormDML ()
 
unsigned long long normIdByName (const coral::ISchema &schema, const std::string &normtagname)
 
void normIdByType (const coral::ISchema &schema, std::map< std::string, unsigned long long > &resultMap, LumiType=HF, bool defaultonly=true)
 
void parseAfterglows (const std::string &afterglowStr, std::map< unsigned int, float > &afterglowmap)
 
void parseLumiCorrector (const std::string &correctorStr, std::vector< std::string > &correctorParams)
 
 ~NormDML ()
 

Detailed Description

Definition at line 25 of file NormDML.h.

Member Enumeration Documentation

Enumerator
HF 
PIXEL 

Definition at line 35 of file NormDML.h.

Constructor & Destructor Documentation

NormDML::NormDML ( )

Definition at line 15 of file NormDML.cc.

lumi::NormDML::~NormDML ( )
inline

Definition at line 37 of file NormDML.h.

37 {}

Member Function Documentation

void NormDML::normById ( const coral::ISchema &  schema,
unsigned long long  normid,
std::map< unsigned int, normData > &  result 
)

select * from luminormsv2data where data_id=normid

Definition at line 98 of file NormDML.cc.

unsigned long long NormDML::normIdByName ( const coral::ISchema &  schema,
const std::string &  normtagname 
)

select max(DATA_ID) FROM LUMINORMSV2 WHERE ENTRY_NAME=:normname

Definition at line 18 of file NormDML.cc.

void NormDML::normIdByType ( const coral::ISchema &  schema,
std::map< std::string, unsigned long long > &  resultMap,
LumiType  lumitype = HF,
bool  defaultonly = true 
)

select max(DATA_ID) FROM LUMINORMSV2 WHERE LUMITYPE=:lumitype and ISTYPEDEFAULT=1

Definition at line 50 of file NormDML.cc.

void NormDML::parseAfterglows ( const std::string &  afterglowStr,
std::map< unsigned int, float > &  afterglowmap 
)

Definition at line 151 of file NormDML.cc.

void NormDML::parseLumiCorrector ( const std::string &  correctorStr,
std::vector< std::string > &  correctorParams 
)

Definition at line 144 of file NormDML.cc.