1 #include "../interface/LaserClient.h"
15 minChannelEntries_(0),
17 amplitudeThreshold_(),
18 amplitudeRMSThreshold_(),
21 timingRMSThreshold_(),
22 expectedPNAmplitude_(),
23 pnAmplitudeThreshold_(),
24 pnAmplitudeRMSThreshold_(),
30 MGPAGainsPN_ = commonParams.getUntrackedParameter<vector<int> >(
"MGPAGainsPN");
33 laserWavelengths_ = taskParams.getUntrackedParameter<vector<int> >(
"laserWavelengths");
35 expectedAmplitude_ = taskParams.getUntrackedParameter<vector<double> >(
"expectedAmplitude");
36 amplitudeThreshold_ = taskParams.getUntrackedParameter<vector<double> >(
"amplitudeThreshold");
38 expectedTiming_ = taskParams.getUntrackedParameter<vector<double> >(
"expectedTiming");
39 timingThreshold_ = taskParams.getUntrackedParameter<vector<double> >(
"timingThreshold");
40 timingRMSThreshold_ = taskParams.getUntrackedParameter<vector<double> >(
"timingRMSThreshold");
44 towerThreshold_ = taskParams.getUntrackedParameter<
double>(
"towerThreshold");
47 if(*wlItr <= 0 || *wlItr >= 5)
throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength" << endl;
50 if(*gainItr != 1 && *gainItr != 16)
throw cms::Exception(
"InvalidConfiguration") <<
"PN diode gain" << endl;
61 throw cms::Exception(
"InvalidConfiguration") <<
"Size of quality cut parameter vectors" << endl;
63 map<string, string> replacements;
70 replacements[
"wl"] = ss.str();
72 unsigned offset(*wlItr - 1);
82 replacements[
"pngain"] = ss.str();
84 offset = (*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1);
96 replacements[
"wl"] = ss.str();
98 unsigned offset(*wlItr - 1);
111 replacements[
"pngain"] = ss.str();
113 offset = (*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1);
127 unsigned offset(*wlItr - 1);
133 offset = (*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1);
144 unsigned offset(*wlItr - 1);
155 offset = (*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1);
167 unsigned offset(*wlItr - 1);
172 offset = (*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1);
185 unsigned offset(*wlItr - 1);
197 unsigned suboffset((*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1));
203 for(
unsigned dccid(1); dccid <= 54; dccid++){
208 if(ids.size() == 0)
continue;
212 for(std::vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
249 if(dccid <= 9 || dccid >= 46) subdet =
EcalEndcap;
252 for(
unsigned pn(1); pn <= 10; pn++){
257 unsigned suboffset((*wlItr - 1) *
nPNGain + (*gainItr == 1 ? 0 : 1));
289 for(
unsigned iWL(0); iWL <
nWL; iWL++){
312 for(
unsigned iPNGain(0); iPNGain <
nPNGain; iPNGain++){
313 unsigned offset(iWL * nPNGain + iPNGain);
const EcalElectronicsMapping * getElectronicsMap()
void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< int > laserWavelengths_
std::vector< double > expectedAmplitude_
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
std::vector< double > timingThreshold_
int bad(Items const &cont)
std::vector< double > expectedTiming_
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
unsigned int offset(bool)
std::vector< MESet * > MEs_
unsigned getNSuperCrystals(unsigned)
std::vector< double > pnAmplitudeThreshold_
LaserClient(const edm::ParameterSet &, const edm::ParameterSet &)
std::vector< double > expectedPNAmplitude_
std::vector< double > amplitudeThreshold_
std::vector< MESet const * > sources_
std::vector< double > amplitudeRMSThreshold_
std::vector< double > timingRMSThreshold_
DEFINE_ECALDQM_WORKER(CertificationClient)
std::vector< int > MGPAGainsPN_
static void setMEData(std::vector< MEData > &)
std::vector< double > pnAmplitudeRMSThreshold_