CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloExtractor.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_CaloExtractor_H
2 #define MuonIsolation_CaloExtractor_H
3 
4 #include <string>
5 
7 
11 
13 
15 
16 namespace muonisolation {
17 
19 
20 public:
21 
23  CaloExtractor(const edm::ParameterSet& par);
24 
25  virtual ~CaloExtractor(){}
26 
27  virtual void fillVetos (const edm::Event & ev, const edm::EventSetup & evSetup, const reco::TrackCollection & tracks);
28  virtual reco::IsoDeposit deposit (const edm::Event & ev, const edm::EventSetup & evSetup, const reco::Track & track) const;
29 
31  static GlobalPoint MuonAtCaloPosition(const reco::Track& muon, const double bz, const GlobalPoint& endpos, bool fixVxy=false, bool fixVz=false);
32 
33 private:
34  // CaloTower Collection Label
36 
37  // Label of deposit
38  std::string theDepositLabel;
39 
40  // Cone cuts and thresholds
41  double theWeight_E;
42  double theWeight_H;
45  double theDR_Veto_E;
46  double theDR_Veto_H;
47  double theDR_Max;
50 
51  // Vector of calo Ids to veto
52  std::vector<DetId> theVetoCollection;
53 
54  // Determine noise for HCAL and ECAL (take some defaults for the time being)
55  double noiseEcal(const CaloTower& tower) const;
56  double noiseHcal(const CaloTower& tower) const;
57 };
58 
59 }
60 
61 #endif
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
double noiseEcal(const CaloTower &tower) const
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
edm::InputTag theCaloTowerCollectionLabel
Definition: CaloExtractor.h:35
double noiseHcal(const CaloTower &tower) const
tuple tracks
Definition: testEve_cfg.py:39
static GlobalPoint MuonAtCaloPosition(const reco::Track &muon, const double bz, const GlobalPoint &endpos, bool fixVxy=false, bool fixVz=false)
Extrapolate muons to calorimeter-object positions.
std::vector< DetId > theVetoCollection
Definition: CaloExtractor.h:52