20 produces<JetOrbitCollection>().setBranchAlias(
"JetOrbitCollection");
21 produces<TauOrbitCollection>().setBranchAlias(
"TauOrbitCollection");
22 produces<EGammaOrbitCollection>().setBranchAlias(
"EGammaOrbitCollection");
23 produces<BxSumsOrbitCollection>().setBranchAlias(
"BxSumsOrbitCollection");
38 size_t orbitSize = sourceRawData.
size();
46 std::cout <<
"No raw data for CALO source\n";
83 uint32_t orbit = bl->
orbit & 0x7FFFFFFF;
87 std::cout <<
"CALO Orbit " << orbit <<
", BX -> " <<
bx << std::endl;
131 int32_t
ET(0), Eta(0),
Phi(0), Qual(0);
132 for (uint32_t
i = 0;
i < 6;
i++) {
159 int32_t
ET(0), Eta(0),
Phi(0), Iso(0);
160 for (uint32_t
i = 0;
i < 6;
i++) {
165 Iso = ((dataBlock[
i] >> demux::shiftsEGamma::iso) & demux::masksEGamma::iso);
186 int32_t
ET(0), Eta(0),
Phi(0), Iso(0);
187 for (uint32_t
i = 0;
i < 6;
i++) {
192 Iso = ((dataBlock[
i] >> demux::shiftsTau::iso) & demux::masksTau::iso);
215 int32_t ETEt(0), ETEttem(0), ETMinBiasHFP0(0);
216 int32_t HTEt(0), HTtowerCount(0), HTMinBiasHFM0(0);
217 int32_t ETmissEt(0), ETmissPhi(0), ETmissASYMET(0), ETmissMinBiasHFP1(0);
218 int32_t HTmissEt(0), HTmissPhi(0), HTmissASYMHT(0), HTmissMinBiasHFM1(0);
219 int32_t ETHFmissEt(0), ETHFmissPhi(0), ETHFmissASYMETHF(0), ETHFmissCENT(0);
220 int32_t HTHFmissEt(0), HTHFmissPhi(0), HTHFmissASYMHTHF(0), HTHFmissCENT(0);
223 ETEt = ((dataBlock[0] >> demux::shiftsESums::ETEt) & demux::masksESums::ETEt);
224 ETEttem = ((dataBlock[0] >> demux::shiftsESums::ETEttem) & demux::masksESums::ETEttem);
230 HTEt = ((dataBlock[1] >> demux::shiftsESums::HTEt) & demux::masksESums::HTEt);
235 ETmissEt = ((dataBlock[2] >> demux::shiftsESums::ETmissEt) & demux::masksESums::ETmissEt);
236 ETmissPhi = ((dataBlock[2] >> demux::shiftsESums::ETmissPhi) & demux::masksESums::ETmissPhi);
244 HTmissEt = ((dataBlock[3] >> demux::shiftsESums::HTmissEt) & demux::masksESums::HTmissEt);
245 HTmissPhi = ((dataBlock[3] >> demux::shiftsESums::HTmissPhi) & demux::masksESums::HTmissPhi);
253 ETHFmissEt = ((dataBlock[4] >> demux::shiftsESums::ETHFmissEt) & demux::masksESums::ETHFmissEt);
254 ETHFmissPhi = ((dataBlock[4] >> demux::shiftsESums::ETHFmissPhi) & demux::masksESums::ETHFmissPhi);
256 if (ETHFmissEt > 0) {
262 HTHFmissEt = ((dataBlock[5] >> demux::shiftsESums::ETHFmissEt) & demux::masksESums::ETHFmissEt);
263 HTHFmissPhi = ((dataBlock[5] >> demux::shiftsESums::ETHFmissPhi) & demux::masksESums::ETHFmissPhi);
265 if (HTHFmissEt > 0) {
273 ETMinBiasHFP0 = ((dataBlock[0] >> demux::shiftsESums::ETMinBiasHF) & demux::masksESums::ETMinBiasHF);
277 HTtowerCount = ((dataBlock[1] >> demux::shiftsESums::HTtowerCount) & demux::masksESums::HTtowerCount);
278 HTMinBiasHFM0 = ((dataBlock[1] >> demux::shiftsESums::HTMinBiasHF) & demux::masksESums::HTMinBiasHF);
284 ETmissASYMET = ((dataBlock[2] >> demux::shiftsESums::ETmissASYMET) & demux::masksESums::ETmissASYMET);
285 ETmissMinBiasHFP1 = ((dataBlock[2] >> demux::shiftsESums::ETmissMinBiasHF) & demux::masksESums::ETmissMinBiasHF);
290 HTmissASYMHT = ((dataBlock[3] >> demux::shiftsESums::HTmissASYMHT) & demux::masksESums::HTmissASYMHT);
291 HTmissMinBiasHFM1 = ((dataBlock[3] >> demux::shiftsESums::HTmissMinBiasHF) & demux::masksESums::HTmissMinBiasHF);
297 ETHFmissASYMETHF = ((dataBlock[4] >> demux::shiftsESums::ETHFmissASYMETHF) & demux::masksESums::ETHFmissASYMETHF);
298 ETHFmissCENT = ((dataBlock[4] >> demux::shiftsESums::ETHFmissCENT) & demux::masksESums::ETHFmissCENT);
303 HTHFmissASYMHTHF = ((dataBlock[5] >> demux::shiftsESums::ETHFmissASYMETHF) & demux::masksESums::ETHFmissASYMETHF);
304 HTHFmissCENT = ((dataBlock[5] >> demux::shiftsESums::ETHFmissCENT) & demux::masksESums::ETHFmissCENT);
void unpackOrbit(const unsigned char *buf, size_t len)
void setHwTotalEtEm(int hwTotalEtEm)
T getParameter(std::string const &) const
void setHwMissEtHFPhi(int hwMissEtHFPhi)
void produce(edm::Event &, const edm::EventSetup &) override
void setMinBiasHFM0(int minBiasHFM0)
void setMinBiasHFP0(int minBiasHFP0)
void unpackLinkJets(uint32_t *dataBlock, int bx)
void setHwAsymHtHF(int hwAsymHtHF)
~ScCaloRawToDigi() override
const FEDRawData & FEDData(int sourceId) const
size_t size() const
Lenght of the data buffer in bytes.
void printJet(const Jet &jet, std::ostream &outs=std::cout)
void printEGamma(const EGamma &eGamma, std::ostream &outs=std::cout)
void printBxSums(const BxSums &sums, std::ostream &outs=std::cout)
std::vector< std::vector< l1ScoutingRun3::Tau > > orbitBufferTaus_
T getUntrackedParameter(std::string const &, T const &) const
ScCaloRawToDigi(const edm::ParameterSet &)
void setHwMissEtHF(int hwMissEtHF)
void addDefault(ParameterSetDescription const &psetDescription)
void setHwAsymHt(int hwAsymHt)
void setHwMissHtHF(int hwMissHtHF)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void unpackEtSums(uint32_t *dataBlock, int bx)
void setHwTotalHt(int hwTotalHt)
std::vector< std::vector< l1ScoutingRun3::BxSums > > orbitBufferEtSums_
#define DEFINE_FWK_MODULE(type)
static constexpr int CaloSDSID
void setHwAsymEtHF(int hwAsymEtHF)
void setCentrality(int centrality)
std::vector< std::vector< l1ScoutingRun3::EGamma > > orbitBufferEGammas_
void setTowerCount(int towerCount)
void setHwMissHt(int hwMissHt)
void setHwAsymEt(int hwAsymEt)
void setMinBiasHFM1(int minBiasHFM1)
void setMinBiasHFP1(int minBiasHFP1)
void printTau(const Tau &tau, std::ostream &outs=std::cout)
edm::InputTag srcInputTag
std::vector< std::vector< l1ScoutingRun3::Jet > > orbitBufferJets_
void unpackLinkTaus(uint32_t *dataBlock, int bx)
void setHwMissEtPhi(int hwMissEtPhi)
void unpackLinkEGammas(uint32_t *dataBlock, int bx)
void setHwTotalEt(int hwTotalEt)
void setHwMissHtPhi(int hwMissHtPhi)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void setHwMissEt(int hwMissEt)
void setHwMissHtHFPhi(int hwMissHtHFPhi)