StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtCosmicTrackQA.h
1 /***************************************************************************
2  *
3  * $Id: StFgtCosmicTrackQA.h,v 1.1 2012/01/31 09:26:16 sgliske Exp $
4  * Author: C. K. Riley (ckriley@bnl.gov), Oct. 20 2011
5  *
6  ***************************************************************************
7  *
8  * Description: input QA for creating cosmictracks
9  *
10  ***************************************************************************
11  *
12  * $Log: StFgtCosmicTrackQA.h,v $
13  * Revision 1.1 2012/01/31 09:26:16 sgliske
14  * StFgtQaMakers moved to StFgtPool
15  *
16  * Revision 1.7 2011/12/07 17:19:59 ckriley
17  * minor update
18  *
19  * Revision 1.6 2011/11/25 20:20:04 ckriley
20  * added statusmaker functionality
21  *
22  * Revision 1.5 2011/11/09 21:03:20 ckriley
23  * working version with current containers
24  *
25  * Revision 1.4 2011/11/01 19:07:24 sgliske
26  * Updated to correspond with StEvent containers, take 2.
27  *
28  * Revision 1.2 2011/10/25 20:43:32 ckriley
29  * added more plots
30  *
31  * Revision 1.1 2011/10/25 15:41:53 ckriley
32  * creation of StFgtCosmicTrackQA
33  *
34  *
35  **************************************************************************/
36 
37 #ifndef _ST_FGT_COSMIC_TRACK_QA_
38 #define _ST_FGT_COSMIC_TRACK_QA_
39 
40 #include <string>
41 #include <TH1F.h>
42 #include <TH2F.h>
43 #include <TProfile.h>
44 #include "StFgtQaMaker.h"
45 
47  public:
48  // constructors
49  StFgtCosmicTrackQA( const Char_t* name = "FGT_TrackQA_Residual",
50  Short_t discId = 0,
51  Short_t quadId = 0,
52  const Char_t* quadName = "000" );
54 
55  // deconstructor
57 
58  // equals operator
59  StFgtCosmicTrackQA& operator=(const StFgtCosmicTrackQA&);
60 
61  Int_t Init();
62  Int_t Make();
63  Int_t Finish();
64  void Clear( Option_t *opt = "" );
65 
66  // modifiers
67  void setFilenameBase( const Char_t* filenameBase );
68  void setFilenameKey( const Char_t* filenameKey );
69  void setPath( const Char_t* path );
70 
71  // accessor
72  TH1F* getHistAPV(int);
73  TH1F* getHist1Dcluster(int);
74  TH1F* getHist1Dclusters();
75  TH2F *getHist2Dpoint();
76 
77  TH1F* getTestHist(int);
78 
79  protected:
80  // for saving the plot
81  std::string mPath, mFileNameBase, mFileNameKey;
82 
83  TH1F *mHistAPV[10]; // adc-ped histograms for all APV chips
84  TH1F *mHist1Dcluster[2]; // 1D cluster energy histograms for r & phi
85  TH1F *mHist1Dclusters; // 1D cluster energy histograms
86  TH2F *mHist2Dpoint; // cluster points histogram
87 
88  TH1F *testHist[2]; // testing hot channels
89 
90  private:
91 
92  ClassDef(StFgtCosmicTrackQA,1);
93 };
94 
95 // inline functions
96 
97 // modifiers
98 inline void StFgtCosmicTrackQA::setFilenameBase( const Char_t* filenameBase ){ mFileNameBase = filenameBase; };
99 inline void StFgtCosmicTrackQA::setFilenameKey( const Char_t* filenameKey ){ mFileNameKey = filenameKey; };
100 inline void StFgtCosmicTrackQA::setPath( const Char_t* path ){ mPath = path; };
101 
102 // accessor
103 inline TH1F* StFgtCosmicTrackQA::getHistAPV( int i ){
104  return mHistAPV[i];
105 };
106 inline TH1F* StFgtCosmicTrackQA::getHist1Dcluster( int i ){
107  return mHist1Dcluster[i];
108 };
109 inline TH1F* StFgtCosmicTrackQA::getHist1Dclusters(){
110  return mHist1Dclusters;
111 };
112 inline TH2F* StFgtCosmicTrackQA::getHist2Dpoint(){
113  return mHist2Dpoint;
114 };
115 inline TH1F* StFgtCosmicTrackQA::getTestHist( int i ){
116  return testHist[i];
117 };
118 
119 
120 #endif
void Clear(Option_t *opt="")
User defined functions.