#include <string>
#include <iostream>
#include "occi.h"
#include "CondTools/Hcal/interface/HcalDbPoolOCCI.h"
Go to the source code of this file.
Functions | |
long | getObjectId (const std::string &fToken) |
const char * | getTable (const HcalGains *fObject) |
const char * | getTable (const HcalPedestals *fObject) |
Variables | |
const bool | debug = false |
long @3108::getObjectId | ( | const std::string & | fToken | ) | [static] |
Definition at line 16 of file HcalDbPoolOCCI.cc.
References id, and HLT_VtxMuL3::result.
Referenced by HcalDbPoolOCCI::getDataToken(), and HcalDbPoolOCCI::getObjectGeneric().
00016 { 00017 unsigned ipos = fToken.find ("OID="); 00018 if (ipos != std::string::npos) { 00019 ipos = fToken.find ('-', ipos); 00020 if (ipos != std::string::npos) { 00021 unsigned ipos2 = fToken.find (']', ipos); 00022 if (ipos2 != std::string::npos) { 00023 while (fToken [++ipos] != '0'); 00024 std::string id (fToken, ipos, ipos2-ipos); 00025 char* endptr = 0; 00026 unsigned long result = strtoul (id.c_str (), &endptr, 16); 00027 if (endptr && !*endptr) return long (result); 00028 } 00029 } 00030 } 00031 return -1; 00032 }
const char* @3108::getTable | ( | const HcalGains * | fObject | ) | [static] |
const char* @3108::getTable | ( | const HcalPedestals * | fObject | ) | [static] |
const bool debug = false |
Definition at line 13 of file HcalDbPoolOCCI.cc.