37 #include "StFgtQaMaker.h"
45 #include "StRoot/StFgtUtil/geometry/StFgtGeom.h"
47 #include "StRoot/StEvent/StEvent.h"
48 #include "StRoot/StEvent/StFgtCollection.h"
51 StFgtQaMaker::StFgtQaMaker(
const Char_t* name,
54 const Char_t* quadName ) :
55 StMaker( name ), mFgtCollectionPtr(0), mDiscId( discId ), mQuadId( quadId ), mTimeBin( 4 ),
56 mDoVsStrip(
'c' ), mDoSubtrPeds( 0 ),
57 mXbins( 1280 ), mYbins( 4096 ), mXmin( 0 ), mXmax( 1280 ), mYmin( 0 ), mYmax( mYbins ),
58 mBinFactorX( 1 ), mBinFactorY( 1 ), mQuadName( quadName ), mPedReader(0), mPedThres(-1e100) {
60 gROOT->SetStyle(
"Plain");
64 std::cerr <<
"TODO" << endl;
69 StFgtQaMaker::~StFgtQaMaker(){
76 std::cerr <<
"TODO" << endl;
80 Int_t StFgtQaMaker::Init(){
83 if( mDoSubtrPeds && mPedFile.empty() ){
84 std::cout <<
"Cannot subtract peds--database not yet implemented" << endl;
89 if( !ierr && mDoSubtrPeds ){
92 ierr = mPedReader->Init();
102 eventPtr = (
StEvent*)GetInputDS(
"StEvent");
105 LOG_ERROR <<
"Error getting pointer to StEvent from '" << ClassName() <<
"'" << endm;
109 mFgtCollectionPtr = 0;
112 mFgtCollectionPtr=eventPtr->fgtCollection();
115 if( !mFgtCollectionPtr) {
116 LOG_ERROR <<
"Error getting pointer to StFgtCollection from '" << ClassName() <<
"'" << endm;