|
ATLAS Offline Software
|
Go to the documentation of this file.
13 const std::string&
name,
21 return StatusCode::SUCCESS;
29 std::vector<ElementLink<TrigRoiDescriptorCollection>> selected_rois;
33 if(combination.size() != 2){
35 "Expecting to combine exactly two Decision Objects, but instead found "
36 << combination.size() <<
". Will throw a runtime error");
37 throw std::runtime_error(
38 "Expecting to combine exactly two Decision Objects, but instead found " +
42 for (
const auto&
el: combination){
43 const auto EL=
el.second;
44 const auto dec= (*EL);
45 const auto roiLink = TrigCompositeUtils::findLink<TrigRoiDescriptorCollection>( dec,
initialRoIString() ).link;
46 selected_rois.push_back(roiLink);
49 auto roiLink1=selected_rois[0];
50 auto roiLink2=selected_rois[1];
52 float Dr =
deltaR((*roiLink1)->eta(), (*roiLink2)->eta(), (*roiLink1)->phi(), (*roiLink2)->phi());
53 ATH_MSG_DEBUG(
"Found two RoIs with eta/phi " << (*roiLink1)->eta() <<
"/"<<(*roiLink1)->phi() <<
" and "<< (*roiLink2)->eta()<<
"/"<<(*roiLink2)->phi() <<
" with Dr="<<
Dr);
setEt setPhi setE277 setWeta2 eta1
const std::string & initialRoIString()
::StatusCode StatusCode
StatusCode definition for legacy code.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
std::vector< std::string > remainder(const std::vector< std::string > &v1, const std::vector< std::string > &v2)
list of entries in a vector that are not in another
std::string to_string(const DetectorType &type)
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)