Skip to content

Commit 6a1fd08

Browse files
TPC: read rule for the old ClusterNative::qTot
Files written before #15523 store the charge as qTot and were read back with qTotPacked = 0. The rule is bound to the checksum of the old layout. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent f9c9589 commit 6a1fd08

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎DataFormats/Detectors/TPC/src/DataFormatsTPCLinkDef.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#pragma link C++ class o2::tpc::ClusterHardware + ;
1919
#pragma link C++ class o2::tpc::ClusterHardwareContainer + ;
2020
#pragma link C++ class o2::tpc::ClusterNative + ;
21+
// ClusterNative::qTot was renamed to qTotPacked (saturated clusters encoded above maxRegularQtot): read the files written with the
22+
// old name (plain charge), identified by the checksum of the old layout; charges above maxRegularQtot are clipped to it
23+
#pragma read \
24+
sourceClass = "o2::tpc::ClusterNative" targetClass = "o2::tpc::ClusterNative" checksum = "[4114055202]" source = "UShort_t qTot" target = "qTotPacked" include = "DataFormatsTPC/ClusterNative.h" code = "{ qTotPacked = onfile.qTot > o2::tpc::ClusterNative::maxRegularQtot ? o2::tpc::ClusterNative::maxRegularQtot : onfile.qTot; }"
2125
#pragma link C++ class o2::tpc::ClusterHardwareContainer8kb + ;
2226
#pragma link C++ class o2::tpc::ClusterHardwareContainerFixedSize < 8192> + ;
2327
#pragma link C++ class o2::tpc::ClusterNativeContainer + ;

0 commit comments

Comments
 (0)