![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef EVENTSELECTION_H_
6 #define EVENTSELECTION_H_
26 class ParticleLevelEvent;
50 const std::vector<std::unique_ptr<top::ToolLoaderBase> >& toolLoaders,
81 virtual void countInitial(
const float mcEventWeight,
const float pileupWeight)
const;
85 virtual void countGRL(
const float mcEventWeight,
const float pileupWeight)
const;
89 virtual void countGoodCalo(
const float mcEventWeight,
const float pileupWeight)
const;
93 virtual void countPrimaryVertex(
const float mcEventWeight,
const float pileupWeight)
const;
142 const std::string
name()
const;
165 std::vector<std::unique_ptr<EventSelectorBase> >
m_allCuts;
std::shared_ptr< TopConfig > m_config
TopConfig A simple configuration that is NOT a singleton.
TH1D * m_cutflowParticleLevel
The particle level cutflow histogram filled by the tool.
bool ToBeSaved() const
Tells if the event should be saved if it passes this selection.
TH1D * m_cutflowMCWeights
Cutflow counting MC weights instead of events.
TH1D * m_cutflowMCWeights_Loose
virtual void printCuts()
Print a cutflow showing the number of events passing each cut.
virtual bool applyParticleLevel(const top::ParticleLevelEvent &plEvent) const
Apply the selection for each particle level event.
TH1D * m_cutflowMCPUWeights
Cutflow counting MC*Pileup weights instead of events.
TH1D * m_cutflowParticleLevelMCWeights
TH1D * m_cutflowScaleFactors
Cutflow counting ScaleFactors instead of events.
unsigned int m_positionGRL
virtual void finalise() const
Print some yield information.
virtual ~EventSelection()
Does not do anything.
unsigned int m_positionPrimaryVertex
Perform the event selection on a top::Event object.
TH1D * m_cutflowPUWeights_Loose
std::size_t m_nominalHashValue
virtual void countGoodCalo(const float mcEventWeight, const float pileupWeight) const
Count the number of events passing Good Calo.
virtual bool apply(const top::Event &event) const
Apply the selection for each event.
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual void countPrimaryVertex(const float mcEventWeight, const float pileupWeight) const
Count the number of events passing Primary Vertex.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
TH1D * m_cutflow
The cutflow histogram filled by the tool.
virtual void countGRL(const float mcEventWeight, const float pileupWeight) const
Count the number of events passing GRL.
virtual void countInitial(const float mcEventWeight, const float pileupWeight) const
Count the number of initial events.
unsigned int m_positionInitial
const std::string name() const
Tells you the name of this event selection.
EventSelection & operator=(const EventSelection &)=delete
Assignment is not allowed.
unsigned int m_positionGoodCalo
EventSelection(const EventSelection &)=delete
Copy is not allowed.
bool m_containsPrimaryVertex
void initialiseTopScaleFactorRetriever(const std::shared_ptr< TopConfig > &config)
Function to setup the tool in one place.
EventSelection()=delete
Default constructor is not allowed.
bool m_isMC
To turn on/off confusing messages about mc weights when running on data.
Very simple class to hold event data after reading from a file.
std::vector< std::unique_ptr< EventSelectorBase > > m_allCuts
Vector of all the tools that will be used in the analysis.
ScaleFactorRetriever * m_sfRetriever
Scale factors.
std::vector< std::string > GetFakesMMConfigs() const
Gives you the lists of the Fakes MM configurations associated to this selection.
TH1D * m_cutflowMCPUWeights_Loose
TH1D * m_cutflowPUWeights
Cutflow counting PileUp weights instead of events.
std::string m_name
Name of this selection (you can have multiple selections run in the same job.
TH1D * m_cutflowScaleFactors_Loose