GeFiCa
Germanium detector Field Calculator
Public Member Functions | Public Attributes | List of all members
GeFiCa::SquarePointContact Class Reference

Configuration of squre point contact detectors. More...

#include <SquarePointContact.h>

Inheritance diagram for GeFiCa::SquarePointContact:
Inheritance graph
[legend]
Collaboration diagram for GeFiCa::SquarePointContact:
Collaboration graph
[legend]

Public Member Functions

 SquarePointContact (const char *name="spc", const char *title="squre point-contact detector")
 
void CheckConfigurations ()
 
void Draw (Option_t *option="side")
 
 ClassDef (SquarePointContact, 1)
 
- Public Member Functions inherited from GeFiCa::Detector
 Detector (const char *name="detector", const char *title="detector")
 
void CheckConfigurations ()
 Check if detector configurations make sense. More...
 
void Draw (Option_t *option="")
 
 ClassDef (Detector, 1)
 
- Public Member Functions inherited from GeFiCa::Crystal
 Crystal ()
 Default constructor. More...
 
double GetImpurity (double height)
 Return net impurity concentration at. More...
 
void SetAverageImpurity (double impurity)
 

Public Attributes

double Width
 Width(x) of crystal. More...
 
double Length
 Length(y) of crystal. More...
 
double PointContactW
 Width of point contact. More...
 
double PointContactL
 Length of point contact. More...
 
double PointContactH
 Height of point contact. More...
 
double WrapAroundW
 Inner width of outer contact. More...
 
double WrapAroundL
 Inner length of outer contact. More...
 
- Public Attributes inherited from GeFiCa::Detector
std::vector< double > Bias
 bias on electrodes More...
 
- Public Attributes inherited from GeFiCa::Crystal
double Height
 height of crystal More...
 
double TopImpurity
 net impurity concentration at top of crystal More...
 
double BottomImpurity
 net impurity concentration at bottom of crystal More...
 

Detailed Description

Configuration of squre point contact detectors.

Definition at line 9 of file SquarePointContact.h.

Constructor & Destructor Documentation

◆ SquarePointContact()

SquarePointContact::SquarePointContact ( const char *  name = "spc",
const char *  title = "squre point-contact detector" 
)

Definition at line 5 of file SquarePointContact.cc.

5  :
6  Detector(name, title), Width(1*cm),Length(1*cm),
9 { Height=1*cm; Bias.push_back(1*kV); }
double PointContactH
Height of point contact.
std::vector< double > Bias
bias on electrodes
Definition: Detector.h:35
double Length
Length(y) of crystal.
double WrapAroundW
Inner width of outer contact.
static const double cm
centimeter
Definition: Units.h:12
static const double kV
kilo volt
Definition: Units.h:21
Detector(const char *name="detector", const char *title="detector")
Definition: Detector.cc:9
double Height
height of crystal
Definition: Detector.h:13
double Width
Width(x) of crystal.
static const double mm
minimeter
Definition: Units.h:15
double PointContactL
Length of point contact.
double WrapAroundL
Inner length of outer contact.
double PointContactW
Width of point contact.
static const double nm
nanometer
Definition: Units.h:18

Member Function Documentation

◆ CheckConfigurations()

void SquarePointContact::CheckConfigurations ( )

Definition at line 12 of file SquarePointContact.cc.

13 {
15  if (Width<=0) {
16  Error("CheckConfigurations", "Width==%.1f!", Width); abort();
17  }
18  if (Length<=0) {
19  Error("CheckConfigurations", "Length==%.1f!", Length); abort();
20  }
21  if (PointContactW<=0) {
22  Error("CheckConfigurations", "PointContactW==%.1f!", PointContactW);
23  abort();
24  }
25  if (PointContactL<=0) {
26  Error("CheckConfigurations", "PointContactL==%.1f!", PointContactL);
27  abort();
28  }
29  if (PointContactH<0) {
30  Error("CheckConfigurations", "PointContactH==%.1f!", PointContactH);
31  abort();
32  }
33  if (WrapAroundW<PointContactW || WrapAroundW>Width) {
34  Error("CheckConfigurations", "WrapAroundW==%.1f!", WrapAroundW);
35  Error("CheckConfigurations", "PointContactW==%.1f!", PointContactW);
36  Error("CheckConfigurations", "Width==%.1f!", Width);
37  abort();
38  }
39  if (WrapAroundL<PointContactL || WrapAroundL>Length) {
40  Error("CheckConfigurations", "WrapAroundL==%.1f!", WrapAroundL);
41  Error("CheckConfigurations", "PointContactL==%.1f!", PointContactL);
42  Error("CheckConfigurations", "Length==%.1f!", Length);
43  abort();
44  }
45 }
double PointContactH
Height of point contact.
double Length
Length(y) of crystal.
double WrapAroundW
Inner width of outer contact.
void CheckConfigurations()
Check if detector configurations make sense.
Definition: Detector.cc:13
double Width
Width(x) of crystal.
double PointContactL
Length of point contact.
double WrapAroundL
Inner length of outer contact.
double PointContactW
Width of point contact.

◆ ClassDef()

GeFiCa::SquarePointContact::ClassDef ( SquarePointContact  ,
 
)

◆ Draw()

void SquarePointContact::Draw ( Option_t *  option = "side")

Definition at line 50 of file SquarePointContact.cc.

51 {
52  TString opt(option); opt.ToLower();
53  //TODO
54  /*
55  TString opt(option); opt.ToLower();
56  if (opt.Contains("half")) return; // not implemented yet
57  // crystal outline
58  TBox *out = new TBox(-Radius,0,Radius,Height); out->SetFillStyle(0);
59  out->SetLineColor(kBlack); out->SetLineStyle(kDashed); out->Draw();
60  // bore hole
61  TBox *bore = new TBox(-BoreR,Height-BoreH,BoreR,Height);
62  bore->SetLineColor(kBlack); bore->SetLineStyle(kDashed);
63  bore->SetFillStyle(0); bore->Draw();
64  // point contact
65  TBox *pc = new TBox(-PointContactR,0,PointContactR,PointContactH);
66  pc->SetLineColor(kBlack); pc->SetLineStyle(kDashed);
67  pc->SetFillStyle(0); pc->Draw();
68  */
69 }

Member Data Documentation

◆ Length

double GeFiCa::SquarePointContact::Length

Length(y) of crystal.

Definition at line 13 of file SquarePointContact.h.

◆ PointContactH

double GeFiCa::SquarePointContact::PointContactH

Height of point contact.

Definition at line 17 of file SquarePointContact.h.

◆ PointContactL

double GeFiCa::SquarePointContact::PointContactL

Length of point contact.

Definition at line 16 of file SquarePointContact.h.

◆ PointContactW

double GeFiCa::SquarePointContact::PointContactW

Width of point contact.

Definition at line 15 of file SquarePointContact.h.

◆ Width

double GeFiCa::SquarePointContact::Width

Width(x) of crystal.

Definition at line 12 of file SquarePointContact.h.

◆ WrapAroundL

double GeFiCa::SquarePointContact::WrapAroundL

Inner length of outer contact.

Definition at line 20 of file SquarePointContact.h.

◆ WrapAroundW

double GeFiCa::SquarePointContact::WrapAroundW

Inner width of outer contact.

Definition at line 19 of file SquarePointContact.h.


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