25 inputTags_ = pset.
getParameter<std::vector<InputTag> >(
"RawCollectionList");
28 inputTokens_.reserve(inputTags_.size());
30 inputTokens_.push_back(consumes<FEDRawDataCollection>(*
inputTag));
32 produces<FEDRawDataCollection>();
43 std::vector< Handle<FEDRawDataCollection> > rawData;
44 rawData.reserve(inputTokens_.size());
45 for(
tok_iterator_t inputTok = inputTokens_.begin(); inputTok != inputTokens_.end(); ++inputTok ) {
48 rawData.push_back(input);
55 for (
unsigned int i=0;
i< rawData.size(); ++
i ) {
60 std::cout <<
"\nRAW collection #" <<
i+1 << std::endl;
61 std::cout <<
"branch name = " << rawData[
i].provenance()->branchName() << std::endl;
62 std::cout <<
"process index = " << rawData[
i].provenance()->productID().processIndex() << std::endl;
71 if(verbose_ > 1)
std::cout <<
"Copying data from FED #" <<
j << std::endl;
72 FEDRawData & fedDataProd = producedData->FEDData(
j);
73 if ( fedDataProd.
size() != 0 ) {
75 std::cout <<
" More than one FEDRawDataCollection with data in FED ";
81 unsigned char *dataProd=fedDataProd.
data();
82 const unsigned char *
data=fedData.
data();
83 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
std::vector< edm::EDGetTokenT< FEDRawDataCollection > >::const_iterator tok_iterator_t
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
static std::string const input
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.
char data[epos_bytes_allocation]
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.