Skip to content

Commit 3c1c0a5

Browse files
committed
adding an additional Mult histo (counting events with >1 particle candidate)
1 parent d0680d9 commit 3c1c0a5

1 file changed

Lines changed: 26 additions & 19 deletions

File tree

PWGCF/Femto3D/Tasks/femto3dPairTask.cxx

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,26 @@
1515

1616
#include "PWGCF/Femto3D/Core/femto3dPairTask.h"
1717

18-
#include "PWGCF/Femto3D/DataModel/PIDutils.h"
1918
#include "PWGCF/Femto3D/DataModel/singletrackselector.h"
2019

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"
3721

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
3837
#include <chrono>
39-
#include <cmath>
40-
#include <cstdint>
4138
#include <ctime>
4239
#include <map>
4340
#include <memory>
@@ -165,6 +162,7 @@ struct FemtoCorrelations {
165162
std::shared_ptr<TH2> TOFhisto_second;
166163

167164
std::vector<std::shared_ptr<TH1>> MultHistos;
165+
std::vector<std::shared_ptr<TH1>> MultHistos_pair;
168166
std::vector<std::vector<std::shared_ptr<TH1>>> kThistos;
169167
std::vector<std::vector<std::shared_ptr<TH1>>> mThistos; // test
170168
std::vector<std::vector<std::shared_ptr<TH1>>> SEhistos_1D;
@@ -210,6 +208,11 @@ struct FemtoCorrelations {
210208
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."}});
211209
MultHistos.push_back(std::move(hMult));
212210

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+
213216
for (unsigned int j = 0; j < _kTbins.value.size() - 1; j++) {
214217
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)"}});
215218
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 {
513516
unsigned int centBin = std::floor((i->first).second);
514517
MultHistos[centBin]->Fill(col1->mult());
515518

519+
if (selectedtracks_1[col1->index()].size() > 1) {
520+
MultHistos_pair[centBin]->Fill(col1->mult());
521+
}
522+
516523
mixTracks(selectedtracks_1[col1->index()], centBin); // mixing SE identical
517524

518525
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

Comments
 (0)