Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
virtual
~CaloExtractor
(){}
28
29
virtual
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
);
30
virtual
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Track
& track)
const
;
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::deposit
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
CaloExtractor.cc:92
muonisolation::CaloExtractor::theDR_Veto_H
double theDR_Veto_H
Definition:
CaloExtractor.h:48
muonisolation::CaloExtractor::theThreshold_H
double theThreshold_H
Definition:
CaloExtractor.h:46
muonisolation::CaloExtractor
Definition:
CaloExtractor.h:20
muonisolation::CaloExtractor::fillVetos
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
Definition:
CaloExtractor.cc:40
muonisolation::CaloExtractor::theCaloTowerCollectionToken
edm::EDGetTokenT< CaloTowerCollection > theCaloTowerCollectionToken
Definition:
CaloExtractor.h:37
muonisolation::CaloExtractor::noiseEcal
double noiseEcal(const CaloTower &tower) const
Definition:
CaloExtractor.cc:293
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:25
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:13
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:90
TrackFwd.h
muonisolation::CaloExtractor::theWeight_H
double theWeight_H
Definition:
CaloExtractor.h:44
muonisolation::CaloExtractor::vertexConstraintFlag_Z
bool vertexConstraintFlag_Z
Definition:
CaloExtractor.h:51
muonisolation::CaloExtractor::~CaloExtractor
virtual ~CaloExtractor()
Definition:
CaloExtractor.h:27
edm::EDGetTokenT
Definition:
EDGetToken.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
trackingTruthProducerFastSim_cfi.muon
tuple muon
Definition:
trackingTruthProducerFastSim_cfi.py:10
muonisolation::CaloExtractor::theDR_Veto_E
double theDR_Veto_E
Definition:
CaloExtractor.h:47
edm::EventSetup
Definition:
EventSetup.h:44
muonisolation::CaloExtractor::noiseHcal
double noiseHcal(const CaloTower &tower) const
Definition:
CaloExtractor.cc:300
CaloTower
Definition:
CaloTower.h:26
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
testEve_cfg.tracks
tuple tracks
Definition:
testEve_cfg.py:39
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:200
IsoDeposit.h
IsoDepositExtractor.h
muonisolation::CaloExtractor::theThreshold_E
double theThreshold_E
Definition:
CaloExtractor.h:45
Point3DBase< float, GlobalTag >
edm::ParameterSet
Definition:
ParameterSet.h:35
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:59
Track.h
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:32
GlobalPoint.h
muonisolation::CaloExtractor::theVetoCollection
std::vector< DetId > theVetoCollection
Definition:
CaloExtractor.h:54
Generated for CMSSW Reference Manual by
1.8.5