ATLAS Offline Software
TFCSGANXMLParameters.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TFCSGANDetectorRegion.h, (c) ATLAS Detector software
8 
9 #ifndef ISF_TFCSGANXMLPARAMETERS_H
10 #define ISF_TFCSGANXMLPARAMETERS_H 1
11 
12 #include <libxml/tree.h>
13 
14 #include <map>
15 #include <vector>
16 
18 #include "TH2D.h"
19 ;
20 
22  public:
23  typedef std::map<int, TH2D> Binning;
24 
27 
28  void InitialiseFromXML(int pid, int etaMid,
29  const std::string &FastCaloGANInputFolderName);
30  void Print() const;
31 
32  const std::vector<int>& GetRelevantLayers() const { return m_relevantlayers; };
33  const Binning &GetBinning() const { return m_binning; };
34  int GetLatentSpaceSize() const { return m_latentDim; };
35  int GetGANVersion() const { return m_ganVersion; };
36  bool IsSymmetrisedAlpha() const { return m_symmetrisedAlpha; };
37  const std::string& GetInputFolder() const { return m_fastCaloGANInputFolderName; };
38 
39  private:
40  static bool ReadBooleanAttribute(const std::string &name, xmlNodePtr node);
41 
44  std::vector<int> m_relevantlayers;
45  int m_ganVersion{};
46  int m_latentDim{};
48 
49  ClassDef(TFCSGANXMLParameters, 2) // TFCSGANXMLParameters
50 };
51 
52 #endif //> !ISF_TFCSGANXMLPARAMETERS_H
TFCSGANXMLParameters::Print
void Print() const
Definition: TFCSGANXMLParameters.cxx:124
TFCSGANXMLParameters::m_symmetrisedAlpha
bool m_symmetrisedAlpha
Definition: TFCSGANXMLParameters.h:42
ISF_FCS::MLogging
Cut down AthMessaging.
Definition: MLogging.h:176
TFCSGANXMLParameters::InitialiseFromXML
void InitialiseFromXML(int pid, int etaMid, const std::string &FastCaloGANInputFolderName)
Definition: TFCSGANXMLParameters.cxx:16
TFCSGANXMLParameters::Binning
std::map< int, TH2D > Binning
Definition: TFCSGANXMLParameters.h:23
TFCSGANXMLParameters::GetRelevantLayers
const std::vector< int > & GetRelevantLayers() const
Definition: TFCSGANXMLParameters.h:32
TFCSGANXMLParameters
Definition: TFCSGANXMLParameters.h:21
TFCSGANXMLParameters::m_binning
Binning m_binning
Definition: TFCSGANXMLParameters.h:43
TFCSGANXMLParameters::m_fastCaloGANInputFolderName
std::string m_fastCaloGANInputFolderName
Definition: TFCSGANXMLParameters.h:47
TFCSGANXMLParameters::ReadBooleanAttribute
static bool ReadBooleanAttribute(const std::string &name, xmlNodePtr node)
Definition: TFCSGANXMLParameters.cxx:117
TFCSGANXMLParameters::TFCSGANXMLParameters
TFCSGANXMLParameters()
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
TFCSGANXMLParameters::~TFCSGANXMLParameters
virtual ~TFCSGANXMLParameters()
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TFCSGANXMLParameters::GetLatentSpaceSize
int GetLatentSpaceSize() const
Definition: TFCSGANXMLParameters.h:34
TFCSGANXMLParameters::GetGANVersion
int GetGANVersion() const
Definition: TFCSGANXMLParameters.h:35
TFCSGANXMLParameters::m_relevantlayers
std::vector< int > m_relevantlayers
Definition: TFCSGANXMLParameters.h:44
TFCSGANXMLParameters::GetInputFolder
const std::string & GetInputFolder() const
Definition: TFCSGANXMLParameters.h:37
TFCSGANXMLParameters::m_latentDim
int m_latentDim
Definition: TFCSGANXMLParameters.h:46
MLogging.h
TFCSGANXMLParameters::IsSymmetrisedAlpha
bool IsSymmetrisedAlpha() const
Definition: TFCSGANXMLParameters.h:36
node
Definition: memory_hooks-stdcmalloc.h:74
TFCSGANXMLParameters::m_ganVersion
int m_ganVersion
Definition: TFCSGANXMLParameters.h:45
TFCSGANXMLParameters::GetBinning
const Binning & GetBinning() const
Definition: TFCSGANXMLParameters.h:33