Skip to content

Commit

Permalink
Object to provide TB to cut due to the Altro sync. procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Nov 23, 2024
1 parent 20973f4 commit ce63ff8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DataFormats/Detectors/TPC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ o2_target_root_dictionary(
include/DataFormatsTPC/VDriftCorrFact.h
include/DataFormatsTPC/CalibdEdxCorrection.h
include/DataFormatsTPC/BetheBlochAleph.h
include/DataFormatsTPC/PIDResponse.h)
include/DataFormatsTPC/PIDResponse.h
include/DataFormatsTPC/AltroSyncSignal.h)

o2_add_test(
ClusterNative
Expand Down
30 changes: 30 additions & 0 deletions DataFormats/Detectors/TPC/include/DataFormatsTPC/AltroSyncSignal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

/// \file AltroSyncSignal.h
/// \brief Definition of the timebin from which syncronization starts

#include "GPUCommonRtypes.h"

namespace o2::tpc
{
struct AltroSyncSignal {
int periodTF = 10; // signal repeats every period-th TF
int timebin = 141192.; // every 10 TF, orbit 31, Time bin 384, BC 4 -> 141195, but clusters can be affected before that

int getTB2Cut(uint32_t tfCounter) const
{
return periodTF > 0 && (tfCounter % periodTF) == 1 && tfCounter > periodTF ? timebin : -1;
}

ClassDefNV(AltroSyncSignal, 1);
};
} // namespace o2::tpc
1 change: 1 addition & 0 deletions DataFormats/Detectors/TPC/src/DataFormatsTPCLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@
#pragma link C++ class o2::tpc::TriggerWordDLBZS + ;
#pragma link C++ class o2::tpc::TriggerInfoDLBZS + ;
#pragma link C++ class std::vector < o2::tpc::TriggerInfoDLBZS> + ;
#pragma link C++ class o2::tpc::AltroSyncSignal + ;

#endif

0 comments on commit ce63ff8

Please sign in to comment.