Skip to content

Commit e3f58ca

Browse files
author
wpierozak
committed
FT0: removed amplitudes thresholds from EventsPerBc
1 parent 21746d8 commit e3f58ca

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

DataFormats/Detectors/FIT/FT0/include/DataFormatsFT0/EventsPerBc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace o2::ft0
88
{
99
struct EventsPerBc {
1010
std::array<double, o2::constants::lhc::LHCMaxBunches> histogram;
11-
int16_t amplThresSideA;
12-
int16_t amplThresSideC;
1311
ClassDefNV(EventsPerBc, 1);
1412
};
1513
} // namespace o2::ft0

Detectors/FIT/FT0/calibration/src/EventsPerBcCalibrator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void EventsPerBcCalibrator::finalizeSlot(EventsPerBcCalibrator::Slot& slot)
5252
{
5353
LOG(info) << "Finalizing slot from " << slot.getStartTimeMS() << " to " << slot.getEndTimeMS();
5454
o2::ft0::EventsPerBcContainer* data = slot.getContainer();
55-
mTvxPerBcs.emplace_back(data->mTvx, mMinAmplitudeSideA, mMinAmplitudeSideC);
55+
mTvxPerBcs.emplace_back(data->mTvx);
5656

5757
auto clName = o2::utils::MemFileHelper::getClassName(mTvxPerBcs.back());
5858
auto flName = o2::ccdb::CcdbApi::generateFileName(clName);

Detectors/FIT/FT0/macros/FT0readEventsPerBc.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include "Framework/Logger.h"
1010
#include "CommonConstants/LHCConstants.h"
11+
#include "DataFormatsFT0/EventsPerBc.h"
1112

12-
using EventsArray = std::array<double, o2::constants::lhc::LHCMaxBunches>;
1313
std::unique_ptr<TH1F> hist;
1414
std::unique_ptr<TCanvas> canvas;
1515

@@ -24,7 +24,7 @@ void FT0readEventsPerBc(std::string ccdbUrl, long timestamp)
2424
timestamp = o2::ccdb::getCurrentTimestamp();
2525
}
2626

27-
EventsArray* events = ccdbApi.retrieveFromTFileAny<EventsArray>(ccdbPath, metadata, timestamp);
27+
EventsArray* events = ccdbApi.retrieveFromTFileAny<o2::ft0::EventsPerBc>(ccdbPath, metadata, timestamp);
2828

2929
if (!events) {
3030
LOGP(fatal, "EventsPerBc object not found in {}/{} for timestamp {}.", ccdbUrl, ccdbPath, timestamp);
@@ -33,7 +33,7 @@ void FT0readEventsPerBc(std::string ccdbUrl, long timestamp)
3333

3434
hist = std::make_unique<TH1F>("eventsPerBcHist", "Events per BC", o2::constants::lhc::LHCMaxBunches, 0, o2::constants::lhc::LHCMaxBunches - 1);
3535
for (int idx = 0; idx < o2::constants::lhc::LHCMaxBunches; idx++) {
36-
hist->Fill(idx, (*events)[idx]);
36+
hist->Fill(idx, events->histogram[idx]);
3737
}
3838
canvas = std::make_unique<TCanvas>();
3939
hist->Draw();

0 commit comments

Comments
 (0)