#include <stdlib.h>
#include <iostream>
#include <iomanip>
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCalibDetId.h"
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "CalibFormats/HcalObjects/interface/HcalText2DetIdConverter.h"
Go to the source code of this file.
Functions | |
int | calibChannel (const std::string &fName) |
std::string | strip (const std::string &fString) |
int @893::calibChannel | ( | const std::string & | fName | ) | [static] |
Definition at line 27 of file HcalText2DetIdConverter.cc.
Referenced by HcalText2DetIdConverter::getField(), and HcalText2DetIdConverter::init().
00027 { 00028 return 00029 fName == "Mixer-High" ? 1 : 00030 fName == "Mixer-Low" ? 2 : 00031 fName == "Megatile" ? 3 : 00032 fName == "Mixer-Scintillator" ? 4 : 00033 fName == "RadDam1" ? 5 : 00034 fName == "RadDam2" ? 6 : 00035 fName == "RadDam3" ? 7 : 00036 atoi(fName.c_str()); 00037 // 0; 00038 }
std::string @893::strip | ( | const std::string & | fString | ) | [static] |
Definition at line 20 of file HcalText2DetIdConverter.cc.
00020 { 00021 if (fString.empty ()) return fString; 00022 int startIndex = fString.find_first_not_of(" \t\n"); 00023 int endIndex = fString.find_last_not_of(" \t\n"); 00024 return fString.substr(startIndex, (endIndex-startIndex)+1); 00025 }