Skip to content

Commit 7b93786

Browse files
committed
Changes to the producer
1 parent 52d8ed1 commit 7b93786

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

PWGCF/FemtoWorld/DataModel/FemtoWorldDerived.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ DECLARE_SOA_INDEX_COLUMN(FemtoWorldCollision, femtoWorldCollision);
7474
DECLARE_SOA_COLUMN(Pt, pt, float); //! p_T (GeV/c)
7575
DECLARE_SOA_COLUMN(Eta, eta, float); //! Eta
7676
DECLARE_SOA_COLUMN(Phi, phi, float); //! Phi
77+
DECLARE_SOA_COLUMN(Mass, mass, int8_t); //! Mass of the particle
7778
DECLARE_SOA_COLUMN(PartType, partType, uint8_t); //! Type of the particle, according to femtoworldparticle::ParticleType
7879
DECLARE_SOA_COLUMN(Cut, cut, cutContainerType); //! Bit-wise container for the different selection criteria
7980
DECLARE_SOA_COLUMN(PIDCut, pidcut, cutContainerType); //! Bit-wise container for the different PID selection criteria \todo since bit-masking cannot be done yet with filters we use a second field for the PID
@@ -134,6 +135,7 @@ DECLARE_SOA_TABLE(FemtoWorldParticles, "AOD", "FEMTOWORLDPARTS",
134135
femtoworldparticle::Eta,
135136
femtoworldparticle::Phi,
136137
track::P,
138+
femtoworldparticle::Mass,
137139
femtoworldparticle::PartType,
138140
femtoworldparticle::Cut,
139141
femtoworldparticle::PIDCut,

PWGCF/FemtoWorld/TableProducer/femtoWorldProducerTask.cxx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -797,15 +797,7 @@ struct femtoWorldProducerTask {
797797
continue;
798798
}
799799
}
800-
/*else if (p1.pt() == NAN){
801-
continue;
802-
}*/
803-
// LOGF(info, "p1.pt() = %f \n p1.p() = %f \n", p1.pt(), p1.p());
804-
// LOGF(info, "p2.pt() = %f \n p2.p() = %f \n", p2.pt(), p2.p());
805-
// float phiPx = p1.px() + p2.px();
806-
// float phiPy = p1.py() + p2.py();
807-
// float phiPz = p1.pz() + p2.pz();
808-
800+
809801
TLorentzVector part1Vec;
810802
TLorentzVector part2Vec;
811803
float mMassOne = TDatabasePDG::Instance()->GetParticle(ConfPDGCodePartOne)->Mass();
@@ -821,6 +813,7 @@ struct femtoWorldProducerTask {
821813
float phiPhi = sumVec.Phi();
822814
float phiPt = sumVec.Pt();
823815
float phiP = sumVec.P();
816+
float phiM = sumVec.M();
824817

825818
// LOGF(info, "FIRST DAUGHTER: \n pT = %f \n eta = %f \n phi = %f", p1.pt(), p1.eta(), p1.phi());
826819

@@ -839,6 +832,7 @@ struct femtoWorldProducerTask {
839832
p1.eta(),
840833
p1.phi(),
841834
p1.p(),
835+
mMassOne,
842836
aod::femtoworldparticle::ParticleType::kPhiChild,
843837
cutContainerV0.at(femtoWorldV0Selection::V0ContainerPosition::kPosCuts),
844838
cutContainerV0.at(femtoWorldV0Selection::V0ContainerPosition::kPosPID),
@@ -890,6 +884,7 @@ struct femtoWorldProducerTask {
890884
p2.eta(),
891885
p2.phi(),
892886
p2.p(),
887+
mMassTwo,
893888
aod::femtoworldparticle::ParticleType::kPhiChild,
894889
cutContainerV0.at(femtoWorldV0Selection::V0ContainerPosition::kNegCuts),
895890
cutContainerV0.at(femtoWorldV0Selection::V0ContainerPosition::kNegPID),
@@ -937,6 +932,7 @@ struct femtoWorldProducerTask {
937932
phiEta,
938933
phiPhi,
939934
phiP,
935+
phiM,
940936
aod::femtoworldparticle::ParticleType::kPhi,
941937
cutContainerV0.at(femtoWorldV0Selection::V0ContainerPosition::kV0),
942938
0,

PWGCF/FemtoWorld/Tasks/femtoWorldPairTaskTrackPhi.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,18 @@ struct femtoWorldPairTaskTrackPhi {
134134
eventHisto.fillQA(col);
135135
/// Histogramming same event
136136
for (auto& part : groupPartsOne) {
137+
/*
137138
if (part.p() > cfgCutTable->get("PartOne", "MaxP") || part.pt() > cfgCutTable->get("PartOne", "MaxPt")) {
138139
continue;
139140
}
140141
if (!isFullPIDSelected(part.pidcut(), part.p(), cfgCutTable->get("PartOne", "PIDthr"), vPIDPartOne, cfgNspecies, kNsigma, cfgCutTable->get("PartOne", "nSigmaTPC"), cfgCutTable->get("PartOne", "nSigmaTPCTOF"))) {
141142
continue;
142-
}
143-
LOGF(info, "TEST ================================================================= \n");
143+
}*/
144+
LOGF(info, "TEST ==============================TRACKONEFILL=================================== \n");
144145
trackHistoPartOne.fillQA(part);
145146
}
146147
for (auto& part : groupPartsTwo) {
147-
148+
//LOGF(info, "TEST ==============================TRACKPHIFILL=================================== \n");
148149
trackHistoPartTwo.fillQA(part);
149150
}
150151
/// Now build the combinations

0 commit comments

Comments
 (0)