ATLAS Offline Software
TFCSParametrizationBinnedChain.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSParametrizationBinnedChain_h
6 #define ISF_FASTCALOSIMEVENT_TFCSParametrizationBinnedChain_h
7 
9 
11 public:
12  TFCSParametrizationBinnedChain(const char *name = nullptr,
13  const char *title = nullptr)
17 
19  virtual void push_back_in_bin(TFCSParametrizationBase *param,
20  unsigned int bin);
21 
22  virtual unsigned int get_number_of_bins() const {
23  return m_bin_start.size() - 1;
24  };
25 
29  virtual int get_bin(TFCSSimulationState &simulstate, const TFCSTruthState *,
30  const TFCSExtrapolationState *) const;
31  virtual const std::string
33  const TFCSExtrapolationState *) const;
35  virtual const std::string get_bin_text(int bin) const;
36 
37  virtual FCSReturnCode
38  simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth,
39  const TFCSExtrapolationState *extrapol) const override;
40 
41  void Print(Option_t *option = "") const override;
42 
43  static void unit_test(TFCSSimulationState *simulstate = nullptr,
44  const TFCSTruthState *truth = nullptr,
45  const TFCSExtrapolationState *extrapol = nullptr);
46 
47 protected:
53  std::vector<unsigned int> m_bin_start;
54 
55 private:
56  ClassDefOverride(TFCSParametrizationBinnedChain,
57  1) // TFCSParametrizationBinnedChain
58 };
59 
60 #endif
TFCSParametrizationChain
Definition: TFCSParametrizationChain.h:10
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition: TFCSParametrizationBase.h:41
TFCSParametrizationBinnedChain::get_bin_text
virtual const std::string get_bin_text(int bin) const
print the range of a bin; for bin -1, print the allowed range
Definition: TFCSParametrizationBinnedChain.cxx:60
TFCSParametrizationBinnedChain::Print
void Print(Option_t *option="") const override
Definition: TFCSParametrizationBinnedChain.cxx:151
TFCSParametrizationBinnedChain::push_back_in_bin
virtual void push_back_in_bin(TFCSParametrizationBase *param, unsigned int bin)
Definition: TFCSParametrizationBinnedChain.cxx:31
bin
Definition: BinsDiffFromStripMedian.h:43
TFCSParametrizationBinnedChain::push_before_first_bin
virtual void push_before_first_bin(TFCSParametrizationBase *param)
Definition: TFCSParametrizationBinnedChain.cxx:18
TFCSParametrizationChain.h
TFCSExtrapolationState
Definition: TFCSExtrapolationState.h:13
RunActsMaterialValidation.extrapol
extrapol
Definition: RunActsMaterialValidation.py:91
TFCSParametrizationBinnedChain::TFCSParametrizationBinnedChain
TFCSParametrizationBinnedChain(const TFCSParametrizationBinnedChain &ref)
Definition: TFCSParametrizationBinnedChain.h:15
TFCSParametrizationBinnedChain::get_variable_text
virtual const std::string get_variable_text(TFCSSimulationState &, const TFCSTruthState *, const TFCSExtrapolationState *) const
Definition: TFCSParametrizationBinnedChain.cxx:54
TFCSParametrizationBinnedChain::get_bin
virtual int get_bin(TFCSSimulationState &simulstate, const TFCSTruthState *, const TFCSExtrapolationState *) const
this method should determine in derived classes which bin to simulate, so that the simulate method ca...
Definition: TFCSParametrizationBinnedChain.cxx:48
TFCSParametrizationBinnedChain::unit_test
static void unit_test(TFCSSimulationState *simulstate=nullptr, const TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
Definition: TFCSParametrizationBinnedChain.cxx:185
TFCSParametrizationBase
Definition: TFCSParametrizationBase.h:46
TFCSParametrizationBinnedChain::get_number_of_bins
virtual unsigned int get_number_of_bins() const
Definition: TFCSParametrizationBinnedChain.h:22
TFCSParametrizationBinnedChain
Definition: TFCSParametrizationBinnedChain.h:10
covarianceTool.title
title
Definition: covarianceTool.py:542
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ref
const boost::regex ref(r_ef)
TFCSParametrizationBinnedChain::simulate
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
Definition: TFCSParametrizationBinnedChain.cxx:64
TFCSParametrizationBinnedChain::TFCSParametrizationBinnedChain
TFCSParametrizationBinnedChain(const char *name=nullptr, const char *title=nullptr)
Definition: TFCSParametrizationBinnedChain.h:12
TFCSTruthState
Definition: TFCSTruthState.h:13
TFCSSimulationState
Definition: TFCSSimulationState.h:32
TFCSParametrizationBinnedChain::m_bin_start
std::vector< unsigned int > m_bin_start
Contains the index where the TFCSParametrizationBase* instances to run for a given bin start.
Definition: TFCSParametrizationBinnedChain.h:53