File indexing completed on 2024-04-06 12:25:56
0001 #ifndef RecoLocalTracker_FTLClusterizer_MTDThresholdClusterizer_H
0002 #define RecoLocalTracker_FTLClusterizer_MTDThresholdClusterizer_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #include "RecoLocalFastTime/FTLClusterizer/interface/MTDClusterizerBase.h"
0037
0038
0039 #include "MTDArrayBuffer.h"
0040
0041
0042 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0043
0044 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0045 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0046
0047 #include <vector>
0048
0049 #include "Geometry/MTDGeometryBuilder/interface/MTDGeometry.h"
0050
0051 class MTDThresholdClusterizer : public MTDClusterizerBase {
0052 public:
0053 MTDThresholdClusterizer(edm::ParameterSet const& conf);
0054 ~MTDThresholdClusterizer() override;
0055
0056
0057 void clusterize(const FTLRecHitCollection& input,
0058 const MTDGeometry* geom,
0059 const MTDTopology* topo,
0060 FTLClusterCollection& output) override;
0061
0062 static void fillPSetDescription(edm::ParameterSetDescription& desc);
0063
0064 private:
0065 std::vector<FTLCluster::FTLHitPos> theSeeds;
0066 std::vector<FTLCluster> theClusters;
0067
0068
0069 const float theHitThreshold;
0070 const float theSeedThreshold;
0071 const float theClusterThreshold;
0072 const float theTimeThreshold;
0073 const float thePositionThreshold;
0074
0075
0076 int theNumOfRows;
0077 int theNumOfCols;
0078
0079 DetId theCurrentId;
0080
0081
0082 MTDArrayBuffer theBuffer;
0083 bool bufferAlreadySet;
0084
0085 bool setup(const MTDGeometry* geometry, const MTDTopology* topo, const DetId& id);
0086 void copy_to_buffer(RecHitIterator itr, const MTDGeometry* geom, const MTDTopology* topo);
0087 void clear_buffer(RecHitIterator itr);
0088 FTLCluster make_cluster(const FTLCluster::FTLHitPos& hit);
0089 };
0090
0091 #endif