|
| 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 | +/// |
| 13 | +/// \file OTFMID.h |
| 14 | +/// \author David Dobrigkeit Chinellato |
| 15 | +/// \author Antonio Ortiz, UNAM |
| 16 | +/// \since 11/05/2023 |
| 17 | +/// \brief Set of tables for the ALICE3 OTFMID information |
| 18 | +/// TODO: remove the columns that are not usefulf for me |
| 19 | + |
| 20 | +#ifndef ALICE3_DATAMODEL_OTFMID_H_ |
| 21 | +#define ALICE3_DATAMODEL_OTFMID_H_ |
| 22 | + |
| 23 | +#include <Framework/AnalysisDataModel.h> |
| 24 | + |
| 25 | +#include <cstdlib> |
| 26 | +#include <vector> |
| 27 | + |
| 28 | +namespace o2::aod |
| 29 | +{ |
| 30 | +namespace upgrade_mid |
| 31 | +{ |
| 32 | +DECLARE_SOA_COLUMN(MIDTrackTime, midTrackTime, float); //! Track time generated at the MID |
| 33 | +DECLARE_SOA_COLUMN(MIDTrackLength, midTrackLength, float); //! track length for calculation of MID (generated) |
| 34 | + |
| 35 | +DECLARE_SOA_COLUMN(MIDEventTime, midEventTime, float); //! Event time reconstructed with the MID |
| 36 | +DECLARE_SOA_COLUMN(MIDEventTimeErr, midEventTimeErr, float); //! Uncertainty on the event time reconstructed with the MID |
| 37 | +DECLARE_SOA_COLUMN(MIDTrackPosReco, midTrackPosReco, std::vector<float>); //! Measured position in MID |
| 38 | +DECLARE_SOA_COLUMN(MIDTrackPos, midTrackPos, std::vector<float>); //! Expected position in MID |
| 39 | +DECLARE_SOA_COLUMN(MIDCandidate, midCandidate, bool); //! Muon candidate |
| 40 | +DECLARE_SOA_COLUMN(MIDTrackTimeReco, midTrackTimeReco, float); //! Track time measured at MID |
| 41 | +DECLARE_SOA_COLUMN(MIDTrackLengthReco, midTrackLengthReco, float); //! track length for calculation of MID (reconstructed) |
| 42 | + |
| 43 | +} // namespace upgrade_mid |
| 44 | + |
| 45 | +DECLARE_SOA_TABLE(UpgradeMidMCs, "AOD", "UPGRADEMIDMC", |
| 46 | + upgrade_mid::MIDTrackTime, |
| 47 | + upgrade_mid::MIDTrackLength); |
| 48 | + |
| 49 | +DECLARE_SOA_TABLE(UpgradeMids, "AOD", "UPGRADEMID", |
| 50 | + upgrade_mid::MIDEventTime, |
| 51 | + upgrade_mid::MIDEventTimeErr, |
| 52 | + upgrade_mid::MIDTrackPosReco, |
| 53 | + upgrade_mid::MIDTrackTimeReco, |
| 54 | + upgrade_mid::MIDTrackLengthReco, |
| 55 | + upgrade_mid::MIDCandidate); |
| 56 | + |
| 57 | +DECLARE_SOA_TABLE(UpgradeMidExpecteds, "AOD", "UPGRADEMIDEXPT", |
| 58 | + upgrade_mid::MIDTrackPos, |
| 59 | + upgrade_mid::MIDTrackTime, |
| 60 | + upgrade_mid::MIDTrackLength); |
| 61 | + |
| 62 | +using UpgradeMidMC = UpgradeMidMCs::iterator; |
| 63 | +using UpgradeMid = UpgradeMids::iterator; |
| 64 | +using UpgradeMidExpected = UpgradeMidExpecteds::iterator; |
| 65 | + |
| 66 | +} // namespace o2::aod |
| 67 | + |
| 68 | +#endif // ALICE3_DATAMODEL_OTFMID_H_ |
0 commit comments