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+
12+ #ifndef COMMON_DATAMODEL_FITEXTRA_H_
13+ #define COMMON_DATAMODEL_FITEXTRA_H_
14+
15+ #include " Framework/ASoA.h"
16+ #include " Framework/AnalysisDataModel.h"
17+
18+ namespace o2 ::aod
19+ {
20+ namespace fit
21+ {
22+ // Quantities copied straight from AOD
23+ DECLARE_SOA_COLUMN (PV , pv, float ); // ! Primary vertex position in cm (o2::aod::collision::PosZ)
24+ DECLARE_SOA_COLUMN (NContrib, nContrib, int ); // ! Number of contributors to primary vertex (o2::aod::collision::NumContrib)
25+ DECLARE_SOA_COLUMN (FT0TimeA, ft0timeA, float ); // ! FT0-A average time in ns (o2::aod::ft0::TimeA)
26+ DECLARE_SOA_COLUMN (FT0TimeC, ft0timeC, float ); // ! FT0-C average time in ns (o2::aod::ft0::TimeC)
27+ DECLARE_SOA_COLUMN (FT0TimeACorr, ft0timeACorr, float ); // ! FT0-A average time in ns corrected PV (o2::aod::ft0::T0ACorrected)
28+ DECLARE_SOA_COLUMN (FT0TimeCCorr, ft0timeCCorr, float ); // ! FT0-C average time in ns corrected PV (o2::aod::ft0::T0CCorrected)
29+ DECLARE_SOA_COLUMN (FT0Time, ft0time, float ); // ! FT0 collision time in ns (o2::aod::ft0::CollTime)
30+ DECLARE_SOA_COLUMN (FT0TimeRes, ft0timeRes, float ); // ! FT0 collision time resolution in ns (o2::aod::ft0::T0Resolution)
31+ DECLARE_SOA_COLUMN (FT0Vtx, ft0vtx, float ); // ! FT0 vertex in cm (o2::aod::ft0::PosZ)
32+ DECLARE_SOA_COLUMN (FV0Time, fv0time, float ); // ! FV0 average time in ns (o2::aod::fv0a::Time)
33+ DECLARE_SOA_COLUMN (FDDTimeA, fddtimeA, float ); // ! FDD-A average time in ns (o2::aod::fdd::TimeA)
34+ DECLARE_SOA_COLUMN (FDDTimeC, fddtimeC, float ); // ! FDD-C average time in ns (o2::aod::fdd::TimeC)
35+
36+ // Derived quantities
37+
38+ // Event selection conditions straigt from AOD
39+ DECLARE_SOA_COLUMN (Sel8, sel8, bool ); // ! (o2::aod::evsel::Sel8)
40+ DECLARE_SOA_COLUMN (HasFT0, hasFT0, bool ); // ! (o2::aod::collision::has_foundFT0())
41+ DECLARE_SOA_COLUMN (HasFV0, hasFV0, bool ); // ! (o2::aod::collision::has_foundFV0())
42+ DECLARE_SOA_COLUMN (HasFDD, hasFDD, bool ); // ! (o2::aod::collision::has_foundFDD())
43+ DECLARE_SOA_COLUMN (FT0Triggers, ft0Triggers, uint8_t ); // ! FT0 trigger mask
44+ DECLARE_SOA_COLUMN (FV0Triggers, fv0Triggers, uint8_t ); // ! FV0 trigger mask
45+ DECLARE_SOA_COLUMN (FDDTriggers, fddTriggers, uint8_t ); // ! FDD trigger mask
46+ } // namespace fit
47+ DECLARE_SOA_TABLE (FITExtras, " AOD" , " FITEXTRA" , // ! Table with extra FIT information
48+ fit::Sel8, fit::HasFT0, fit::HasFV0, fit::HasFDD,
49+ fit::FT0Triggers, fit::FV0Triggers, fit::FDDTriggers,
50+ fit::PV , fit::NContrib,
51+ fit::FT0TimeA, fit::FT0TimeC, fit::FT0TimeACorr, fit::FT0TimeCCorr,
52+ fit::FT0Time, fit::FT0TimeRes, fit::FT0Vtx,
53+ fit::FV0Time, fit::FDDTimeA, fit::FDDTimeC);
54+ using FITExtra = FITExtras::iterator;
55+ } // namespace o2::aod
56+
57+ #endif // COMMON_DATAMODEL_FITEXTRA_H_
0 commit comments