source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindCamOneOldStyle.cc@ 4781

Last change on this file since 4781 was 4669, 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// MCalibrationChargeBlindCamOneOldStyle
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: MCalibrationChargeBlindCam
34//
35/////////////////////////////////////////////////////////////////////////////
36#include "MCalibrationChargeBlindCamOneOldStyle.h"
37#include "MCalibrationChargeBlindPix.h"
38
39#include "MCalibrationCam.h"
40
41ClassImp(MCalibrationChargeBlindCamOneOldStyle);
42
43using namespace std;
44// --------------------------------------------------------------------------
45//
46// Default constructor.
47//
48// - CreatePixs();
49// - CreateAreas();
50// - CreateAtts();
51// - CreateQEs();
52// - CreateCollEffs();
53//
54MCalibrationChargeBlindCamOneOldStyle::MCalibrationChargeBlindCamOneOldStyle(const char *name)
55 : MCalibrationChargeBlindCam(1,name,"One Blind Pixel in camera - old style")
56{
57
58 CreatePixs ();
59 CreateAreas ();
60 CreateAtts ();
61 CreateQEs ();
62 CreateCollEffs();
63
64}
65
66
67// --------------------------------------------------------------------------
68//
69// Only one blind pixel with ID 559
70//
71void MCalibrationChargeBlindCamOneOldStyle::CreatePixs()
72{
73
74 (*this)[0].SetPixId(559);
75
76}
77
78// --------------------------------------------------------------------------
79//
80// Only one blind pixel with exactly 100 mm^2 area
81//
82void MCalibrationChargeBlindCamOneOldStyle::CreateAreas()
83{
84
85 (*this)[0].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 MCalibrationChargeBlindCamOneOldStyle::CreateQEs()
95{
96
97 (*this)[0].SetQE ( 0.154, MCalibrationCam::kGREEN );
98 (*this)[0].SetQE ( 0.226, MCalibrationCam::kBLUE );
99 (*this)[0].SetQE ( 0.247, MCalibrationCam::kUV );
100 (*this)[0].SetQE ( 0.247, MCalibrationCam::kCT1 );
101
102 (*this)[0].SetQEErr ( 0.005, MCalibrationCam::kGREEN );
103 (*this)[0].SetQEErr ( 0.007, MCalibrationCam::kBLUE );
104 (*this)[0].SetQEErr ( 0.01, MCalibrationCam::kUV );
105 (*this)[0].SetQEErr ( 0.01, MCalibrationCam::kCT1 );
106
107}
108
109// --------------------------------------------------------------------------
110//
111// One blind pixel with poorly known coll.eff's: email from Eckart with
112// estimates depending on colour, but 5% error (maybe more??)
113//
114void MCalibrationChargeBlindCamOneOldStyle::CreateCollEffs()
115{
116
117 (*this)[0].SetCollEff ( 0.99, MCalibrationCam::kGREEN );
118 (*this)[0].SetCollEff ( 0.93, MCalibrationCam::kBLUE );
119 (*this)[0].SetCollEff ( 0.90, MCalibrationCam::kUV );
120 (*this)[0].SetCollEff ( 0.90, MCalibrationCam::kCT1 );
121
122 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kGREEN );
123 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kBLUE );
124 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kUV );
125 (*this)[0].SetCollEffErr ( 0.05, MCalibrationCam::kCT1 );
126
127
128}
129
130// --------------------------------------------------------------------------
131//
132// One blind pixel with very well known attenuation 0.01 (datasheet delivered
133// with filter, precision better than 1%
134//
135void MCalibrationChargeBlindCamOneOldStyle::CreateAtts()
136{
137
138 (*this)[0].SetAtt ( 1.97, MCalibrationCam::kGREEN );
139 (*this)[0].SetAtt ( 1.96, MCalibrationCam::kBLUE );
140 (*this)[0].SetAtt ( 1.95, MCalibrationCam::kUV );
141 (*this)[0].SetAtt ( 1.95, MCalibrationCam::kCT1 );
142
143 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kGREEN );
144 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kBLUE );
145 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kUV );
146 (*this)[0].SetAttErr ( 0.01, MCalibrationCam::kCT1 );
147
148}
149
Note: See TracBrowser for help on using the repository browser.