RecoMuon
MuonIsolation
plugins
CaloExtractor.h
Go to the documentation of this file.
1
#ifndef MuonIsolation_CaloExtractor_H
2
#define MuonIsolation_CaloExtractor_H
3
4
#include <string>
5
6
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
7
8
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
9
10
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
11
#include "
DataFormats/TrackReco/interface/Track.h
"
12
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
13
14
#include "
DataFormats/CaloTowers/interface/CaloTowerCollection.h
"
15
16
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
17
18
#include "
MagneticField/Engine/interface/MagneticField.h
"
19
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
20
#include "
Geometry/CaloGeometry/interface/CaloGeometry.h
"
21
#include "
Geometry/Records/interface/CaloGeometryRecord.h
"
22
23
namespace
muonisolation
{
24
25
class
CaloExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
26
public
:
27
CaloExtractor
(){};
28
CaloExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC);
29
30
~CaloExtractor
()
override
{}
31
32
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
)
override
;
33
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
34
const
edm::EventSetup
& evSetup,
35
const
reco::Track
&
track
)
const override
;
36
38
static
GlobalPoint
MuonAtCaloPosition
(
39
const
reco::Track
&
muon
,
const
double
bz,
const
GlobalPoint
& endpos,
bool
fixVxy =
false
,
bool
fixVz =
false
);
40
41
private
:
42
// CaloTower Collection Label
43
edm::EDGetTokenT<CaloTowerCollection>
theCaloTowerCollectionToken
;
44
45
// Label of deposit
46
std::string
theDepositLabel
;
47
48
const
edm::ESGetToken<CaloGeometry, CaloGeometryRecord>
theCaloGeomToken
;
49
const
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord>
theFieldToken
;
50
51
// Cone cuts and thresholds
52
double
theWeight_E
;
53
double
theWeight_H
;
54
double
theThreshold_E
;
55
double
theThreshold_H
;
56
double
theDR_Veto_E
;
57
double
theDR_Veto_H
;
58
double
theDR_Max
;
59
bool
vertexConstraintFlag_XY
;
60
bool
vertexConstraintFlag_Z
;
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
Generated for CMSSW Reference Manual by
1.8.16