25 inputTags_ = pset.
getParameter<std::vector<InputTag> >(
"RawCollectionList");
28 produces<FEDRawDataCollection>();
39 std::vector< Handle<FEDRawDataCollection> > rawData;
40 for(
tag_iterator_t inputTag = inputTags_.begin(); inputTag != inputTags_.end(); ++inputTag ) {
43 rawData.push_back(input);
50 for (
unsigned int i=0;
i< rawData.size(); ++
i ) {
55 std::cout <<
"\nRAW collection #" <<
i+1 << std::endl;
56 std::cout <<
"branch name = " << rawData[
i].provenance()->branchName() << std::endl;
57 std::cout <<
"process index = " << rawData[
i].provenance()->productID().processIndex() << std::endl;
66 if(verbose_ > 1)
std::cout <<
"Copying data from FED #" <<
j << std::endl;
67 FEDRawData & fedDataProd = producedData->FEDData(
j);
68 if ( fedDataProd.
size() != 0 ) {
70 std::cout <<
" More than one FEDRawDataCollection with data in FED ";
76 unsigned char *dataProd=fedDataProd.
data();
77 const unsigned char *
data=fedData.
data();
78 for (
unsigned int k=0;
k<
size; ++
k ) {
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::InputTag >::const_iterator tag_iterator_t
size_t size() const
Lenght of the data buffer in bytes.
void produce(edm::Event &e, const edm::EventSetup &c)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void resize(size_t newsize)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~RawDataCollectorByLabel()
Destructor.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
RawDataCollectorByLabel(const edm::ParameterSet &pset)
Constructor.
tuple size
Write out results.