44 std::vector<int> listDefaults;
45 listDefaults.push_back(-1);
47 bool fedIsGiven =
false;
49 std::vector<std::string> ebDefaults;
50 ebDefaults.push_back(
"none");
52 bool ebIsGiven =
false;
55 if (
feds_[0] != -1 ) {
56 edm::LogInfo(
"EcalPnGraphs") <<
"FED id is given! Goining to beginJob! ";
60 if (
ebs_[0] !=
"none" ) {
64 for (std::vector<std::string>::const_iterator ebItr =
ebs_.begin();
65 ebItr!=
ebs_.end(); ++ebItr) {
71 for (
int i=601;
i<655; ++
i){
81 std::vector<int>::iterator fedIter;
82 for (fedIter =
feds_.begin(); fedIter!=
feds_.end(); ++fedIter) {
83 if ( (*fedIter) < 601 || (*fedIter) > 654) {
84 std::cout <<
"[EcalPnGraphs] pn number : " << (*fedIter) <<
" found in listFeds. "
85 <<
" Valid range is [601-654]. Returning." << std::endl;
94 std::vector<int>::iterator intIter;
95 for (intIter =
listPns.begin(); intIter !=
listPns.end(); intIter++) {
96 if ( ((*intIter) < 1) || (10 < (*intIter)) ) {
97 std::cout <<
"[EcalPnGraphs] pn number : " << (*intIter) <<
" found in listPns. "
98 <<
" Valid range is 1-10. Returning." << std::endl;
102 if (!first_Pn ) first_Pn = (*intIter);
137 bool pnDigisFound =
true;
150 std::vector<int>::iterator pn_it;
156 for (
int u = (-hpn) ; u<=hpn; u++){
158 if (ipn_c < 1 || ipn_c > 10)
continue;
169 int ipn = (*pnItr).id().iPnId();
174 int FEDid = ieb + 600;
178 if ( fedIter ==
feds_.end() ) {
183 std::vector<int>::iterator iPnIter;
187 for (
int i=0;
i< (*pnItr).size() &&
i<50; ++
i ) {
196 oneGraph.SetTitle(title.c_str());
197 oneGraph.SetName(title.c_str());
198 graphs.push_back(oneGraph);
209 std::ostringstream myStream;
210 myStream << num << std::flush;
212 return(myStream.str());
222 std::vector<TGraph>::iterator gr_it;
223 for ( gr_it =
graphs.begin(); gr_it !=
graphs.end(); gr_it++ ) (*gr_it).Write();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int getFedFromSlice(std::string)
std::vector< T >::const_iterator const_iterator
std::string intToString(int num)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< TGraph > graphs
std::string digiProducer_
std::vector< int > listAllPns
std::vector< std::string > ebs_
std::vector< int > listPns
EcalPnGraphs(const edm::ParameterSet &ps)
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)