#include <cstdlib>
#include <cerrno>
#include <cassert>
#include <vector>
#include <sstream>
#include <cstring>
#include <iterator>
#include "CondTools/Hcal/interface/parseHcalDetId.h"
Go to the source code of this file.
Definition at line 43 of file parseHcalDetId.cc.
References nSsubdetNames, and subdetNames.
45 const unsigned ind =
static_cast<unsigned>(subdet);
static const unsigned nSsubdetNames
static const char * subdetNames[]
static bool parse_int |
( |
const char * |
c, |
|
|
int * |
result |
|
) |
| |
|
static |
HcalDetId parseHcalDetId |
( |
const std::string & |
s | ) |
|
Definition at line 50 of file parseHcalDetId.cc.
References particleFlowClusterECALTimeSelected_cfi::depth, parse_int(), parseSubdetector(), and mps_fire::result.
62 vector<string> tokens(istream_iterator<string>{iss},
63 istream_iterator<string>{});
64 if (tokens.size() == 4)
67 int ieta, iphi,
depth;
73 result =
HcalDetId(subdet, ieta, iphi, depth);
static bool parseSubdetector(const char *c, HcalSubdetector *result)
static bool parse_int(const char *c, int *result)
const char* subdetNames[] |
|
static |