1 #ifndef EventFilter_Utilities_DAQSourceModelsScouting_h 2 #define EventFilter_Utilities_DAQSourceModelsScouting_h 23 static constexpr uint32_t
phiext = 0x3ff;
24 static constexpr uint32_t
pt = 0x1ff;
25 static constexpr uint32_t
qual = 0xf;
26 static constexpr uint32_t
etaext = 0x1ff;
28 static constexpr uint32_t
etaexts = 0x100;
29 static constexpr uint32_t
iso = 0x3;
30 static constexpr uint32_t
chrg = 0x1;
31 static constexpr uint32_t
chrgv = 0x1;
32 static constexpr uint32_t
index = 0x7f;
33 static constexpr uint32_t
phi = 0x3ff;
34 static constexpr uint32_t
eta = 0x1ff;
35 static constexpr uint32_t
etav = 0xff;
36 static constexpr uint32_t
etas = 0x100;
37 static constexpr uint32_t
phiv = 0x1ff;
38 static constexpr uint32_t
phis = 0x200;
39 static constexpr uint32_t
sv = 0x3;
43 static constexpr uint32_t
phiext = 0;
44 static constexpr uint32_t
pt = 10;
45 static constexpr uint32_t
qual = 19;
46 static constexpr uint32_t
etaext = 23;
47 static constexpr uint32_t
iso = 0;
48 static constexpr uint32_t
chrg = 2;
49 static constexpr uint32_t
chrgv = 3;
50 static constexpr uint32_t
index = 4;
51 static constexpr uint32_t
phi = 11;
52 static constexpr uint32_t
eta = 21;
53 static constexpr uint32_t
rsv = 30;
82 dummyLVec_ = std::make_unique<ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>>();
91 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
103 std::vector<uint64_t>
const& fileSizes,
104 size_t fileHeaderSize)
override {
136 return std::make_pair(
true, std::vector<std::string>());
149 std::unique_ptr<ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>>
dummyLVec_;
159 dummyLVec_ = std::make_unique<ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>>();
168 void detectVersion(
unsigned char* fileBuf, uint32_t fileHeaderOffset)
override {
183 std::vector<uint64_t>
const& fileSizes,
184 size_t fileHeaderSize)
override {
194 auto fileAddr =
addr;
195 for (
unsigned int i = 1;
i < fileSizes.size();
i++) {
196 fileAddr += fileSizes[
i - 1];
217 return events_[0]->isRealData();
220 uint32_t
run()
const override {
250 std::vector<std::unique_ptr<FRDEventMsgView>>
events_;
252 std::unique_ptr<ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double>>>
dummyLVec_;
268 #endif // EventFilter_Utilities_DAQSourceModelsScouting_h
static constexpr uint32_t chrg
uint16_t detectedFRDversion_
static constexpr uint32_t phis
bool isRealData() const override
void readEvent(edm::EventPrincipal &eventPrincipal) override
static constexpr uint32_t index
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::string const &runDir) override
uint16_t detectedFRDversion_
constexpr size_t FRDHeaderMaxVersion
void makeDirectoryEntries(std::vector< std::string > const &baseDirs, std::string const &runDir) override
bool nextEventView() override
static constexpr uint32_t etaexts
uint64_t dataBlockSize() const override
void unpackOrbit(BXVector< l1t::Muon > *muons, char *buf, size_t len)
bool checksumValid() override
static constexpr float pt_scale
static constexpr uint32_t etav
std::vector< unsigned char * > dataBlockAddrs_
static constexpr float phi_scale
bool dataBlockCompleted() const override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
std::unique_ptr< ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > > dummyLVec_
bool versionCheck() const override
bool dataBlockInitialized() const override
void readEvent(edm::EventPrincipal &eventPrincipal) override
bool fitToBuffer() const override
unsigned char * dataBlockAddr_
void setDataBlockInitialized(bool) override
static constexpr uint32_t iso
DataModeScoutingRun2Multi(DAQSource *daqSource)
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > daqProvenanceHelpers_
void setDataBlockInitialized(bool val) override
static constexpr uint32_t eta
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override
std::vector< std::unique_ptr< FRDEventMsgView > > events_
static constexpr uint32_t qual
int dataVersion() const override
static constexpr uint32_t iso
void makeDataBlockView(unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize) override
static constexpr uint32_t chrgv
void unpackMuonOrbit(BXVector< l1t::Muon > *muons, char *buf, size_t len)
bool isRealData() const override
static constexpr uint32_t rsv
uint32_t run() const override
static constexpr uint32_t index
static constexpr uint32_t phi
static constexpr uint32_t pt
std::vector< unsigned char * > dataBlockMaxAddrs_
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool fileListMode) const override
static constexpr uint32_t chrgv
uint64_t dataBlockSize() const override
void setTCDSSearchRange(uint16_t MINTCDSuTCAFEDID, uint16_t MAXTCDSuTCAFEDID) override
static constexpr uint32_t etaextv
static constexpr uint32_t phiext
void setTCDSSearchRange(uint16_t MINTCDSuTCAFEDID, uint16_t MAXTCDSuTCAFEDID) override
DataModeScoutingRun2Muon(DAQSource *daqSource)
void detectVersion(unsigned char *fileBuf, uint32_t fileHeaderOffset) override
std::vector< unsigned char * > startAddrs_
void detectVersion(unsigned char *fileBuf, uint32_t fileHeaderOffset) override
static constexpr uint32_t eta
~DataModeScoutingRun2Multi() override
bool requireHeader() const override
~DataModeScoutingRun2Muon() override
static constexpr uint32_t pt
static constexpr uint32_t sv
unsigned long long uint64_t
uint32_t headerSize() const override
static constexpr uint32_t chrg
static constexpr uint32_t etaext
static constexpr uint32_t etaext
static constexpr uint32_t phiv
bool dataBlockInitialized_
std::string getChecksumError() const override
bool versionCheck() const override
static constexpr uint32_t phiext
int dataVersion() const override
std::vector< std::shared_ptr< const edm::DaqProvenanceHelper > > & makeDaqProvenanceHelpers() override
bool requireHeader() const override
static constexpr uint32_t etas
bool nextEventView() override
static constexpr uint32_t phi
bool dataBlockCompleted() const override
std::pair< bool, std::vector< std::string > > defineAdditionalFiles(std::string const &primaryName, bool) const override
bool checksumValid() override
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
bool dataBlockInitialized() const override
unsigned char * dataBlockAddr_
static constexpr float eta_scale
void makeDataBlockView(unsigned char *addr, size_t maxSize, std::vector< uint64_t > const &fileSizes, size_t fileHeaderSize) override
uint32_t run() const override
std::unique_ptr< FRDEventMsgView > event_
uint32_t headerSize() const override
std::string getChecksumError() const override
static constexpr float phi_range
std::unique_ptr< ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > > dummyLVec_
static constexpr uint32_t qual