CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTOccupancyClusterBuilder.h
Go to the documentation of this file.
1 #ifndef DTOccupancyClusterBuilder_H
2 #define DTOccupancyClusterBuilder_H
3 
13 #include "DTOccupancyPoint.h"
14 #include "DTOccupancyCluster.h"
15 
16 #include <set>
17 #include <map>
18 #include <vector>
19 #include <string>
20 
21 
23 public:
26 
29 
30  // Operations
32  void addPoint(const DTOccupancyPoint& point);
33 
35  void buildClusters();
36 
38  void drawClusters(std::string canvasName);
39 
42 
43  bool isProblematic(DTLayerId layerId) const;
44 
45 protected:
46 
47 private:
48  std::pair<DTOccupancyPoint, DTOccupancyPoint> getInitialPair();
49 
51 
52  void computeDistancesToCluster(const DTOccupancyCluster& cluster);
53 
54  bool buildNewCluster();
55 
56  void sortClusters();
57 
58  std::set<DTOccupancyPoint> thePoints;
59  std::map<double, std::pair<DTOccupancyPoint, DTOccupancyPoint> > theDistances;
60  std::map<double, DTOccupancyPoint> theDistancesFromTheCluster;
61  std::vector<DTOccupancyCluster> theClusters;
62  std::set<DTLayerId> theProblematicLayers;
63 
64  double maxMean;
65  double maxRMS;
66 
67 };
68 
69 #endif
70 
DTOccupancyCluster getBestCluster() const
get the cluster correspondig to &quot;normal&quot; cell occupancy.
std::set< DTLayerId > theProblematicLayers
std::map< double, std::pair< DTOccupancyPoint, DTOccupancyPoint > > theDistances
std::map< double, DTOccupancyPoint > theDistancesFromTheCluster
std::set< DTOccupancyPoint > thePoints
void drawClusters(std::string canvasName)
draw a TH2F histograms showing the clusters
virtual ~DTOccupancyClusterBuilder()
Destructor.
void computeDistancesToCluster(const DTOccupancyCluster &cluster)
void addPoint(const DTOccupancyPoint &point)
Add an occupancy point for a given layer.
void buildClusters()
build the clusters
std::pair< DTOccupancyPoint, DTOccupancyPoint > getInitialPair()
std::vector< DTOccupancyCluster > theClusters
bool isProblematic(DTLayerId layerId) const
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5