Skip to content

Commit 8e18109

Browse files
author
Changhwan Choi
committed
searchUpToQuark for bjetTreeCreator
1 parent 10b0edc commit 8e18109

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎PWGJE/DataModel/JetTagging.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(TrackIds, trackIds, //! inverse of the triangular edg
187187

188188
namespace jetgnnlabel
189189
{
190-
DECLARE_SOA_COLUMN(Origin, origin, uint8_t); //! trkOrigin from vertexClustering() (0: not physical primary, 1: charm, 2: beauty, 3: primary vertex, 4: other secondary)
190+
DECLARE_SOA_COLUMN(Origin, origin, uint8_t); //! trkOrigin from vertexClustering() (0: non-physical primary, 1: charm, 2: beauty, 3: primary vertex, 4: other secondary)
191191
DECLARE_SOA_COLUMN(VertexIndex, vertexIndex, uint8_t); //! trkVtxIndex from vertexClustering() (0: primary vertex, >0: secondary vertex, ranked by distance to PV)
192192
DECLARE_SOA_COLUMN(SameVertex, sameVertex, bool); //! true if the (i,j) constituent-track pair of this edge share the same in-jet vertex cluster (same trkVtxIndex from vertexClustering())
193193
} // namespace jetgnnlabel

‎PWGJE/Tasks/bjetTreeCreator.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ struct BJetTreeCreator {
279279
Configurable<bool> produceTree{"produceTree", true, "produce the jet TTree"};
280280

281281
Configurable<float> vtxRes{"vtxRes", 0.01, "Vertex position resolution (cluster size) for GNN vertex predictions (cm)"};
282+
Configurable<bool> searchUpToQuark{"searchUpToQuark", true, "Flag whether to search for track origins up to the quark level"};
282283

283284
Configurable<int> trainingDatasetRatioParam{"trainingDatasetRatioParam", 0, "Parameter for splitting training/evaluation datasets by collisionId"};
284285
Configurable<bool> produceExtrbTableGnn{"produceExtrbTableGnn", false, "Flag whether to produce the extra table with track quality variables for GNN training"};
@@ -846,7 +847,7 @@ struct BJetTreeCreator {
846847

847848
//+
848849
TrackLabelMap trkLabels{{"trkVtxIndex", {}}, {"trkOrigin", {}}};
849-
int nVertices = jettaggingutilities::vertexClustering(collision.template mcCollision_as<AnalysisCollisionsMCPOutlier>(), analysisJet, allTracks, MCParticles, origParticles, trkLabels, true, vtxRes, trackPtMin);
850+
int nVertices = jettaggingutilities::vertexClustering(collision.template mcCollision_as<AnalysisCollisionsMCPOutlier>(), analysisJet, allTracks, MCParticles, origParticles, trkLabels, searchUpToQuark, vtxRes, trackPtMin);
850851
analyzeJetTrackInfoForGNN(collision, analysisJet, allTracks, origTracks, indicesTracks, jetFlavor, eventWeight, &trkLabels);
851852

852853
registry.fill(HIST("h2_jetMass_jetpT"), analysisJet.pt(), analysisJet.mass(), eventWeight);

0 commit comments

Comments
 (0)