FairRoot/PandaRoot
PndGeoDrc.cxx
Go to the documentation of this file.
1 // PndGeoDrc
3 //
4 // Class for geometry of DRC (PandaRoot general case)
5 //
6 // Created 13/11/07 by A. Cecchi, Ferrara University
7 // Modified by M.Patsyuk 2010-2013 m.patsyuk@gsi.de
8 //
10 
11 #include "PndGeoDrc.h"
12 #include "FairGeoNode.h"
13 
15 
16 // ----- Default constructor -------------------------------------------
18 
19  fName="drc";
20  maxSectors=0;
21  maxModules=20;
22 
23  // mean refraction index of fused silica (for reconstruction)
24  fNquartz = 1.47125; //(1.47125 <==> 390nm)
25  fUquartz = 19.83; // [cm/ns] group velocity in fused silica at lambda = 400 nm
26  fNEV = 1.47; // oil ondex of refraction
27  fRoughness = 0.001; // [nm] = 10A, roughness of the quartz bar surface
28  fGlueLayer = 0.0025; // [cm]
29  fGreaseLayer = 0.05; // [cm] grease layer between the MCP and the EV
30 
31  fRadius = 47.6; // [cm] Barrel radius
32  fBarHalfThick = 1.75/2.0; // [cm] bar half thickness
33  fBarWidth = 3.2;
34  fBarBoxZDown = 121.0; // [cm] Downstream coordinate of radiator barrel
35  fBarBoxZUp =-119.0; // [cm] Upstream coordinate of radiator barrel
36  fBarNum = 5; // Number of bars within barbox.
37  fBoxGap = 0.425; // [cm] Gap between bar and bar box (only at the top and bottom of the bars)
38  fBarhGap = 0.01; // [cm] Half gap between bars, =1 to have a realistic barbox thickness
39  fBoxThick = 0.2; // [cm] Thickness of bar box
40 
41  fBarBoxNum = 16;
42  fBarBoxGap = 2.48; // [cm] gap between neighboring bar boxes
43  fPipehAngle = 3.4; // [degrees] half of the angle taken by the target pipe
44  fBarBoxAngle = 21.65;
45 
46  // parameters of the EV:
47  fEVlength = 30.; // [cm] Length of expansion volume
48  fEVdrop = 0; //-(fBoxThick+fBoxGap); // [cm] drop of the EV - inner radius (used only with prism)
49  fEVoffset = 0; // [cm] offset of the EV - outer radius
50  fEVbackAngle = 90.; // [degrees] angle between the PD surface and the Z axis, default = 90.
51 
52  // prism parameters:
53  fPhLength = 4.5; // [cm] half length of the prism
54  fPAngle = 30.; // [degrees] opening angle of the prism
55  fPDrop = 0; // [cm] drop of the prism - inner side
56  fPOffset = 1.; // [cm] offset of the prism - outer side
57 
58  // MCP parameters:
59  fMCPsize = 5.9; // [cm] for geometry Mcp2 and Mcp1, = 5.78 for geometry Mcp2a
60  fMCPactiveArea= 5.3; // [cm]
61  fMCPgap = 0.01; // [cm] gap between MCPs
62  fNpix = 8; // [cm] number of pixel in one column/row for one MCP (8 x 8)
63  fPixelSize = 0.65; // [cm]
64  fSigmaCharge = 0.03; // [cm] = 1 mm, sigma of the charge sharing
65  fDeadTime = 0.0 ; // [ns] dead time of the photodetector
66 
67  fPi = TMath::Pi();
68  fLside = 2.*fRadius*TMath::Sin((fBarBoxAngle-fBarBoxGap)/180.*fPi/2.)+2.*fBarhGap;
69 
70  }
71 // -------------------------------------------------------------------------
72 
73 const char* PndGeoDrc::getModuleName(Int_t m) {
74  // Returns the module name of drc number m
75  if ( m < 9 ) sprintf(modName,"drc0%i",m+1);
76  else sprintf(modName,"drc%i",m+1);
77  return modName;
78 }
79 
80 const char* PndGeoDrc::getEleName(Int_t m) {
81  // // Returns the element name of drc number m
82  if ( m < 9 ) sprintf(eleName,"drc0%i",m+1);
83  else sprintf(eleName,"drc%i",m+1);
84  return eleName;
85 }
__m128 m
Definition: P4_F32vec4.h:28
char modName[20]
Definition: PndGeoDrc.h:60
static T Sin(const T &x)
Definition: PndCAMath.h:42
char eleName[20]
Definition: PndGeoDrc.h:61
const char * getEleName(Int_t)
Definition: PndGeoDrc.cxx:80
ClassImp(PndAnaContFact)
Double_t Pi
const char * getModuleName(Int_t)
Definition: PndGeoDrc.cxx:73