21 const double GeV = 1
e3;
34 "Input b-jet flag. Disabled by default.");
37 "Min number of jet tracks to keep jet and remove muon");
40 "Max PT ratio to keep jet and remove muon");
42 "Inner cone for removing jets");
44 "The constant offset for sliding dR");
46 "The inverse muon pt factor for sliding dR");
49 "Maximum allowed size of sliding dR cone");
51 "Calculate delta-R using rapidity");
53 "PV Container to use");
72 std::make_unique<SlidingDeltaRMatcher>
79 return StatusCode::SUCCESS;
95 return StatusCode::SUCCESS;
114 for(
const auto muon : muons){
117 for(
const auto jet : jets){
123 float ptRatio = muon(acc.m_muonPtAcc) /
jet(acc.m_jetPtAcc);
133 for(
const auto jet : jets){
136 for(
const auto muon : muons){
145 return StatusCode::SUCCESS;
154 if (!acc.m_vtxContainerAcc.isAvailable(eventContext)) {
158 auto vertices = acc.m_vtxContainerAcc(eventContext);
159 for(
auto vtx : vertices) {
161 return vertices.getIndexInRange(vtx);
175 if(vtx == -1)
return -1;
176 return acc.m_numTrkPt500Acc(
jet)[vtx];
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ObjectId< ContainerId::particle2 > Particle2Id
ObjectId< ContainerId::eventContext > EventContextId
ObjectRange< ContainerId::particle2 > Particle2Range
ObjectRange< ContainerId::particle1 > Particle1Range
@ Jet
The object is a jet.
@ Muon
The object is a muon.