#include <EcalPnGraphs.h>
|
| EcalPnGraphs (const edm::ParameterSet &ps) |
|
| ~EcalPnGraphs () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 22 of file EcalPnGraphs.h.
module dumping TGraph with 50 data frames from Pn Diodes
- Author
- K. Kaadze
-
G. Franzoni
Definition at line 31 of file EcalPnGraphs.cc.
References abscissa, gather_cfg::cout, digiProducer_, ebs_, eventCounter, fedMap, feds_, fileName, first_Pn, EcalFedMap::getFedFromSlice(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), i, inputIsOk, listPns, numPn, and AlCaHLTBitMon_QueryRunRegistry::string.
42 std::vector<int> listDefaults;
43 listDefaults.push_back(-1);
45 bool fedIsGiven =
false;
47 std::vector<std::string> ebDefaults;
48 ebDefaults.push_back(
"none");
52 if (
feds_[0] != -1 ) {
53 edm::LogInfo(
"EcalPnGraphs") <<
"FED id is given! Goining to beginJob! ";
57 if (
ebs_[0] !=
"none" ) {
60 for (std::vector<std::string>::const_iterator ebItr =
ebs_.begin();
61 ebItr!=
ebs_.end(); ++ebItr) {
67 for (
int i=601;
i<655; ++
i){
77 std::vector<int>::iterator fedIter;
78 for (fedIter =
feds_.begin(); fedIter!=
feds_.end(); ++fedIter) {
79 if ( (*fedIter) < 601 || (*fedIter) > 654) {
80 std::cout <<
"[EcalPnGraphs] pn number : " << (*fedIter) <<
" found in listFeds. "
81 <<
" Valid range is [601-654]. Returning." << std::endl;
90 std::vector<int>::iterator intIter;
91 for (intIter =
listPns.begin(); intIter !=
listPns.end(); intIter++) {
92 if ( ((*intIter) < 1) || (10 < (*intIter)) ) {
93 std::cout <<
"[EcalPnGraphs] pn number : " << (*intIter) <<
" found in listPns. "
94 <<
" Valid range is 1-10. Returning." << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int getFedFromSlice(std::string)
std::string digiProducer_
std::vector< std::string > ebs_
std::vector< int > listPns
EcalPnGraphs::~EcalPnGraphs |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 127 of file EcalPnGraphs.cc.
References abscissa, digiProducer_, eventCounter, feds_, spr::find(), edm::Event::getByLabel(), graphs, i, inputIsOk, intToString(), listAllPns, listPns, numPn, ordinate, AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.
144 std::vector<int>::iterator pn_it;
150 for (
int u = (-hpn) ; u<=hpn; u++){
152 if (ipn_c < 1 || ipn_c > 10)
continue;
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() ) {
177 std::vector<int>::iterator iPnIter;
181 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);
std::vector< EcalPnDiodeDigi >::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< int > listPns
void EcalPnGraphs::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void EcalPnGraphs::endJob |
( |
void |
| ) |
|
|
privatevirtual |
std::string EcalPnGraphs::intToString |
( |
int |
num | ) |
|
|
private |
int EcalPnGraphs::abscissa[50] |
|
protected |
std::string EcalPnGraphs::digiProducer_ |
|
protected |
std::vector<std::string> EcalPnGraphs::ebs_ |
|
protected |
int EcalPnGraphs::eventCounter |
|
protected |
std::vector<int> EcalPnGraphs::feds_ |
|
protected |
std::string EcalPnGraphs::fileName |
|
protected |
int EcalPnGraphs::first_Pn |
|
protected |
std::vector<TGraph> EcalPnGraphs::graphs |
|
protected |
bool EcalPnGraphs::inputIsOk |
|
protected |
std::vector<int> EcalPnGraphs::listAllChannels |
|
protected |
std::vector<int> EcalPnGraphs::listAllPns |
|
protected |
std::vector<int> EcalPnGraphs::listChannels |
|
protected |
std::vector<int> EcalPnGraphs::listPns |
|
protected |
int EcalPnGraphs::ordinate[50] |
|
protected |
TFile* EcalPnGraphs::root_file |
|
protected |
int EcalPnGraphs::verbosity |
|
protected |