54 inputTag_((
char const *)
"rawDataCollector")
56 produces<L1AcceptBunchCrossingCollection>();
57 produces<L1TriggerScalersCollection>();
58 produces<Level1TriggerScalersCollection>();
59 produces<LumiScalersCollection>();
60 produces<BeamSpotOnlineCollection>();
61 produces<DcsStatusCollection>();
62 if ( iConfig.
exists(
"scalersInputTag") )
85 std::auto_ptr<L1TriggerScalersCollection>
88 std::auto_ptr<Level1TriggerScalersCollection>
91 std::auto_ptr<L1AcceptBunchCrossingCollection>
99 unsigned short int length = fedData.size();
102 int nWords = length / 8;
110 pOldTrigger->push_back(oldTriggerScalers);
116 pTrigger->push_back(triggerScalers);
128 pLumi->push_back(lumiScalers);
130 if (( nBytesExtra >= 8 ) && (( nBytesExtra % 8 ) == 0 ))
132 unsigned long long *
data =
133 (
unsigned long long *)fedData.data();
135 int nWordsExtra = nBytesExtra / 8;
136 for (
int i=0;
i<nWordsExtra;
i++)
138 int index = nWords - (nWordsExtra + 1) +
i;
140 pBunch->push_back(bc);
147 pBeamSpotOnline->push_back(beamSpotOnline);
150 pDcsStatus->push_back(dcsStatus);
153 iEvent.
put(pOldTrigger);
154 iEvent.
put(pTrigger);
157 iEvent.
put(pBeamSpotOnline);
158 iEvent.
put(pDcsStatus);
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
T getParameter(std::string const &) const
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ScalersRawToDigi(const edm::ParameterSet &)
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
std::vector< DcsStatus > DcsStatusCollection
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::vector< Level1TriggerScalers > Level1TriggerScalersCollection
edm::EDGetTokenT< FEDRawDataCollection > fedToken_
char data[epos_bytes_allocation]
std::vector< LumiScalers > LumiScalersCollection
std::vector< L1TriggerScalers > L1TriggerScalersCollection