Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:11

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DDEve/DisplayConfiguration.h>
0016 
0017 // C/C++ include files
0018 #include <stdexcept>
0019 
0020 using namespace dd4hep;
0021 
0022 ClassImp(DisplayConfiguration)
0023 
0024 /// Initializing constructor
0025 DisplayConfiguration::DisplayConfiguration(Display* eve)
0026 : m_display(eve)
0027 {
0028 }
0029 
0030 /// Default destructor
0031 DisplayConfiguration::~DisplayConfiguration()  {
0032 }
0033 
0034 /// Default constructor
0035 DisplayConfiguration::ViewConfig::ViewConfig()
0036   : Config(), type(),
0037     subdetectors(), show_sensitive(false), show_structure(false)
0038 {
0039 }
0040 
0041 /// Copy constructor
0042 DisplayConfiguration::ViewConfig::ViewConfig(const ViewConfig& c)
0043   : Config(c), type(c.type),
0044     subdetectors(c.subdetectors), show_sensitive(c.show_sensitive), show_structure(c.show_structure)
0045 {
0046 }
0047 
0048 /// Default destructor
0049 DisplayConfiguration::ViewConfig::~ViewConfig()  {
0050 }
0051 
0052 /// Assignment operator
0053 DisplayConfiguration::ViewConfig& DisplayConfiguration::ViewConfig::operator=(const ViewConfig& c)  {
0054   if ( this == &c ) return *this;
0055   this->Config::operator=(c);
0056   show_sensitive = c.show_sensitive;
0057   show_structure = c.show_structure;
0058   subdetectors = c.subdetectors;
0059   type = c.type;
0060   return *this;
0061 }
0062 
0063 /// Default constructor
0064 DisplayConfiguration::Config::Config()   {
0065   ::memset(&data,0,sizeof(data));
0066   data.defaults.load_geo = -1;
0067   data.defaults.show_evt =  1;
0068   data.defaults.alpha = 0.5;
0069   type = NO_DATA;
0070 }
0071 
0072 /// Copy constructor
0073 DisplayConfiguration::Config::Config(const Config& c)  {
0074   name = c.name;
0075   type = c.type;
0076   hits = c.hits;
0077   use  = c.use;
0078   ::memcpy(&data,&c.data,sizeof(c.data));
0079 }
0080 
0081 /// Default destructor
0082 DisplayConfiguration::Config::~Config()  {
0083 }
0084 
0085 /// Assignment operator
0086 DisplayConfiguration::Config& DisplayConfiguration::Config::operator=(const Config& c)  {
0087   if ( this == &c ) return *this;
0088   name = c.name;
0089   type = c.type;
0090   hits = c.hits;
0091   use  = c.use;
0092   ::memcpy(&data,&c.data,sizeof(c.data));
0093   return *this;
0094 }