File indexing completed on 2024-04-06 12:25:58
0001 #ifndef CSCRecHitD_CSCMake2DRecHit_h
0002 #define CSCRecHitD_CSCMake2DRecHit_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <RecoLocalMuon/CSCRecHitD/src/CSCWireHit.h>
0015 #include <RecoLocalMuon/CSCRecHitD/src/CSCStripHit.h>
0016 #include <RecoLocalMuon/CSCRecHitD/src/CSCRecoConditions.h>
0017 #include <RecoLocalMuon/CSCRecHitD/src/CSCFindPeakTime.h>
0018
0019 #include <DataFormats/CSCRecHit/interface/CSCRecHit2D.h>
0020
0021 #include <FWCore/ParameterSet/interface/ParameterSet.h>
0022
0023 class CSCDetId;
0024 class CSCLayer;
0025 class CSCChamberSpecs;
0026 class CSCLayerGeometry;
0027 class CSCRecoConditions;
0028 class CSCXonStrip_MatchGatti;
0029
0030 class CSCMake2DRecHit {
0031 public:
0032 explicit CSCMake2DRecHit(const edm::ParameterSet&);
0033
0034 ~CSCMake2DRecHit();
0035
0036
0037 CSCRecHit2D hitFromStripAndWire(const CSCDetId& id,
0038 const CSCLayer* layer,
0039 const CSCWireHit& wHit,
0040 const CSCStripHit& sHit);
0041
0042
0043 bool isHitInFiducial(const CSCLayer* layer, const CSCRecHit2D& rh);
0044
0045
0046 void setConditions(const CSCRecoConditions* reco);
0047
0048
0049 float findWireBx(const std::vector<int>& timeBinsOn, float tpeak, const CSCDetId& id);
0050
0051 const CSCLayer* layer_;
0052 const CSCLayerGeometry* layergeom_;
0053 const CSCChamberSpecs* specs_;
0054 CSCDetId id_;
0055
0056 private:
0057 bool useCalib;
0058 bool useTimingCorrections;
0059 bool useGasGainCorrections;
0060 int stripWireDeltaTime;
0061 bool useGatti;
0062 float maxGattiChi2;
0063
0064 CSCXonStrip_MatchGatti* xMatchGatti_;
0065
0066
0067 const CSCRecoConditions* recoConditions_;
0068
0069 const std::unique_ptr<CSCFindPeakTime> peakTimeFinder_;
0070 };
0071
0072 #endif