Public Member Functions | |
void | analyze (const Event &e, const EventSetup &c) |
GlobalNumbersAnalysis (const ParameterSet &pset) |
Definition at line 30 of file testGlobalNumbers.cc.
test::GlobalNumbersAnalysis::GlobalNumbersAnalysis | ( | const ParameterSet & | pset | ) | [inline] |
void test::GlobalNumbersAnalysis::analyze | ( | const Event & | e, | |
const EventSetup & | c | |||
) | [inline, virtual] |
Implements edm::EDAnalyzer.
Definition at line 37 of file testGlobalNumbers.cc.
References GenMuonPlsPt100GeV_cfg::cout, FEDRawData::data(), data, lat::endl(), edm::EventID::event(), evf::evtn::evm_board_sense(), edm::Event::experimentType(), evf::evtn::get(), edm::Event::getByType(), 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::Event::id(), edm::Event::luminosityBlock(), edm::EventID::run(), FEDRawData::size(), and size.
00037 { 00038 cout << "--- Run: " << e.id().run() 00039 << " LS: " << e.luminosityBlock() 00040 << " Event: " << e.id().event() 00041 << " Type: " << e.experimentType() << endl; 00042 Handle<FEDRawDataCollection> rawdata; 00043 e.getByType(rawdata); 00044 const FEDRawData& data = rawdata->FEDData(GTEVMId); 00045 size_t size=data.size(); 00046 00047 if (size>0 ) { 00048 cout << "FED# " << setw(4) << GTEVMId << " " << setw(8) << size << " bytes " << endl; 00049 if(evf::evtn::evm_board_sense(data.data(),size)) 00050 { 00051 cout << "FED# " << setw(4) << GTEVMId << " is the real GT EVM block " << endl; 00052 cout << "Event # " << evf::evtn::get(data.data(),true) << endl; 00053 cout << "LS # " << evf::evtn::getlbn(data.data()) << endl; 00054 cout << "ORBIT # " << evf::evtn::getorbit(data.data()) << endl; 00055 cout << "GPS LOW # " << evf::evtn::getgpslow(data.data()) << endl; 00056 cout << "GPS HI # " << evf::evtn::getgpshigh(data.data()) << endl; 00057 cout << "BX FROM FDL 0-xing # " << evf::evtn::getfdlbx(data.data()) << endl; 00058 cout << "PRESCALE INDEX FROM FDL 0-xing # " << evf::evtn::getfdlpsc(data.data()) << endl; 00059 } 00060 } 00061 00062 const FEDRawData& data2 = rawdata->FEDData(GTPEId); 00063 size=data2.size(); 00064 00065 if (size>0 ) { 00066 cout << "FED# " << setw(4) << GTPEId << " " << setw(8) << size << " bytes " << endl; 00067 if(evf::evtn::gtpe_board_sense(data2.data())) 00068 { 00069 cout << "FED# " << setw(4) << GTPEId << " is the real GTPE block " << endl; 00070 cout << "Event # " << evf::evtn::gtpe_get(data2.data()) << endl; 00071 cout << "LS # " << evf::evtn::gtpe_getlbn(data2.data()) << endl; 00072 cout << "ORBIT # " << evf::evtn::gtpe_getorbit(data2.data()) << endl; 00073 cout << "BX # " << evf::evtn::gtpe_getbx(data2.data()) << endl; 00074 } 00075 } 00076 00077 // CPPUNIT_ASSERT(trailer.check()==true); 00078 // CPPUNIT_ASSERT(trailer.lenght()==(int)data.size()/8); 00079 }