  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   25 #include <TEfficiency.h> 
   29 #include <TObjString.h> 
   52                 ISvcLocator* pSvcLocator)
 
   53     : AnaAlgorithm (
name, pSvcLocator),
 
   58       m_hasInitialize (
false)
 
   60     declareProperty (
"property", m_property, 
"test property");
 
   61     declareProperty (
"string_property", m_string_property, 
"test string property");
 
   62     declareProperty (
"toolHandle", m_toolHandle, 
"ToolHandle property");
 
   80     ANA_CHECK (
book (TEfficiency (
"efficiency", 
"dummy efficiency hist", 50, 0, 50)));
 
   81     (void) hist<TEfficiency> (
"efficiency");
 
   82     (void) histeff (
"efficiency");
 
  100       TFile *
file = wk()->getOutputFile (
"out");
 
  101       m_tree = 
new TTree (
"tree2", 
"test output");
 
  106     return ::StatusCode::SUCCESS;
 
  131     m_branch->GetEntry (wk()->treeEntry());
 
  140     return ::StatusCode::SUCCESS;
 
  153     wk()->addOutput (
new TH1F (
"beta/dir/hist2", 
"directory test", 10, 0, 10));
 
  154     wk()->addOutputList (
"alpha2", 
new TObjString (
"alpha2"));
 
  155     return ::StatusCode::SUCCESS;
 
  
virtual ::StatusCode execute() override
 
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
 
TGraphErrors * GetEntries(TH2F *histo)
 
TTree * m_tree
description: the histogram we are creating
 
TBranch * m_branch
description: the branch we are using
 
ClassImp(EL::UnitTestAlg2) namespace EL
 
std::string m_name
description: the name of the variable we are using
 
bool m_hasInitialize
whether initialize has been called
 
#define RCU_ASSERT_SOFT(x)
 
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
 
Int_t m_value
description: the value we are reading from the branch
 
UnitTestAlg2(const std::string &name, ISvcLocator *pSvcLocator)
effects: standard constructor.
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
This module defines the arguments passed from the BATCH driver to the BATCH worker.
 
bool makeOutput
description: whether I create an output n-tuple
 
virtual ::StatusCode initialize() override
 
float m_property
the float property our owner sets
 
#define RCU_CHANGE_INVARIANT(x)
 
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
 
#define RCU_THROW_MSG(message)
 
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
 
virtual ::StatusCode finalize() override
 
TTree * tree(const std::string &treeName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered TTrees.
 
#define RCU_NEW_INVARIANT(x)