Skip to content

Commit

Permalink
cfnetchargfluctu
Browse files Browse the repository at this point in the history
  • Loading branch information
nidamalikk committed Jan 27, 2025
1 parent 4c718ec commit 2eb2cd6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 118 deletions.
80 changes: 34 additions & 46 deletions PWGCF/EbyEFluctuations/Tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,50 +1,38 @@
# 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.
#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".
#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
#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.

o2physics_add_dpl_workflow(meanpt-fluctuations
SOURCES MeanptFluctuations.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(mean-pt-fluc-id
SOURCES meanPtFlucId.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(netproton-cumulants
SOURCES NetProtonCumulants.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(identified-meanpt-fluctuations
SOURCES IdentifiedMeanPtFluctuations.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(robust-fluctuation-observables
SOURCES RobustFluctuationObservables.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(v0pt-pp-task
SOURCES Diff_pT_fluct_PID.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(factorial-moments
SOURCES FactorialMomentsTask.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(netcharge-fluct
SOURCES NetchargeFluctuations.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)
o2physics_add_dpl_workflow(meanpt - fluctuations
SOURCES MeanptFluctuations.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(mean - pt - fluc - id SOURCES meanPtFlucId.cxx PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(netproton - cumulants
SOURCES NetProtonCumulants.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(identified - meanpt - fluctuations SOURCES IdentifiedMeanPtFluctuations.cxx PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(robust - fluctuation - observables SOURCES RobustFluctuationObservables.cxx PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(v0pt - pp - task SOURCES Diff_pT_fluct_PID.cxx PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(factorial - moments
SOURCES FactorialMomentsTask.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(netcharge - fluct
SOURCES NetchargeFluctuations.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)
73 changes: 1 addition & 72 deletions PWGCF/EbyEFluctuations/Tasks/NetchargeFluctuations.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,17 @@ using namespace std;

namespace o2::aod
{
<<<<<<< HEAD
using MyCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentRun2V0Ms, aod::Mults>;
=======
using MyCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentRun2V0Ms, aod::Mults>;
>>>>>>> 03c805b2635be6256d2a2a4ad4e9fa12fbdd067d
using MyCollision = MyCollisions::iterator;

using MyTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection>;
using MyTrack = MyTracks::iterator;
<<<<<<< HEAD
}//// namespace o2::aod
=======
}
>>>>>>> 03c805b2635be6256d2a2a4ad4e9fa12fbdd067d
} // namespace o2::aod

struct NetchargeFluctuations {
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};
void init(o2::framework::InitContext&)
{
<<<<<<< HEAD
AxisSpec vtxZAxis = {100, -20, 20, "Z (cm)"};
AxisSpec dcaAxis = {1000, -100, 100, "DCA_{xy} (cm)"};
AxisSpec dcazAxis = {1000, -100, 100, "DCA_{z} (cm)"};
AxisSpec ptAxis = {40, 0.0, 4.0, "#it{p}_{T} (GeV/#it{c})"};
AxisSpec etaAxis = {30, -1.5, 1.5, "#eta"};
AxisSpec centAxis = {100, 0., 100., "centrality"};
AxisSpec multAxis = {2000, 0., 2000., "multiplicity"};

histos.add("hVertexZ_bef", "", kTH1F, {vtxZAxis});
histos.add("hVertexZ_aft", "", kTH1F, {vtxZAxis});
histos.add("hVertexZ_aft_sel", "", kTH1D, {vtxZAxis});
histos.add("hDCAxy_bef", "", kTH1D, {dcaAxis});
histos.add("hDCAxy_aft", "", kTH1D, {dcaAxis});
histos.add("hDCAz_bef", "", kTH1D, {dcazAxis});
histos.add("hDCAz_aft", "", kTH1D, {dcazAxis});
histos.add("hCentrality", "", kTH1D, {centAxis});
histos.add("hMultiplicity", "", kTH1D, {multAxis});
histos.add("hEta", "", kTH1F, {etaAxis});
histos.add("hPt", "", kTH1F, {ptAxis});
=======
AxisSpec vtxZAxis = {100, -20, 20, "Z (cm)"};
AxisSpec dcaAxis = {1000, -100, 100, "DCA_{xy} (cm)"};
AxisSpec dcazAxis = {1000, -100, 100, "DCA_{z} (cm)"};
Expand All @@ -87,12 +58,10 @@ struct NetchargeFluctuations {
histos.add("hMultiplicity", "", kTH1D, {multAxis});
histos.add("hEta", "", kTH1F, {etaAxis});
histos.add("hPt", "", kTH1F, {ptAxis});
>>>>>>> 03c805b2635be6256d2a2a4ad4e9fa12fbdd067d
}

void process(aod::MyCollision const& coll, aod::MyTracks const& inputTracks)
{
<<<<<<< HEAD
histos.fill(HIST("hVertexZ_bef"), coll.posZ());

if (fabs(coll.posZ()) > 10.f) {
Expand Down Expand Up @@ -130,44 +99,4 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
WorkflowSpec workflow{adaptAnalysisTask<NetchargeFluctuations>(cfgc)};
return workflow;
=======
histos.fill(HIST("hVertexZ_bef"), coll.posZ());

if (fabs(coll.posZ()) > 10.f) {
return;
}
histos.fill(HIST("hVertexZ_aft"), coll.posZ());

if (!coll.sel7()) {
return;
}
histos.fill(HIST("hVertexZ_aft_sel"), coll.posZ());
histos.fill(HIST("hCentrality"), coll.centRun2V0M());
histos.fill(HIST("hMultiplicity"), coll.multFV0M());

for (auto track : inputTracks) {
if (fabs(track.eta()) > 0.8)
continue;
if (!(track.pt() > 0.2 && track.pt() < 2.))
continue;

histos.fill(HIST("hDCAxy_bef"), track.dcaXY());
histos.fill(HIST("hDCAz_bef"), track.dcaZ());

if (!track.isGlobalTrack())
continue;

histos.fill(HIST("hDCAxy_aft"), track.dcaXY());
histos.fill(HIST("hDCAz_aft"), track.dcaZ());
histos.fill(HIST("hPt"), track.pt());
histos.fill(HIST("hEta"), track.eta());
}
}
};
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
WorkflowSpec workflow{adaptAnalysisTask<NetchargeFluctuations>(cfgc)};
return workflow;
>>>>>>> 03c805b2635be6256d2a2a4ad4e9fa12fbdd067d
}

0 comments on commit 2eb2cd6

Please sign in to comment.