FORS Pipeline Reference Manual  5.3.3
fors_ccd_config.h
1 /*
2  * This file is part of the FORS Data Reduction Pipeline
3  * Copyright (C) 2002-2010 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef FORS_CCD_CONFIG_H
21 #define FORS_CCD_CONFIG_H
22 
23 #include <memory>
24 #include "fiera_config.h"
25 
26 namespace fors
27 {
28 
29 /*
30  * This class represents the CCD configuration of the FIERA controlled detectors
31  * It inherits from mosca::fiera_config but it modifies the pre/overscan regions
32  * in some cases due to bad performance of some detectors.
33  * Ticket PIPE-6125 contains the background about this.
34  */
35 class fiera_config : public mosca::fiera_config
36 {
37 public:
38 
39  fiera_config(const cpl_propertylist * header);
40 
41  fiera_config();
42 
43  virtual ~fiera_config();
44 };
45 
46 std::auto_ptr<fors::fiera_config> ccd_settings_equal(const cpl_frameset * fset);
47 
48 void update_ccd_ron(mosca::ccd_config ccd_config,
49  cpl_propertylist * master_bias_header);
50 
51 std::auto_ptr<fors::fiera_config> ccd_config_read
52 (const cpl_frame * target, const cpl_frame * bias_frame);
53 
54 
55 } /* namespace fors */
56 
57 #endif /* FORS_CCD_CONFIG_H */
58