StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtPedMaker.h
1 /***************************************************************************
2  *
3  * $Id: StSvtPedMaker.h,v 1.5 2003/12/01 00:19:43 caines Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Pedestal calculation Maker
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtPedMaker.h,v $
13  * Revision 1.5 2003/12/01 00:19:43 caines
14  * Version of pedestal maker to go with EMbedding
15  *
16  * Revision 1.4 2003/09/10 19:47:34 perev
17  * ansi corrs
18  *
19  * Revision 1.3 2001/10/24 16:47:52 munhoz
20  * adding RMS methods
21  *
22  * Revision 1.2 2000/11/30 20:32:03 caines
23  * Use MessMgr
24  *
25  * Revision 1.1 2000/08/23 13:08:12 munhoz
26  * SVT pedestal calculation
27  *
28  *
29  **************************************************************************/
30 
31 #ifndef STSVTPEDMAKER_H
32 #define STSVTPEDMAKER_H
33 
34 #ifndef StMaker_H
35 #include "StMaker.h"
36 #endif
37 
38 #include "StSvtClassLibrary/StSvtEnumerations.hh"
39 
40 class TObjectSet;
41 class StSvtHybridStat;
42 class StSvtHybridStat2;
43 class StSvtHybridPed;
44 class StSvtHybridPixels;
45 class StSvtHybridPixels2;
47 class StSvtHybridData;
48 class StSvtData;
49 class StSvtConfig;
50 
51 class StSvtPedMaker : public StMaker {
52  private:
53  StSvtHybridStat *fStat;
54  StSvtHybridStat2 *fStat2;
55  StSvtHybridPed *fPed;
56  StSvtHybridPixels2 *fPed2;
57  StSvtHybridPixels *fPedRms;
58  StSvtHybridData *fData;
59  StSvtHybridCollection *fSvtStat;
60  StSvtHybridCollection *fSvtStat2;
61  StSvtHybridCollection *fSvtPed;
62  StSvtHybridCollection *fSvtPed2;
63  StSvtHybridCollection *fSvtPedRms;
64  StSvtData *fSvtData;
65 
66  TObjectSet *fPedSet;
67  TObjectSet *fPedSet2;
68  TObjectSet *fPedRmsSet;
69 
70  StSvtConfig *mConfig;
71 
72  pedestalType fType;
73 
74  protected:
75  public:
76  StSvtPedMaker(const char *name="SvtPed", pedestalType type = kTime);
77  virtual ~StSvtPedMaker();
78  virtual Int_t Init();
79  Int_t SetType(pedestalType option);
80  pedestalType GetType(){return fType;}
81 
82  virtual Int_t getConfig();
83  virtual Int_t SetSvtData();
84  virtual Int_t SetSvtPed();
85  virtual Int_t SetSvtPed2ndOrd();
86  virtual Int_t SetSvtRMSPed();
87 
88  virtual Int_t AddStat();
89  virtual Int_t AddStat2ndOrd();
90  virtual Int_t Make();
91  virtual Int_t CalcPed();
92  virtual Int_t CalcPed2ndOrd();
93  virtual Int_t WriteToFile(const char* fileName = "svtPedestal.root");
94  virtual Int_t WriteRMSToFile(const char* fileName = "svtPedestal.root");
95  virtual Int_t ReadFromFile(const char* fileName = "svtPedestal.root");
96  virtual Int_t ReadRMSFromFile(const char* fileName = "svtPedestal.root");
97  virtual Int_t ResetStat();
98  virtual Int_t ResetPed();
99  virtual Int_t Finish();
100  virtual void PrintInfo();
101  ClassDef(StSvtPedMaker,2) //StAF chain virtual base class for Makers
102 };
103 
104 #endif
105 
106 
virtual Int_t Finish()
virtual Int_t Make()