@@ -1304,10 +1304,10 @@ struct TauThreeProngEventTableProducer {
13041304 int8_t bcSels[8 ] = {-99 , -99 , -99 , -99 , -99 , -99 , -99 , -99 };
13051305 uint8_t bcSelBits = 0 ;
13061306 // zdc information - there is no information in MC
1307- float energyZNA = -999 .;
1308- float energyZNC = -999 .;
1309- float timeZNA = -999 .;
1310- float timeZNC = -999 .;
1307+ // float energyZNA = -999.;
1308+ // float energyZNC = -999.;
1309+ // float timeZNA = -999.;
1310+ // float timeZNC = -999.;
13111311
13121312 float amplitudesFIT[3 ] = {-999 ., -999 ., -999 .}; // FT0A, FT0C, FV0
13131313 // float timesFIT[3] = {-999., -999., -999.}; // FT0A, FT0C, FV0
@@ -1624,8 +1624,8 @@ struct TauThreeProngEventTableProducer {
16241624 bcSelBits,
16251625 // bcSels[0], bcSels[1], bcSels[2], // to test it
16261626 // bcSels[3], bcSels[4], bcSels[5], bcSels[6], bcSels[7],
1627- energyZNA, energyZNC,
1628- timeZNA, timeZNC,
1627+ // energyZNA, energyZNC,
1628+ // timeZNA, timeZNC,
16291629 // qtot, <<-------- comment out
16301630 amplitudesFIT[0 ], amplitudesFIT[1 ], amplitudesFIT[2 ],
16311631 // timesFIT[0], timesFIT[1], timesFIT[2],
@@ -1656,8 +1656,8 @@ struct TauThreeProngEventTableProducer {
16561656 bcSelBits,
16571657 // bcSels[0], bcSels[1], bcSels[2], // to test it
16581658 // bcSels[3], bcSels[4], bcSels[5], bcSels[6], bcSels[7],
1659- energyZNA, energyZNC,
1660- timeZNA, timeZNC,
1659+ // energyZNA, energyZNC,
1660+ // timeZNA, timeZNC,
16611661 // qtot, <<-------- comment out
16621662 amplitudesFIT[0 ], amplitudesFIT[1 ], amplitudesFIT[2 ],
16631663 // timesFIT[0], timesFIT[1], timesFIT[2],
@@ -1890,22 +1890,6 @@ struct TauThreeProngEventTableProducer {
18901890 registrySkim.get <TH1 >(HIST (" gen/efficiencyMC" ))->Fill (8 ., 1 .);
18911891 }
18921892
1893- bool trueHasRecoColl = false ;
1894- // find reconstructed collisions associated to the generated collision
1895- auto const & collFromMcColls = collisions.sliceBy (colPerMcCollision, mccoll.globalIndex ());
1896- if (verbose)
1897- LOGF (info, " -- coll from MC Coll %d" , collFromMcColls.size ());
1898- // check the generated collision was reconstructed
1899- if (collFromMcColls.size () > 0 ) { // get the truth and reco-level info
1900- trueHasRecoColl = true ;
1901- registrySkim.get <TH1 >(HIST (" gen/efficiencyMC" ))->Fill (9 ., 1 .);
1902- if (verbose)
1903- LOGF (info, " --- MC Collision has reconstructed collision!" );
1904- } else { // get only the truth information.
1905- if (verbose)
1906- LOGF (info, " MC Collision has NO reconstructed collision!" );
1907- }
1908-
19091893 // get particles associated to generated collision
19101894 auto const & partsFromMcColl = mcParticles.sliceBy (partPerMcCollision, mccoll.globalIndex ());
19111895 if (verbose)
@@ -1959,6 +1943,25 @@ struct TauThreeProngEventTableProducer {
19591943 // decide the channel and set the variable.
19601944 trueChannel = trueChannel + countPi0 * 10 + zerothTau * 100 ;
19611945
1946+ //
1947+ // check whwther event is reconstructed
1948+ //
1949+ bool trueHasRecoColl = false ;
1950+ // find reconstructed collisions associated to the generated collision
1951+ auto const & collFromMcColls = collisions.sliceBy (colPerMcCollision, mccoll.globalIndex ());
1952+ if (verbose)
1953+ LOGF (info, " -- coll from MC Coll %d" , collFromMcColls.size ());
1954+ // check the generated collision was reconstructed
1955+ if (collFromMcColls.size () > 0 ) { // get the truth and reco-level info
1956+ trueHasRecoColl = true ;
1957+ registrySkim.get <TH1 >(HIST (" gen/efficiencyMC" ))->Fill (9 ., 1 .);
1958+ if (verbose)
1959+ LOGF (info, " --- MC Collision has reconstructed collision!" );
1960+ } else { // get only the truth information.
1961+ if (verbose)
1962+ LOGF (info, " MC Collision has NO reconstructed collision!" );
1963+ }
1964+
19621965 // LOGF(info, "Should be written!");
19631966
19641967 if (nChargedDaughtersTau[0 ] + nChargedDaughtersTau[1 ] == fourTracks) { // 4
0 commit comments