16 typedef std::pair<uint32_t, unsigned char>
ChipId;
26 void readStripProps(std::vector<double>&, std::vector<double>&, std::vector<double>&);
33 : propFile_(iConfig.getParameter<
std::
string>(
"propFile")),
34 gainFile_(iConfig.getParameter<
std::
string>(
"gainFile")) {}
37 std::map<ChipId, float>
gain;
38 std::vector<double> thr,
alpha, sigma;
44 if (
pool.isAvailable())
45 pool->writeOneIOV(TD,
pool->beginOfTime(),
"DeDxCalibrationRcd");
50 std::vector<double>&
alpha,
51 std::vector<double>& sigma) {
56 for (det =
PXB; det <=
PXF; det++) {
58 alpha.emplace_back(0.);
59 sigma.emplace_back(0.);
72 sigma.emplace_back(
f);
87 while (!fileGain.eof()) {
95 fileGain >> std::hex >> det;
105 if (!fileGain.eof()) {
106 if (
g > 0.5 &&
g < 2.0)
std::pair< uint32_t, unsigned char > ChipId
const std::string gainFile_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
~DeDxCalibrationDbCreator() override
DeDxCalibrationDbCreator(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void readGainCorrection(std::map< ChipId, float > &)
void analyze(const edm::Event &, const edm::EventSetup &) override
void readStripProps(std::vector< double > &, std::vector< double > &, std::vector< double > &)
const std::string propFile_