//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Cluster Finding in the TPC: // ClusterFinder administrating SectorProcessors // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- #ifndef TPCCLUSTERFINDER_HH #define TPCCLUSTERFINDER_HH // Base Class Headers ---------------- // Collaborating Class Headers ------- #include #include //#include "TpcDigi.h" //#include "TpcCluster.h" #include "TpcAbsClusterFinder.h" // Collaborating Class Declarations -- class TpcPadPlane; class padprocessor; class TpcSectorProcessor; class TpcDigi; class TpcCluster; class TpcClusterFinder : public TpcAbsClusterFinder{ public: // Constructors/Destructors --------- TpcClusterFinder(TpcPadPlane* p, std::vector* output_buffer, unsigned int timeslice, int mode=0, int sectorid=-1, bool datamode=false, double diffFactor=1., double timeCut=5., double G=1, double C=1); // G=Gain/(electrons per adc count) // C = constant scale for errors ~TpcClusterFinder(); // Operators // Accessors ----------------------- // Modifiers ----------------------- // Mode==0 --> global time slices // Mode==1 --> sector wise time slices; pad cannot be hit twice void setMode(int mode) {fmode=mode;} void setDoPRF(bool opt=true){fDoPRF=opt;} // Operations ---------------------- virtual void process(std::vector& digis); virtual void reset(); virtual void checkConsistency(); private: void putDigi(TpcDigi* digi); // Private Data Members ------------ std::map fsproc; std::map* > fsectormap; TpcPadPlane* fpadplane; std::vector* foutput_buffer; unsigned int fdt; // time slice in units of sample time int fmode; double fG,fC,fzJitter; bool fDataMode; bool first; bool fDoPRF; //warning! PRF correction is not implemented // Private Methods ----------------- }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------