Skip to content

Commit cddf007

Browse files
committed
Change lifetime::timeframe to sporadic in several places
1 parent 1ed6e7e commit cddf007

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Detectors/Calibration/workflow/CCDBPopulatorSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ namespace framework
149149
DataProcessorSpec getCCDBPopulatorDeviceSpec(const std::string& defCCDB, const std::string& nameExt)
150150
{
151151
using clbUtils = o2::calibration::Utils;
152-
std::vector<InputSpec> inputs = {{"clbPayload", "CLP"}, {"clbWrapper", "CLW"}};
152+
std::vector<InputSpec> inputs = {{"clbPayload", "CLP", Lifetime::Sporadic}, {"clbWrapper", "CLW", Lifetime::Sporadic}};
153153
std::string devName = "ccdb-populator";
154154
devName += nameExt;
155155
return DataProcessorSpec{

Detectors/TPC/workflow/include/TPCWorkflow/TPCDistributeIDCSpec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ class TPCDistributeIDCSpec : public o2::framework::Task
6969
const auto sides = IDCFactorization::getSides(mCRUs);
7070
for (auto side : sides) {
7171
const std::string name = (side == Side::A) ? "idcsgroupa" : "idcsgroupc";
72-
mFilter.emplace_back(InputSpec{name.data(), ConcreteDataTypeMatcher{o2::header::gDataOriginTPC, TPCFLPIDCDevice::getDataDescriptionIDCGroup(side)}, Lifetime::Timeframe});
72+
mFilter.emplace_back(InputSpec{name.data(), ConcreteDataTypeMatcher{o2::header::gDataOriginTPC, TPCFLPIDCDevice::getDataDescriptionIDCGroup(side)}, Lifetime::Sporadic});
7373
}
7474
} else {
75-
mFilter.emplace_back(InputSpec{"iccs", ConcreteDataTypeMatcher{o2::header::gDataOriginTPC, TPCIntegrateClustersDevice::getDataDescription()}, Lifetime::Timeframe});
75+
mFilter.emplace_back(InputSpec{"iccs", ConcreteDataTypeMatcher{o2::header::gDataOriginTPC, TPCIntegrateClustersDevice::getDataDescription()}, Lifetime::Sporadic});
7676
}
7777
};
7878

Detectors/TPC/workflow/include/TPCWorkflow/TPCDistributeSACSpec.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class TPCDistributeSACSpec : public o2::framework::Task
102102
void sendOutput(o2::framework::ProcessingContext& pc)
103103
{
104104
LOGP(info, "Sending SACs on lane: {} for {} TFs", mCurrentOutLane, mProcessedTFs);
105-
pc.outputs().snapshot(Output{gDataOriginTPC, getDataDescriptionSACCCDB(), 0, Lifetime::Timeframe}, mCCDBTimeStamp);
105+
pc.outputs().snapshot(Output{gDataOriginTPC, getDataDescriptionSACCCDB(), 0, Lifetime::Sporadic}, mCCDBTimeStamp);
106106
for (unsigned int i = 0; i < o2::tpc::GEMSTACKS; ++i) {
107107
pc.outputs().snapshot(Output{gDataOriginTPC, mDataDescrOut[mCurrentOutLane], header::DataHeader::SubSpecificationType{i}}, mSACs[i]);
108108
}
@@ -112,14 +112,14 @@ class TPCDistributeSACSpec : public o2::framework::Task
112112
DataProcessorSpec getTPCDistributeSACSpec(const unsigned int timeframes, const unsigned int outlanes)
113113
{
114114
std::vector<InputSpec> inputSpecs;
115-
inputSpecs.emplace_back(InputSpec{"sac", gDataOriginTPC, "DECODEDSAC", 0, Lifetime::Timeframe});
116-
inputSpecs.emplace_back(InputSpec{"reftime", gDataOriginTPC, "REFTIMESAC", 0, Lifetime::Timeframe});
115+
inputSpecs.emplace_back(InputSpec{"sac", gDataOriginTPC, "DECODEDSAC", 0, Lifetime::Sporadic});
116+
inputSpecs.emplace_back(InputSpec{"reftime", gDataOriginTPC, "REFTIMESAC", 0, Lifetime::Sporadic});
117117

118118
std::vector<OutputSpec> outputSpecs;
119119
for (unsigned int lane = 0; lane < outlanes; ++lane) {
120120
outputSpecs.emplace_back(ConcreteDataTypeMatcher{gDataOriginTPC, TPCDistributeSACSpec::getDataDescriptionSACVec(lane)}, Lifetime::Sporadic);
121121
}
122-
outputSpecs.emplace_back(gDataOriginTPC, TPCDistributeSACSpec::getDataDescriptionSACCCDB(), 0, Lifetime::Timeframe);
122+
outputSpecs.emplace_back(gDataOriginTPC, TPCDistributeSACSpec::getDataDescriptionSACCCDB(), 0, Lifetime::Sporadic);
123123

124124
return DataProcessorSpec{
125125
"tpc-distribute-sac",

Detectors/TPC/workflow/include/TPCWorkflow/TPCFactorizeSACSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class TPCFactorizeSACSpec : public o2::framework::Task
9393
const bool mDebug{false}; ///< dump SACs to tree for debugging
9494
const int mLaneId{0}; ///< the id of the current process within the parallel pipeline
9595
uint64_t mCCDBTimeStamp{0}; ///< time stamp of first SACs which are received for the current aggreagtion interval, which is used for setting the time when writing to the CCDB
96-
const std::vector<InputSpec> mFilter = {{"sac", ConcreteDataTypeMatcher{gDataOriginTPC, TPCDistributeSACSpec::getDataDescriptionSACVec(mLaneId)}, Lifetime::Timeframe}}; ///< filter for looping over input data
96+
const std::vector<InputSpec> mFilter = {{"sac", ConcreteDataTypeMatcher{gDataOriginTPC, TPCDistributeSACSpec::getDataDescriptionSACVec(mLaneId)}, Lifetime::Sporadic}}; ///< filter for looping over input data
9797

9898
void sendOutput(DataAllocator& output)
9999
{

0 commit comments

Comments
 (0)