Skip to content

Commit c0bbecc

Browse files
noferinishahor02
authored andcommitted
TOF channel calibration using cosmics
add on-the-fly tracking for cosmics crossing many strips in a TOF module add TOF calibration with cosmics update for calibration with cosmics templetization of TOF channel calibration to read different objects Improvements and fixes format Possibility to calibrate not only at the EoR. We need still to change the logic, because now it happens that too few pairs have enough entries for the fit, so in the end we close a time slot, but without being able to produce a CCDB entry.
1 parent 004cf3c commit c0bbecc

14 files changed

Lines changed: 676 additions & 203 deletions

File tree

DataFormats/Detectors/TOF/include/DataFormatsTOF/CosmicInfo.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,29 @@ class CosmicInfo
5858

5959
ClassDefNV(CosmicInfo, 2);
6060
};
61+
62+
class CalibInfoTrackCl
63+
{
64+
int mCh = 0;
65+
float mX = 0;
66+
float mY = 0;
67+
float mZ = 0;
68+
float mT = 0;
69+
short mTot = 0;
70+
71+
public:
72+
int getCH() const { return mCh; }
73+
float getT() const { return mT; }
74+
float getX() const { return mX; }
75+
float getY() const { return mY; }
76+
float getZ() const { return mZ; }
77+
short getTOT() const { return mTot; }
78+
79+
CalibInfoTrackCl() = default;
80+
CalibInfoTrackCl(int ch, float x, float y, float z, float t, short tot) : mCh(ch), mX(x), mY(y), mZ(z), mT(t), mTot(tot) {}
81+
ClassDefNV(CalibInfoTrackCl, 1);
82+
};
83+
6184
} // namespace tof
6285

6386
} // namespace o2

DataFormats/Detectors/TOF/src/DataFormatsTOFLinkDef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
#pragma link C++ class o2::tof::Cluster + ;
1717
#pragma link C++ class o2::tof::CalibInfoCluster + ;
1818
#pragma link C++ class o2::tof::CosmicInfo + ;
19+
#pragma link C++ class o2::tof::CalibInfoTrackCl + ;
1920
#pragma link C++ class std::vector < o2::tof::Cluster> + ;
2021
#pragma link C++ class std::vector < o2::tof::CalibInfoCluster> + ;
2122
#pragma link C++ class std::vector < o2::tof::CosmicInfo> + ;
23+
#pragma link C++ class std::vector < o2::tof::CalibInfoTrackCl> + ;
2224

2325
#pragma link C++ class o2::dataformats::CalibInfoTOFshort + ;
2426
#pragma link C++ class o2::dataformats::CalibInfoTOF + ;

Detectors/TOF/calibration/include/TOFCalibration/TOFCalibCollector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "DetectorsCalibration/TimeSlotCalibration.h"
1515
#include "DetectorsCalibration/TimeSlot.h"
1616
#include "DataFormatsTOF/CalibInfoTOF.h"
17+
#include "DataFormatsTOF/CalibInfoCluster.h"
1718
#include "TOFBase/Geo.h"
1819
#include "DataFormatsTOF/CalibInfoTOFshort.h"
1920

@@ -45,6 +46,7 @@ class TOFCalibInfoSlot
4546
void print() const;
4647
void printEntries() const;
4748
void fill(const gsl::span<const o2::dataformats::CalibInfoTOF> data);
49+
void fill(const gsl::span<const o2::tof::CalibInfoCluster> data);
4850
void merge(const TOFCalibInfoSlot* prev);
4951

5052
auto& getEntriesPerChannel() const { return mEntriesSlot; }

0 commit comments

Comments
 (0)