CFEL - ASG Software Suite  2.5.0
CASS
mapcreator_base.cpp
Go to the documentation of this file.
1 // Copyright (C) 2011, 2013 Lutz Foucar
2 
3 /**
4  * @file mapcreator_base.cpp contains base class for all correction map creators.
5  *
6  * @author Lutz Foucar
7  */
8 
9 #include <sstream>
10 #include <stdexcept>
11 
12 #include "mapcreator_base.h"
13 
14 #include "mapcreators.h"
15 #include "mapcreators_online.h"
16 #include "gaincalibration.h"
17 
18 using namespace cass;
19 using namespace pixeldetector;
20 using namespace std;
21 using namespace std::tr1;
22 
24 {
25  shared_pointer ptr;
26  if (type == "none")
27  ptr = shared_pointer(new MapCreatorBase());
28  else if (type == "fixed")
29  ptr = shared_pointer(new FixedMaps());
30  else if (type == "moving")
31  ptr = shared_pointer(new MovingMaps());
32  else if (type == "online")
34  else if (type == "onlinecommonmode")
36  else if (type == "GainFixedADURange")
37  ptr = shared_pointer(new GainCalibration());
38  else if (type == "hotpix")
39  ptr = shared_pointer(new HotPixelsFinder());
40  else
41  throw invalid_argument("MapCreatorBase::instance: Map Creator type '" + type +
42  "' is unknown.");
43  return ptr;
44 }
45 
47 {
48 
49 }
50 
52 {
53 
54 }
55 
57 {
58 
59 }
60 
61 void MapCreatorBase::controlCalibration(const std::string &)
62 {
63 
64 }
contains a gain calibration functor
virtual void operator()(const Frame &frame)
build map from frame
Settings for CASS.
Definition: cass_settings.h:30
contains base class for all correction map creators.
Creates the maps fast and simple with commond mode correction.
STL namespace.
virtual ~MapCreatorBase()
virtual destructor
Creates the maps fast and simple.
Creates a gain calibration.
static shared_pointer instance(const std::string &type)
create an instance of the requested functor
virtual void controlCalibration(const std::string &command)
control the calibration process
contains all correction map creators.
Creates maps from a fixed number of Frames.
Definition: mapcreators.h:62
std::tr1::shared_ptr< MapCreatorBase > shared_pointer
typedef the shared pointer of this
virtual void loadSettings(CASSSettings &s)
load the settings of this creator
A Frame of an advance Pixel Detector.
Creates maps from the last number of maps.
Definition: mapcreators.h:149
contains correction map creators that work fast easy for online purposes.
base class for all correction map creators