40 std::vector<int> listDefaults;
41 listDefaults.push_back(-1);
43 bool fedIsGiven =
false;
45 std::vector<std::string> ebDefaults;
46 ebDefaults.push_back(
"none");
51 edm::LogInfo(
"EcalPnGraphs") <<
"FED id is given! Goining to beginJob! ";
55 if (
ebs_[0] !=
"none") {
58 for (std::vector<std::string>::const_iterator ebItr =
ebs_.begin(); ebItr !=
ebs_.end(); ++ebItr) {
64 for (
int i = 601;
i < 655; ++
i) {
74 std::vector<int>::iterator fedIter;
75 for (fedIter =
feds_.begin(); fedIter !=
feds_.end(); ++fedIter) {
76 if ((*fedIter) < 601 || (*fedIter) > 654) {
78 <<
" found in listFeds. Valid range is [601-654]. Returning.";
87 std::vector<int>::iterator intIter;
88 for (intIter =
listPns.begin(); intIter !=
listPns.end(); intIter++) {
89 if (((*intIter) < 1) || (10 < (*intIter))) {
91 <<
" found in listPns. Valid range is 1-10. Returning.";
105 for (
int i = 0;
i < 50;
i++)
141 std::vector<int>::iterator pn_it;
146 for (
int u = (-hpn); u <= hpn; u++) {
148 if (ipn_c < 1 || ipn_c > 10)
160 int ipn = (*pnItr).id().iPnId();
165 int FEDid = ieb + 600;
167 std::vector<int>::iterator fedIter =
find(
feds_.begin(),
feds_.end(), FEDid);
169 if (fedIter ==
feds_.end()) {
171 <<
" PnDigis are not found from requested SM!. returning...";
175 std::vector<int>::iterator iPnIter;
180 for (
int i = 0;
i < (*pnItr).size() &&
i < 50; ++
i) {
187 oneGraph.SetTitle(
title.c_str());
188 oneGraph.SetName(
title.c_str());
189 graphs.push_back(oneGraph);
199 std::ostringstream myStream;
200 myStream <<
num << std::flush;
202 return (myStream.str());
212 std::vector<TGraph>::iterator gr_it;
213 for (gr_it =
graphs.begin(); gr_it !=
graphs.end(); gr_it++)
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
int getFedFromSlice(std::string)
std::vector< T >::const_iterator const_iterator
std::string intToString(int num)
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
const_iterator begin() const
std::vector< TGraph > graphs
const_iterator end() const
Log< level::Info, false > LogInfo
std::vector< int > listAllPns
std::vector< std::string > ebs_
std::vector< int > listPns
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< EcalPnDiodeDigiCollection > digiProducer_
EcalPnGraphs(const edm::ParameterSet &ps)