StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StShadowMaker.h
1 
9 #ifndef STAR_StShadowMaker
10 #define STAR_StShadowMaker
11 
12 #ifndef StMaker_H
13 #include "StMaker.h"
14 #endif
15 
16 class StShadowMaker : public StMaker {
17  public:
18  StShadowMaker(const char *name="Shadow") : StMaker(name) {}
19  virtual ~StShadowMaker() {}
20  virtual Int_t InitRun(Int_t runNumber);
21  virtual Int_t Make();
22 
23  static int getRunNumber(int trueRunNumber=-1);
24  static int getEventNumber(int trueEventNumber);
25  static int getFileSeq(int trueFileSeq=-1);
26 
27  static int shadeRunNumber(int trueRunNumber);
28  static int shadeEventNumber(int trueEventNumber);
29  static int shadeFileSeq(int trueFileSeq);
30 
31  virtual const char *GetCVS() const
32  {static const char cvs[]="Tag $Name: $ $Id: StShadowMaker.h,v 1.1 2019/04/23 15:29:01 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
33 
34  private:
35  static int unshadeEventNumber(int eventNumber, int shade=-1);
36  static int unshadeRunNumber(int runNumber, int shade=-1);
37  static int unshadeFileSeq(int fileSeq, int shade=-1);
38 
39  static int shadeHelper(int a_0, int direction, int key, const int nbits, const int maxrounds);
40 
41  static int shadedRunNumber;
42  static int shadedFileSeq;
43 
44  ClassDef(StShadowMaker,0)
45 };
46 
47 #endif
48 
49 //_____________________________________________________________________________
50 // $Id: StShadowMaker.h,v 1.1 2019/04/23 15:29:01 jeromel Exp $
51 // $Log: StShadowMaker.h,v $
52 // Revision 1.1 2019/04/23 15:29:01 jeromel
53 // Header is safe
54 //
55 //
StMaker(const char *name="", const char *dummy=0)
Constructor & Destructor.
Definition: StMaker.cxx:188
virtual Int_t Make()