57 inputTag_((char const *)
"rawDataCollector")
59 produces<L1AcceptBunchCrossingCollection>();
60 produces<L1TriggerScalersCollection>();
61 produces<Level1TriggerScalersCollection>();
62 produces<LumiScalersCollection>();
63 produces<BeamSpotOnlineCollection>();
64 produces<DcsStatusCollection>();
65 if ( iConfig.
exists(
"scalersInputTag") )
79 descriptions.
add(
"scalersRawToDigi",desc);
92 auto pLumi = std::make_unique<LumiScalersCollection>();
94 auto pOldTrigger = std::make_unique<L1TriggerScalersCollection>();
96 auto pTrigger = std::make_unique<Level1TriggerScalersCollection>();
98 auto pBunch = std::make_unique<L1AcceptBunchCrossingCollection>();
100 auto pBeamSpotOnline = std::make_unique<BeamSpotOnlineCollection>();
101 auto pDcsStatus = std::make_unique<DcsStatusCollection>();
105 unsigned short int length = fedData.
size();
108 int nWords = length / 8;
116 pOldTrigger->push_back(oldTriggerScalers);
122 pTrigger->push_back(triggerScalers);
134 pLumi->push_back(lumiScalers);
136 if (( nBytesExtra >= 8 ) && (( nBytesExtra % 8 ) == 0 ))
138 unsigned long long *
data =
139 (
unsigned long long *)fedData.data();
141 int nWordsExtra = nBytesExtra / 8;
142 for (
int i=0;
i<nWordsExtra;
i++)
144 int index = nWords - (nWordsExtra + 1) +
i;
146 pBunch->push_back(bc);
153 pBeamSpotOnline->push_back(beamSpotOnline);
156 pDcsStatus->push_back(dcsStatus);
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
size_t size() const
Lenght of the data buffer in bytes.
~ScalersRawToDigi() override
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
ScalersRawToDigi(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::Event &, const edm::EventSetup &) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< FEDRawDataCollection > fedToken_
char data[epos_bytes_allocation]