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

Last change on this file since 4450 was 4117, checked in by rico, 21 years ago
*** empty log message ***
File size: 746 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* name=NULL, const char* title=NULL);
21
22 void SetTranslation(Double_t x=0.,Double_t y=0) {fShiftX=x,fShiftY=y;};
23 void SetRelativeTranslation(Bool_t inp=kTRUE) {fTranslationIsRelative=inp;};
24 virtual Int_t ComputeNewSrcPosition();
25
26 ClassDef(MSrcTranslate, 0) // task to set the position of the source within the camera in an event by event basis
27};
28
29#endif
30
Note: See TracBrowser for help on using the repository browser.