CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCMake2DRecHit.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCMake2DRecHit_h
2 #define CSCRecHitD_CSCMake2DRecHit_h
3 
12 //---- Possible changes from Stoyan Stoynev - NU
13 
18 
20 
22 
23 class CSCDetId;
24 class CSCLayer;
25 class CSCChamberSpecs;
26 class CSCLayerGeometry;
27 class CSCRecoConditions;
29 
31 {
32  public:
33 
34  explicit CSCMake2DRecHit(const edm::ParameterSet& );
35 
37 
39  CSCRecHit2D hitFromStripAndWire(const CSCDetId& id, const CSCLayer* layer, const CSCWireHit& wHit, const CSCStripHit& sHit);
40 
41 
43  bool isHitInFiducial( const CSCLayer* layer, const CSCRecHit2D& rh );
44 
46  void setConditions( const CSCRecoConditions* reco );
47 
48  // Determine wire time using tpeak as initial estimate
49  float findWireBx(const std::vector <int>& timeBinsOn, float tpeak, const CSCDetId& id);
50 
51  const CSCLayer* layer_;
55 
56  private:
57 
58  bool useCalib;
62  bool useGatti;
63  float maxGattiChi2;
64 
66 
67  // Cache pointer to conditions for current event
69 
70  const std::auto_ptr<CSCFindPeakTime> peakTimeFinder_;
71 
72 
73 };
74 
75 #endif
76 
const CSCLayer * layer_
const CSCChamberSpecs * specs_
float findWireBx(const std::vector< int > &timeBinsOn, float tpeak, const CSCDetId &id)
void setConditions(const CSCRecoConditions *reco)
Pass pointer to conditions data onwards.
CSCXonStrip_MatchGatti * xMatchGatti_
bool isHitInFiducial(const CSCLayer *layer, const CSCRecHit2D &rh)
Test if rechit is in fiducial volume.
const CSCRecoConditions * recoConditions_
const CSCLayerGeometry * layergeom_
const std::auto_ptr< CSCFindPeakTime > peakTimeFinder_
CSCRecHit2D hitFromStripAndWire(const CSCDetId &id, const CSCLayer *layer, const CSCWireHit &wHit, const CSCStripHit &sHit)
Make 2D hits when have both wire and strip hit available in same layer.
CSCMake2DRecHit(const edm::ParameterSet &)