|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSEnergyAndHitGANV2_h
6 #define ISF_FASTCALOSIMEVENT_TFCSEnergyAndHitGANV2_h
17 class LightweightGraph;
23 const char *
title =
nullptr);
57 return simulstate.
getAuxInfo<
int>(
"GANlayer"_FCShash);
59 virtual const std::string
74 const std::string &FastCaloGANInputFolderName);
82 virtual void Print(Option_t *option =
"")
const override;
88 const std::string& outputname =
"unnamed",
int pid = 211);
96 std::string FastCaloGANInputFolderName);
virtual bool is_match_all_Ekin_bin() const override
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
const T getAuxInfo(std::uint32_t index) const
virtual bool is_match_Ekin_bin(int) const override
path
python interpreter configuration --------------------------------------—
const TFCSGANXMLParameters::Binning & get_Binning() const
bool initializeNetwork(int const &pid, int const &etaMin, const std::string &FastCaloGANInputFolderName)
void SetRegionAndSliceFromXML(int pid, int etaMax, std::string FastCaloGANInputFolderName)
static int GetBinsInFours(double const &bins)
FCSEnergyInitializationStatusBits
Status bit for energy initialization.
@ kGANfreemem
Set this bit in the TObject bit if the memory for m_input should be freed after reading in athena.
std::map< int, TH2D > Binning
bool OnlyScaleEnergy() const
void set_nr_of_init(unsigned int bin, unsigned int ninit)
const TFCSGANEtaSlice::ExtrapolatorWeights get_ExtrapolationWeights() const
TFCSGANEtaSlice * m_slice
virtual ~TFCSEnergyAndHitGANV2()
int GetAlphaBinsForRBin(const TAxis *x, int ix, int yBinNum) const
std::map< int, double > ExtrapolatorWeights
static void unit_test(TFCSSimulationState *simulstate=nullptr, const TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
const ExtrapolatorWeights & GetExtrapolatorWeights()
virtual bool is_match_all_calosample() const override
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
std::vector< int > m_bin_ninit
TFCSGANXMLParameters m_param
virtual bool is_match_calosample(int calosample) const override
virtual int get_bin(TFCSSimulationState &simulstate, const TFCSTruthState *, const TFCSExtrapolationState *) const override
use the layer to be done as binning of the GAN chain
@ kOnlyScaleEnergy
Set this bit in the TObject bit field the simulated energy should only be scaled by the GAN.
bool fillEnergy(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const
unsigned int get_nr_of_init(unsigned int bin) const
FCSGANfreemem
Status bit for chain persistency.
TFCSEnergyAndHitGANV2(const char *name=nullptr, const char *title=nullptr)
static void test_path(const std::string &path, TFCSSimulationState *simulstate=nullptr, const TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr, const std::string &outputname="unnamed", int pid=211)
virtual void Print(Option_t *option="") const override
const Binning & GetBinning() const
void reset_OnlyScaleEnergy()
void set_OnlyScaleEnergy()
virtual const std::string get_variable_text(TFCSSimulationState &simulstate, const TFCSTruthState *, const TFCSExtrapolationState *) const override