CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
test::GlobalNumbersAnalysis Class Reference
Inheritance diagram for test::GlobalNumbersAnalysis:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const Event &e, const EventSetup &c)
 
 GlobalNumbersAnalysis (const ParameterSet &pset)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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.

33  {
34  }

Member Function Documentation

void test::GlobalNumbersAnalysis::analyze ( const Event e,
const EventSetup c 
)
inlinevirtual

Implements edm::EDAnalyzer.

Definition at line 37 of file testGlobalNumbers.cc.

References gather_cfg::cout, FEDRawData::data(), data, edm::EventID::event(), evf::evtn::evm_board_sense(), edm::EventBase::experimentType(), evf::evtn::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(), lumiPlot::rawdata, edm::EventID::run(), FEDRawData::size(), and findQualityFiles::size.

37  {
38  cout << "--- Run: " << e.id().run()
39  << " LS: " << e.luminosityBlock()
40  << " Event: " << e.id().event()
41  << " Type: " << e.experimentType() << endl;
43  e.getByLabel("source",rawdata);
44  const FEDRawData& data = rawdata->FEDData(GTEVMId);
45  size_t size=data.size();
46 
47  if (size>0 ) {
48  cout << "FED# " << setw(4) << GTEVMId << " " << setw(8) << size << " bytes " << endl;
50  {
51  cout << "FED# " << setw(4) << GTEVMId << " is the real GT EVM block " << endl;
52  cout << "Event # " << evf::evtn::get(data.data(),true) << endl;
53  cout << "LS # " << evf::evtn::getlbn(data.data()) << endl;
54  cout << "ORBIT # " << evf::evtn::getorbit(data.data()) << endl;
55  cout << "GPS LOW # " << evf::evtn::getgpslow(data.data()) << endl;
56  cout << "GPS HI # " << evf::evtn::getgpshigh(data.data()) << endl;
57  cout << "BX FROM FDL 0-xing # " << evf::evtn::getfdlbx(data.data()) << endl;
58  cout << "PRESCALE INDEX FROM FDL 0-xing # " << evf::evtn::getfdlpsc(data.data()) << endl;
59  }
60  }
61 
62  const FEDRawData& data2 = rawdata->FEDData(GTPEId);
63  size=data2.size();
64 
65  if (size>0 ) {
66  cout << "FED# " << setw(4) << GTPEId << " " << setw(8) << size << " bytes " << endl;
68  {
69  cout << "FED# " << setw(4) << GTPEId << " is the real GTPE block " << endl;
70  cout << "Event # " << evf::evtn::gtpe_get(data2.data()) << endl;
71  cout << "LS # " << evf::evtn::gtpe_getlbn(data2.data()) << endl;
72  cout << "ORBIT # " << evf::evtn::gtpe_getorbit(data2.data()) << endl;
73  cout << "BX # " << evf::evtn::gtpe_getbx(data2.data()) << endl;
74  }
75  }
76 
77 // CPPUNIT_ASSERT(trailer.check()==true);
78 // CPPUNIT_ASSERT(trailer.lenght()==(int)data.size()/8);
79  }
RunNumber_t run() const
Definition: EventID.h:42
EventNumber_t event() const
Definition: EventID.h:44
unsigned int getgpshigh(const unsigned char *)
unsigned int getfdlbx(const unsigned char *)
bool gtpe_board_sense(const unsigned char *p)
unsigned int get(const unsigned char *, bool)
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:59
unsigned int getfdlpsc(const unsigned char *)
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:49
static const unsigned int GTEVMId
unsigned int getlbn(const unsigned char *)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
bool evm_board_sense(const unsigned char *p, size_t size)
unsigned int getorbit(const unsigned char *)
unsigned int gtpe_getorbit(const unsigned char *)
edm::EventID id() const
Definition: EventBase.h:56
unsigned int gtpe_getbx(const unsigned char *)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
static const unsigned int GTPEId
edm::EventAuxiliary::ExperimentType experimentType() const
Definition: EventBase.h:61
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:29
tuple cout
Definition: gather_cfg.py:121
unsigned int gtpe_get(const unsigned char *)
dictionary rawdata
Definition: lumiPlot.py:393
unsigned int gtpe_getlbn(const unsigned char *)
unsigned int getgpslow(const unsigned char *)
tuple size
Write out results.