Skip to content

Commit ae5843c

Browse files
aortizvealibuild
andauthored
[ALICE3] Fast simulations for the ALICE 3 MID (#18325)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent b2a325a commit ae5843c

6 files changed

Lines changed: 1628 additions & 0 deletions

File tree

‎ALICE3/DataModel/OTFMID.h‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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_

‎ALICE3/DataModel/ReducedTablesAlice3.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "PWGDQ/DataModel/ReducedInfoTables.h"
2222

23+
#include "ALICE3/DataModel/OTFMID.h"
2324
#include "ALICE3/DataModel/OTFPIDTrk.h"
2425
#include "ALICE3/DataModel/OTFRICH.h"
2526
#include "ALICE3/DataModel/OTFTOF.h"
@@ -275,6 +276,14 @@ DECLARE_SOA_TABLE(ReducedA3PIDTOF, "AOD", "REA3PIDTOF",
275276
upgrade_tof::NSigmaHelium3OuterTOF,
276277
upgrade_tof::NSigmaAlphaOuterTOF>);
277278

279+
DECLARE_SOA_TABLE(ReducedA3PIDMID, "AOD", "REA3PIDMID",
280+
upgrade_mid::MIDEventTime,
281+
upgrade_mid::MIDEventTimeErr,
282+
upgrade_mid::MIDTrackPosReco,
283+
upgrade_mid::MIDTrackTimeReco,
284+
upgrade_mid::MIDTrackLengthReco,
285+
upgrade_mid::MIDCandidate);
286+
278287
DECLARE_SOA_TABLE(ReducedA3PIDRich, "AOD", "REA3PIDRICH",
279288
upgrade_rich::NSigmaElectronRich,
280289
upgrade_rich::NSigmaMuonRich,

‎ALICE3/TableProducer/OTF/CMakeLists.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ o2physics_add_dpl_workflow(onthefly-tofpid
2424
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::ReconstructionDataFormats O2::DetectorsCommonDataFormats O2Physics::ALICE3Core O2Physics::FastTracker
2525
COMPONENT_NAME Analysis)
2626

27+
o2physics_add_dpl_workflow(onthefly-midpid
28+
SOURCES onTheFlyMidPid.cxx
29+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::ReconstructionDataFormats O2::DetectorsCommonDataFormats O2Physics::ALICE3Core O2Physics::FastTracker
30+
COMPONENT_NAME Analysis)
31+
2732
o2physics_add_dpl_workflow(onthefly-richpid
2833
SOURCES onTheFlyRichPid.cxx
2934
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::ReconstructionDataFormats O2::DetectorsCommonDataFormats O2Physics::ALICE3Core O2Physics::FastTracker

0 commit comments

Comments
 (0)