Skip to content

Commit aca070f

Browse files
carryOverMethod implemented (#5326)
* carryOverMethod implemented
1 parent bf683d0 commit aca070f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Detectors/FIT/FT0/simulation/include/FT0Simulation/Digits2Raw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class Digits2Raw
6363

6464
void setVerbosity(int v) { mVerbosity = v; }
6565
int getVerbosity() const { return mVerbosity; }
66+
int carryOverMethod(const header::RDHAny* rdh, const gsl::span<char> data,
67+
const char* ptr, int maxSize, int splitID,
68+
std::vector<char>& trailer, std::vector<char>& header) const;
6669

6770
private:
6871
EventHeader makeGBTHeader(int link, o2::InteractionRecord const& mIntRecord);

Detectors/FIT/FT0/simulation/src/Digits2Raw.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Digits2Raw::Digits2Raw(const std::string& fileRaw, const std::string& fileDigits
7575
void Digits2Raw::readDigits(const std::string& outDir, const std::string& fileDigitsName)
7676
{
7777
LOG(INFO) << "**********Digits2Raw::convertDigits" << std::endl;
78+
mWriter.setCarryOverCallBack(this);
7879

7980
/*
8081
std::string inputDir;
@@ -252,3 +253,11 @@ EventHeader Digits2Raw::makeGBTHeader(int link, o2::InteractionRecord const& mIn
252253
}
253254
return mEventHeader;
254255
}
256+
257+
//_____________________________________________________________________________________
258+
int Digits2Raw::carryOverMethod(const header::RDHAny* rdh, const gsl::span<char> data,
259+
const char* ptr, int maxSize, int splitID,
260+
std::vector<char>& trailer, std::vector<char>& header) const
261+
{
262+
return 0; // do not split, always start new CRU page
263+
}

0 commit comments

Comments
 (0)