CMS 3D CMS Logo

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
muonisolation::CaloExtractor::noiseEcal
double noiseEcal(const CaloTower &tower) const
Definition: CaloExtractor.cc:265
muonisolation::CaloExtractor::theDepositLabel
std::string theDepositLabel
Definition: CaloExtractor.h:46
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
muon
Definition: MuonCocktails.h:17
edm::EDGetTokenT
Definition: EDGetToken.h:33
muonisolation::CaloExtractor::theCaloGeomToken
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > theCaloGeomToken
Definition: CaloExtractor.h:48
muonisolation::CaloExtractor::theThreshold_H
double theThreshold_H
Definition: CaloExtractor.h:55
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
muonisolation::CaloExtractor::CaloExtractor
CaloExtractor()
Definition: CaloExtractor.h:27
Track.h
TrackFwd.h
muonisolation::CaloExtractor::theThreshold_E
double theThreshold_E
Definition: CaloExtractor.h:54
muonisolation::CaloExtractor::theDR_Max
double theDR_Max
Definition: CaloExtractor.h:58
muonisolation::CaloExtractor::theFieldToken
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
Definition: CaloExtractor.h:49
muonisolation::CaloExtractor::theVetoCollection
std::vector< DetId > theVetoCollection
Definition: CaloExtractor.h:63
muonisolation::CaloExtractor::theDR_Veto_E
double theDR_Veto_E
Definition: CaloExtractor.h:56
reco::Track
Definition: Track.h:27
IdealMagneticFieldRecord.h
Point3DBase< float, GlobalTag >
IsoDeposit.h
CaloGeometryRecord.h
muonisolation::CaloExtractor::theWeight_E
double theWeight_E
Definition: CaloExtractor.h:52
IsoDepositExtractor.h
edm::ParameterSet
Definition: ParameterSet.h:47
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
muonisolation::CaloExtractor::theWeight_H
double theWeight_H
Definition: CaloExtractor.h:53
muonisolation::CaloExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
Definition: CaloExtractor.cc:88
muonisolation::CaloExtractor::noiseHcal
double noiseHcal(const CaloTower &tower) const
Definition: CaloExtractor.cc:273
muonisolation::CaloExtractor::theCaloTowerCollectionToken
edm::EDGetTokenT< CaloTowerCollection > theCaloTowerCollectionToken
Definition: CaloExtractor.h:43
CaloTower
Definition: CaloTower.h:26
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
muonisolation::CaloExtractor
Definition: CaloExtractor.h:25
muonisolation::CaloExtractor::vertexConstraintFlag_XY
bool vertexConstraintFlag_XY
Definition: CaloExtractor.h:59
muonisolation
Definition: CandViewExtractor.h:16
CaloTowerCollection.h
muonisolation::CaloExtractor::vertexConstraintFlag_Z
bool vertexConstraintFlag_Z
Definition: CaloExtractor.h:60
muonisolation::CaloExtractor::theDR_Veto_H
double theDR_Veto_H
Definition: CaloExtractor.h:57
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
CaloGeometry.h
muonisolation::CaloExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition: CaloExtractor.cc:33
reco::IsoDeposit
Definition: IsoDeposit.h:49
ConsumesCollector.h
reco::isodeposit::IsoDepositExtractor
Definition: IsoDepositExtractor.h:24
edm::Event
Definition: Event.h:73
muonisolation::CaloExtractor::MuonAtCaloPosition
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.
Definition: CaloExtractor.cc:182
GlobalPoint.h
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonisolation::CaloExtractor::~CaloExtractor
~CaloExtractor() override
Definition: CaloExtractor.h:30