10 orbitBuffer_ = std::vector<std::vector<l1ScoutingRun3::BMTFStub>>(3565);
16 produces<l1ScoutingRun3::BMTFStubOrbitCollection>().setBranchAlias(
"BMTFStubOrbitCollection");
33 <<
"Provided a source ID outside the expected range: " << sdsId <<
", expected range [" 36 size_t orbitSize = sourceRawData.
size();
39 std::cout <<
"No raw data for BMTF FED " << sdsId << std::endl;
67 unsigned orbit = (bl->
orbit) & 0x7FFFFFFF;
68 unsigned sCount = (bl->
header) & 0xff;
70 size_t pos_increment = 12 + sCount * 8;
72 assert(pos_increment <= len);
77 std::cout <<
" BMTF #" << sdsId <<
" Orbit " << orbit <<
", BX -> " <<
bx <<
", nStubs -> " << sCount
85 std::vector<std::vector<bool>> stwh_matrix(4, std::vector<bool>(5,
false));
86 for (
unsigned int i = 0;
i < sCount;
i++) {
91 phiB = ((stub_raw >> bmtf::shiftsStubs::phiB) & bmtf::masksStubs::phiB);
94 qeta = ((stub_raw >> bmtf::shiftsStubs::qeta) & bmtf::masksStubs::qeta);
107 phiB = phiB >= 512 ? phiB - 1024 : phiB;
115 std::cout <<
"Stub " <<
i <<
", raw: 0x" << std::hex << stub_raw <<
std::dec << std::endl;
117 std::cout <<
"\tPhiB: " << phiB << std::endl;
120 std::cout <<
"\tQEta: " << qeta << std::endl;
static constexpr int BmtfMinSDSID
T getParameter(std::string const &) const
const FEDRawData & FEDData(int sourceId) const
~ScBMTFRawToDigi() override
size_t size() const
Lenght of the data buffer in bytes.
void unpackOrbit(const unsigned char *buf, size_t len, int sdsId)
Log< level::Error, false > LogError
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< std::vector< l1ScoutingRun3::BMTFStub > > orbitBuffer_
static constexpr int BmtfMaxSDSID
T getUntrackedParameter(std::string const &, T const &) const
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
edm::InputTag srcInputTag_
unsigned long long uint64_t
edm::EDGetToken rawToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
std::vector< int > sourceIdList_
ScBMTFRawToDigi(const edm::ParameterSet &)