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