Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Par02DetectorParametrisation Class Reference

Definition of detector resolution and efficiency. More...

#include <Doxymodules_parameterisations.h>

Public Types

enum  Parametrisation { eCMS , eATLAS , eALEPH }
 A parametrisation type (CMS, ATLAS, ALEPH). More...
 
enum  Detector { eTRACKER , eEMCAL , eHCAL }
 A detector type (tracking detector, electromagnetic calorimeter, hadronic calorimeter). More...
 

Public Member Functions

 Par02DetectorParametrisation ()
 A default constructor.
 
 ~Par02DetectorParametrisation ()
 
G4double GetResolution (Detector aDetector, Parametrisation aParametrisation, G4double aMomentum)
 Gets the resolution of a detector for a given particle.
 
G4double GetEfficiency (Detector aDetector, Parametrisation aParametrisation, G4double aMomentum)
 Gets the efficiency of a detector for a given particle.
 

Detailed Description

Definition of detector resolution and efficiency.

A simple class used to provide the detector resolution and efficiency (dependent on the detector, parametrisation type and particle momentum).

Author
Anna Zaborowska

Definition at line 38 of file Doxymodules_parameterisations.h.

Member Enumeration Documentation

◆ Parametrisation

A parametrisation type (CMS, ATLAS, ALEPH).

Enumerator
eCMS 
eATLAS 
eALEPH 

Definition at line 50 of file Par02DetectorParametrisation.hh.

◆ Detector

A detector type (tracking detector, electromagnetic calorimeter, hadronic calorimeter).

Enumerator
eTRACKER 
eEMCAL 
eHCAL 

Definition at line 54 of file Par02DetectorParametrisation.hh.

Constructor & Destructor Documentation

◆ Par02DetectorParametrisation()

Par02DetectorParametrisation::Par02DetectorParametrisation ( )
default

A default constructor.

◆ ~Par02DetectorParametrisation()

Par02DetectorParametrisation::~Par02DetectorParametrisation ( )
default

Member Function Documentation

◆ GetResolution()

G4double Par02DetectorParametrisation::GetResolution ( Detector  aDetector,
Parametrisation  aParametrisation,
G4double  aMomentum 
)

Gets the resolution of a detector for a given particle.

Parameters
aDetectorA detector type.
aParametrisationA parametrisation type.
aMomentumA particle momentum.

Definition at line 44 of file Par02DetectorParametrisation.cc.

46 {
47 aMomentum /= GeV; // To make sure momentum's unit is GeV
48 G4double res = 1.0;
49 if ( aParam == eCMS ) {
50 switch ( aDetector ) {
52 res = 0.013;
53 break;
55 res = std::sqrt( std::pow( 0.03 / std::sqrt( aMomentum ), 2 ) // stochastic
56 + std::pow( 0.12 / aMomentum, 2 ) // noise
57 + std::pow( 0.003, 2 ) ); // constant
58 break;
60 res = std::sqrt( std::pow( 1.1 / std::sqrt( aMomentum ), 2 ) // stochastic
61 + std::pow( 0.09, 2 ) ); // constant
62 break;
63 }
64 } else if ( aParam == eATLAS ) {
65 switch ( aDetector ) {
67 res = 0.01;
68 break;
70 res = std::sqrt( std::pow( 0.1 / std::sqrt( aMomentum ), 2 ) // stochastic
71 + std::pow( 0.0017, 2 ) ); // constant
72 break;
74 res = std::sqrt( std::pow( 0.55 / std::sqrt( aMomentum ), 2 ) // stochastic
75 + std::pow( 0.06, 2 ) ); // constant
76 break;
77 }
78 } else if ( aParam == eALEPH ) {
79 switch ( aDetector ) {
81 res = 0.01;
82 break;
84 res = std::sqrt( std::pow( 0.18 / std::sqrt( aMomentum ), 2 ) // stochastic
85 + std::pow( 0.009, 2 ) ); // constant
86 break;
88 res = 0.85 / std::sqrt( aMomentum ); // stochastic
89 break;
90 }
91 }
92 return res;
93}

◆ GetEfficiency()

G4double Par02DetectorParametrisation::GetEfficiency ( Detector  aDetector,
Parametrisation  aParametrisation,
G4double  aMomentum 
)

Gets the efficiency of a detector for a given particle.

Parameters
aDetectorA detector type.
aParametrisationA parametrisation type.
aMomentumA particle momentum.

Definition at line 97 of file Par02DetectorParametrisation.cc.

99 {
100 // For the time being, we set the efficiency to 1.0
101 G4double eff = 1.0;
102 switch ( aDetector ) {
104 eff = 1.0;
105 break;
107 eff = 1.0;
108 break;
110 eff = 1.0;
111 break;
112 }
113 return eff;
114}

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

Applications | User Support | Publications | Collaboration