Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:54

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 
0004 #ifndef MICROMEGAS_MICROMEGASTILE_H
0005 #define MICROMEGAS_MICROMEGASTILE_H
0006 
0007 /*!
0008  * \file MicromegasTile.h
0009  * \author Hugo Pereira Da Costa <hugo.pereira-da-costa@cea.fr>
0010  */
0011 
0012 #include <phool/PHObject.h>
0013 
0014 #include <array>
0015 #include <cassert>
0016 #include <vector>
0017 
0018 //! header only class that contains information about a given Tile location inside CylinderGeom
0019 class MicromegasTile: public PHObject
0020 {
0021 
0022   public:
0023 
0024   using List = std::vector<MicromegasTile>;
0025 
0026   //! default constructor
0027   MicromegasTile() = default;
0028 
0029   //! destructor
0030   ~MicromegasTile() override = default;
0031 
0032   //! constructor
0033   MicromegasTile( std::array<double, 4> values )
0034     :m_centerPhi( values[0] )
0035     ,m_centerZ( values[1] )
0036     ,m_sizePhi( values[2] )
0037     ,m_sizeZ( values[3] )
0038   {}
0039 
0040   //! constructor
0041   MicromegasTile( double centerPhi, double centerZ, double sizePhi, double sizeZ )
0042     :m_centerPhi( centerPhi )
0043     ,m_centerZ( centerZ )
0044     ,m_sizePhi( sizePhi )
0045     ,m_sizeZ( sizeZ )
0046   {}
0047 
0048   double m_centerPhi = 0;
0049   double m_centerZ = 0;
0050   double m_sizePhi = 0;
0051   double m_sizeZ = 0;
0052 
0053   ClassDefOverride(MicromegasTile,1)
0054 };
0055 
0056 #endif