Main Page
Namespaces
Classes
Package Documentation
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
namespace
muonisolation
{
19
20
class
CaloExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
21
public
:
22
CaloExtractor
(){};
23
CaloExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC);
24
25
~CaloExtractor
()
override
{}
26
27
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
)
override
;
28
reco::IsoDeposit
deposit
(
const
edm::Event
& ev,
29
const
edm::EventSetup
& evSetup,
30
const
reco::Track
&
track
)
const override
;
31
33
static
GlobalPoint
MuonAtCaloPosition
(
34
const
reco::Track
&
muon
,
const
double
bz,
const
GlobalPoint
& endpos,
bool
fixVxy =
false
,
bool
fixVz =
false
);
35
36
private
:
37
// CaloTower Collection Label
38
edm::EDGetTokenT<CaloTowerCollection>
theCaloTowerCollectionToken
;
39
40
// Label of deposit
41
std::string
theDepositLabel
;
42
43
// Cone cuts and thresholds
44
double
theWeight_E
;
45
double
theWeight_H
;
46
double
theThreshold_E
;
47
double
theThreshold_H
;
48
double
theDR_Veto_E
;
49
double
theDR_Veto_H
;
50
double
theDR_Max
;
51
bool
vertexConstraintFlag_XY
;
52
bool
vertexConstraintFlag_Z
;
53
54
// Vector of calo Ids to veto
55
std::vector<DetId>
theVetoCollection
;
56
57
// Determine noise for HCAL and ECAL (take some defaults for the time being)
58
double
noiseEcal
(
const
CaloTower
&
tower
)
const
;
59
double
noiseHcal
(
const
CaloTower
&
tower
)
const
;
60
};
61
62
}
// namespace muonisolation
63
64
#endif
CaloTowerCollection.h
reco::IsoDeposit
Definition:
IsoDeposit.h:49
muonisolation::CaloExtractor::theDR_Veto_H
double theDR_Veto_H
Definition:
CaloExtractor.h:49
muonisolation::CaloExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
Definition:
CaloExtractor.cc:93
muonisolation::CaloExtractor::theThreshold_H
double theThreshold_H
Definition:
CaloExtractor.h:47
muonisolation::CaloExtractor
Definition:
CaloExtractor.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
muonisolation::CaloExtractor::theCaloTowerCollectionToken
edm::EDGetTokenT< CaloTowerCollection > theCaloTowerCollectionToken
Definition:
CaloExtractor.h:38
muonisolation::CaloExtractor::noiseEcal
double noiseEcal(const CaloTower &tower) const
Definition:
CaloExtractor.cc:272
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:24
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrackFwd.h
muon
Definition:
MuonCocktails.h:17
muonisolation::CaloExtractor::theWeight_H
double theWeight_H
Definition:
CaloExtractor.h:45
muonisolation::CaloExtractor::vertexConstraintFlag_Z
bool vertexConstraintFlag_Z
Definition:
CaloExtractor.h:52
edm::EDGetTokenT
Definition:
EDGetToken.h:33
PDWG_EXOHSCP_cff.tracks
tracks
Definition:
PDWG_EXOHSCP_cff.py:28
muonisolation::CaloExtractor::theDR_Veto_E
double theDR_Veto_E
Definition:
CaloExtractor.h:48
muonisolation
Definition:
CandViewExtractor.h:16
edm::EventSetup
Definition:
EventSetup.h:57
muonisolation::CaloExtractor::noiseHcal
double noiseHcal(const CaloTower &tower) const
Definition:
CaloExtractor.cc:280
CaloTower
Definition:
CaloTower.h:26
muonisolation::CaloExtractor::theDR_Max
double theDR_Max
Definition:
CaloExtractor.h:50
muonisolation::CaloExtractor::CaloExtractor
CaloExtractor()
Definition:
CaloExtractor.h:22
muonisolation::CaloExtractor::theWeight_E
double theWeight_E
Definition:
CaloExtractor.h:44
muonisolation::CaloExtractor::~CaloExtractor
~CaloExtractor() override
Definition:
CaloExtractor.h:25
reco::Track
Definition:
Track.h:27
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:189
IsoDeposit.h
IsoDepositExtractor.h
muonisolation::CaloExtractor::theThreshold_E
double theThreshold_E
Definition:
CaloExtractor.h:46
Point3DBase< float, GlobalTag >
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:3
edm::ParameterSet
Definition:
ParameterSet.h:36
muonisolation::CaloExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition:
CaloExtractor.cc:36
muonisolation::CaloExtractor::vertexConstraintFlag_XY
bool vertexConstraintFlag_XY
Definition:
CaloExtractor.h:51
muonisolation::CaloExtractor::theDepositLabel
std::string theDepositLabel
Definition:
CaloExtractor.h:41
edm::Event
Definition:
Event.h:72
Track.h
ConsumesCollector.h
HLT_2018_cff.track
track
Definition:
HLT_2018_cff.py:10339
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
GlobalPoint.h
muonisolation::CaloExtractor::theVetoCollection
std::vector< DetId > theVetoCollection
Definition:
CaloExtractor.h:55
Generated for CMSSW Reference Manual by
1.8.11