Skip to content

Commit 3441b67

Browse files
zchochulZuzanna Chochulska
andauthored
PWGCF: FemtoUniverse -- Removing unused configurables and commented code (#9788)
Co-authored-by: Zuzanna Chochulska <01150674@pw.edu.pl>
1 parent 97a0959 commit 3441b67

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackPhi.cxx

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ struct FemtoUniversePairTaskTrackPhi {
5858

5959
Service<o2::framework::O2DatabasePDG> pdgMC;
6060

61-
// using FemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
62-
// Filter trackCutFilter = requireGlobalTrackInFilter(); // Global track cuts
63-
// using FilteredFemtoFullParticles = soa::Filtered<FemtoFullParticles>;
64-
6561
using FilteredFemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
6662

6763
SliceCache cache;
@@ -70,14 +66,6 @@ struct FemtoUniversePairTaskTrackPhi {
7066
using FemtoRecoParticles = soa::Join<aod::FDParticles, aod::FDExtParticles, aod::FDMCLabels>;
7167
Preslice<FemtoRecoParticles> perColMC = aod::femtouniverseparticle::fdCollisionId;
7268

73-
// Efficiency
74-
struct : o2::framework::ConfigurableGroup {
75-
Configurable<std::string> confEfficiencyTrackPath{"confEfficiencyTrackPath", "", "Local path to proton efficiency TH2F file"};
76-
Configurable<std::string> confEfficiencyPhiPath{"confEfficiencyPhiPath", "", "Local path to Phi efficiency TH2F file"};
77-
Configurable<int64_t> confEfficiencyTrackTimestamp{"confEfficiencyTrackTimestamp", 0, "(int64_t) Timestamp for hadron"};
78-
Configurable<int64_t> confEfficiencyPhiTimestamp{"confEfficiencyPhiTimestamp", 0, "(int64_t) Timestamp for phi"};
79-
} ConfEff;
80-
8169
struct : o2::framework::ConfigurableGroup {
8270
Configurable<bool> confCPRIsEnabled{"confCPRIsEnabled", false, "Close Pair Rejection"};
8371
Configurable<bool> confCPRPlotPerRadii{"confCPRPlotPerRadii", false, "Plot CPR per radii"};
@@ -99,9 +87,6 @@ struct FemtoUniversePairTaskTrackPhi {
9987
Configurable<float> confPIDProtonNsigmaReject{"confPIDProtonNsigmaReject", 3.0, "Reject if particle could be a Proton combined nsigma value."};
10088
Configurable<float> confPIDPionNsigmaCombined{"confPIDPionNsigmaCombined", 3.0, "TPC and TOF Pion Sigma (combined) for momentum > 0.5"};
10189
Configurable<float> confPIDPionNsigmaTPC{"confPIDPionNsigmaTPC", 3.0, "TPC Pion Sigma for momentum < 0.5"};
102-
103-
// Configurable<LabeledArray<float>> confCutTable{"confCutTable", {cutsTable[0], NPart, NCuts, partNames, cutNames}, "Particle selections"}; //unused
104-
// Configurable<int> confNspecies{"confNspecies", 2, "Number of particle spieces with PID info"}; //unused
10590
Configurable<bool> confIsMC{"confIsMC", false, "Enable additional Histograms in the case of a MonteCarlo Run"};
10691
Configurable<std::vector<float>> confTrkPIDnSigmaMax{"confTrkPIDnSigmaMax", std::vector<float>{4.f, 3.f, 2.f}, "This configurable needs to be the same as the one used in the producer task"};
10792
Configurable<bool> confUse3D{"confUse3D", false, "Enable three dimensional histogramms (to be used only for analysis with high statistics): k* vs mT vs multiplicity"};
@@ -212,10 +197,6 @@ struct FemtoUniversePairTaskTrackPhi {
212197
EfficiencyConfigurableGroup effConfGroup;
213198
EfficiencyCalculator efficiencyCalculator{&effConfGroup};
214199

215-
// Service<ccdb::BasicCCDBManager> ccdb;
216-
// TH2F* protoneff;
217-
// TH2F* phieff;
218-
219200
/// @brief Counter for particle swapping
220201
int fNeventsProcessed = 0;
221202
bool swpart = 0;
@@ -468,27 +449,6 @@ struct FemtoUniversePairTaskTrackPhi {
468449
if (ConfCPR.confCPRIsEnabled.value) {
469450
pairCloseRejection.init(&resultRegistry, &qaRegistry, ConfCPR.confCPRdeltaPhiCutMin.value, ConfCPR.confCPRdeltaPhiCutMax.value, ConfCPR.confCPRdeltaEtaCutMin.value, ConfCPR.confCPRdeltaEtaCutMax.value, ConfCPR.confCPRChosenRadii.value, ConfCPR.confCPRPlotPerRadii.value, ConfCPR.confCPRInvMassCutMin.value, ConfCPR.confCPRInvMassCutMax.value);
470451
}
471-
472-
/// Initializing CCDB
473-
// ccdb->setURL("http://alice-ccdb.cern.ch");
474-
// ccdb->setCaching(true);
475-
// ccdb->setLocalObjectValidityChecking();
476-
477-
// int64_t now = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
478-
// ccdb->setCreatedNotAfter(now);
479-
480-
// if (!ConfEff.confEfficiencyTrackPath.value.empty()) {
481-
// protoneff = ccdb->getForTimeStamp<TH2F>(ConfEff.confEfficiencyTrackPath.value.c_str(), ConfEff.confEfficiencyTrackTimestamp.value);
482-
// if (!protoneff || protoneff->IsZombie()) {
483-
// LOGF(fatal, "Could not load efficiency protoneff histogram from %s", ConfEff.confEfficiencyTrackPath.value.c_str());
484-
// }
485-
// }
486-
// if (!ConfEff.confEfficiencyPhiPath.value.empty()) {
487-
// phieff = ccdb->getForTimeStamp<TH2F>(ConfEff.confEfficiencyPhiPath.value.c_str(), ConfEff.confEfficiencyPhiTimestamp.value);
488-
// if (!phieff || phieff->IsZombie()) {
489-
// LOGF(fatal, "Could not load efficiency phieff histogram from %s", ConfEff.confEfficiencyPhiPath.value.c_str());
490-
// }
491-
// }
492452
}
493453

494454
template <typename CollisionType>

0 commit comments

Comments
 (0)