Skip to content

Commit 229d995

Browse files
authored
Merge branch 'master' into master
2 parents a4c0d86 + 10c4a50 commit 229d995

328 files changed

Lines changed: 7023 additions & 4929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Common/DataModel/Multiplicity.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ DECLARE_SOA_TABLE(MultBCs, "AOD", "MULTBC", //!
285285
bc::Flags);
286286
using MultBC = MultBCs::iterator;
287287

288+
DECLARE_SOA_TABLE(MultBcSel, "AOD", "MULTBCSEL", //! BC selection bits joinable with multBCs
289+
evsel::Selection);
290+
288291
// crosslinks
289292
namespace mult
290293
{

Common/TableProducer/fwdtrackextension.cxx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <Math/MatrixRepresentationsStatic.h>
3434
#include <Math/SMatrix.h>
3535

36+
#include <numbers>
3637
#include <string>
3738
#include <vector>
3839

@@ -50,6 +51,7 @@ struct FwdTrackExtension {
5051
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
5152
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
5253
Configurable<std::string> configCcdbUrl{"configCcdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
54+
Configurable<bool> propInTheAbsorber{"propInTheAbsorber", false, "Propagate muon in the absober: false to minimize standalone muons DCA calculation"};
5355
Configurable<bool> refitGlobalMuon{"refitGlobalMuon", false, "Recompute parameters of global muons"};
5456

5557
Service<o2::ccdb::BasicCCDBManager> fCCDB;
@@ -63,7 +65,7 @@ struct FwdTrackExtension {
6365
fCCDB->setCaching(true);
6466
fCCDB->setLocalObjectValidityChecking();
6567

66-
if (!o2::base::GeometryManager::isGeometryLoaded()) {
68+
if (propInTheAbsorber && !o2::base::GeometryManager::isGeometryLoaded()) {
6769
LOGF(info, "Load geometry from CCDB");
6870
fCCDB->get<TGeoManager>(geoPath);
6971
}
@@ -84,8 +86,10 @@ struct FwdTrackExtension {
8486
LOGF(info, "Init field from GRP");
8587
o2::base::Propagator::initFieldFromGRP(grpmag);
8688
}
87-
LOGF(info, "Set field for muons");
88-
o2::mch::TrackExtrap::setField();
89+
if (propInTheAbsorber) {
90+
LOGF(info, "Set field for muons");
91+
o2::mch::TrackExtrap::setField();
92+
}
8993
fCurrentRun = bc.runNumber();
9094
}
9195
const float zField = grpmag->getNominalL3Field();
@@ -100,9 +104,14 @@ struct FwdTrackExtension {
100104
o2::track::TrackParCovFwd mft{mfttrack.z(), tpars, tcovs, mfttrack.chi2()};
101105
fwdtrack = o2::aod::fwdtrackutils::refitGlobalMuonCov(propmuon, mft);
102106
}
103-
auto proptrack = o2::aod::fwdtrackutils::propagateTrackParCovFwd(fwdtrack, trackType, collision, o2::aod::fwdtrackutils::propagationPoint::kToDCA, 0.f, zField);
104-
dcaX = (proptrack.getX() - collision.posX());
105-
dcaY = (proptrack.getY() - collision.posY());
107+
if (!propInTheAbsorber && (trackType == o2::aod::fwdtrack::ForwardTrackTypeEnum::MuonStandaloneTrack || trackType == o2::aod::fwdtrack::ForwardTrackTypeEnum::MCHStandaloneTrack)) {
108+
auto proptrack = o2::aod::fwdtrackutils::propagateTrackParCovFwd(fwdtrack, trackType, collision, o2::aod::fwdtrackutils::propagationPoint::kToDCA, 0.f, zField);
109+
dcaX = (proptrack.getX() - collision.posX());
110+
dcaY = (proptrack.getY() - collision.posY());
111+
} else {
112+
dcaX = track.pDca() / std::numbers::sqrt2 / track.p();
113+
dcaY = dcaX;
114+
}
106115
}
107116
fwdDCA(dcaX, dcaY);
108117
}

Common/TableProducer/multiplicityExtraTable.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const int nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;
4141

4242
struct MultiplicityExtraTable {
4343
Produces<aod::MultBCs> multBC;
44+
Produces<aod::MultBcSel> multBcSel;
4445
Produces<aod::MultNeighs> multNeigh;
4546

4647
Produces<aod::Mults2BC> mult2bc;
@@ -85,7 +86,7 @@ struct MultiplicityExtraTable {
8586

8687
using BCsWithRun3Matchings = soa::Join<aod::BCs, aod::Timestamps, aod::Run3MatchedToBCSparse>;
8788

88-
void processBCs(soa::Join<BCsWithRun3Matchings, aod::BCFlags> const& bcs, aod::FV0As const&, aod::FT0s const&, aod::FDDs const&, aod::Zdcs const&, soa::Join<aod::Collisions, aod::EvSels> const& collisions)
89+
void processBCs(soa::Join<BCsWithRun3Matchings, aod::BCFlags, aod::BcSels> const& bcs, aod::FV0As const&, aod::FT0s const&, aod::FDDs const&, aod::Zdcs const&, soa::Join<aod::Collisions, aod::EvSels> const& collisions)
8990
{
9091
//+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+
9192
// determine saved BCs and corresponding new BC table index
@@ -260,6 +261,8 @@ struct MultiplicityExtraTable {
260261
multFV0TriggerBits, multFT0TriggerBits, multFDDTriggerBits, multBCTriggerMask, collidingBC,
261262
bc.timestamp(),
262263
bc.flags());
264+
265+
multBcSel(bc.selection_raw());
263266
}
264267
}
265268

Common/Tasks/centralityStudy.cxx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ struct centralityStudy {
9797
Configurable<bool> rejectITSinROFpileupStandard{"rejectITSinROFpileupStandard", false, "reject collisions in case of in-ROF ITS pileup (standard)"};
9898
Configurable<bool> rejectITSinROFpileupStrict{"rejectITSinROFpileupStrict", false, "reject collisions in case of in-ROF ITS pileup (strict)"};
9999
Configurable<bool> rejectCollInTimeRangeNarrow{"rejectCollInTimeRangeNarrow", false, "reject if extra colls in time range (narrow)"};
100+
Configurable<bool> rejectZNAC{"rejectZNAC", false, "reject if !(kIsBBZNA && kIsBBZNC)"};
100101

101102
Configurable<bool> selectUPCcollisions{"selectUPCcollisions", false, "select collisions tagged with UPC flag"};
102103

@@ -225,6 +226,13 @@ struct centralityStudy {
225226

226227
if (doprocessBCs) {
227228
histos.add("hBCSelection", "hBCSelection", kTH1D, {{20, -0.5, 19.5f}});
229+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(1, "All BCs");
230+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(2, "Colliding BCs");
231+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(3, "TVX");
232+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(4, "FV0OrA");
233+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(5, "upc rej");
234+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(6, "zdc rej");
235+
228236
histos.add("hFT0C_BCs", "hFT0C_BCs", kTH1D, {axisMultUltraFineFT0C});
229237
histos.add("hFT0M_BCs", "hFT0M_BCs", kTH1D, {axisMultUltraFineFT0M});
230238
histos.add("hFV0A_BCs", "hFV0A_BCs", kTH1D, {axisMultUltraFineFV0A});
@@ -831,27 +839,31 @@ struct centralityStudy {
831839
genericProcessCollision(collision);
832840
}
833841

834-
void processBCs(soa::Join<aod::BC2Mults, aod::MultBCs>::iterator const& multbc, soa::Join<aod::MultsRun3, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal> const&)
842+
void processBCs(soa::Join<aod::BC2Mults, aod::MultBCs, aod::MultBcSel>::iterator const& multbc, soa::Join<aod::MultsRun3, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal> const&)
835843
{
836844
// process BCs, calculate FT0C distribution
837845
// conditionals suggested by FIT team (Jacek O. et al)
838846
histos.fill(HIST("hBCSelection"), 0); // all BCs
847+
839848
if (selectCollidingBCs && !multbc.multCollidingBC())
840849
return;
841850
histos.fill(HIST("hBCSelection"), 1); // colliding
851+
842852
if (selectTVX && !multbc.multTVX())
843853
return;
844854
histos.fill(HIST("hBCSelection"), 2); // TVX
855+
845856
if (selectFV0OrA && !multbc.multFV0OrA())
846857
return;
847858
histos.fill(HIST("hBCSelection"), 3); // FV0OrA
859+
848860
if (vertexZwithT0 < 100.0f) {
849861
if (!multbc.multFT0PosZValid())
850862
return;
851863
if (TMath::Abs(multbc.multFT0PosZ()) > vertexZwithT0)
852864
return;
853865
}
854-
histos.fill(HIST("hBCSelection"), 4); // FV0OrA
866+
histos.fill(HIST("hBCSelection"), 4); // FT0PosZ
855867

856868
if (multbc.multFT0C() < upcRejection.maxFT0CforZNACselection &&
857869
multbc.multZNA() < upcRejection.minZNACsignal &&
@@ -866,8 +878,11 @@ struct centralityStudy {
866878
multbc.multFDDA() < upcRejection.minFDDAsignal) {
867879
return;
868880
}
869-
870-
histos.fill(HIST("hBCSelection"), 5); // znac
881+
histos.fill(HIST("hBCSelection"), 5); // znac amp
882+
if (rejectZNAC && !multbc.selection_bit(o2::aod::evsel::kIsBBZNA) && !multbc.selection_bit(o2::aod::evsel::kIsBBZNC)) {
883+
return;
884+
}
885+
histos.fill(HIST("hBCSelection"), 6); // znac time
871886

872887
// if we got here, we also finally fill the FT0C histogram, please
873888
histos.fill(HIST("hFT0C_BCs"), multbc.multFT0C() * scaleSignalFT0C);

Common/Tools/EventSelectionModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <DataFormatsCTP/Configuration.h>
2828
#include <DataFormatsCTP/Scalers.h>
2929
#include <DataFormatsFT0/Digit.h>
30+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
3031
#include <DataFormatsITSMFT/TimeDeadMap.h>
3132
#include <DataFormatsParameters/AggregatedRunInfo.h>
3233
#include <DataFormatsParameters/GRPLHCIFData.h>
@@ -35,7 +36,6 @@
3536
#include <Framework/HistogramRegistry.h>
3637
#include <Framework/HistogramSpec.h>
3738
#include <Framework/Logger.h>
38-
#include <ITSMFTBase/DPLAlpideParam.h>
3939
#include <ITSMFTReconstruction/ChipMappingITS.h>
4040

4141
#include <TH1.h>

DPG/Tasks/AOTEvent/eventSelectionQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <CommonConstants/LHCConstants.h>
2323
#include <CommonDataFormat/BunchFilling.h>
2424
#include <CommonDataFormat/TimeStamp.h>
25+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2526
#include <DataFormatsITSMFT/TimeDeadMap.h>
2627
#include <DataFormatsParameters/AggregatedRunInfo.h>
2728
#include <DataFormatsParameters/GRPLHCIFData.h>
@@ -35,7 +36,6 @@
3536
#include <Framework/InitContext.h>
3637
#include <Framework/OutputObjHeader.h>
3738
#include <Framework/runDataProcessing.h>
38-
#include <ITSMFTBase/DPLAlpideParam.h>
3939
#include <ITSMFTReconstruction/ChipMappingITS.h>
4040
#include <ReconstructionDataFormats/Vertex.h>
4141

DPG/Tasks/AOTEvent/rofOccupancyQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <CCDB/BasicCCDBManager.h>
2121
#include <CommonConstants/LHCConstants.h>
22+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2223
#include <DataFormatsParameters/AggregatedRunInfo.h>
2324
#include <Framework/AnalysisDataModel.h>
2425
#include <Framework/AnalysisHelpers.h>
@@ -30,7 +31,6 @@
3031
#include <Framework/InitContext.h>
3132
#include <Framework/OutputObjHeader.h>
3233
#include <Framework/runDataProcessing.h>
33-
#include <ITSMFTBase/DPLAlpideParam.h>
3434

3535
#include <cmath>
3636
#include <cstdint>

PWGCF/Core/AnalysisConfigurableCuts.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
#include "PWGCF/Core/AnalysisConfigurableCuts.h"
1313

14+
#include <TNamed.h>
15+
16+
#include <Rtypes.h>
17+
1418
using namespace o2::analysis;
1519

1620
ClassImp(SimpleInclusiveCut);

PWGCF/Core/AnalysisConfigurableCuts.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
#ifndef PWGCF_CORE_ANALYSISCONFIGURABLECUTS_H_
1717
#define PWGCF_CORE_ANALYSISCONFIGURABLECUTS_H_
1818

19-
#include <TMath.h>
2019
#include <TNamed.h>
21-
#include <TObject.h>
2220

2321
#include <Rtypes.h>
2422

PWGCF/Core/CorrelationContainer.cxx

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,29 @@
1515
// Author: Jan Fiete Grosse-Oetringhaus
1616

1717
#include "PWGCF/Core/CorrelationContainer.h"
18-
#include "Framework/StepTHn.h"
19-
#include "Framework/Logger.h"
20-
#include "THnSparse.h"
21-
#include "TMath.h"
22-
#include "TList.h"
23-
#include "TCollection.h"
24-
#include "TH1D.h"
25-
#include "TH2D.h"
26-
#include "TH3D.h"
27-
#include "TCanvas.h"
28-
#include "TF1.h"
29-
#include "THn.h"
30-
#include "Framework/HistogramSpec.h"
31-
#include "CommonConstants/MathConstants.h"
18+
19+
#include <CommonConstants/MathConstants.h>
20+
#include <Framework/HistogramSpec.h>
21+
#include <Framework/Logger.h>
22+
#include <Framework/StepTHn.h>
23+
24+
#include <TCanvas.h>
25+
#include <TCollection.h>
26+
#include <TF1.h>
27+
#include <THn.h>
28+
#include <TIterator.h>
29+
#include <TList.h>
30+
#include <TMath.h>
31+
#include <TMathBase.h>
32+
#include <TNamed.h>
33+
#include <TObject.h>
34+
#include <TString.h>
35+
36+
#include <Rtypes.h>
37+
#include <RtypesCore.h>
38+
39+
#include <cstring>
40+
#include <vector>
3241

3342
using namespace o2;
3443
using namespace o2::framework;

0 commit comments

Comments
 (0)