001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019 #include "JetTagTools/CombinerToolTag.h"
020 #include "JetTagInfo/BaseTagInfo.h"
021 #include "JetTagTools/ICombinerTool.h"
022 #include "JetEvent/Jet.h"
023
024
025 namespace Analysis {
026
027
028 CombinerToolTag::CombinerToolTag(const std::string& t, const std::string& n, const IInterface* p)
029 : AthAlgTool(t,n,p),
030 m_combinedTagString("combinedTag"),
031 m_combinerTool("Analysis::CombinerTool")
032 {
033 declareInterface<ITagTool>(this);
034
035 declareProperty("listTaggers",m_listTaggers);
036
037 declareProperty("combinedTagString",m_combinedTagString);
038 declareProperty("CombinerTool",m_combinerTool);
039 }
040
041 CombinerToolTag::~CombinerToolTag() {
042
043 }
044
045
046 StatusCode CombinerToolTag::initialize() {
047
048 StatusCode sc = m_combinerTool.retrieve();
049 if( StatusCode::SUCCESS != sc ) {
050 ATH_MSG_ERROR("#BTAG# creation of Analysis::CombinerTool failed.");
051 return sc;
052 }
053
054 return StatusCode::SUCCESS;
055 }
056
057
058 void CombinerToolTag::finalizeHistos() {
059 }
060
061
062
063 StatusCode CombinerToolTag::finalize() {
064 return StatusCode::SUCCESS;
065 }
066
067 void CombinerToolTag::tagJet(Jet& jetToTag) {
068
069 std::vector<double> combination=m_combinerTool->simpleCombine(jetToTag,
070 m_listTaggers);
071
072 BaseTagInfo* newTagInfo=new BaseTagInfo(m_combinedTagString);
073 newTagInfo->setTagLikelihood(combination);
074 jetToTag.addInfo(newTagInfo);
075 newTagInfo->makeValid();
076
077 }
078
079 }
080
081
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
|
This page was automatically generated by the
LXR engine.
|
|