41 std::vector<int> listDefaults;
42 listDefaults.push_back(-1);
44 bool fedIsGiven =
false;
46 std::vector<std::string> ebDefaults;
47 ebDefaults.push_back(
"none");
52 edm::LogInfo(
"EcalPnGraphs") <<
"FED id is given! Goining to beginJob! ";
56 if (
ebs_[0] !=
"none") {
59 for (std::vector<std::string>::const_iterator ebItr =
ebs_.begin(); ebItr !=
ebs_.end(); ++ebItr) {
65 for (
int i = 601;
i < 655; ++
i) {
75 std::vector<int>::iterator fedIter;
76 for (fedIter =
feds_.begin(); fedIter !=
feds_.end(); ++fedIter) {
77 if ((*fedIter) < 601 || (*fedIter) > 654) {
78 std::cout <<
"[EcalPnGraphs] pn number : " << (*fedIter) <<
" found in listFeds. "
79 <<
" Valid range is [601-654]. Returning." << std::endl;
88 std::vector<int>::iterator intIter;
89 for (intIter =
listPns.begin(); intIter !=
listPns.end(); intIter++) {
90 if (((*intIter) < 1) || (10 < (*intIter))) {
91 std::cout <<
"[EcalPnGraphs] pn number : " << (*intIter) <<
" found in listPns. "
92 <<
" Valid range is 1-10. Returning." << std::endl;
97 first_Pn = (*intIter);
106 for (
int i = 0;
i < 50;
i++)
144 std::vector<int>::iterator pn_it;
149 for (
int u = (-hpn); u <= hpn; u++) {
151 if (ipn_c < 1 || ipn_c > 10)
163 int ipn = (*pnItr).id().iPnId();
168 int FEDid = ieb + 600;
170 std::vector<int>::iterator fedIter =
find(
feds_.begin(),
feds_.end(), FEDid);
172 if (fedIter ==
feds_.end()) {
174 <<
" PnDigis are not found from requested SM!. returning...";
178 std::vector<int>::iterator iPnIter;
183 for (
int i = 0;
i < (*pnItr).size() &&
i < 50; ++
i) {
190 oneGraph.SetTitle(title.c_str());
191 oneGraph.SetName(title.c_str());
192 graphs.push_back(oneGraph);
202 std::ostringstream myStream;
203 myStream << num << std::flush;
205 return (myStream.str());
215 std::vector<TGraph>::iterator gr_it;
216 for (gr_it =
graphs.begin(); gr_it !=
graphs.end(); gr_it++)
T getUntrackedParameter(std::string const &, T const &) const
const edm::EventSetup & c
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)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< TGraph > graphs
Log< level::Info, false > LogInfo
std::string digiProducer_
std::vector< int > listAllPns
T getParameter(std::string const &) const
std::vector< std::string > ebs_
std::vector< int > listPns
Log< level::Warning, false > LogWarning
EcalPnGraphs(const edm::ParameterSet &ps)