|
| 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 | +/// \brief QA task for lambda polarization induced by jet analysis using derived data |
| 13 | +/// |
| 14 | +/// \author Youpeng Su (yousu@cern.ch) |
| 15 | + |
| 16 | +#ifndef PWGLF_DATAMODEL_LAMBDAJETPOLARIZATION_H_ |
| 17 | +#define PWGLF_DATAMODEL_LAMBDAJETPOLARIZATION_H_ |
| 18 | + |
| 19 | +#include "Framework/runDataProcessing.h" |
| 20 | +#include "Framework/AnalysisTask.h" |
| 21 | +#include "Common/DataModel/TrackSelectionTables.h" |
| 22 | +#include "PWGLF/DataModel/LFStrangenessTables.h" |
| 23 | +#include "Common/DataModel/EventSelection.h" |
| 24 | +#include "Common/DataModel/PIDResponse.h" |
| 25 | +#include "Common/DataModel/Multiplicity.h" |
| 26 | +#include "Common/DataModel/Centrality.h" |
| 27 | +#include "TRandom.h" |
| 28 | +#include "Math/Vector4D.h" |
| 29 | +#include "Math/Boost.h" |
| 30 | + |
| 31 | +namespace o2::aod |
| 32 | +{ |
| 33 | +DECLARE_SOA_TABLE(MyCollisions, "AOD", "MYCOLLISION", //! vertex information of collision |
| 34 | + o2::soa::Index<>, collision::PosZ); |
| 35 | +using MyCollision = MyCollisions::iterator; |
| 36 | + |
| 37 | +DECLARE_SOA_TABLE(MyCollisionsV0, "AOD", "MYCOLLISIONV0", //! vertex information of collision |
| 38 | + o2::soa::Index<>, collision::PosX); |
| 39 | +using MyCollisionV0s = MyCollisionsV0::iterator; |
| 40 | + |
| 41 | +namespace myTable |
| 42 | +{ |
| 43 | +DECLARE_SOA_INDEX_COLUMN(MyCollision, mycollision); |
| 44 | +DECLARE_SOA_COLUMN(MyCollisionV0, mycollisionv0, Int_t); |
| 45 | +DECLARE_SOA_COLUMN(V0px, v0px, Float_t); |
| 46 | +DECLARE_SOA_COLUMN(V0py, v0py, Float_t); |
| 47 | +DECLARE_SOA_COLUMN(V0pz, v0pz, Float_t); |
| 48 | +DECLARE_SOA_COLUMN(V0pT, v0pt, Float_t); |
| 49 | +DECLARE_SOA_COLUMN(V0Lambdamass, v0Lambdamass, Float_t); |
| 50 | +DECLARE_SOA_COLUMN(V0protonpx, v0protonpx, Float_t); |
| 51 | +DECLARE_SOA_COLUMN(V0protonpy, v0protonpy, Float_t); |
| 52 | +DECLARE_SOA_COLUMN(V0protonpz, v0protonpz, Float_t); |
| 53 | +DECLARE_SOA_COLUMN(MyCollisionJet, mycollisionjet, Int_t); |
| 54 | +DECLARE_SOA_COLUMN(Jetpx, jetpx, Float_t); |
| 55 | +DECLARE_SOA_COLUMN(Jetpy, jetpy, Float_t); |
| 56 | +DECLARE_SOA_COLUMN(Jetpz, jetpz, Float_t); |
| 57 | +DECLARE_SOA_COLUMN(JetpT, jetpt, Float_t); |
| 58 | +DECLARE_SOA_COLUMN(MyCollisionLeadingJet, mycollisionleadingjet, Int_t); |
| 59 | +DECLARE_SOA_COLUMN(LeadingJetpx, leadingjetpx, Float_t); |
| 60 | +DECLARE_SOA_COLUMN(LeadingJetpy, leadingjetpy, Float_t); |
| 61 | +DECLARE_SOA_COLUMN(LeadingJetpz, leadingjetpz, Float_t); |
| 62 | +DECLARE_SOA_COLUMN(LeadingJetpT, leadingjetpt, Float_t); |
| 63 | + |
| 64 | +} // namespace myTable |
| 65 | + |
| 66 | +DECLARE_SOA_TABLE(MyTable, "AOD", "MYTABLE", o2::soa::Index<>, |
| 67 | + myTable::MyCollisionId, myTable::MyCollisionV0, myTable::V0px, myTable::V0py, myTable::V0pz, myTable::V0pT, myTable::V0Lambdamass, |
| 68 | + myTable::V0protonpx, myTable::V0protonpy, myTable::V0protonpz); |
| 69 | + |
| 70 | +DECLARE_SOA_TABLE(MyTableJet, "AOD", "MYTABLEJet", o2::soa::Index<>, |
| 71 | + myTable::MyCollisionId, myTable::MyCollisionJet, myTable::Jetpx, myTable::Jetpy, myTable::Jetpz, myTable::JetpT); |
| 72 | + |
| 73 | +DECLARE_SOA_TABLE(MyTableLeadingJet, "AOD", "LeadingJet", o2::soa::Index<>, myTable::MyCollisionId, myTable::MyCollisionLeadingJet, myTable::LeadingJetpx, myTable::LeadingJetpy, myTable::LeadingJetpz, myTable::LeadingJetpT); |
| 74 | + |
| 75 | +} // namespace o2::aod |
| 76 | + |
| 77 | +#endif // PWGLF_DATAMODEL_LAMBDAJETPOLARIZATION_H_ |
0 commit comments