source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindCamTwoNewStyle.cc@ 4983

Last change on this file since 4983 was 4882, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 6.6 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// MCalibrationChargeBlindCamTwoNewStyle
28//
29// Blind Pixels Calibration camera after run 31693. The blind pixel camera
30// consisted then of two non-coated blind pixel with very well known
31// quantum efficiency read out in hardware ID 560 and 561.
32//
33// See also: MCalibrationChargeBlindCam
34//
35/////////////////////////////////////////////////////////////////////////////
36#include "MCalibrationChargeBlindCamTwoNewStyle.h"
37#include "MCalibrationChargeBlindPix.h"
38
39ClassImp(MCalibrationChargeBlindCamTwoNewStyle);
40
41using namespace std;
42
43// --------------------------------------------------------------------------
44//
45// Default constructor.
46//
47// - CreatePixs();
48// - CreateAreas();
49// - CreateAtts();
50// - CreateQEs();
51// - CreateCollEffs();
52//
53MCalibrationChargeBlindCamTwoNewStyle::MCalibrationChargeBlindCamTwoNewStyle(const char *name)
54 : MCalibrationChargeBlindCam(2,name,"Two Blind Pixels in camera - new style")
55{
56
57 CreatePixs ();
58 CreateAreas ();
59 CreateAtts ();
60 CreateQEs ();
61 CreateCollEffs();
62
63}
64
65
66// --------------------------------------------------------------------------
67//
68// Two blind pixels with ID 559 and 560 (software)
69//
70void MCalibrationChargeBlindCamTwoNewStyle::CreatePixs()
71{
72
73 (*this)[0].SetPixId(559);
74 (*this)[1].SetPixId(560);
75
76}
77
78// --------------------------------------------------------------------------
79//
80// Two blind pixels with exactly 100 mm^2 area
81//
82void MCalibrationChargeBlindCamTwoNewStyle::CreateAreas()
83{
84
85 (*this)[0].SetArea(100.);
86 (*this)[1].SetArea(100.);
87
88}
89
90// --------------------------------------------------------------------------
91//
92// Two blind pixels with very well known qe's: David's measurments with
93// 1% error.
94//
95void MCalibrationChargeBlindCamTwoNewStyle::CreateQEs()
96{
97
98 (*this)[0].SetQE ( 0.166, MCalibrationCam::kGREEN );
99 (*this)[0].SetQE ( 0.240, MCalibrationCam::kBLUE );
100 (*this)[0].SetQE ( 0.273, MCalibrationCam::kUV );
101 (*this)[0].SetQE ( 0.273, MCalibrationCam::kCT1 );
102
103 (*this)[0].SetQEErr ( 0.004, MCalibrationCam::kGREEN );
104 (*this)[0].SetQEErr ( 0.005, MCalibrationCam::kBLUE );
105 (*this)[0].SetQEErr ( 0.006, MCalibrationCam::kUV );
106 (*this)[0].SetQEErr ( 0.006, MCalibrationCam::kCT1 );
107
108 (*this)[1].SetQE ( 0.155, MCalibrationCam::kGREEN );
109 (*this)[1].SetQE ( 0.228, MCalibrationCam::kBLUE );
110 (*this)[1].SetQE ( 0.261, MCalibrationCam::kUV );
111 (*this)[1].SetQE ( 0.261, MCalibrationCam::kCT1 );
112
113 (*this)[1].SetQEErr ( 0.004, MCalibrationCam::kGREEN );
114 (*this)[1].SetQEErr ( 0.005, MCalibrationCam::kBLUE );
115 (*this)[1].SetQEErr ( 0.006, MCalibrationCam::kUV );
116 (*this)[1].SetQEErr ( 0.006, MCalibrationCam::kCT1 );
117
118}
119
120// --------------------------------------------------------------------------
121//
122// One blind pixel with poorly known coll.eff's: email from Eckart with
123// estimates depending on colour, but 5% error (maybe more??)
124//
125void MCalibrationChargeBlindCamTwoNewStyle::CreateCollEffs()
126{
127
128 (*this)[0].SetCollEff ( 0.99, MCalibrationCam::kGREEN );
129 (*this)[0].SetCollEff ( 0.93, MCalibrationCam::kBLUE );
130 (*this)[0].SetCollEff ( 0.90, MCalibrationCam::kUV );
131 (*this)[0].SetCollEff ( 0.90, MCalibrationCam::kCT1 );
132
133 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kGREEN );
134 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kBLUE );
135 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kUV );
136 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kCT1 );
137
138 (*this)[1].SetCollEff ( 0.99, MCalibrationCam::kGREEN );
139 (*this)[1].SetCollEff ( 0.93, MCalibrationCam::kBLUE );
140 (*this)[1].SetCollEff ( 0.90, MCalibrationCam::kUV );
141 (*this)[1].SetCollEff ( 0.90, MCalibrationCam::kCT1 );
142
143 (*this)[1].SetCollEffErr ( 0.05, MCalibrationCam::kGREEN );
144 (*this)[1].SetCollEffErr ( 0.05, MCalibrationCam::kBLUE );
145 (*this)[1].SetCollEffErr ( 0.05, MCalibrationCam::kUV );
146 (*this)[1].SetCollEffErr ( 0.05, MCalibrationCam::kCT1 );
147
148
149}
150
151// --------------------------------------------------------------------------
152//
153// One blind pixel has a very well known attenuation 0.01 (datasheet delivered
154// with filter, precision better than 1%
155//
156// The second blind pixel is not yet so well known, the company does not reply.
157// Attenuation: 0.001 (datasheet not delivered with filter, precision guaranteed to 5%)
158//
159void MCalibrationChargeBlindCamTwoNewStyle::CreateAtts()
160{
161
162 (*this)[0].SetAtt ( 1.97, MCalibrationCam::kGREEN );
163 (*this)[0].SetAtt ( 1.96, MCalibrationCam::kBLUE );
164 (*this)[0].SetAtt ( 1.95, MCalibrationCam::kUV );
165 (*this)[0].SetAtt ( 1.95, MCalibrationCam::kCT1 );
166
167 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kGREEN );
168 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kBLUE );
169 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kUV );
170 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kCT1 );
171
172 (*this)[1].SetAtt ( 3.00, MCalibrationCam::kGREEN );
173 (*this)[1].SetAtt ( 3.00, MCalibrationCam::kBLUE );
174 (*this)[1].SetAtt ( 3.00, MCalibrationCam::kUV );
175 (*this)[1].SetAtt ( 3.00, MCalibrationCam::kCT1 );
176
177 (*this)[1].SetAttErr ( 0.15, MCalibrationCam::kGREEN );
178 (*this)[1].SetAttErr ( 0.15, MCalibrationCam::kBLUE );
179 (*this)[1].SetAttErr ( 0.15, MCalibrationCam::kUV );
180 (*this)[1].SetAttErr ( 0.15, MCalibrationCam::kCT1 );
181
182}
183
Note: See TracBrowser for help on using the repository browser.