List of all members | Public Member Functions
det::DetectorUserData< C > Struct Template Reference

User custom data base structure. More...

#include <DetectorComponent.h>

Public Member Functions

 DetectorUserData (const std::string &)
 Construct the user data according to an string read from configuration. More...
 

Detailed Description

template<class C>
struct det::DetectorUserData< C >

User custom data base structure.

The idea of this structure is to allow the users define a custom data for each type of detector component.

Note that DetectorComponent (which works is a CRTP fashion) uses its own template argument to feed this class with it; and then this class will be instantiated for each actual detector component.

The call to the GetUserData will look for a datum in the manager hierarchy, give it to the Load function (defined in the spacialized classs) which will load the specialized structure.

Somewhat related to this is the following article "Why Not Specialize Function Templates?" by Herb Sutter Appeared in C/C++ Users Journal, 19(7), July 2001. http://www.gotw.ca/publications/mill17.htm

Definition at line 45 of file DetectorComponent.h.

Constructor & Destructor Documentation

template<class C>
det::DetectorUserData< C >::DetectorUserData ( const std::string &  )
inline

Construct the user data according to an string read from configuration.

Parameters
mngrDataDatum read from the manager hierarchy.

Definition at line 51 of file DetectorComponent.h.

References WARNING.


The documentation for this struct was generated from the following file:

, generated on Tue Sep 26 2023.