-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Object to provide TB to cut due to the Altro sync. procedure
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
DataFormats/Detectors/TPC/include/DataFormatsTPC/AltroSyncSignal.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters