Project
Loading...
Searching...
No Matches
FiltererBC.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef O2_MID_FILTERERBC_H
18#define O2_MID_FILTERERBC_H
19
20#include <vector>
21#include <gsl/gsl>
24
25namespace o2
26{
27namespace mid
28{
31{
32 public:
36 std::vector<ROFRecord> process(gsl::span<const ROFRecord> rofRecords);
37
40 void setBCDiffLow(int bcDiffLow) { mBCDiffLow = bcDiffLow; }
41
44 void setBCDiffHigh(int bcDiffHigh) { mBCDiffHigh = bcDiffHigh; }
45
48 void setSelectOnly(bool selectOnly) { mSelectOnly = selectOnly; }
49
52 void setBunchFilling(const BunchFilling& bunchFilling) { mBunchFilling = bunchFilling; }
53
54 private:
58 int matchedCollision(int bc);
59
60 int mBCDiffLow = 0;
61 int mBCDiffHigh = 0;
62 bool mSelectOnly = false;
63 BunchFilling mBunchFilling;
64};
65} // namespace mid
66} // namespace o2
67
68#endif /* O2_MID_FILTERERBC_H */
uint64_t bc
Definition RawEventData.h:5
Definition of the MID event record.
Filtering algorithm for MID.
Definition FiltererBC.h:31
void setBCDiffLow(int bcDiffLow)
Set the maximum BC diff in the lower side.
Definition FiltererBC.h:40
void setBunchFilling(const BunchFilling &bunchFilling)
Sets the bunch filling scheme.
Definition FiltererBC.h:52
void setSelectOnly(bool selectOnly)
Only selects BCs but do not merge them.
Definition FiltererBC.h:48
void setBCDiffHigh(int bcDiffHigh)
Set the maximum BC diff in the upper side.
Definition FiltererBC.h:44
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...