StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtQaAdcVsChannel.h
1 /***************************************************************************
2  *
3  * $Id: StFgtQaAdcVsChannel.h,v 1.2 2012/01/31 09:31:37 sgliske Exp $
4  * Author: S. Gliske, Sept 2011
5  *
6  ***************************************************************************
7  *
8  * Description: Maker to make a plot for ADC vs channel. Optionally,
9  * can plot before or after pedistal subtraction. Can also optionally
10  * plot vs. strip number rather than vs channel.
11  *
12  ***************************************************************************
13  *
14  * $Log: StFgtQaAdcVsChannel.h,v $
15  * Revision 1.2 2012/01/31 09:31:37 sgliske
16  * includes updated for things moved to StFgtPooll
17  *
18  * Revision 1.1 2012/01/31 09:26:17 sgliske
19  * StFgtQaMakers moved to StFgtPool
20  *
21  * Revision 1.6 2011/11/01 19:07:24 sgliske
22  * Updated to correspond with StEvent containers, take 2.
23  *
24  * Revision 1.5 2011/09/27 15:28:17 sgliske
25  * added common StFgtQaMaker parent
26  *
27  * Revision 1.4 2011/09/27 00:49:01 sgliske
28  * cosmic QA update
29  *
30  * Revision 1.3 2011/09/24 02:14:10 sgliske
31  * updated FGT cosmic QA
32  *
33  * Revision 1.2 2011/09/22 21:21:37 sgliske
34  * working on adding in ped. subtr.
35  *
36  * Revision 1.1 2011/09/21 20:26:46 sgliske
37  * creation
38  *
39  *
40  *
41  **************************************************************************/
42 
43 #ifndef _ST_FGT_QA_ADC_VS_CHANNEL_
44 #define _ST_FGT_QA_ADC_VS_CHANNEL_
45 
46 #include <string>
47 #include <TH2F.h>
48 
49 #include "StFgtQaMaker.h"
50 #include "StRoot/StFgtPool/StFgtPedMaker/StFgtPedReader.h"
51 #include "StRoot/StFgtPool/StFgtPedMaker/StFgtPedReader.h"
52 
54  public:
55  // constructors
56  StFgtQaAdcVsChannel( const Char_t* name = "FGT_QA_Adc_vs_Channel",
57  Short_t discId = 0,
58  Short_t quadId = 0,
59  const Char_t* quadName = "000" );
61 
62  // deconstructor
64 
65  // equals operator
66  StFgtQaAdcVsChannel& operator=(const StFgtQaAdcVsChannel&);
67 
68  Int_t Init();
69  Int_t Make();
70  Int_t Finish();
71 
72  // modifiers
73  void setFilenameBase( const Char_t* filenameBase );
74  void setFilenameKey( const Char_t* filenameKey );
75  void setPath( const Char_t* path );
76 
77  // accessor
78  TH2F* getHist();
79 
80  protected:
81  // for saving the plot
82  std::string mPath, mFileNameBase, mFileNameKey;
83 
84  // the plot
85  TH2F *mHist;
86 
87  private:
88  ClassDef(StFgtQaAdcVsChannel,1);
89 };
90 
91 // inline functions
92 
93 // modifiers
94 inline void StFgtQaAdcVsChannel::setFilenameBase( const Char_t* filenameBase ){ mFileNameBase = filenameBase; };
95 inline void StFgtQaAdcVsChannel::setFilenameKey( const Char_t* filenameKey ){ mFileNameKey = filenameKey; };
96 inline void StFgtQaAdcVsChannel::setPath( const Char_t* path ){ mPath = path; };
97 
98 // accessor
99 inline TH2F* StFgtQaAdcVsChannel::getHist(){
100  return mHist;
101 };
102 
103 #endif