CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
9 
13 
15 
17 
22 
23 namespace muonisolation {
24 
26  public:
29 
30  ~CaloExtractor() override {}
31 
32  void fillVetos(const edm::Event& ev, const edm::EventSetup& evSetup, const reco::TrackCollection& tracks) override;
34  const edm::EventSetup& evSetup,
35  const reco::Track& track) const override;
36 
39  const reco::Track& muon, const double bz, const GlobalPoint& endpos, bool fixVxy = false, bool fixVz = false);
40 
41  private:
42  // CaloTower Collection Label
44 
45  // Label of deposit
47 
50 
51  // Cone cuts and thresholds
52  double theWeight_E;
53  double theWeight_H;
56  double theDR_Veto_E;
57  double theDR_Veto_H;
58  double theDR_Max;
61 
62  // Vector of calo Ids to veto
63  std::vector<DetId> theVetoCollection;
64 
65  // Determine noise for HCAL and ECAL (take some defaults for the time being)
66  double noiseEcal(const CaloTower& tower) const;
67  double noiseHcal(const CaloTower& tower) const;
68  };
69 
70 } // namespace muonisolation
71 
72 #endif
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > theCaloGeomToken
Definition: CaloExtractor.h:48
edm::EDGetTokenT< CaloTowerCollection > theCaloTowerCollectionToken
Definition: CaloExtractor.h:43
double noiseEcal(const CaloTower &tower) const
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
auto const & tracks
cannot be loose
bool ev
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
double noiseHcal(const CaloTower &tower) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
Definition: CaloExtractor.h:49
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.
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
std::vector< DetId > theVetoCollection
Definition: CaloExtractor.h:63