FairRoot/PandaRoot
PndHypStripDigiPar.cxx
Go to the documentation of this file.
1 #include <iostream>
2 #include "PndHypStripDigiPar.h"
3 #include "TMath.h"
4 
5 PndHypStripDigiPar::PndHypStripDigiPar(const char* name, const char* title, const char* context)
6  : FairParGenericSet(name,title,context)
7 {
8  clear();
9 }
10 
11 void PndHypStripDigiPar::putParams(FairParamList* list)
12 {
13  if(!list) return;
14  list->add("top_pitch", topPitch);
15  list->add("bot_pitch", botPitch);
16  list->add("orient", orient);
17  list->add("skew", skew);
18  list->add("top_anchor_x", (Double_t)topAnchor.X());
19  list->add("top_anchor_y", (Double_t)topAnchor.Y());
20  list->add("bottom_anchor_x", (Double_t)botAnchor.X());
21  list->add("bottom_anchor_y", (Double_t)botAnchor.Y());
22  list->add("nr_fe_channels", feChannels);
23  list->add("nr_fe_top", topNrFE);
24  list->add("nr_fe_bottom", botNrFE);
25 
26  list->add("charge_threshold", threshold);
27  list->add("charge_noise", noise);
28  list->add("sens_Type", fSensType);
29  list->add("fe_Type", fFeType);
30  // list->add("sensName", sensName);
31  // list->add("feName", feName);
32 }
33 
35 {
36  if (!list) return kFALSE;
37 
38  if (!list->fill("top_pitch", &topPitch)) return kFALSE;
39  if (!list->fill("bot_pitch", &botPitch)) return kFALSE;
40  if (!list->fill("orient",&orient)) return kFALSE;
41  if (!list->fill("skew",&skew)) return kFALSE;
42 
43  Double_t x,y;
44  if (!list->fill("top_anchor_x", &x)) return kFALSE;
45  if (!list->fill("top_anchor_y", &y)) return kFALSE;
46  topAnchor.Set(x,y);
47  if (!list->fill("bot_anchor_x", &x)) return kFALSE;
48  if (!list->fill("bot_anchor_y", &y)) return kFALSE;
49  botAnchor.Set(x,y);
50 
51  if (!list->fill("nr_fe_channels", &feChannels)) return kFALSE;
52  if (!list->fill("nr_fe_top", &topNrFE)) return kFALSE;
53  if (!list->fill("nr_fe_bottom", &botNrFE)) return kFALSE;
54 
55  if (!list->fill("charge_threshold",&threshold)) return kFALSE;
56  if (!list->fill("charge_noise",&noise)) return kFALSE;
57  Text_t stName[80];
58  if (!list->fill("sens_Type",stName,80)) return kFALSE;
59  fSensType = stName;
60  Text_t feName[80];
61  if (!list->fill("fe_Type",feName,80)) return kFALSE;
62  fFeType = feName;
63  // if (!list->fill("sensName",&sensName)) return kFALSE;
64  // if (!list->fill("feName",&feName)) return kFALSE;
65  return kTRUE;
66 }
67 
69 
71 {
72  std::cout<<"MVD Digitisation Parameters:"<<std::endl;
73  std::cout<<" Top Pitch = "<<topPitch<<std::endl;
74  std::cout<<" Bottom Pitch = "<<botPitch<<std::endl;
75  std::cout<<" Strip Angle (Top) = "<<orient<<"rad = "<<orient/TMath::Pi()*180.<<" deg"<<std::endl;
76  std::cout<<" Skew Angle (Top->Bottom) = "<<skew<<"rad = "<<skew/TMath::Pi()*180.<<" deg"<<std::endl;
77  std::cout<<" Top Anchor = ("<<topAnchor.X()<<","<<topAnchor.Y()<<")"<<std::endl;
78  std::cout<<" Bottom Anchor= ("<<botAnchor.X()<<","<<botAnchor.Y()<<")"<<std::endl;
79  std::cout<<" FE Channels = "<<feChannels<<std::endl;
80  std::cout<<" Nr of Frontends (Top Side) = "<<topNrFE<<std::endl;
81  std::cout<<" Nr of Frontends (Bottom Side)= "<<botNrFE<<std::endl;
82  std::cout<<" Charge Threshold (e-) = "<<threshold<<std::endl;
83  std::cout<<" Noise (ENC+Dispersion) (e-) = "<<noise<<std::endl;
84 }
Int_t feChannels
Number of Channels per FE.
Double_t orient
orientation angle of top strips
Int_t botNrFE
Number of FE attached to bottom wafer side.
Double_t noise
Complete noise including threshold dispersion.
Double_t topPitch
Strip pitch on top wafer side.
Double_t skew
skew angle of bottom strips wrt top strips
Double_t
Double_t botPitch
Strip pitch on bottom wafer side.
TString name
PndHypStripDigiPar(const char *name="PndHypParTest", const char *title="Hyp digi parameter", const char *context="TestDefaultContext")
TVector2 botAnchor
Anchor point of bottom strip#0.
Int_t topNrFE
Number of FE attached to top wafer side.
Double_t x
Bool_t getParams(FairParamList *list)
TVector2 topAnchor
Anchor point of top strip#0.
ClassImp(PndAnaContFact)
Double_t threshold
Discriminator threshold.
Double_t y
void putParams(FairParamList *list)
Double_t Pi