CMS 3D CMS Logo

DTOccupancyClusterBuilder.h
Go to the documentation of this file.
1 #ifndef DTOccupancyClusterBuilder_H
2 #define DTOccupancyClusterBuilder_H
3 
11 #include "DTOccupancyPoint.h"
12 #include "DTOccupancyCluster.h"
13 
14 #include <set>
15 #include <map>
16 #include <vector>
17 #include <string>
18 
20 public:
23 
26 
27  // Operations
29  void addPoint(const DTOccupancyPoint& point);
30 
32  void buildClusters();
33 
35  void drawClusters(std::string canvasName);
36 
39 
40  bool isProblematic(DTLayerId layerId) const;
41 
42 protected:
43 private:
44  std::pair<DTOccupancyPoint, DTOccupancyPoint> getInitialPair();
45 
47 
48  void computeDistancesToCluster(const DTOccupancyCluster& cluster);
49 
50  bool buildNewCluster();
51 
52  void sortClusters();
53 
54  std::set<DTOccupancyPoint> thePoints;
55  std::map<double, std::pair<DTOccupancyPoint, DTOccupancyPoint> > theDistances;
56  std::map<double, DTOccupancyPoint> theDistancesFromTheCluster;
57  std::vector<DTOccupancyCluster> theClusters;
58  std::set<DTLayerId> theProblematicLayers;
59 
60  double maxMean;
61  double maxRMS;
62 };
63 
64 #endif
DTOccupancyPoint
Definition: DTOccupancyPoint.h:13
DTOccupancyClusterBuilder::theDistances
std::map< double, std::pair< DTOccupancyPoint, DTOccupancyPoint > > theDistances
Definition: DTOccupancyClusterBuilder.h:55
DTOccupancyCluster
Definition: DTOccupancyCluster.h:20
DTOccupancyClusterBuilder::buildClusters
void buildClusters()
build the clusters
Definition: DTOccupancyClusterBuilder.cc:33
DTOccupancyClusterBuilder::thePoints
std::set< DTOccupancyPoint > thePoints
Definition: DTOccupancyClusterBuilder.h:54
DTOccupancyClusterBuilder::DTOccupancyClusterBuilder
DTOccupancyClusterBuilder()
Constructor.
Definition: DTOccupancyClusterBuilder.cc:21
DTOccupancyClusterBuilder::getBestCluster
DTOccupancyCluster getBestCluster() const
get the cluster correspondig to "normal" cell occupancy.
Definition: DTOccupancyClusterBuilder.cc:156
DTOccupancyClusterBuilder::computePointToPointDistances
void computePointToPointDistances()
Definition: DTOccupancyClusterBuilder.cc:85
DTOccupancyClusterBuilder::maxMean
double maxMean
Definition: DTOccupancyClusterBuilder.h:60
DTOccupancyClusterBuilder::isProblematic
bool isProblematic(DTLayerId layerId) const
Definition: DTOccupancyClusterBuilder.cc:158
DTOccupancyClusterBuilder
Definition: DTOccupancyClusterBuilder.h:19
DTOccupancyClusterBuilder::theProblematicLayers
std::set< DTLayerId > theProblematicLayers
Definition: DTOccupancyClusterBuilder.h:58
DTOccupancyCluster.h
DTLayerId
Definition: DTLayerId.h:12
DTOccupancyClusterBuilder::maxRMS
double maxRMS
Definition: DTOccupancyClusterBuilder.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTOccupancyClusterBuilder::theDistancesFromTheCluster
std::map< double, DTOccupancyPoint > theDistancesFromTheCluster
Definition: DTOccupancyClusterBuilder.h:56
DTOccupancyClusterBuilder::buildNewCluster
bool buildNewCluster()
Definition: DTOccupancyClusterBuilder.cc:103
DTOccupancyClusterBuilder::drawClusters
void drawClusters(std::string canvasName)
draw a TH2F histograms showing the clusters
Definition: DTOccupancyClusterBuilder.cc:54
DTOccupancyClusterBuilder::sortClusters
void sortClusters()
Definition: DTOccupancyClusterBuilder.cc:141
DTOccupancyPoint.h
DTOccupancyClusterBuilder::~DTOccupancyClusterBuilder
virtual ~DTOccupancyClusterBuilder()
Destructor.
Definition: DTOccupancyClusterBuilder.cc:23
DTOccupancyClusterBuilder::computeDistancesToCluster
void computeDistancesToCluster(const DTOccupancyCluster &cluster)
Definition: DTOccupancyClusterBuilder.cc:96
DTOccupancyClusterBuilder::addPoint
void addPoint(const DTOccupancyPoint &point)
Add an occupancy point for a given layer.
Definition: DTOccupancyClusterBuilder.cc:25
DTOccupancyClusterBuilder::getInitialPair
std::pair< DTOccupancyPoint, DTOccupancyPoint > getInitialPair()
Definition: DTOccupancyClusterBuilder.cc:81
point
*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
DTOccupancyClusterBuilder::theClusters
std::vector< DTOccupancyCluster > theClusters
Definition: DTOccupancyClusterBuilder.h:57