Skip to content

Commit cf0bb17

Browse files
author
Preet Pati
committed
Addition of resonances
1 parent 7b41a8f commit cf0bb17

4 files changed

Lines changed: 1685 additions & 2133 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ o2physics_add_dpl_workflow(dpt-dpt-per-run-extra-qc
4343
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore O2Physics::AnalysisCCDB
4444
COMPONENT_NAME Analysis)
4545

46-
o2physics_add_dpl_workflow(corr-sparse
47-
SOURCES corrSparse.cxx
46+
o2physics_add_dpl_workflow(corr-reso
47+
SOURCES corrReso.cxx
4848
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
4949
COMPONENT_NAME Analysis)
5050

PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,8 +1406,8 @@ struct CorrFit {
14061406
trackCounter(tracks1, multiplicity);
14071407
}
14081408

1409-
if (cfgQaCheck) {
1410-
registry.fill(HIST("Nch_corrected"), multiplicity);
1409+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1410+
return;
14111411
}
14121412

14131413
const auto& ft0 = collision2.foundFT0();
@@ -1460,6 +1460,10 @@ struct CorrFit {
14601460
registry.fill(HIST("Nch_corrected"), multiplicity);
14611461
}
14621462

1463+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1464+
return;
1465+
}
1466+
14631467
fillCorrelationsTPCFT0<CorrelationContainer::kCFStepReconstructed>(tracks, ft0, collision.posZ(), SameEvent, multiplicity, kFT0C, 1.0f);
14641468
}
14651469
PROCESS_SWITCH(CorrFit, processSameTpcFt0c, "Process same event for TPC-FT0C correlation", false);
@@ -1514,8 +1518,8 @@ struct CorrFit {
15141518
trackCounter(tracks, multiplicity);
15151519
}
15161520

1517-
if (cfgQaCheck) {
1518-
registry.fill(HIST("Nch_corrected"), multiplicity);
1521+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1522+
return;
15191523
}
15201524

15211525
fillCorrelationsTPCFT0<CorrelationContainer::kCFStepReconstructed>(tracks1, ft0, collision1.posZ(), MixedEvent, multiplicity, kFT0C, eventWeight);
@@ -1570,6 +1574,10 @@ struct CorrFit {
15701574
registry.fill(HIST("Nch_corrected"), multiplicity);
15711575
}
15721576

1577+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1578+
return;
1579+
}
1580+
15731581
fillCorrelationsFT0AFT0C<CorrelationContainer::kCFStepReconstructed>(ft0, ft0, collision.posZ(), SameEvent, multiplicity, eventWeight);
15741582
}
15751583
PROCESS_SWITCH(CorrFit, processSameFt0aFt0c, "Process same event for FT0A-FT0C correlation", true);
@@ -1626,9 +1634,10 @@ struct CorrFit {
16261634
trackCounter(tracks1, multiplicity);
16271635
}
16281636

1629-
if (cfgQaCheck) {
1630-
registry.fill(HIST("Nch_corrected"), multiplicity);
1637+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1638+
return;
16311639
}
1640+
16321641
registry.fill(HIST("eventcount"), MixedEvent); // fill the mixed event in the 3 bin
16331642

16341643
fillCorrelationsFT0AFT0C<CorrelationContainer::kCFStepReconstructed>(ft0Col1, ft0Col2, collision1.posZ(), MixedEvent, multiplicity, eventWeight);
@@ -1673,6 +1682,10 @@ struct CorrFit {
16731682
registry.fill(HIST("Nch_corrected"), multiplicity);
16741683
}
16751684

1685+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1686+
return;
1687+
}
1688+
16761689
fillCorrelations<CorrelationContainer::kCFStepReconstructed>(tracks, tracks, collision.posZ(), SameEvent, multiplicity, getMagneticField(bc.timestamp()));
16771690
}
16781691
PROCESS_SWITCH(CorrFit, processSameTPC, "Process same event for TPC-TPC correlation", false);
@@ -1723,6 +1736,10 @@ struct CorrFit {
17231736
trackCounter(tracks1, multiplicity);
17241737
}
17251738

1739+
if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1740+
return;
1741+
}
1742+
17261743
fillCorrelations<CorrelationContainer::kCFStepReconstructed>(tracks1, tracks2, collision1.posZ(), MixedEvent, multiplicity, getMagneticField(collision1.bc_as<aod::BCsWithTimestamps>().timestamp()));
17271744
}
17281745
}

0 commit comments

Comments
 (0)