reader_custom.h
1 /***************************************************************************
2  reader_custom.h - description
3  -------------------
4  begin : Thu Oct 18 2007
5  copyright : (C) 2000-2015 by Thies Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef RECOREADERCUSTOM_H
19 #define RECOREADERCUSTOM_H
20 
21 #include "reader.h"
22 
23 
34 class RecoReaderCustom : public virtual RecoReaderInterface {
35 
36  public:
38 
39  private:
40 
41  // Implementing virtual functions of RecoReaderInterface
42  bool init(const STD_string& input_filename);
43  bool fetch(RecoCoord& coord, ComplexData<1>& adc);
44  const STD_vector<RecoCoord>& get_coords() const {return coord_vec_cache;}
45  dvector dim_values(recoDim dim) const;
46  const TinyVector<float,3>& reloffset() const {return reloffset_cache;}
47  STD_string image_proc() const {return "";}
48  const TinyVector<int,3>& image_size() const {return size_cache;}
49  const Protocol& protocol() const {return prot_cache;}
50  STD_string seqrecipe() const {return "";} // Let controller generate recipe automatically
51  STD_string postProc3D() const {return "";}
52  STD_string preProc3D() const {return "";}
53  STD_string cmdline_opts() const;
54 
55  // Cached values
56  TinyVector<float,3> reloffset_cache;
57  TinyVector<int,3> size_cache;
58  Protocol prot_cache;
59 
60  ComplexData<2> rawdata; // synthetic raw data
61  mutable STD_vector<RecoCoord> coord_vec_cache; // Vector to hold reco coordinates (indices)
62  unsigned int count; // counter for ADCs
63 
64 };
65 
66 
67 
72 #endif
73 
Protcol proxy.
Definition: protocol.h:33
recoDim
Definition: reco.h:74