-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New DAQ source for L1Trigger scouting
Implemented a new DAQSourceModel to read and merge Run3 L1 scouting data. - Similar to the existing FRDStriped input source - Modified EvFDaqDirector to enable the possibility of having multiple data sources per ramdisk - Added DataFormats/L1Scouting containing Scouting Raw Data Collection - Vector of FEDRawData - Included optional argument wordSize in the FEDRawData resize methods: 8 bytes by default, can be set to 4 bytes for scouting - Not a real FED, using a SRDCollection since L1scouting data will never be mixed with event data - Removed old scouting files that were used as an example - Test script for the ScoutingRun3 daq source
- Loading branch information
Showing
24 changed files
with
521 additions
and
1,156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<use name="DataFormats/Candidate"/> | ||
<use name="FWCore/Utilities"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/FEDRawData"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef L1Scouting_SDSNumbering_h | ||
#define L1Scouting_SDSNumbering_h | ||
|
||
/** | ||
* | ||
* This class holds the Scouting Data Source (SDS) | ||
* numbering scheme for the Level 1 scouting system | ||
* | ||
*/ | ||
|
||
class SDSNumbering { | ||
public: | ||
static constexpr int lastSDSId() { return MAXSDSID; } | ||
|
||
enum { | ||
NOT_A_SDSID = -1, | ||
MAXSDSID = 32, | ||
GmtSDSID = 1, | ||
CaloSDSID = 2, | ||
GtSDSID = 4, | ||
BmtfMinSDSID = 10, | ||
BmtfMaxSDSID = 21 | ||
}; | ||
}; | ||
|
||
#endif // L1Scouting_SDSNumbering_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef L1Scouting_SDSRawDataCollection_h | ||
#define L1Scouting_SDSRawDataCollection_h | ||
|
||
#include "DataFormats/FEDRawData/interface/FEDRawData.h" | ||
#include "DataFormats/Common/interface/traits.h" | ||
#include "FWCore/Utilities/interface/GCCPrerequisite.h" | ||
|
||
|
||
/** | ||
* | ||
* This collection holds the raw data for all the | ||
* scouting data sources. It is a collection of FEDRawData | ||
* | ||
*/ | ||
|
||
class SRDCollection: public edm::DoNotRecordParents { | ||
public: | ||
SRDCollection(); | ||
|
||
virtual ~SRDCollection(); | ||
|
||
// retrive data for the scouting source at sourceId | ||
const FEDRawData& FEDData(int sourceId) const; | ||
|
||
// retrive data for the scouting source at sourceId | ||
FEDRawData& FEDData(int sourceId); | ||
|
||
SRDCollection(const SRDCollection&); | ||
|
||
void swap(SRDCollection& other) { data_.swap(other.data_); } | ||
|
||
private: | ||
std::vector<FEDRawData> data_; // vector of raw data | ||
}; | ||
|
||
inline void swap(SRDCollection& a, SRDCollection& b) { a.swap(b); } | ||
|
||
#endif // L1Scouting_SDSRawDataCollection_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <DataFormats/L1Scouting/interface/SDSRawDataCollection.h> | ||
#include <DataFormats/L1Scouting/interface/SDSNumbering.h> | ||
|
||
SRDCollection::SRDCollection() : data_(SDSNumbering::lastSDSId() + 1) {} | ||
|
||
SRDCollection::SRDCollection(const SRDCollection& in) : data_(in.data_) {} | ||
|
||
SRDCollection::~SRDCollection() {} | ||
|
||
const FEDRawData& SRDCollection::FEDData(int sourceId) const { return data_[sourceId]; } | ||
|
||
FEDRawData& SRDCollection::FEDData(int sourceId) { return data_[sourceId]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <DataFormats/Common/interface/Wrapper.h> | ||
#include <DataFormats/Common/interface/RefProd.h> | ||
|
||
#include <DataFormats/L1Scouting/interface/SDSRawDataCollection.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<lcgdict> | ||
<class name="SRDCollection" /> | ||
<class name="edm::Wrapper<SRDCollection>" splitLevel="0"/> | ||
<class name="edm::RefProd<SRDCollection>"/> | ||
</lcgdict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.