6#include "GaudiKernel/SystemOfUnits.h"
22 ATH_MSG_ERROR(
"Both mass cuts are <0. This is probably a configuration mistake.");
23 return StatusCode::FAILURE;
31 return StatusCode::SUCCESS;
37 std::vector<float> fexInvMass, fexInvMassSel;
47 ATH_MSG_DEBUG(
"Accept property is set: taking all the events");
51 std::vector<const xAOD::Muon*> selected_muons;
52 for(
auto el: combination){
56 for(
size_t i=0; i<muonLinks.size(); i++){
57 if(muonLinks.at(i).isValid()){
58 const xAOD::Muon *mu = *(muonLinks.at(i).link);
59 if(mu->trackParticle(xAOD::Muon::TrackParticleType::Primary)) selected_muons.push_back(mu);
67 for(
size_t i=0; i<selected_muons.size(); i++){
70 for(
size_t j=i+1; j<selected_muons.size(); j++){
79 ATH_MSG_DEBUG(
"Retrieved CombinedTrack tracks with abs pt "<< (*tr1).pt()/Gaudi::Units::GeV <<
" GeV and "<< (*tr2).pt()/Gaudi::Units::GeV <<
" GeV ");
81 float diMuMass = (tr1->
p4()+tr2->
p4()).M()/Gaudi::Units::GeV;
84 fexInvMass.push_back(diMuMass);
86 ATH_MSG_DEBUG(
" REGTEST diMuon mass is " << diMuMass <<
" GeV "
100 fexInvMassSel.push_back(diMuMass);
106 ATH_MSG_DEBUG(
"Overall result is: "<<(result?
"true":
"false"));
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
Header file to be included by clients of the Monitored infrastructure.
Group of local monitoring quantities and retain correlation when filling histograms
const TrackParticle * trackParticle(TrackParticleType type) const
Returns a pointer (which can be a nullptr) to the TrackParticle used in identification of this muon.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
const std::string & featureString()
void findLinks(const EventContext &ctx, const Decision *start, const std::string &linkName, std::vector< LinkInfo< T > > &links, unsigned int behaviour=TrigDefs::allFeaturesOfType, std::set< const xAOD::TrigComposite * > *fullyExploredFrom=nullptr)
search back the TC links for the object of type T linked to the one of TC (recursively) Populates pro...
static const unsigned int lastFeatureOfType
Run 3 "enum". Only return the final feature along each route through the navigation.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version: