File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct JetSubstructureTask {
4949
5050 Configurable<float > zCut{" zCut" , 0.1 , " soft drop z cut" };
5151 Configurable<float > beta{" beta" , 0.0 , " soft drop beta" };
52+ Configurable<float > pairConstituentPtMin{" pairConstituentPtMin" , 1.0 , " pt cut off for constituents going into pairs" };
5253
5354 Service<o2::framework::O2DatabasePDG> pdg;
5455 std::vector<fastjet::PseudoJet> jetConstituents;
@@ -154,7 +155,9 @@ struct JetSubstructureTask {
154155 pairThetaVec.clear ();
155156 std::vector<typename U::iterator> tracksVec;
156157 for (auto const & constituent : jet.template tracks_as <U>()) {
157- tracksVec.push_back (constituent);
158+ if (constituent.pt () >= pairConstituentPtMin) {
159+ tracksVec.push_back (constituent);
160+ }
158161 }
159162 if (tracksVec.size () >= 2 ) {
160163 for (typename std::vector<typename U::iterator>::size_type track1Index = 0 ; track1Index < tracksVec.size () - 1 ; track1Index++) {
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ struct JetSubstructureHFTask {
5353 // Jet level configurables
5454 Configurable<float > zCut{" zCut" , 0.1 , " soft drop z cut" };
5555 Configurable<float > beta{" beta" , 0.0 , " soft drop beta" };
56+ Configurable<float > pairConstituentPtMin{" pairConstituentPtMin" , 1.0 , " pt cut off for constituents going into pairs" };
5657
5758 Service<o2::framework::O2DatabasePDG> pdg;
5859 float candMass;
@@ -168,7 +169,9 @@ struct JetSubstructureHFTask {
168169 std::vector<std::decay_t <typename U::iterator>> tracksVec;
169170 std::vector<std::decay_t <typename V::iterator>> candidatesVec;
170171 for (auto & constituent : jet.template tracks_as <U>()) {
171- tracksVec.push_back (constituent);
172+ if (constituent.pt () >= pairConstituentPtMin) {
173+ tracksVec.push_back (constituent);
174+ }
172175 }
173176 for (auto & candidate : jet.template candidates_as <V>()) {
174177 candidatesVec.push_back (candidate);
You can’t perform that action at this time.
0 commit comments