|
15 | 15 |
|
16 | 16 | #include "PWGCF/Femto3D/Core/femto3dPairTask.h" |
17 | 17 |
|
18 | | -#include "PWGCF/Femto3D/DataModel/PIDutils.h" |
19 | 18 | #include "PWGCF/Femto3D/DataModel/singletrackselector.h" |
20 | 19 |
|
21 | | -#include <Framework/ASoA.h> |
22 | | -#include <Framework/AnalysisDataModel.h> |
23 | | -#include <Framework/AnalysisTask.h> |
24 | | -#include <Framework/Configurable.h> |
25 | | -#include <Framework/Expressions.h> |
26 | | -#include <Framework/HistogramRegistry.h> |
27 | | -#include <Framework/HistogramSpec.h> |
28 | | -#include <Framework/InitContext.h> |
29 | | -#include <Framework/OutputObjHeader.h> |
30 | | -#include <Framework/runDataProcessing.h> |
31 | | - |
32 | | -#include <TH1.h> |
33 | | -#include <TH2.h> |
34 | | -#include <TH3.h> |
35 | | -#include <TString.h> |
36 | | -#include <TVector3.h> |
| 20 | +#include "Common/DataModel/Multiplicity.h" |
37 | 21 |
|
| 22 | +#include "Framework/ASoA.h" |
| 23 | +#include "Framework/AnalysisDataModel.h" |
| 24 | +#include "Framework/AnalysisTask.h" |
| 25 | +#include "Framework/DataTypes.h" |
| 26 | +#include "Framework/Expressions.h" |
| 27 | +#include "Framework/HistogramRegistry.h" |
| 28 | +#include "Framework/StaticFor.h" |
| 29 | +#include "Framework/runDataProcessing.h" |
| 30 | +#include "MathUtils/Utils.h" |
| 31 | + |
| 32 | +#include "TLorentzVector.h" |
| 33 | +#include <TH1F.h> |
| 34 | +#include <TParameter.h> |
| 35 | + |
| 36 | +#include <algorithm> // std::random_shuffle |
38 | 37 | #include <chrono> |
39 | | -#include <cmath> |
40 | | -#include <cstdint> |
41 | 38 | #include <ctime> |
42 | 39 | #include <map> |
43 | 40 | #include <memory> |
@@ -165,6 +162,7 @@ struct FemtoCorrelations { |
165 | 162 | std::shared_ptr<TH2> TOFhisto_second; |
166 | 163 |
|
167 | 164 | std::vector<std::shared_ptr<TH1>> MultHistos; |
| 165 | + std::vector<std::shared_ptr<TH1>> MultHistos_pair; |
168 | 166 | std::vector<std::vector<std::shared_ptr<TH1>>> kThistos; |
169 | 167 | std::vector<std::vector<std::shared_ptr<TH1>>> mThistos; // test |
170 | 168 | std::vector<std::vector<std::shared_ptr<TH1>>> SEhistos_1D; |
@@ -210,6 +208,11 @@ struct FemtoCorrelations { |
210 | 208 | auto hMult = registry.add<TH1>(Form("Cent%i/TPCMult_cent%i", i, i), Form("TPCMult_cent%i", i), kTH1F, {{5001, -0.5, 5000.5, "Mult."}}); |
211 | 209 | MultHistos.push_back(std::move(hMult)); |
212 | 210 |
|
| 211 | + if (IsIdentical) { |
| 212 | + auto hMult_pair = registry.add<TH1>(Form("Cent%i/TPCMult_pair_cond_cent%i", i, i), Form("TPCMult_pair_cond_cent%i", i), kTH1F, {{5001, -0.5, 5000.5, "Mult."}}); |
| 213 | + MultHistos_pair.push_back(std::move(hMult_pair)); |
| 214 | + } |
| 215 | + |
213 | 216 | for (unsigned int j = 0; j < _kTbins.value.size() - 1; j++) { |
214 | 217 | auto hSE_1D = registry.add<TH1>(Form("Cent%i/SE_1D_cent%i_kT%i", i, i, j), Form("SE_1D_cent%i_kT%i", i, j), kTH1F, {{CFkStarBinning, "k* (GeV/c)"}}); |
215 | 218 | auto hME_1D = registry.add<TH1>(Form("Cent%i/ME_1D_cent%i_kT%i", i, i, j), Form("ME_1D_cent%i_kT%i", i, j), kTH1F, {{CFkStarBinning, "k* (GeV/c)"}}); |
@@ -513,6 +516,10 @@ struct FemtoCorrelations { |
513 | 516 | unsigned int centBin = std::floor((i->first).second); |
514 | 517 | MultHistos[centBin]->Fill(col1->mult()); |
515 | 518 |
|
| 519 | + if (selectedtracks_1[col1->index()].size() > 1) { |
| 520 | + MultHistos_pair[centBin]->Fill(col1->mult()); |
| 521 | + } |
| 522 | + |
516 | 523 | mixTracks(selectedtracks_1[col1->index()], centBin); // mixing SE identical |
517 | 524 |
|
518 | 525 | for (unsigned int indx2 = indx1 + 1; indx2 < EvPerBin; indx2++) { // nested loop for all the combinations of collisions in a chosen mult/vertex bin |
|
0 commit comments