Skip to content

Commit

Permalink
Move HGCalRawDataDefinitions.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
hqucms authored and pfs committed Jul 24, 2024
1 parent e109222 commit 2a083a9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,22 @@
namespace hgcal {
namespace econd {
enum ToTStatus { ZeroSuppressed = 0x0, noZeroSuppressed_TOASuppressed = 0x1, invalid = 0x2, AutomaticFull = 0x3 };
}
} // namespace econd

namespace backend {
enum ECONDPacketStatus {
Normal = 0x0,
PayloadTooLarge = 0x1,
PayloadCRCError = 0x2,
EventIDMismatch = 0x3,
EBTimeout = 0x4,
BCIDOrbitIDMismatch = 0x5,
MainBufferOverflow = 0x6,
InactiveECOND = 0x7
};

} // namespace backend

enum ECOND_FRAME {
HEADER_POS = 23,
HEADER_MASK = 0x1ff,
Expand Down
10 changes: 0 additions & 10 deletions SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataPackingTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ namespace hgcal {
} // namespace econd

namespace backend {
enum ECONDPacketStatus {
Normal = 0x0,
PayloadCRCError = 0x1,
EventIDMismatch = 0x2,
EBTimeout = 0x4,
BCIDOrbitIDMismatch = 0x5,
MainBufferOverflow = 0x6,
InactiveECOND = 0x7
};

/// builds the capture block header (see page 16 of "HGCAL BE DAQ firmware description")
/// \return a vector of size 2 with the 2 32b words of the capture block header
std::vector<uint32_t> buildCaptureBlockHeader(uint32_t bunch_crossing,
Expand Down
2 changes: 1 addition & 1 deletion SimCalorimetry/HGCalSimAlgos/interface/SlinkTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <tuple>
#include <vector>

#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataDefinitions.h"
#include "DataFormats/HGCalDigi/interface/HGCalRawDataDefinitions.h"

namespace hgcal::econd {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalECONDEmulatorParameters.h"
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataDefinitions.h"
#include "DataFormats/HGCalDigi/interface/HGCalRawDataDefinitions.h"

using namespace hgcal::econd;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataPackingTools.h"
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataDefinitions.h"
#include "DataFormats/HGCalDigi/interface/HGCalRawDataDefinitions.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Expand Down
2 changes: 1 addition & 1 deletion SimCalorimetry/HGCalSimAlgos/src/TrivialEmulator.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalECONDEmulator.h"
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalRawDataDefinitions.h"
#include "DataFormats/HGCalDigi/interface/HGCalRawDataDefinitions.h"

using namespace hgcal::econd;

Expand Down

0 comments on commit 2a083a9

Please sign in to comment.