R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandOnlineCanvas.cxx
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2023 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
15
16namespace R3B::Neuland
17{
18 auto OnlineCanvas::IsTriggered() const -> bool
19 {
20 return CheckTriggerWithTpat(trigger_type_,
21 online_spectra_->GetEventHeader()->GetTpat(),
22 online_spectra_->GetBasePar()->GetOffSpillTpatPos());
23 }
24
25} // namespace R3B::Neuland
Simulation of NeuLAND Bar/Paddle.
auto CheckTriggerWithTpat(CalTrigger trigger, int tpat, int off_spill_bit) -> bool