Skip to content

Commit be144b1

Browse files
committed
log
1 parent a6e1572 commit be144b1

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

‎PWGJE/TableProducer/slimTablesProducer.cxx‎

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,6 @@ struct SlimTablesProducer {
203203
{
204204
float eventWeightMC = mccollision.weight();
205205

206-
// --- TEST pT hat (a retirer une fois la formule validee) ---
207-
float ptHardTrue = mccollision.ptHard();
208-
float ptHardFromW = 10.f * std::pow(eventWeightMC, -0.25f);
209-
static int nPrint = 0;
210-
if (nPrint < 50) {
211-
LOG(info) << "ptHard vrai = " << ptHardTrue << " | ptHard formule = " << ptHardFromW;
212-
++nPrint;
213-
}
214-
215206
if (collisions.size() != 1) { // skip the mccollision if it has mre than 1 associated rec collision
216207
return;
217208
}
@@ -224,6 +215,19 @@ struct SlimTablesProducer {
224215
return;
225216
}
226217
histos.fill(HIST("h_mcCollMCP_counts_weight"), 2.5, eventWeightMC);
218+
219+
// --- TEST pT hat (a retirer une fois la formule validee) ---
220+
// Ce log est place APRES le rejet des events min bias gap :
221+
// il n'affiche donc que les events qui sont vraiment gardes dans l'analyse.
222+
float ptHardTrue = mccollision.ptHard();
223+
float ptHardFromW = 10.f * std::pow(eventWeightMC, -0.25f);
224+
static int nPrint = 0;
225+
if (nPrint < 50) {
226+
LOG(info) << "ptHard vrai = " << ptHardTrue << " | ptHard formule = " << ptHardFromW;
227+
++nPrint;
228+
}
229+
// --- fin du test ---
230+
227231
for (auto const& collision : collisions) {
228232
float eventWeight = collision.weight();
229233
histos.fill(HIST("h_mcCollMCD_counts_weight"), 0.5, eventWeightMC);
@@ -251,7 +255,7 @@ struct SlimTablesProducer {
251255
histos.fill(HIST("Ntracks_pT"), track.pt(), eventWeight);
252256
slimTracks(slimCollIndex, track.px(), track.py(), track.pz());
253257
}
254-
slimMcCollisions(mccollision.posZ(), eventWeightMC, ptHardFromW);
258+
slimMcCollisions(mccollision.posZ(), eventWeightMC, ptHardTrue);
255259
auto slimMcCollIndex = slimMcCollisions.lastIndex();
256260
for (const auto& particle : particles) {
257261
if (!particle.isPhysicalPrimary()) {

0 commit comments

Comments
 (0)