ATLAS Offline Software
ExamplePlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef EXAMPLEPLOTS_H_
6 #define EXAMPLEPLOTS_H_
7 
10 
11 class TFile;
12 
13 namespace EL {
14  class Worker;
15 }
16 
17 namespace top {
18  class TopConfig;
19  class ScaleFactorRetriever;
20 
26  public:
38  ExamplePlots(const std::string& name, TFile* outputFile, EL::Worker* wk = nullptr,
39  std::shared_ptr<top::TopConfig> config = nullptr);
40 
46  virtual bool apply(const top::Event& event) const override;
47 
53  std::string name() const override;
54  private:
56  static const double toGeV;
57 
60 
61  // Nominal hash value
62  std::size_t m_nominalHashValue;
63 
64  std::shared_ptr<top::TopConfig> m_config;
66  };
67 }
68 
69 #endif
PlotManager.h
top::ExamplePlots::m_config
std::shared_ptr< top::TopConfig > m_config
Definition: ExamplePlots.h:64
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::ExamplePlots::ExamplePlots
ExamplePlots(const std::string &name, TFile *outputFile, EL::Worker *wk=nullptr, std::shared_ptr< top::TopConfig > config=nullptr)
Setup some example plots.
Definition: ExamplePlots.cxx:24
top::PlotManager
A map that lets you create a bunch of histograms and get hold of them via a string name.
Definition: PlotManager.h:25
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
compareGeometries.outputFile
string outputFile
Definition: compareGeometries.py:25
EL::Worker
Definition: Worker.h:25
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::ExamplePlots::toGeV
static const double toGeV
File units are MeV and normally people like plots in GeV.
Definition: ExamplePlots.h:56
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
top::ScaleFactorRetriever
Definition: ScaleFactorRetriever.h:216
top::ExamplePlots::name
std::string name() const override
Return the name for the cutflow table.
Definition: ExamplePlots.cxx:282
top::ExamplePlots::m_sfRetriever
top::ScaleFactorRetriever * m_sfRetriever
Definition: ExamplePlots.h:65
top::EventSelectorBase
This should apply event-level cuts and perform simple plotting on top::Event objects.
Definition: EventSelectorBase.h:20
EventSelectorBase.h
top::ExamplePlots
An example of how to quickly make some plots at a certain point in the cutflow.
Definition: ExamplePlots.h:25
top::ExamplePlots::m_nominalHashValue
std::size_t m_nominalHashValue
Definition: ExamplePlots.h:62
top::ExamplePlots::apply
virtual bool apply(const top::Event &event) const override
Fill the histograms.
Definition: ExamplePlots.cxx:138
top::Event
Very simple class to hold event data after reading from a file.
Definition: Event.h:49
top::ExamplePlots::m_hists
PlotManager m_hists
Easy access to histograms.
Definition: ExamplePlots.h:59