354 std::string MsgLoggerCat =
"GlobalDigisHistogrammer_analyze";
364 edm::LogInfo(MsgLoggerCat) <<
"Processing run " << nrun <<
", event " << nevt <<
" (" <<
count <<
" events total)";
366 if (nevt %
frequency == 0 || nevt == 1) {
367 edm::LogInfo(MsgLoggerCat) <<
"Processing run " << nrun <<
", event " << nevt <<
" (" <<
count 377 std::vector<const edm::StableProvenance *> AllProv;
381 edm::LogInfo(MsgLoggerCat) <<
"Number of Provenances = " << AllProv.size();
384 TString eventout(
"\nProvenance info:\n");
386 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
387 eventout +=
"\n ******************************";
388 eventout +=
"\n Module : ";
390 eventout += AllProv[
i]->moduleLabel();
391 eventout +=
"\n ProductID : ";
393 eventout += AllProv[
i]->productID().id();
394 eventout +=
"\n ClassName : ";
396 eventout += AllProv[
i]->className();
397 eventout +=
"\n InstanceName : ";
399 eventout += AllProv[
i]->productInstanceName();
400 eventout +=
"\n BranchName : ";
402 eventout += AllProv[
i]->branchName();
404 eventout +=
"\n ******************************\n";
411 if (!srcGlobalDigis.
isValid()) {
412 edm::LogWarning(MsgLoggerCat) <<
"Unable to find PGlobalDigis in event!";
463 std::vector<PGlobalDigi::ECalDigi> EECalDigis = srcGlobalDigis->
getEECalDigis();
465 for (
unsigned int i = 0;
i < EECalDigis.size(); ++
i) {
469 if (EECalDigis[
i].SHE != 0.) {
475 std::vector<PGlobalDigi::ECalDigi> EBCalDigis = srcGlobalDigis->
getEBCalDigis();
477 for (
unsigned int i = 0;
i < EBCalDigis.size(); ++
i) {
481 if (EBCalDigis[
i].SHE != 0.) {
487 std::vector<PGlobalDigi::ESCalDigi> ESCalDigis = srcGlobalDigis->
getESCalDigis();
489 for (
unsigned int i = 0;
i < ESCalDigis.size(); ++
i) {
496 std::vector<PGlobalDigi::HCalDigi> HBCalDigis = srcGlobalDigis->
getHBCalDigis();
498 for (
unsigned int i = 0;
i < HBCalDigis.size(); ++
i) {
500 if (HBCalDigis[
i].SHE != 0.) {
506 std::vector<PGlobalDigi::HCalDigi> HECalDigis = srcGlobalDigis->
getHECalDigis();
508 for (
unsigned int i = 0;
i < HECalDigis.size(); ++
i) {
510 if (HECalDigis[
i].SHE != 0.) {
517 std::vector<PGlobalDigi::HCalDigi> HOCalDigis = srcGlobalDigis->
getHOCalDigis();
519 for (
unsigned int i = 0;
i < HOCalDigis.size(); ++
i) {
521 if (HOCalDigis[
i].SHE != 0.) {
528 std::vector<PGlobalDigi::HCalDigi> HFCalDigis = srcGlobalDigis->
getHFCalDigis();
530 for (
unsigned int i = 0;
i < HFCalDigis.size(); ++
i) {
532 if (HFCalDigis[
i].SHE != 0.) {
540 std::vector<PGlobalDigi::SiStripDigi> TIBL1Digis = srcGlobalDigis->
getTIBL1Digis();
542 for (
unsigned int i = 0;
i < TIBL1Digis.size(); ++
i) {
547 std::vector<PGlobalDigi::SiStripDigi> TIBL2Digis = srcGlobalDigis->
getTIBL2Digis();
549 for (
unsigned int i = 0;
i < TIBL2Digis.size(); ++
i) {
554 std::vector<PGlobalDigi::SiStripDigi> TIBL3Digis = srcGlobalDigis->
getTIBL3Digis();
556 for (
unsigned int i = 0;
i < TIBL3Digis.size(); ++
i) {
561 std::vector<PGlobalDigi::SiStripDigi> TIBL4Digis = srcGlobalDigis->
getTIBL4Digis();
563 for (
unsigned int i = 0;
i < TIBL4Digis.size(); ++
i) {
568 std::vector<PGlobalDigi::SiStripDigi> TOBL1Digis = srcGlobalDigis->
getTOBL1Digis();
570 for (
unsigned int i = 0;
i < TOBL1Digis.size(); ++
i) {
575 std::vector<PGlobalDigi::SiStripDigi> TOBL2Digis = srcGlobalDigis->
getTOBL2Digis();
577 for (
unsigned int i = 0;
i < TOBL2Digis.size(); ++
i) {
582 std::vector<PGlobalDigi::SiStripDigi> TOBL3Digis = srcGlobalDigis->
getTOBL3Digis();
584 for (
unsigned int i = 0;
i < TOBL3Digis.size(); ++
i) {
589 std::vector<PGlobalDigi::SiStripDigi> TOBL4Digis = srcGlobalDigis->
getTOBL4Digis();
591 for (
unsigned int i = 0;
i < TOBL4Digis.size(); ++
i) {
596 std::vector<PGlobalDigi::SiStripDigi> TIDW1Digis = srcGlobalDigis->
getTIDW1Digis();
598 for (
unsigned int i = 0;
i < TIDW1Digis.size(); ++
i) {
603 std::vector<PGlobalDigi::SiStripDigi> TIDW2Digis = srcGlobalDigis->
getTIDW2Digis();
605 for (
unsigned int i = 0;
i < TIDW2Digis.size(); ++
i) {
610 std::vector<PGlobalDigi::SiStripDigi> TIDW3Digis = srcGlobalDigis->
getTIDW3Digis();
612 for (
unsigned int i = 0;
i < TIDW3Digis.size(); ++
i) {
617 std::vector<PGlobalDigi::SiStripDigi> TECW1Digis = srcGlobalDigis->
getTECW1Digis();
619 for (
unsigned int i = 0;
i < TECW1Digis.size(); ++
i) {
624 std::vector<PGlobalDigi::SiStripDigi> TECW2Digis = srcGlobalDigis->
getTECW2Digis();
626 for (
unsigned int i = 0;
i < TECW2Digis.size(); ++
i) {
631 std::vector<PGlobalDigi::SiStripDigi> TECW3Digis = srcGlobalDigis->
getTECW3Digis();
633 for (
unsigned int i = 0;
i < TECW3Digis.size(); ++
i) {
638 std::vector<PGlobalDigi::SiStripDigi> TECW4Digis = srcGlobalDigis->
getTECW4Digis();
640 for (
unsigned int i = 0;
i < TECW4Digis.size(); ++
i) {
645 std::vector<PGlobalDigi::SiStripDigi> TECW5Digis = srcGlobalDigis->
getTECW5Digis();
647 for (
unsigned int i = 0;
i < TECW5Digis.size(); ++
i) {
652 std::vector<PGlobalDigi::SiStripDigi> TECW6Digis = srcGlobalDigis->
getTECW6Digis();
654 for (
unsigned int i = 0;
i < TECW6Digis.size(); ++
i) {
659 std::vector<PGlobalDigi::SiStripDigi> TECW7Digis = srcGlobalDigis->
getTECW7Digis();
661 for (
unsigned int i = 0;
i < TECW7Digis.size(); ++
i) {
666 std::vector<PGlobalDigi::SiStripDigi> TECW8Digis = srcGlobalDigis->
getTECW8Digis();
668 for (
unsigned int i = 0;
i < TECW8Digis.size(); ++
i) {
674 std::vector<PGlobalDigi::SiPixelDigi> BRL1Digis = srcGlobalDigis->
getBRL1Digis();
676 for (
unsigned int i = 0;
i < BRL1Digis.size(); ++
i) {
682 std::vector<PGlobalDigi::SiPixelDigi> BRL2Digis = srcGlobalDigis->
getBRL2Digis();
684 for (
unsigned int i = 0;
i < BRL2Digis.size(); ++
i) {
690 std::vector<PGlobalDigi::SiPixelDigi> BRL3Digis = srcGlobalDigis->
getBRL3Digis();
692 for (
unsigned int i = 0;
i < BRL3Digis.size(); ++
i) {
698 std::vector<PGlobalDigi::SiPixelDigi> FWD1pDigis = srcGlobalDigis->
getFWD1pDigis();
700 for (
unsigned int i = 0;
i < FWD1pDigis.size(); ++
i) {
706 std::vector<PGlobalDigi::SiPixelDigi> FWD1nDigis = srcGlobalDigis->
getFWD1nDigis();
708 for (
unsigned int i = 0;
i < FWD1nDigis.size(); ++
i) {
714 std::vector<PGlobalDigi::SiPixelDigi> FWD2pDigis = srcGlobalDigis->
getFWD2pDigis();
716 for (
unsigned int i = 0;
i < FWD2pDigis.size(); ++
i) {
722 std::vector<PGlobalDigi::SiPixelDigi> FWD2nDigis = srcGlobalDigis->
getFWD2nDigis();
724 for (
unsigned int i = 0;
i < FWD2nDigis.size(); ++
i) {
731 std::vector<PGlobalDigi::DTDigi> MB1Digis = srcGlobalDigis->
getMB1Digis();
733 for (
unsigned int i = 0;
i < MB1Digis.size(); ++
i) {
734 float layer = 4.0 * (MB1Digis[
i].SLAYER - 1.0) + MB1Digis[
i].LAYER;
740 std::vector<PGlobalDigi::DTDigi> MB2Digis = srcGlobalDigis->
getMB2Digis();
742 for (
unsigned int i = 0;
i < MB2Digis.size(); ++
i) {
743 float layer = 4.0 * (MB2Digis[
i].SLAYER - 1.0) + MB2Digis[
i].LAYER;
749 std::vector<PGlobalDigi::DTDigi> MB3Digis = srcGlobalDigis->
getMB3Digis();
751 for (
unsigned int i = 0;
i < MB3Digis.size(); ++
i) {
752 float layer = 4.0 * (MB3Digis[
i].SLAYER - 1.0) + MB3Digis[
i].LAYER;
758 std::vector<PGlobalDigi::DTDigi> MB4Digis = srcGlobalDigis->
getMB4Digis();
760 for (
unsigned int i = 0;
i < MB4Digis.size(); ++
i) {
761 float layer = 4.0 * (MB4Digis[
i].SLAYER - 1.0) + MB4Digis[
i].LAYER;
768 std::vector<PGlobalDigi::CSCstripDigi> CSCstripDigis = srcGlobalDigis->
getCSCstripDigis();
770 for (
unsigned int i = 0;
i < CSCstripDigis.size(); ++
i) {
775 std::vector<PGlobalDigi::CSCwireDigi> CSCwireDigis = srcGlobalDigis->
getCSCwireDigis();
777 for (
unsigned int i = 0;
i < CSCwireDigis.size(); ++
i) {
781 edm::LogInfo(MsgLoggerCat) <<
"Done gathering data from event.";
EventNumber_t event() const
MonitorElement * mehHcaln[4]
MonitorElement * mehDtMuonLayer[4]
SiStripDigiVector getTOBL1Digis() const
MonitorElement * mehCSCWireTime
int getnTOBL1Digis() const
int getnTECW2Digis() const
int getnTIDW1Digis() const
DTDigiVector getMB1Digis() const
MonitorElement * mehEcalMultvAEE[2]
SiStripDigiVector getTIDW2Digis() const
int getnTECW4Digis() const
SiPixelDigiVector getBRL2Digis() const
int getnTIBL4Digis() const
int getnTECW5Digis() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
SiPixelDigiVector getFWD1nDigis() const
SiPixelDigiVector getFWD2nDigis() const
SiStripDigiVector getTOBL4Digis() const
SiStripDigiVector getTIDW3Digis() const
SiPixelDigiVector getFWD1pDigis() const
unsigned long long EventNumber_t
MonitorElement * mehHcalAEESHE[4]
MonitorElement * mehSiPixelCol[7]
MonitorElement * mehHcalSHEvAEE[4]
int getnTECW6Digis() const
int getnHOCalDigis() const
MonitorElement * mehHcalSHE[4]
SiStripDigiVector getTECW1Digis() const
SiStripDigiVector getTIBL1Digis() const
SiPixelDigiVector getBRL3Digis() const
MonitorElement * mehCSCStripn
int getnFWD2nDigis() const
int getnTECW8Digis() const
MonitorElement * mehDtMuonTimevLayer[4]
SiStripDigiVector getTECW2Digis() const
ECalDigiVector getEBCalDigis() const
DTDigiVector getMB3Digis() const
int getnHBCalDigis() const
MonitorElement * mehSiStripADC[19]
int getnFWD2pDigis() const
int getnEBCalDigis() const
DTDigiVector getMB4Digis() const
MonitorElement * mehEcalSHEvAEESHE[2]
SiStripDigiVector getTECW8Digis() const
MonitorElement * mehEcalSHE[2]
int getnESCalDigis() const
MonitorElement * mehHcalAEE[4]
MonitorElement * mehSiPixelRow[7]
MonitorElement * mehEcaln[3]
MonitorElement * mehCSCWiren
int getnBRL3Digis() const
HCalDigiVector getHFCalDigis() const
int getnBRL1Digis() const
int getnFWD1nDigis() const
MonitorElement * mehSiPixelADC[7]
int getnTECW1Digis() const
SiStripDigiVector getTECW4Digis() const
int getnTIDW2Digis() const
MonitorElement * mehSiPixeln[7]
int getnTIBL2Digis() const
int getnTOBL2Digis() const
int getnHFCalDigis() const
CSCwireDigiVector getCSCwireDigis() const
SiStripDigiVector getTIBL4Digis() const
int getnTECW7Digis() const
ESCalDigiVector getESCalDigis() const
SiPixelDigiVector getFWD2pDigis() const
MonitorElement * mehDtMuonn[4]
SiStripDigiVector getTECW7Digis() const
SiStripDigiVector getTOBL3Digis() const
SiStripDigiVector getTIBL2Digis() const
SiStripDigiVector getTIBL3Digis() const
MonitorElement * mehDtMuonTime[4]
SiStripDigiVector getTECW5Digis() const
MonitorElement * mehSiStripStrip[19]
int getnTIBL3Digis() const
int getnTIDW3Digis() const
ECalDigiVector getEECalDigis() const
int getnHECalDigis() const
int getnCSCwireDigis() const
MonitorElement * mehEScalADC[3]
HCalDigiVector getHBCalDigis() const
MonitorElement * mehEcalAEE[2]
int getnFWD1pDigis() const
MonitorElement * mehEcalMaxPos[2]
int getnTECW3Digis() const
HCalDigiVector getHECalDigis() const
edm::EDGetTokenT< PGlobalDigi > GlobalDigisSrc_Token_
MonitorElement * mehSiStripn[19]
MonitorElement * mehCSCStripADC
int getnEECalDigis() const
CSCstripDigiVector getCSCstripDigis() const
HCalDigiVector getHOCalDigis() const
SiStripDigiVector getTOBL2Digis() const
SiStripDigiVector getTIDW1Digis() const
SiStripDigiVector getTECW6Digis() const
int getnCSCstripDigis() const
SiStripDigiVector getTECW3Digis() const
int getnTOBL3Digis() const
int getnTOBL4Digis() const
int getnBRL2Digis() const
int getnTIBL1Digis() const
SiPixelDigiVector getBRL1Digis() const
DTDigiVector getMB2Digis() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const