|
| EcalHexDisplay (const edm::ParameterSet &ps) |
|
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 (const std::string &iProcessName, std::vector< const char * > &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 () |
|
- Author
- G. Franzoni
Definition at line 27 of file EcalHexDisplay.h.
Implements edm::EDAnalyzer.
Definition at line 22 of file EcalHexDisplay.cc.
References beg_fed_id_, gather_cfg::cout, FEDRawData::data(), data, TauDecayModes::dec, end_fed_id_, event_, fedRawDataCollectionTag_, filename_, first_event_, edm::Event::getByLabel(), last_event_, FEDNumbering::MAXFEDID, lumiPlot::rawdata, FEDRawData::size(), and writeDcc_.
31 std::ofstream dumpFile (
filename_.c_str(),std::ios::app );
41 std::cout <<
"\n\n\n[EcalHexDumperModule] Event: "
44 <<
" size_fed: " << data.
size() <<
"\n"<< std::endl;
46 if ( ( data.
size() %16 ) !=0)
48 std::cout <<
"***********************************************" << std::endl;
49 std::cout<<
"Fed size in bits not multiple of 64, strange." << std::endl;
50 std::cout <<
"***********************************************" << std::endl;
54 int length = data.
size();
55 const unsigned long * pData = (
reinterpret_cast<unsigned long*
>(
const_cast<unsigned char*
> ( data.
data())));
57 for (
int words=0; words < length/4; (words+=2) )
59 std::cout << std::setw(8) << std::hex << pData[words+1] <<
" ";
60 std::cout << std::setw(8) << std::hex << pData[words] << std::endl;
68 dumpFile.write( reinterpret_cast <const char *> (pData), length);
size_t size() const
Lenght of the data buffer in bytes.
edm::InputTag fedRawDataCollectionTag_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.