source: trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcTranslate.h@ 4114

Last change on this file since 4114 was 4094, checked in by rico, 21 years ago
*** empty log message ***
File size: 772 bytes
Line 
1#ifndef MARS_MSrcTranslate
2#define MARS_MSrcTranslate
3
4#ifndef MARS_MSrcPlace
5#include "MSrcPlace.h"
6#endif
7
8class MSrcTranslate : public MSrcPlace
9{
10 private:
11
12 Double_t fShiftX;
13 Double_t fShiftY;
14 Bool_t fTranslationIsRelative;
15
16 Int_t PreProcess(MParList *plist);
17
18 public:
19 MSrcTranslate(const char* srcIn="MSrcPosCam", const char* srcOut="MSrcPosCam",
20 const char* dca="MDCA",
21 const char* name=NULL, const char* title=NULL);
22
23 void SetTranslation(Double_t x=0.,Double_t y=0) {fShiftX=x,fShiftY=y;};
24 void SetRelativeTranslation(Bool_t inp=kTRUE) {fTranslationIsRelative=inp;};
25 virtual Int_t ComputeNewSrcPosition();
26
27 ClassDef(MSrcTranslate, 0) // task to set the position of the source within the camera in an event by event basis
28};
29
30#endif
31
Note: See TracBrowser for help on using the repository browser.