Project
Loading...
Searching...
No Matches
o2::passive::ExternalModule Class Reference

#include <ExternalModule.h>

Inherits o2::passive::PassiveBase.

Public Member Functions

 ExternalModule (const char *name, const char *long_title, ExternalModuleOptions options)
 
 ExternalModule ()=default
 
 ~ExternalModule () override=default
 
void ConstructGeometry () override
 
FairModuleCloneModule () const override
 Clone this object (used in MT mode only)
 
- Public Member Functions inherited from o2::passive::PassiveBase
void SetSpecialPhysicsCuts () override
 
 ClassDefOverride (o2::passive::PassiveBase, 1)
 

Static Public Member Functions

static std::vector< ExternalModule * > createFromJSON (const std::string &jsonfile)
 

Detailed Description

Definition at line 37 of file ExternalModule.h.

Constructor & Destructor Documentation

◆ ExternalModule() [1/2]

o2::passive::ExternalModule::ExternalModule ( const char name,
const char long_title,
ExternalModuleOptions  options 
)

Definition at line 30 of file ExternalModule.cxx.

◆ ExternalModule() [2/2]

o2::passive::ExternalModule::ExternalModule ( )
default

◆ ~ExternalModule()

o2::passive::ExternalModule::~ExternalModule ( )
overridedefault

Member Function Documentation

◆ CloneModule()

FairModule * o2::passive::ExternalModule::CloneModule ( ) const
inlineoverride

Clone this object (used in MT mode only)

Definition at line 54 of file ExternalModule.h.

◆ ConstructGeometry()

void o2::passive::ExternalModule::ConstructGeometry ( )
override

Definition at line 34 of file ExternalModule.cxx.

◆ createFromJSON()

std::vector< ExternalModule * > o2::passive::ExternalModule::createFromJSON ( const std::string &  jsonfile)
static

Build a list of external (passive) modules from a JSON description file. The file must contain an "externalModules" array; each entry needs at least "name", "macro" and "anchor"; an optional "placement" object may carry "translation":[x,y,z] (cm) and "rotation_deg":[rx,ry,rz] (degrees). Ownership of the returned modules is transferred to the caller.

Definition at line 86 of file ExternalModule.cxx.


The documentation for this class was generated from the following files: