31 using namespace DD4hep;
34 namespace DD4hep {
namespace {
40 class calodata_configs;
45 class collection_configs;
64 #define DECL_TAG(x) XML::Strng_t u_##x(#x)
111 extract(c,e,DisplayConfiguration::DETELEMENT);
112 configs->push_back(c);
117 extract(c,e,DisplayConfiguration::PANEL);
118 configs->push_back(c);
123 extract(c,e,DisplayConfiguration::CALODATA);
124 configs->push_back(c);
131 c.
type = DisplayConfiguration::COLLECTION;
139 configs->push_back(c);
156 extract(c,e,DisplayConfiguration::VIEW);
161 printout(
INFO,
"DisplayConfiguration",
"+++ View: %s sensitive:%d structure:%d.",
167 configs->push_back(c);
185 c.
type = DisplayConfiguration::CALODATA;
206 configs->push_back(c);
224 c.
type = DisplayConfiguration::COLLECTION;
234 configs->push_back(c);
294 #include "TEveProjections.h"
303 static bool first =
true;
306 #define add_root_enum(x) XML::_toDictionary(XML::Strng_t(#x),int(x))
virtual void processXML(const std::string &fname, XML::UriReader *entity_resolver=0)
Process XML unit and adopt all data from source structure.
static void extract(DisplayConfiguration::Config &c, xml_h e, int typ)
T attr(const Attribute a) const
Access typed attribute value by the XmlAttr.
Configurations subdetectors
bool hasAttr(const XmlChar *t) const
Check for the existence of a named attribute.
void setVisLevel(int new_level)
Set Vis level in geo manager (either from XML or BEFORE XML file was loaded)
T * extension(bool alert=true) const
Access extension element by the type.
void setLoadLevel(int new_level)
Set Eve Geometry load level in manager (either from XML or BEFORE XML file was loaded) ...
Data implementation class of the LCDD interface.
std::list< ViewConfig > ViewConfigurations
std::vector< Config > Configurations
union DD4hep::DisplayConfiguration::Config::Values data
static pair< TClass *, void * > load(TBranch *branch, int entry)
DisplayConfiguration DisplayConfiguration.h DDEve/DisplayConfiguration.h.
Basic conversion objects for handling DD4hep XML files.
DisplayConfiguration::ViewConfigurations ViewConfigurations
void setEventHandlerName(std::string eventHandlerName)
Set Event Handler Plugin name.
DisplayConfiguration::Configurations Configurations
static long setup_DDEve(lcdd_t &lcdd, const xml_h &e)
void ImportConfiguration(const DisplayConfiguration &config)
Import configuration parameters.
The main interface to the DD4hep detector description package.
Class to easily access the properties of single XmlElements.
DD4hep::XML::Collection_t xml_coll_t
void for_each(T oper) const
Loop processor using function object.
#define DECLARE_XML_DOC_READER(name, func)
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.
The main class of the DDEve display.