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);
94 std::auto_ptr<L1TriggerScalersCollection>
97 std::auto_ptr<Level1TriggerScalersCollection>
100 std::auto_ptr<L1AcceptBunchCrossingCollection>
108 unsigned short int length = fedData.size();
111 int nWords = length / 8;
119 pOldTrigger->push_back(oldTriggerScalers);
125 pTrigger->push_back(triggerScalers);
137 pLumi->push_back(lumiScalers);
139 if (( nBytesExtra >= 8 ) && (( nBytesExtra % 8 ) == 0 ))
141 unsigned long long *
data =
142 (
unsigned long long *)fedData.data();
144 int nWordsExtra = nBytesExtra / 8;
145 for (
int i=0;
i<nWordsExtra;
i++)
147 int index = nWords - (nWordsExtra + 1) +
i;
149 pBunch->push_back(bc);
156 pBeamSpotOnline->push_back(beamSpotOnline);
159 pDcsStatus->push_back(dcsStatus);
162 iEvent.
put(pOldTrigger);
163 iEvent.
put(pTrigger);
166 iEvent.
put(pBeamSpotOnline);
167 iEvent.
put(pDcsStatus);
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< DcsStatus > DcsStatusCollection
virtual void produce(edm::Event &, const edm::EventSetup &) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< Level1TriggerScalers > Level1TriggerScalersCollection
edm::EDGetTokenT< FEDRawDataCollection > fedToken_
char data[epos_bytes_allocation]
std::vector< LumiScalers > LumiScalersCollection
std::vector< L1TriggerScalers > L1TriggerScalersCollection