test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeviationsFromFileSensor2D.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: DeviationsFromFileSensor2D.h
3 //CAT: Model
4 //
5 // Base class to describe Optical Objects of type sensor 2D
6 //
7 // History: v1.0
8 // Pedro Arce
9 
10 #ifndef _DEVIATIONSTRAVERSINGSENSOR2D_HH
11 #define _DEVIATIONSTRAVERSINGSENSOR2D_HH
12 
15 
16 #include <vector>
17 
18 class ALIFileIn;
19 
20 typedef std::vector< std::vector< DeviationSensor2D* > > vvd;
21 typedef std::vector< DeviationSensor2D* > vd;
22 
23 
25 {
26 
27 public:
28  //---------- Constructors / Destructor
30  theOffsetX = 0.;
31  theOffsetY = 0.;
32  };
34 
35  // read file
36  void readFile( ALIFileIn& ifdevi );
37 
38  // get the deviation in the matrix corresponding to the intersection point (intersx, intersy)
39  std::pair< ALIdouble, ALIdouble> getDevis( ALIdouble intersX, ALIdouble intersY );
40 
41  // set offsetX/Y
42  void setOffset( ALIdouble offX, ALIdouble offY ){
43  theOffsetX = offX;
44  theOffsetY = offY;
45  }
46 
47  // Access data
48  static const ALIbool apply(){
49  return theApply;
50  }
51 
52  // Set data
53  static void setApply( ALIbool val) {
54  theApply = val;
55  }
56 
57 
58  private:
61 
64  static ALIbool theApply;
65 
67 
69 
70 };
71 
72 #endif
73 
long double ALIdouble
Definition: CocoaGlobals.h:11
std::pair< ALIdouble, ALIdouble > getDevis(ALIdouble intersX, ALIdouble intersY)
int ALIint
Definition: CocoaGlobals.h:15
std::vector< std::vector< DeviationSensor2D * > > vvd
bool ALIbool
Definition: CocoaGlobals.h:19
std::vector< DeviationSensor2D * > vd
static void setApply(ALIbool val)
void setOffset(ALIdouble offX, ALIdouble offY)
unsigned int ALIuint
Definition: CocoaGlobals.h:17