source: trunk/Mars/mcalib/MCalibrationBlindCamOneOldStyle.cc@ 10075

Last change on this file since 10075 was 4986, checked in by gaug, 20 years ago
*** empty log message ***
File size: 4.9 KB
Line 
1/* ======================================================================== *\
2!
3! *
4! * This file is part of MARS, the MAGIC Analysis and Reconstruction
5! * Software. It is distributed to you in the hope that it can be a useful
6! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
7! * It is distributed WITHOUT ANY WARRANTY.
8! *
9! * Permission to use, copy, modify and distribute this software and its
10! * documentation for any purpose is hereby granted without fee,
11! * provided that the above copyright notice appear in all copies and
12! * that both that copyright notice and this permission notice appear
13! * in supporting documentation. It is provided "as is" without express
14! * or implied warranty.
15! *
16!
17!
18! Author(s): Markus Gaug 07/2004 <mailto:markus@ifae.es>
19!
20! Copyright: MAGIC Software Development, 2000-2004
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26//
27// MCalibrationBlindCamOneOldStyle
28//
29// Blind Pixels Calibration camera until run 31693. The blind pixel camera
30// consisted then only of one non-coated blind pixel with poorly known
31// quantum efficiency read out in hardware ID 560.
32//
33// See also: MCalibrationBlindCam
34//
35/////////////////////////////////////////////////////////////////////////////
36#include "MCalibrationBlindCamOneOldStyle.h"
37#include "MCalibrationBlindPix.h"
38
39ClassImp(MCalibrationBlindCamOneOldStyle);
40
41using namespace std;
42
43// --------------------------------------------------------------------------
44//
45// Default constructor.
46//
47// - CreatePixs();
48// - CreateAreas();
49// - CreateAtts();
50// - CreateQEs();
51// - CreateCollEffs();
52//
53MCalibrationBlindCamOneOldStyle::MCalibrationBlindCamOneOldStyle(const char *name)
54 : MCalibrationBlindCam(1,name,"One Blind Pixel in camera - old style")
55{
56
57 CreatePixs ();
58 CreateAreas ();
59 CreateAtts ();
60 CreateQEs ();
61 CreateCollEffs();
62
63}
64
65
66// --------------------------------------------------------------------------
67//
68// Only one blind pixel with ID 559
69//
70void MCalibrationBlindCamOneOldStyle::CreatePixs()
71{
72
73 (*this)[0].SetPixId(559);
74
75}
76
77// --------------------------------------------------------------------------
78//
79// Only one blind pixel with exactly 100 mm^2 area
80//
81void MCalibrationBlindCamOneOldStyle::CreateAreas()
82{
83
84 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0];
85 pix.SetArea(100.);
86
87}
88
89// --------------------------------------------------------------------------
90//
91// One blind pixel with poorly known qe's: average of David measurments with
92// 4% error.
93//
94void MCalibrationBlindCamOneOldStyle::CreateQEs()
95{
96
97 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0];
98
99 Float_t qe[4];
100
101 qe[ MCalibrationCam::kGREEN ] = 0.154;
102 qe[ MCalibrationCam::kBLUE ] = 0.226;
103 qe[ MCalibrationCam::kUV ] = 0.247;
104 qe[ MCalibrationCam::kCT1 ] = 0.247;
105
106 pix.SetQE(4,qe);
107
108 Float_t qeerr[4];
109
110 qeerr[ MCalibrationCam::kGREEN ] = 0.005;
111 qeerr[ MCalibrationCam::kBLUE ] = 0.007;
112 qeerr[ MCalibrationCam::kUV ] = 0.01;
113 qeerr[ MCalibrationCam::kCT1 ] = 0.01;
114
115 pix.SetQEErr(4,qeerr);
116}
117
118// --------------------------------------------------------------------------
119//
120// One blind pixel with poorly known coll.eff's: email from Eckart with
121// estimates depending on colour, but 5% error (maybe more??)
122//
123void MCalibrationBlindCamOneOldStyle::CreateCollEffs()
124{
125
126 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0];
127
128 Float_t colleff[4];
129
130 colleff[MCalibrationCam::kGREEN ] = 0.99;
131 colleff[MCalibrationCam::kBLUE ] = 0.93;
132 colleff[MCalibrationCam::kUV ] = 0.90;
133 colleff[MCalibrationCam::kCT1 ] = 0.90;
134
135 pix.SetCollEff(4,colleff);
136
137 Float_t collefferr[4];
138
139 collefferr[MCalibrationCam::kGREEN ] = 0.05;
140 collefferr[MCalibrationCam::kBLUE ] = 0.05;
141 collefferr[MCalibrationCam::kUV ] = 0.05;
142 collefferr[MCalibrationCam::kCT1 ] = 0.05;
143
144 pix.SetCollEffErr(4,collefferr);
145}
146
147// --------------------------------------------------------------------------
148//
149// One blind pixel with very well known attenuation 0.01 (datasheet delivered
150// with filter, precision better than 1%
151//
152void MCalibrationBlindCamOneOldStyle::CreateAtts()
153{
154
155 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0];
156
157 Float_t att[4];
158
159 att[MCalibrationCam::kGREEN ] = 1.97;
160 att[MCalibrationCam::kBLUE ] = 1.96;
161 att[MCalibrationCam::kUV ] = 1.95;
162 att[MCalibrationCam::kCT1 ] = 1.95;
163
164 pix.SetAtt(4,att);
165
166 Float_t atterr[4];
167
168 atterr[MCalibrationCam::kGREEN ] = 0.01;
169 atterr[MCalibrationCam::kBLUE ] = 0.01;
170 atterr[MCalibrationCam::kUV ] = 0.01;
171 atterr[MCalibrationCam::kCT1 ] = 0.01;
172
173 pix.SetAttErr(4,atterr);
174
175}
176
Note: See TracBrowser for help on using the repository browser.