Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

001 /******************************************************
002 
003    @class CombinerToolTag
004    General tool to combine likelihoods
005    (uses Andi Wildauer's CombinerTool)
006 
007    Created - 23 April 2007
008 
009    @author: 
010    * Giacinto Piacquadio (giacinto.piacquadio AT physik.uni-freiburg.de)
011    * Christian Weiser (christian.weiser AT physik.uni-freiburg.de)
012 
013    --- ( University of FREIBURG ) ---
014 
015    (c) 2007 - ATLAS Detector Software
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     // global configuration:
035     declareProperty("listTaggers",m_listTaggers);
036     //    declareProperty("useCharm",m_useCharm);
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 }//end namespace
080 
081   

source navigation ] diff markup ] identifier search ] general search ]

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. Valid HTML 4.01!