Newer
Older
Markus Frank
committed
//==========================================================================
Markus Frank
committed
//--------------------------------------------------------------------------
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
Markus Frank
committed
// All rights reserved.
Markus Frank
committed
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
Markus Frank
committed
// Author : M.Frank
//
//==========================================================================
//
// Specialized generic detector plugin
//
//==========================================================================
namespace { struct UserData { /* int a,b,c; */ }; }
#define SURFACEINSTALLER_DATA UserData
#define DD4HEP_USE_SURFACEINSTALL_HELPER DD4hep_SurfaceExamplePlugin
#include "DD4hep/SurfaceInstaller.h"
namespace {
template <> void Installer<UserData>::handle_arguments(int argc, char** argv) {
for(int i=0; i<argc; ++i) {
double value = -1;
char* ptr = ::strchr(argv[i],'=');
if ( ptr ) {
}
std::cout << "SurfaceExamplePlugin: argument[" << i << "] = " << argv[i]
Markus Frank
committed
<< " value = " << value << std::endl;
}
}
/// Install measurement surfaces
template <>
void Installer<UserData>::install(dd4hep::DetElement /* component */, dd4hep::PlacedVolume /* pv */) {
// Do here whatever is necessary ....
}
}