ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
art::crib::TUserGeoInitializer Class Reference

#include <TUserGeoInitializer.h>

Inheritance diagram for art::crib::TUserGeoInitializer:
[legend]
Collaboration diagram for art::crib::TUserGeoInitializer:
[legend]

Public Member Functions

 TUserGeoInitializer ()
 constructor
 
 ~TUserGeoInitializer () override
 destructor
 
void Init (TEventCollection *col) override
 init
 
void Process () override
 process
 

Protected Attributes

Double_t deg2rad = TMath::DegToRad()
 angle converter, degree to radian
 
TClonesArray * fDetParameterArray
 Detector parameter object (art::TDetectorParameter array)
 
TString fDetPrmName
 It should be "prm_detector".
 
TString fFileName
 Input geometry file name. You can define in steering file.
 
TGeoManager * fGeom
 It is used for TGeoManager process.
 
Bool_t fIsVisible
 Make figure of Detectors of not.
 
TClonesArray * fTargetParameterArray
 Target parameter object (art::TTargetParameter array)
 
TString fTargetPrmName
 It should be "prm_target".
 

Private Member Functions

 TUserGeoInitializer (const TUserGeoInitializer &)=delete
 
void GeometryFromYaml (TString yamlfile)
 
TUserGeoInitializeroperator= (const TUserGeoInitializer &)=delete
 

Detailed Description

Definition at line 23 of file TUserGeoInitializer.h.

Constructor & Destructor Documentation

◆ TUserGeoInitializer() [1/2]

TUserGeoInitializer::TUserGeoInitializer ( )

constructor

In the steering file, we set two parameters,.

  • "FileName": geometry file, like prm/geo/expname.yaml
  • "Visible": make detector geometry figure

in the source code, the geometry parameter objects can be used by the name of "prm_detector" or "prm_target" in the constructor of other processor, you can get this object by

RegisterOptionalInputInfo("DetectorParameter", "name of telescope parameter", fDetectorParameterName,
TString("prm_detectors"), &fDetectorPrm, "TClonesArray", "art::crib::TDetectorParameter");

Definition at line 62 of file TUserGeoInitializer.cc.

◆ ~TUserGeoInitializer()

TUserGeoInitializer::~TUserGeoInitializer ( )
override

destructor

Definition at line 70 of file TUserGeoInitializer.cc.

◆ TUserGeoInitializer() [2/2]

art::crib::TUserGeoInitializer::TUserGeoInitializer ( const TUserGeoInitializer & )
privatedelete

Member Function Documentation

◆ GeometryFromYaml()

void TUserGeoInitializer::GeometryFromYaml ( TString yamlfile)
private

Definition at line 105 of file TUserGeoInitializer.cc.

◆ Init()

void TUserGeoInitializer::Init ( TEventCollection * col)
override

init

Definition at line 79 of file TUserGeoInitializer.cc.

◆ operator=()

TUserGeoInitializer & art::crib::TUserGeoInitializer::operator= ( const TUserGeoInitializer & )
privatedelete

◆ Process()

void TUserGeoInitializer::Process ( )
override

process

Definition at line 103 of file TUserGeoInitializer.cc.

Member Data Documentation

◆ deg2rad

Double_t art::crib::TUserGeoInitializer::deg2rad = TMath::DegToRad()
protected

angle converter, degree to radian

Definition at line 55 of file TUserGeoInitializer.h.

◆ fDetParameterArray

TClonesArray* art::crib::TUserGeoInitializer::fDetParameterArray
protected

Detector parameter object (art::TDetectorParameter array)

Definition at line 50 of file TUserGeoInitializer.h.

◆ fDetPrmName

TString art::crib::TUserGeoInitializer::fDetPrmName
protected

It should be "prm_detector".

Definition at line 42 of file TUserGeoInitializer.h.

◆ fFileName

TString art::crib::TUserGeoInitializer::fFileName
protected

Input geometry file name. You can define in steering file.

Definition at line 40 of file TUserGeoInitializer.h.

◆ fGeom

TGeoManager* art::crib::TUserGeoInitializer::fGeom
protected

It is used for TGeoManager process.

Definition at line 37 of file TUserGeoInitializer.h.

◆ fIsVisible

Bool_t art::crib::TUserGeoInitializer::fIsVisible
protected

Make figure of Detectors of not.

Definition at line 47 of file TUserGeoInitializer.h.

◆ fTargetParameterArray

TClonesArray* art::crib::TUserGeoInitializer::fTargetParameterArray
protected

Target parameter object (art::TTargetParameter array)

Definition at line 52 of file TUserGeoInitializer.h.

◆ fTargetPrmName

TString art::crib::TUserGeoInitializer::fTargetPrmName
protected

It should be "prm_target".

Definition at line 44 of file TUserGeoInitializer.h.


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