39 #ifndef _ST_FGT_PED_PLOTTER_
40 #define _ST_FGT_PED_PLOTTER_
66 const TGraph* getGraph( Int_t timebin )
const;
67 Float_t getMaxX()
const;
68 Float_t getMaxY()
const;
71 void setReadFromFile(
const Char_t* filename );
72 void setTimeBinMask( Short_t mask = 0xFF );
73 void setPlotVsStrip( Char_t type =
'R' );
74 void setPlotStDev( Bool_t doId );
75 void setDisc( Short_t discId );
76 void setQuad( Short_t quadId );
77 void setQuadName(
const Char_t *name );
80 typedef std::vector< std::vector< Float_t > > VecVec_t;
84 static const Int_t mMaxNumTimeBins;
87 std::string mFileNameIn;
93 Short_t mDiscId, mQuadId;
96 std::string mQuadName;
99 virtual Int_t fillData( VecVec_t& X, VecVec_t& Y, VecVec_t& E );
102 TGraph* makePlot( std::vector< Float_t >& x, std::vector< Float_t >& y, std::vector< Float_t >& e, Int_t timebin );
105 std::vector< TGraph* > mGraphVec;
108 std::map< Int_t, Int_t > mTimeBinMap;
111 Float_t mMaxY, mMaxX;
121 inline StFgtPedPlotter::StFgtPedPlotter() :
122 mTimeBinMask( 0x8 ), mMaxY(0), mMaxX(0) { };
125 inline StFgtPedPlotter::~StFgtPedPlotter(){ };
127 inline void StFgtPedPlotter::setTimeBinMask( Short_t mask ){ mTimeBinMask = mask; };
128 inline void StFgtPedPlotter::setDisc( Short_t discId ){ mDiscId = discId; };
129 inline void StFgtPedPlotter::setQuad( Short_t quadId ){ mQuadId = quadId; };
130 inline void StFgtPedPlotter::setQuadName(
const Char_t* name ){ mQuadName = name; };
131 inline void StFgtPedPlotter::setReadFromFile(
const Char_t* filename ){ mFileNameIn = filename; };
133 inline void StFgtPedPlotter::setPlotVsStrip( Char_t strip ){
134 mPlotVsStrip = ( (strip ==
'R' || strip ==
'r' || strip ==
'P') ? strip :
'c' );
137 inline void StFgtPedPlotter::setPlotStDev( Bool_t doIt ){ mDoPlotStDev = doIt; };
139 inline Float_t StFgtPedPlotter::getMaxX()
const {
return mMaxX; };
140 inline Float_t StFgtPedPlotter::getMaxY()
const {
return mMaxY; };