CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoMET/METAlgorithms/interface/CSCHaloAlgo.h

Go to the documentation of this file.
00001 #ifndef RECOMET_METALGORITHMS_CSCHALOALGO_H
00002 #define RECOMET_METALGORITHMS_CSCHALOALGO_H
00003 #include "DataFormats/METReco/interface/CSCHaloData.h"
00004 
00005 /*
00006   [class]:  CSCHaloAlgo
00007   [authors]: R. Remington, The University of Florida
00008   [description]: Algorithm to calculate quantities relevant to CSCHaloData object
00009   [date]: October 15, 2009
00010 */
00011 
00012 #include "CondFormats/CSCObjects/interface/CSCDBCrosstalk.h"
00013 #include "CondFormats/CSCObjects/interface/CSCDBGains.h"
00014 #include "CondFormats/CSCObjects/interface/CSCDBNoiseMatrix.h"
00015 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h"
00016 #include "CondFormats/DataRecord/interface/CSCDBCrosstalkRcd.h"
00017 #include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h"
00018 #include "CondFormats/DataRecord/interface/CSCDBNoiseMatrixRcd.h"
00019 #include "CondFormats/DataRecord/interface/CSCDBPedestalsRcd.h"
00020 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h"
00021 #include "DataFormats/CSCDigi/interface/CSCWireDigi.h"
00022 #include "DataFormats/CSCDigi/interface/CSCWireDigiCollection.h"
00023 #include "DataFormats/CSCDigi/interface/CSCStripDigi.h"
00024 #include "DataFormats/CSCDigi/interface/CSCStripDigiCollection.h"
00025 #include "DataFormats/CSCDigi/interface/CSCComparatorDigi.h"
00026 #include "DataFormats/CSCDigi/interface/CSCComparatorDigiCollection.h"
00027 #include "DataFormats/CSCDigi/interface/CSCALCTDigi.h"
00028 #include "DataFormats/CSCDigi/interface/CSCALCTDigiCollection.h"
00029 #include "DataFormats/CSCRecHit/interface/CSCRecHit2D.h"
00030 #include "DataFormats/CSCRecHit/interface/CSCSegmentCollection.h"
00031 #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
00032 #include "DataFormats/CSCRecHit/interface/CSCSegment.h"
00033 #include "DataFormats/GeometrySurface/interface/Cylinder.h"
00034 #include "DataFormats/GeometrySurface/interface/Plane.h"
00035 #include "DataFormats/GeometrySurface/interface/Cone.h"
00036 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00037 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
00038 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
00039 #include "DataFormats/GeometryVector/interface/LocalVector.h"
00040 #include "DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h"
00041 #include "DataFormats/L1CSCTrackFinder/interface/L1CSCStatusDigiCollection.h"
00042 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h"
00043 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutRecord.h"
00044 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h"
00045 #include "DataFormats/MuonDetId/interface/CSCIndexer.h"
00046 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
00047 #include "DataFormats/MuonDetId/interface/RPCDetId.h"
00048 #include "DataFormats/MuonDetId/interface/DTWireId.h"
00049 #include "DataFormats/MuonReco/interface/MuonFwd.h"
00050 #include "DataFormats/MuonReco/interface/Muon.h"
00051 #include "DataFormats/TrackingRecHit/interface/RecSegment.h"
00052 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h"
00053 #include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h"
00054 #include "DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2DCollection.h"
00055 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00056 #include "DataFormats/TrackReco/interface/Track.h"
00057 
00058 #include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h"
00059 #include "Geometry/CSCGeometry/interface/CSCGeometry.h"
00060 #include "Geometry/CSCGeometry/interface/CSCChamber.h"
00061 #include "Geometry/CSCGeometry/interface/CSCLayer.h"
00062 #include "Geometry/CSCGeometry/interface/CSCLayerGeometry.h"
00063 #include "L1Trigger/CSCTrackFinder/interface/CSCSectorReceiverLUT.h"
00064 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
00065 #include "MagneticField/Engine/interface/MagneticField.h"
00066 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h"
00067 #include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h"
00068 #include "RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHitBuilder.h"
00069 #include "RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHit.h"
00070 #include "TrackingTools/GeomPropagators/interface/Propagator.h"
00071 #include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
00072 #include "TrackPropagation/SteppingHelixPropagator/interface/SteppingHelixPropagator.h"
00073 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
00074 #include "DataFormats/Common/interface/TriggerResults.h"
00075 
00076 namespace edm {
00077   class TriggerNames;
00078 }
00079 
00080 class CSCHaloAlgo {
00081 
00082  public:
00083   CSCHaloAlgo();
00084   ~CSCHaloAlgo(){}
00085   reco::CSCHaloData Calculate(const CSCGeometry& TheCSCGeometry,edm::Handle<reco::TrackCollection>& TheCSCTracks, 
00086                               edm::Handle<reco::MuonCollection>& TheMuons, edm::Handle<CSCSegmentCollection>& TheCSCSegments, 
00087                               edm::Handle<CSCRecHit2DCollection>& TheCSCRecHits,edm::Handle < L1MuGMTReadoutCollection >& TheL1GMTReadout,
00088                               edm::Handle<edm::TriggerResults>& TheHLTResults, const edm::TriggerNames * triggerNames, 
00089                               const edm::Handle<CSCALCTDigiCollection>& TheALCTs);
00090 
00091   std::vector<edm::InputTag> vIT_HLTBit;
00092 
00093   void SetDetaThreshold(float x ){ deta_threshold = x;}
00094   void SetMinMaxInnerRadius(float min, float max){ min_inner_radius = min; max_inner_radius = max;}
00095   void SetMinMaxOuterRadius(float min, float max) { min_outer_radius = min; max_outer_radius = max;}
00096   void SetDphiThreshold(float x) { dphi_threshold = x;}
00097   void SetNormChi2Threshold(float x) { norm_chi2_threshold = x;}
00098   void SetRecHitTime0(float x) { recHit_t0 = x;}
00099   void SetRecHitTimeWindow(float x) { recHit_twindow = x; }
00100   void SetExpectedBX(int x) { expected_BX = x ;}
00101   void SetMinMaxOuterMomentumTheta(float min , float max){ min_outer_theta = min;  max_outer_theta = max;}
00102   void SetMatchingDPhiThreshold(float x) { matching_dphi_threshold = x;}
00103   void SetMatchingDEtaThreshold(float x) { matching_deta_threshold = x;}
00104   void SetMatchingDWireThreshold(int x) { matching_dwire_threshold = x;}
00105 
00106  private:
00107   float deta_threshold;
00108   float max_outer_theta;
00109   float min_outer_theta;
00110   float min_inner_radius;
00111   float max_inner_radius;
00112   float min_outer_radius;
00113   float max_outer_radius;
00114   float dphi_threshold;
00115   float norm_chi2_threshold;
00116   float recHit_t0;
00117   float recHit_twindow;
00118   int expected_BX;
00119   float matching_dphi_threshold;
00120   float matching_deta_threshold;
00121   int matching_dwire_threshold;
00122 
00123 };
00124 
00125 #endif