ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSSimpleLateralShapeParametrization.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TFCSSimpleLateralShapeParametrization_h
6#define TFCSSimpleLateralShapeParametrization_h
7
9
10#include "TFile.h"
11#include "TH2F.h"
12#include "TF1.h"
13
14namespace CLHEP {
15 class HepRandomEngine;
16}
17
19public:
20 TFCSSimpleLateralShapeParametrization(const char* name=nullptr, const char* title=nullptr);
21
22 // simulated one hit position with weight that should be put into simulstate
23 // sometime later all hit weights should be resacled such that their final sum is simulstate->E(sample)
24 // someone also needs to map all hits into cells
25 virtual FCSReturnCode simulate_hit(Hit& hit,TFCSSimulationState& simulstate,const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) override;
26
27 // Init and fill sigma
28 bool Initialize(const char* filepath, const char* histname);
29
30 bool Initialize(float input_sigma_x, float input_sigma_y);
31
32 void getHitXY(CLHEP::HepRandomEngine *engine, double &x, double &y) const;
33
34 float getSigma_x(){return m_sigmaX;};
35 float getSigma_y(){return m_sigmaY;};
36private:
37 // simple shape information should be stored as private member variables here
38
39 float m_sigmaX;
40 float m_sigmaY;
41
42 ClassDefOverride(TFCSSimpleLateralShapeParametrization,1) //TFCSSimpleLateralShapeParametrization
43};
44
45#endif
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
#define y
#define x
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
TFCSSimpleLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
void getHitXY(CLHEP::HepRandomEngine *engine, double &x, double &y) const
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with some energy.
bool Initialize(const char *filepath, const char *histname)