ATLAS Offline Software
TFCSParametrizationEkinSelectChain.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSParametrizationEkinSelectChain_h
6 #define ISF_FASTCALOSIMEVENT_TFCSParametrizationEkinSelectChain_h
7 
10 
13 public:
15  const char *title = nullptr)
18  };
23  };
24 
28  BIT(15)
29  };
31 
32  bool DoRandomInterpolation() const {
33  return TestBit(kDoRandomInterpolation);
34  };
37 
39  virtual void push_back_in_bin(TFCSParametrizationBase *param);
40  // selects on truth->Ekin()
41  // return -1 if outside range
42  virtual int get_bin(TFCSSimulationState &, const TFCSTruthState *truth,
43  const TFCSExtrapolationState *) const override;
44  virtual const std::string
46  const TFCSExtrapolationState *) const override;
47  virtual const std::string get_bin_text(int bin) const override;
48 
49  static void unit_test(TFCSSimulationState *simulstate = nullptr,
50  TFCSTruthState *truth = nullptr,
51  const TFCSExtrapolationState *extrapol = nullptr);
52 
53 protected:
54  virtual void recalc() override;
55 
56 private:
57  ClassDefOverride(TFCSParametrizationEkinSelectChain,
58  1) // TFCSParametrizationEkinSelectChain
59 };
60 
61 #endif
TFCSParametrizationFloatSelectChain
Definition: TFCSParametrizationFloatSelectChain.h:11
TFCSParametrizationEkinSelectChain::recalc
virtual void recalc() override
Default is to call recalc_pdgid_intersect() and recalc_Ekin_eta_intersect()
Definition: TFCSParametrizationEkinSelectChain.cxx:19
TFCSParametrizationEkinSelectChain::push_back_in_bin
virtual void push_back_in_bin(TFCSParametrizationBase *param)
Definition: TFCSParametrizationEkinSelectChain.cxx:31
TFCSParametrizationEkinSelectChain::FCSEkinStatusBits
FCSEkinStatusBits
Status bit for Ekin Selection.
Definition: TFCSParametrizationEkinSelectChain.h:26
TFCSParametrizationEkinSelectChain::unit_test
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
Definition: TFCSParametrizationEkinSelectChain.cxx:143
bin
Definition: BinsDiffFromStripMedian.h:43
TFCSExtrapolationState
Definition: TFCSExtrapolationState.h:13
RunActsMaterialValidation.extrapol
extrapol
Definition: RunActsMaterialValidation.py:90
TFCSParametrizationEkinSelectChain::DoRandomInterpolation
bool DoRandomInterpolation() const
Definition: TFCSParametrizationEkinSelectChain.h:32
TFCSParametrizationEkinSelectChain::set_DoRandomInterpolation
void set_DoRandomInterpolation()
Definition: TFCSParametrizationEkinSelectChain.h:35
TFCSParametrizationEkinSelectChain::reset_DoRandomInterpolation
void reset_DoRandomInterpolation()
Definition: TFCSParametrizationEkinSelectChain.h:36
TFCSParametrizationEkinSelectChain::get_variable_text
virtual const std::string get_variable_text(TFCSSimulationState &simulstate, const TFCSTruthState *, const TFCSExtrapolationState *) const override
Definition: TFCSParametrizationEkinSelectChain.cxx:122
TFCSParametrizationBase
Definition: TFCSParametrizationBase.h:46
TFCSParametrizationFloatSelectChain::push_back_in_bin
virtual int push_back_in_bin(TFCSParametrizationBase *param, float low, float up)
Definition: TFCSParametrizationFloatSelectChain.cxx:14
TFCSParametrizationFloatSelectChain.h
covarianceTool.title
title
Definition: covarianceTool.py:542
TFCSParametrizationEkinSelectChain
Definition: TFCSParametrizationEkinSelectChain.h:12
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TFCSParametrizationEkinSelectChain::TFCSParametrizationEkinSelectChain
TFCSParametrizationEkinSelectChain(const char *name=nullptr, const char *title=nullptr)
Definition: TFCSParametrizationEkinSelectChain.h:14
ref
const boost::regex ref(r_ef)
TFCSParametrizationEkinSelectChain::get_bin
virtual int get_bin(TFCSSimulationState &, const TFCSTruthState *truth, const TFCSExtrapolationState *) const override
this method should determine in derived classes which bin to simulate, so that the simulate method ca...
Definition: TFCSParametrizationEkinSelectChain.cxx:36
TFCSParametrizationEkinSelectChain::get_bin_text
virtual const std::string get_bin_text(int bin) const override
print the range of a bin; for bin -1, print the allowed range
Definition: TFCSParametrizationEkinSelectChain.cxx:129
TFCSSimulationState.h
TFCSParametrizationEkinSelectChain::kDoRandomInterpolation
@ kDoRandomInterpolation
Set this bit in the TObject bit field if a random selection between neighbouring Ekin bins should be ...
Definition: TFCSParametrizationEkinSelectChain.h:27
TFCSParametrizationEkinSelectChain::TFCSParametrizationEkinSelectChain
TFCSParametrizationEkinSelectChain(const TFCSParametrizationEkinSelectChain &ref)
Definition: TFCSParametrizationEkinSelectChain.h:19
TFCSTruthState
Definition: TFCSTruthState.h:13
TFCSSimulationState
Definition: TFCSSimulationState.h:32