#include <CaloOnlineTools/HcalOnlineDb/interface/HcalAssistant.h>
Description: Various helper functions
Usage: <usage>
Definition at line 43 of file HcalAssistant.h.
◆ HcalAssistant()
HcalAssistant::HcalAssistant |
( |
| ) |
|
◆ ~HcalAssistant()
HcalAssistant::~HcalAssistant |
( |
| ) |
|
|
virtual |
◆ a_to_i()
int HcalAssistant::a_to_i |
( |
char * |
inbuf | ) |
|
◆ addQuotes()
int HcalAssistant::addQuotes |
( |
| ) |
|
Definition at line 40 of file HcalAssistant.cc.
41 quotes.push_back(
"Fear is the path to the Dark Side...");
42 quotes.push_back(
"You don't know the power of the Dark Side...");
43 quotes.push_back(
"You must learn the ways of the Force!");
44 quotes.push_back(
"Where's the money, Lebowski?!");
45 quotes.push_back(
"You see what happens when you find a stranger in the Alps!!!?");
47 "You hear this? This is the sound of inevitability. This is the sound of your death. Goodbye, mr. Anderson");
48 quotes.push_back(
"Welcome to the desert of the Real");
49 quotes.push_back(
"In Tyler we trust");
50 quotes.push_back(
"How about a little snack?..Let's have a snack now, we can get friendly later");
51 quotes.push_back(
"Is he human? Hey, no need for name calling!");
52 quotes.push_back(
"Frankly, my dear, I don't give a damn");
53 quotes.push_back(
"I've a feeling we're not in Kansas anymore");
54 quotes.push_back(
"What we've got here is failure to communicate");
55 quotes.push_back(
"I love the smell of napalm in the morning!");
56 quotes.push_back(
"I see stupid people");
57 quotes.push_back(
"Stella! Hey, Stella!");
58 quotes.push_back(
"Houston, we have a problem");
59 quotes.push_back(
"Mrs. Robinson, you're trying to seduce me. Aren't you?");
60 quotes.push_back(
"I feel the need - the need for speed!");
61 quotes.push_back(
"He's got emotional problems. What, beyond pacifism?");
◆ getDepth()
int HcalAssistant::getDepth |
( |
int |
_rawid | ) |
|
◆ getGeomId() [1/2]
int HcalAssistant::getGeomId |
( |
HcalSubdetector |
_det, |
|
|
int |
_ieta, |
|
|
int |
_iphi, |
|
|
int |
_depth |
|
) |
| |
|
private |
◆ getGeomId() [2/2]
int HcalAssistant::getGeomId |
( |
int |
_rawid | ) |
|
|
private |
◆ getHcalDepth()
int HcalAssistant::getHcalDepth |
( |
int |
_geomId | ) |
|
|
private |
◆ getHcalIeta()
int HcalAssistant::getHcalIeta |
( |
int |
_geomId | ) |
|
|
private |
◆ getHcalIphi()
int HcalAssistant::getHcalIphi |
( |
int |
_geomId | ) |
|
|
private |
◆ getHcalSubdetector()
◆ getIeta()
int HcalAssistant::getIeta |
( |
int |
_rawid | ) |
|
◆ getIphi()
int HcalAssistant::getIphi |
( |
int |
_rawid | ) |
|
◆ getListOfChannelsFromDb()
int HcalAssistant::getListOfChannelsFromDb |
( |
| ) |
|
◆ getRandomQuote()
std::string HcalAssistant::getRandomQuote |
( |
void |
| ) |
|
Definition at line 65 of file HcalAssistant.cc.
66 int _quotes_array_size =
quotes.size();
67 int _num = rand() % _quotes_array_size;
◆ getRawId() [1/2]
int HcalAssistant::getRawId |
( |
HcalSubdetector |
_det, |
|
|
int |
_ieta, |
|
|
int |
_iphi, |
|
|
int |
_depth |
|
) |
| |
◆ getRawId() [2/2]
int HcalAssistant::getRawId |
( |
int |
_geomId | ) |
|
|
private |
◆ getRawIdFromCmssw()
int HcalAssistant::getRawIdFromCmssw |
( |
int |
_geomId | ) |
|
|
private |
Definition at line 254 of file HcalAssistant.cc.
256 if (s_det.find(
"HB") != std::string::npos || s_det.find(
"HE") != std::string::npos ||
257 s_det.find(
"HF") != std::string::npos || s_det.find(
"HO") != std::string::npos ||
258 s_det.find(
"HT") != std::string::npos) {
261 }
else if (s_det.find(
"ZDC") != std::string::npos) {
References DetId::rawId(), and AlCaHLTBitMon_QueryRunRegistry::string.
◆ getSubdetector() [1/2]
int HcalAssistant::getSubdetector |
( |
int |
_rawid | ) |
|
◆ getSubdetector() [2/2]
◆ getSubdetectorString() [1/2]
◆ getSubdetectorString() [2/2]
std::string HcalAssistant::getSubdetectorString |
( |
int |
_geomId | ) |
|
|
private |
◆ getUserName()
std::string HcalAssistant::getUserName |
( |
void |
| ) |
|
◆ getZDCSection()
◆ getZDCSectionString()
◆ HcalChannelQualityXml
friend class HcalChannelQualityXml |
|
friend |
◆ geom_to_rawid
std::map<int, int> HcalAssistant::geom_to_rawid |
|
private |
◆ listIsRead
bool HcalAssistant::listIsRead |
|
private |
◆ quotes
std::vector<std::string> HcalAssistant::quotes |
|
private |
◆ rawid_to_geom
std::map<int, int> HcalAssistant::rawid_to_geom |
|
private |