Skip to content

Commit

Permalink
netchargefluctu
Browse files Browse the repository at this point in the history
  • Loading branch information
nidamalikk committed Jan 30, 2025
2 parents ac6dc6b + 013d128 commit d39c7e8
Show file tree
Hide file tree
Showing 336 changed files with 29,896 additions and 11,759 deletions.
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ infrastructure:
- '.github/**'
- '.checkov.yml'
- '.mega-linter.yml'
- '.pre-commit-config.yaml'
- 'cmake/**'
- 'CODEOWNERS'
- 'CPPLINT.cfg'
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v18.1.3" # clang-format version
hooks:
- id: clang-format
8 changes: 4 additions & 4 deletions ALICE3/Core/FastTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void FastTracker::AddSiliconALICE3v4()
layers.push_back(DetLayer{"ddd1", 1.2, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"ddd2", 2.5, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"bpipe1", 5.7, 250, 0.0014, 9.24e-02, 0.0f, 0.0f, 0.0f, 0}); // 500 mum Be
layers.push_back(DetLayer{"ddd3", 7., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"ddd3", 7., 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"ddd4", 10., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"ddd5", 13., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"ddd6", 16., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
Expand All @@ -113,12 +113,12 @@ void FastTracker::AddSiliconALICE3v1()
float resZOT = 0.00100; // 5 mum
float eff = 1.00;

layers.push_back(DetLayer{"bpipe0", 0.48, 250, 0.00042, 2.772e-02, 0.0f, 0.0f, 0.0f, 1}); // 150 mum Be
layers.push_back(DetLayer{"bpipe0", 0.48, 250, 0.00042, 2.772e-02, 0.0f, 0.0f, 0.0f, 0}); // 150 mum Be
layers.push_back(DetLayer{"B00", 0.5, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"B01", 1.2, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"B02", 2.5, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"bpipe1", 3.7, 250, 0.0014, 9.24e-02, 0.0f, 0.0f, 0.0f, 1}); // 500 mum Be
layers.push_back(DetLayer{"B03", 3.75, 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"bpipe1", 3.7, 250, 0.0014, 9.24e-02, 0.0f, 0.0f, 0.0f, 0}); // 500 mum Be
layers.push_back(DetLayer{"B03", 3.75, 250, x0IT, xrhoIB, resRPhiIT, resZIT, eff, 1});
layers.push_back(DetLayer{"B04", 7., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"B05", 12., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
layers.push_back(DetLayer{"B06", 20., 250, x0OT, xrhoOB, resRPhiOT, resZOT, eff, 1});
Expand Down
19 changes: 15 additions & 4 deletions ALICE3/TableProducer/alice3-decayfinder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ struct alice3decayFinder {
ConfigurableAxis axisPt{"axisPt", {VARIABLE_WIDTH, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.2f, 2.4f, 2.6f, 2.8f, 3.0f, 3.2f, 3.4f, 3.6f, 3.8f, 4.0f, 4.4f, 4.8f, 5.2f, 5.6f, 6.0f, 6.5f, 7.0f, 7.5f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 17.0f, 19.0f, 21.0f, 23.0f, 25.0f, 30.0f, 35.0f, 40.0f, 50.0f}, "pt axis for QA histograms"};
ConfigurableAxis axisDCA{"axisDCA", {200, -100, 100}, "DCA (#mum)"};
ConfigurableAxis axisDMass{"axisDMass", {200, 1.765f, 1.965f}, "D Inv Mass (GeV/c^{2})"};
ConfigurableAxis axisDCADaughters{"axisDCADaughters", {200, 0, 100}, "DCA (#mum)"};
ConfigurableAxis axisLcMass{"axisLcMass", {200, 2.186f, 2.386f}, "#Lambda_{c} Inv Mass (GeV/c^{2})"};

o2::vertexing::DCAFitterN<2> fitter;
Expand Down Expand Up @@ -144,12 +145,14 @@ struct alice3decayFinder {

// Helper struct to pass candidate information
struct {
float dcaDau;
float mass;
float pt;
float eta;
} dmeson;

struct {
float dcaDau;
float mass;
float pt;
float eta;
Expand Down Expand Up @@ -181,8 +184,8 @@ struct alice3decayFinder {
posTrack.getPxPyPzGlo(posP);
negTrack.getPxPyPzGlo(negP);

float dcaDau = TMath::Sqrt(fitter.getChi2AtPCACandidate());
if (dcaDau > dcaDaughtersSelection)
dmeson.dcaDau = TMath::Sqrt(fitter.getChi2AtPCACandidate());
if (dmeson.dcaDau > dcaDaughtersSelection)
return false;

// return mass
Expand Down Expand Up @@ -222,8 +225,8 @@ struct alice3decayFinder {
t1.getPxPyPzGlo(P1);
t2.getPxPyPzGlo(P2);

float dcaDau = TMath::Sqrt(fitter3.getChi2AtPCACandidate());
if (dcaDau > dcaDaughtersSelection)
lcbaryon.dcaDau = TMath::Sqrt(fitter.getChi2AtPCACandidate());
if (lcbaryon.dcaDau > dcaDaughtersSelection)
return false;

// return mass
Expand Down Expand Up @@ -289,6 +292,8 @@ struct alice3decayFinder {

histos.add("hMassD", "hMassD", kTH1F, {axisDMass});
histos.add("hMassDbar", "hMassDbar", kTH1F, {axisDMass});
histos.add("hDCADDaughters", "hDCADDaughters", kTH1D, {axisDCADaughters});
histos.add("hDCADbarDaughters", "hDCADbarDaughters", kTH1D, {axisDCADaughters});

if (doDCAplotsD) {
histos.add("h2dDCAxyVsPtPiPlusFromD", "h2dDCAxyVsPtPiPlusFromD", kTH2F, {axisPt, axisDCA});
Expand All @@ -305,6 +310,8 @@ struct alice3decayFinder {

histos.add("hMassLc", "hMassLc", kTH1F, {axisLcMass});
histos.add("hMassLcbar", "hMassLcbar", kTH1F, {axisLcMass});
histos.add("hDCALcDaughters", "hDCALcDaughters", kTH1D, {axisDCADaughters});
histos.add("hDCALcbarDaughters", "hDCALcbarDaughters", kTH1D, {axisDCADaughters});

if (doDCAplotsD) {
histos.add("h2dDCAxyVsPtPiPlusFromLc", "h2dDCAxyVsPtPiPlusFromLc", kTH2F, {axisPt, axisDCA});
Expand Down Expand Up @@ -362,6 +369,7 @@ struct alice3decayFinder {
continue;
if (!buildDecayCandidateTwoBody(posTrackRow, negTrackRow, o2::constants::physics::MassPionCharged, o2::constants::physics::MassKaonCharged))
continue;
histos.fill(HIST("hDCADDaughters"), dmeson.dcaDau * 1e+4);
histos.fill(HIST("hMassD"), dmeson.mass);
histos.fill(HIST("h3dRecD"), dmeson.pt, dmeson.eta, dmeson.mass);
}
Expand All @@ -373,6 +381,7 @@ struct alice3decayFinder {
continue;
if (!buildDecayCandidateTwoBody(posTrackRow, negTrackRow, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
continue;
histos.fill(HIST("hDCADbarDaughters"), dmeson.dcaDau * 1e+4);
histos.fill(HIST("hMassDbar"), dmeson.mass);
histos.fill(HIST("h3dRecDbar"), dmeson.pt, dmeson.eta, dmeson.mass);
}
Expand Down Expand Up @@ -417,6 +426,7 @@ struct alice3decayFinder {
continue;
if (!buildDecayCandidateThreeBody(proton, kaon, pion, o2::constants::physics::MassProton, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
continue;
histos.fill(HIST("hDCALcDaughters"), lcbaryon.dcaDau);
histos.fill(HIST("hMassLc"), lcbaryon.mass);
histos.fill(HIST("h3dRecLc"), lcbaryon.pt, lcbaryon.eta, lcbaryon.mass);
}
Expand All @@ -432,6 +442,7 @@ struct alice3decayFinder {
continue;
if (!buildDecayCandidateThreeBody(proton, kaon, pion, o2::constants::physics::MassProton, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
continue;
histos.fill(HIST("hDCALcbarDaughters"), lcbaryon.dcaDau);
histos.fill(HIST("hMassLcbar"), lcbaryon.mass);
histos.fill(HIST("h3dRecLcbar"), lcbaryon.pt, lcbaryon.eta, lcbaryon.mass);
}
Expand Down
4 changes: 2 additions & 2 deletions ALICE3/TableProducer/alice3-pidTOF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct ALICE3pidTOFTask {
if (!track.hasTOF()) {
return -999.f;
}
return ((track.trackTime() - track.collision().collisionTime()) * 1000.f - o2::pid::tof::ExpTimes<Trks::iterator, id>::ComputeExpectedTime(track.tofExpMom() / o2::pid::tof::kCSPEED,
return ((track.trackTime() - track.collision().collisionTime()) * 1000.f - o2::pid::tof::ExpTimes<Trks::iterator, id>::ComputeExpectedTime(track.tofExpMom() * o2::constants::physics::invLightSpeedCm2PS,
track.length())) /
sigma<id>(track);
}
Expand Down Expand Up @@ -294,7 +294,7 @@ struct ALICE3pidTOFTaskQA {
//
// histos.fill(HIST("event/tofsignal"), t.p(), t.tofSignal());
histos.fill(HIST("event/tofsignal"), t.p(), tofSignal);
histos.fill(HIST("event/pexp"), t.p(), t.tofExpMom() / o2::pid::tof::kCSPEED);
histos.fill(HIST("event/pexp"), t.p(), t.tofExpMom() * o2::constants::physics::invLightSpeedCm2PS);
histos.fill(HIST("event/eta"), t.eta());
histos.fill(HIST("event/length"), t.length());
histos.fill(HIST("event/pt"), t.pt());
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/PWGEM @alibuild @feisenhu @dsekihat @ivorobye
/PWGEM/Dilepton @alibuild @mikesas @rbailhac @dsekihat @ivorobye @feisenhu
/PWGEM/PhotonMeson @alibuild @mikesas @rbailhac @m-c-danisch @novitzky @mhemmer-cern @dsekihat
/PWGHF @alibuild @vkucera @fcolamar @fgrosa @fcatalan92 @mfaggin @mmazzilli @deepathoms @NicoleBastid @hahassan7 @jpxrk @apalasciano
/PWGHF @alibuild @vkucera @fcolamar @fgrosa @fcatalan92 @mfaggin @mmazzilli @deepathoms @NicoleBastid @hahassan7 @jpxrk @apalasciano @zhangbiao-phy
# PWG-LF
/PWGLF @alibuild @njacazio @skundu692
/PWGLF/Tasks/GlobalEventProperties @alibuild @njacazio @skundu692 @gbencedi @omvazque
Expand Down
1 change: 1 addition & 0 deletions Common/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ o2physics_add_library(AnalysisCore
SOURCES TrackSelection.cxx
OrbitRange.cxx
PID/ParamBase.cxx
PID/PIDTOF.cxx
CollisionAssociation.cxx
TrackSelectionDefaults.cxx
EventPlaneHelper.cxx
Expand Down
46 changes: 46 additions & 0 deletions Common/Core/PID/PIDTOF.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

///
/// \file PIDTOF.cxx
/// \author Nicolò Jacazio [email protected]
/// \since 02/07/2020
/// \brief Implementation of the TOF detector response for PID
///

#include "PIDTOF.h"
#include <string>

namespace o2::pid::tof
{

void TOFResoParamsV3::setResolutionParametrizationRun2(std::unordered_map<std::string, float> const& pars)
{
std::array<std::string, 13> paramNames{"TrkRes.Pi.P0", "TrkRes.Pi.P1", "TrkRes.Pi.P2", "TrkRes.Pi.P3", "time_resolution",
"TrkRes.Ka.P0", "TrkRes.Ka.P1", "TrkRes.Ka.P2", "TrkRes.Ka.P3",
"TrkRes.Pr.P0", "TrkRes.Pr.P1", "TrkRes.Pr.P2", "TrkRes.Pr.P3"};
// Now we override the parametrization to use the Run 2 one
for (int i = 0; i < 9; i++) {
if (mResolution[i]) {
delete mResolution[i];
}
mResolution[i] = new TF2(Form("tofResTrack.%s_Run2", particleNames[i]), "-10", 0., 20, -1, 1.); // With negative values the old one is used
}
// Print the map
for (const auto& [key, value] : pars) {
LOG(info) << "Key: " << key << " Value: " << value;
}
for (int i = 0; i < 13; i++) {
setParameter(i, pars.at(paramNames[i]));
}
}

} // namespace o2::pid::tof
Loading

0 comments on commit d39c7e8

Please sign in to comment.