CMS 3D CMS Logo

Public Member Functions

test::GlobalNumbersAnalysis Class Reference

Inheritance diagram for test::GlobalNumbersAnalysis:
edm::EDAnalyzer

List of all members.

Public Member Functions

void analyze (const Event &e, const EventSetup &c)
 GlobalNumbersAnalysis (const ParameterSet &pset)

Detailed Description

Definition at line 30 of file testGlobalNumbers.cc.


Constructor & Destructor Documentation

test::GlobalNumbersAnalysis::GlobalNumbersAnalysis ( const ParameterSet pset) [inline]

Definition at line 33 of file testGlobalNumbers.cc.

                                                   {
    }

Member Function Documentation

void test::GlobalNumbersAnalysis::analyze ( const Event e,
const EventSetup c 
) [inline, virtual]

Implements edm::EDAnalyzer.

Definition at line 37 of file testGlobalNumbers.cc.

References gather_cfg::cout, FEDRawData::data(), runTheMatrix::data, edm::EventID::event(), evf::evtn::evm_board_sense(), edm::EventBase::experimentType(), reco::get(), edm::Event::getByLabel(), evf::evtn::getfdlbx(), evf::evtn::getfdlpsc(), evf::evtn::getgpshigh(), evf::evtn::getgpslow(), evf::evtn::getlbn(), evf::evtn::getorbit(), test::GTEVMId, evf::evtn::gtpe_board_sense(), evf::evtn::gtpe_get(), evf::evtn::gtpe_getbx(), evf::evtn::gtpe_getlbn(), evf::evtn::gtpe_getorbit(), test::GTPEId, edm::EventBase::id(), edm::EventBase::luminosityBlock(), edm::EventID::run(), findQualityFiles::size, and FEDRawData::size().

                                                      {
      cout << "--- Run: " << e.id().run()
           << " LS: " << e.luminosityBlock() 
           << " Event: " << e.id().event() 
           << " Type: " << e.experimentType() << endl;
      Handle<FEDRawDataCollection> rawdata;
      e.getByLabel("source",rawdata);
      const FEDRawData& data = rawdata->FEDData(GTEVMId);
      size_t size=data.size();

      if (size>0 ) {
          cout << "FED# " << setw(4) << GTEVMId << " " << setw(8) << size << " bytes " << endl;
          if(evf::evtn::evm_board_sense(data.data(),size))
            {
              cout << "FED# " << setw(4) << GTEVMId << " is the real GT EVM block " << endl;
              cout << "Event # " << evf::evtn::get(data.data(),true) << endl;
              cout << "LS # " << evf::evtn::getlbn(data.data()) << endl;
              cout << "ORBIT # " << evf::evtn::getorbit(data.data()) << endl;
              cout << "GPS LOW # " << evf::evtn::getgpslow(data.data()) << endl;
              cout << "GPS HI # " << evf::evtn::getgpshigh(data.data()) << endl;
              cout << "BX FROM FDL 0-xing # " << evf::evtn::getfdlbx(data.data()) << endl;
              cout << "PRESCALE INDEX FROM FDL 0-xing # " << evf::evtn::getfdlpsc(data.data()) << endl;
            }
          }

      const FEDRawData& data2 = rawdata->FEDData(GTPEId);
      size=data2.size();

      if (size>0 ) {
          cout << "FED# " << setw(4) << GTPEId << " " << setw(8) << size << " bytes " << endl;
          if(evf::evtn::gtpe_board_sense(data2.data()))
            {
              cout << "FED# " << setw(4) << GTPEId << " is the real GTPE block " << endl;
              cout << "Event # " << evf::evtn::gtpe_get(data2.data()) << endl;
              cout << "LS # " << evf::evtn::gtpe_getlbn(data2.data()) << endl;
              cout << "ORBIT # " << evf::evtn::gtpe_getorbit(data2.data()) << endl;
              cout << "BX # " << evf::evtn::gtpe_getbx(data2.data()) << endl;
            }
          }

//        CPPUNIT_ASSERT(trailer.check()==true);
//        CPPUNIT_ASSERT(trailer.lenght()==(int)data.size()/8);
    }