ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSParametrizationFloatSelectChain.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_TFCSParametrizationFloatSelectChain_h
6#define ISF_FASTCALOSIMEVENT_TFCSParametrizationFloatSelectChain_h
7
9
12public:
13 TFCSParametrizationFloatSelectChain(const char *name = nullptr,
14 const char *title = nullptr)
15 : TFCSParametrizationBinnedChain(name, title), m_bin_low_edge(1, 0){};
19
20 virtual int push_back_in_bin(TFCSParametrizationBase *param, float low,
21 float up);
23 virtual void push_back_in_bin(TFCSParametrizationBase *param,
24 unsigned int bin) override;
25
26 // return -1 if outside range
27 int val_to_bin(float val) const;
28
29 virtual double get_bin_low_edge(int bin) const {
30 return m_bin_low_edge[bin];
31 };
32 virtual double get_bin_up_edge(int bin) const {
33 return m_bin_low_edge[bin + 1];
34 };
35
36 static void unit_test(TFCSSimulationState *simulstate = nullptr,
37 TFCSTruthState *truth = nullptr,
38 const TFCSExtrapolationState *extrapol = nullptr);
39
40protected:
41 std::vector<float> m_bin_low_edge;
42
43private:
45 1) // TFCSParametrizationFloatSelectChain
46};
47
48#endif
const boost::regex ref(r_ef)
TFCSParametrizationBinnedChain(const char *name=nullptr, const char *title=nullptr)
TFCSParametrizationFloatSelectChain(const char *name=nullptr, const char *title=nullptr)
virtual int push_back_in_bin(TFCSParametrizationBase *param, float low, float up)
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
TFCSParametrizationFloatSelectChain(const TFCSParametrizationFloatSelectChain &ref)