 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSBinnedShowerBase_h
6 #define ISF_FASTCALOSIMEVENT_TFCSBinnedShowerBase_h
13 #include <RtypesCore.h>
64 return static_cast<int>(nhits);
73 float phi_center,
float e_init,
74 long unsigned int reference_layer_index)
const = 0;
78 long unsigned int layer_index)
const = 0;
83 long unsigned int layer_index)
const = 0;
89 long unsigned int hit_index)
const = 0;
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
virtual void delete_event(TFCSSimulationState &simulstate) const =0
virtual ~TFCSBinnedShowerBase()
virtual float get_layer_energy(TFCSSimulationState &simulstate, long unsigned int layer_index) const =0
void set_OnlyScaleEnergy()
@ kOnlyScaleEnergy
Set this bit in the TObject bit field the simulated energy should only be scaled by the GAN.
ICaloGeometry * get_geometry()
bool OnlyScaleEnergy() const
virtual long unsigned int get_n_hits(TFCSSimulationState &simulstate, long unsigned int layer_index) const =0
virtual int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *, const TFCSExtrapolationState *) const override
Call get_number_of_hits() only once per shower simulation, as it could be calculated with random numb...
virtual void set_geometry(ICaloGeometry *geo)
Method to set the geometry access pointer.
TFCSBinnedShowerBase(const char *name=nullptr, const char *title=nullptr)
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with some energy.
virtual void get_event(TFCSSimulationState &simulstate, float eta_center, float phi_center, float e_init, long unsigned int reference_layer_index) const =0
do not persistify
virtual void set_geometry(ICaloGeometry *geo) override
Method to set the geometry access pointer.
const long unsigned int m_n_layers
virtual std::tuple< float, float, float > get_hit_position_and_energy(TFCSSimulationState &simulstate, long unsigned int layer_index, long unsigned int hit_index) const =0
void reset_OnlyScaleEnergy()
FCSEnergyInitializationStatusBits
Status bit for energy initialization.
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.