#ifndef CPRCLUSTERMAKER_HH #define CPRCLUSTERMAKER_HH //--------------------------------------------------------- // File and Version Information : // CprClusterMaker.hh // // Description: // Class definition for CprClusterMaker which // calculates the cluster position given a collection // of hit wires in the CPR. // // Environment: // Software developed for the CDF Detector. // // Author List: // 04/30/2000 Tania Moulik : created // // Revision History : // //---------------------------------------------------------- //--------------- // C++ Headers -- //--------------- #include #include #include #include using std::vector; using std::map; using std::less; using std::ostream; //---------------------- // Base Class Headers -- //---------------------- #ifdef CDF #include "BaBar/Cdf.hh" #endif #include "Edm/EventRecord.hh" #include "CalorObjects/CprCluster.hh" #include "Calor/CprDefs.hh" #include "Calor/CprClustPar.hh" #include "Calor/CprWirePar.hh" class CprClusterMaker{ public: CprClusterMaker(); ~CprClusterMaker(); // // Functions // // All used wires have to be unflagged per event. void initCprClusterMaker(); float get_wire_position(float wireLengths, unsigned int Side) const; void setSeedWire(int seed); CprCluster do_cluster_wires(const vector* MyWires, CprClustPar* clustpar, const CdfTrack_clnk &theTrack); int is_valid(); protected: int _module; int _barrel; int _valid; // matching Track Id. int _track_id; double _wirePosition; double _wireEnergy; double _errorWirePosition; vector _copyWires; int _seedwire; }; #endif