Skip to content

Commit b239230

Browse files
committed
Added support for JEWEL thermal particles in the input
1 parent dff7f40 commit b239230

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

runFromFile.cc

+13-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,20 @@ int main (int argc, char ** argv) {
8181
eventWeight.push_back(mixer.pu_weight());
8282

8383
// cluster hard event only
84+
std::vector<fastjet::PseudoJet> particlesDummy, particlesReal;
8485
std::vector<fastjet::PseudoJet> particlesBkg, particlesSig;
85-
SelectorIsHard().sift(particlesMerged, particlesSig, particlesBkg); // this sifts the full event into two vectors of PseudoJet, one for the hard event, one for the underlying event
86-
86+
SelectorVertexNumber(-1).sift(particlesMerged, particlesDummy, particlesReal);
87+
SelectorVertexNumber(0).sift(particlesReal, particlesSig, particlesBkg);
88+
89+
for(int i = 0; i < (int)particlesDummy.size(); i++)
90+
{
91+
if(particlesDummy[i].perp() < 1e-5 && fabs(particlesDummy[i].pz()) > 2000)
92+
{
93+
particlesDummy.erase(particlesDummy.begin() + i);
94+
i = i - 1;
95+
}
96+
}
97+
8798
//---------------------------------------------------------------------------
8899
// jet clustering
89100
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)