1010// or submit itself to any jurisdiction.
1111
1212// / \author Junlee Kim (jikim1290@gmail.com)
13+ // / \brief longitudinal polarization from 2PC
14+ // / \file lambdaTwoPartPolarization.cxx
1315
1416#include " PWGLF/DataModel/LFStrangenessTables.h"
1517
@@ -57,7 +59,7 @@ using namespace o2::framework::expressions;
5759using namespace o2 ::soa;
5860using namespace o2 ::constants::physics;
5961
60- struct lambdaTwoPartPolarization {
62+ struct LfLambdaTwoPartPolarization {
6163 enum centSel {
6264 kFT0C = 0 ,
6365 kFT0M
@@ -73,17 +75,14 @@ struct lambdaTwoPartPolarization {
7375 OutputObjHandlingPolicy::AnalysisObject};
7476
7577 struct : ConfigurableGroup {
76- Configurable<std::string> cfgURL{" cfgURL" ,
77- " http://alice-ccdb.cern.ch" , " Address of the CCDB to browse" };
78- Configurable<int64_t > nolaterthan{" ccdb-no-later-than" ,
79- std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now ().time_since_epoch ()).count (),
80- " Latest acceptable timestamp of creation for the object" };
78+ Configurable<std::string> cfgURL{" cfgURL" , " http://alice-ccdb.cern.ch" , " Address of the CCDB to browse" };
79+ Configurable<int64_t > nolaterthan{" nolaterthan" , std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now ().time_since_epoch ()).count (), " Latest acceptable timestamp of creation for the object" };
8180 } cfgCcdbParam;
8281 Service<o2::ccdb::BasicCCDBManager> ccdb{};
8382 o2::ccdb::CcdbApi ccdbApi;
8483
8584 Configurable<float > cfgCentSel{" cfgCentSel" , 100 ., " Centrality selection" };
86- Configurable<int > cfgCentEst{" cfgCentEst" , 2 , " Centrality estimator, 1 : FT0C, 2 : FT0M" };
85+ Configurable<int > cfgCentEst{" cfgCentEst" , 1 , " Centrality estimator, 0 : FT0C, 1 : FT0M" };
8786
8887 Configurable<bool > cfgEvtSel{" cfgEvtSel" , true , " event selection flag" };
8988 Configurable<bool > cfgPVSel{" cfgPVSel" , true , " Additional PV selection flag for syst" };
@@ -132,8 +131,8 @@ struct lambdaTwoPartPolarization {
132131
133132 ConfigurableAxis ptAxis{" ptAxis" , {VARIABLE_WIDTH , 0.2 , 0.5 , 1.0 , 1.5 , 2.0 , 2.5 , 3.0 , 4.0 , 5.0 , 6.5 , 8.0 , 10.0 , 100.0 }, " Transverse momentum bins" };
134133 ConfigurableAxis centAxis{" centAxis" , {VARIABLE_WIDTH , 0 , 10 , 20 , 30 , 40 , 50 , 60 , 70 , 100 }, " Centrality interval" };
135- ConfigurableAxis RapAxis{ " RapAxis " , {10 , -0.5 , 0.5 }, " Rapidity axis" };
136- ConfigurableAxis detaAxis{" dyAxis " , {20 , -1 , 1 }, " relative rapidity axis" };
134+ ConfigurableAxis rapAxis{ " rapAxis " , {10 , -0.5 , 0.5 }, " Rapidity axis" };
135+ ConfigurableAxis detaAxis{" detaAxis " , {20 , -1 , 1 }, " relative rapidity axis" };
137136 ConfigurableAxis dphiAxis{" dphiAxis" , {20 , -constants::math::PI * 0.5 , constants::math::PI * 1.5 }, " relative azimuth axis" };
138137 ConfigurableAxis massAxis{" massAxis" , {30 , 1.10 , 1.1 }, " lambda mass axis" };
139138
@@ -175,7 +174,7 @@ struct lambdaTwoPartPolarization {
175174
176175 histos.add (" Ana/Signal" , " " , {HistType::kTHnSparseF , {ptAxis, ptAxis, detaAxis, dphiAxis, centAxis, cosSigAxis}});
177176 histos.add (" Ana/SignalCos2" , " " , {HistType::kTHnSparseF , {ptAxis, ptAxis, detaAxis, dphiAxis, centAxis, cosSigAxis}});
178- histos.add (" Ana/Acceptance" , " " , {HistType::kTHnSparseF , {ptAxis, centAxis, RapAxis , cosAccAxis}});
177+ histos.add (" Ana/Acceptance" , " " , {HistType::kTHnSparseF , {ptAxis, centAxis, rapAxis , cosAccAxis}});
179178
180179 histos.add (" AnaHL/LambdaSignalSin2" , " " , {HistType::kTHnSparseF , {ptAxis, ptAxis, detaAxis, dphiAxis, centAxis, massAxis, cosSigAxis}});
181180 histos.add (" AnaHL/LambdaSignalCos2" , " " , {HistType::kTHnSparseF , {ptAxis, ptAxis, detaAxis, dphiAxis, centAxis, massAxis, cosSigAxis}});
@@ -531,9 +530,11 @@ struct lambdaTwoPartPolarization {
531530 TrackCandidates const & tracks, aod::V0Datas const & V0s,
532531 aod::BCsWithTimestamps const &)
533532 {
534- if (cfgCentEst == 1 ) {
533+ if (cfgCentEst == kFT0C ) {
535534 centrality = collision.centFT0C ();
536- } else if (cfgCentEst == 2 ) {
535+ } else if (cfgCentEst == kFT0M ) {
536+ centrality = collision.centFT0M ();
537+ } else {
537538 centrality = collision.centFT0M ();
538539 }
539540 if (!eventSelected (collision) && cfgEvtSel) {
@@ -555,7 +556,7 @@ struct lambdaTwoPartPolarization {
555556 FillHistogramsRef (tracks, tracks);
556557 FillHistogramsLH (collision, V0s, tracks);
557558 }
558- PROCESS_SWITCH (lambdaTwoPartPolarization , processDataSameHadron, " Process event for same data with hadrons" , true );
559+ PROCESS_SWITCH (LfLambdaTwoPartPolarization , processDataSameHadron, " Process event for same data with hadrons" , true );
559560
560561 void processDataSame (EventCandidates::iterator const & collision,
561562 TrackCandidates const & /* tracks*/ , aod::V0Datas const & V0s,
@@ -585,7 +586,7 @@ struct lambdaTwoPartPolarization {
585586
586587 FillHistograms (collision, collision, V0s, V0s);
587588 }
588- PROCESS_SWITCH (lambdaTwoPartPolarization , processDataSame, " Process event for same data" , true );
589+ PROCESS_SWITCH (LfLambdaTwoPartPolarization , processDataSame, " Process event for same data" , true );
589590
590591 SliceCache cache;
591592 Preslice<aod::V0Datas> tracksPerCollisionV0 = aod::v0data::collisionId;
@@ -620,7 +621,7 @@ struct lambdaTwoPartPolarization {
620621 FillHistograms (c1, c2, tracks1, tracks2);
621622 }
622623 }
623- PROCESS_SWITCH (lambdaTwoPartPolarization , processDataMixedT0C, " Process event for mixed data in PbPb" , false );
624+ PROCESS_SWITCH (LfLambdaTwoPartPolarization , processDataMixedT0C, " Process event for mixed data in PbPb" , false );
624625
625626 using BinningTypeT0M = ColumnBinningPolicy<aod::collision::PosZ, aod::cent::CentFT0M>;
626627 BinningTypeT0M colBinningT0M{{vertexAxis, centAxis}, true };
@@ -652,11 +653,11 @@ struct lambdaTwoPartPolarization {
652653 FillHistograms (c1, c2, tracks1, tracks2);
653654 }
654655 }
655- PROCESS_SWITCH (lambdaTwoPartPolarization , processDataMixedT0M, " Process event for mixed data in pp" , false );
656+ PROCESS_SWITCH (LfLambdaTwoPartPolarization , processDataMixedT0M, " Process event for mixed data in pp" , false );
656657};
657658
658659WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
659660{
660661 return WorkflowSpec{
661- adaptAnalysisTask<lambdaTwoPartPolarization >(cfgc, TaskName{" lf-lambdaTwoPartPolarization " })};
662+ adaptAnalysisTask<LfLambdaTwoPartPolarization >(cfgc, TaskName{" lf-LfLambdaTwoPartPolarization " })};
662663}
0 commit comments