Fireworks
Calo
plugins
FWCaloTowerSliceSelector.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Calo
4
// Class : FWCaloTowerSliceSelector
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Alja Mrak-Tadel
10
// Created: Wed Jun 2 17:36:23 CEST 2010
11
//
12
13
// system include files
14
15
// user include files
16
#include "TH2F.h"
17
#include "TMath.h"
18
#include "
Fireworks/Calo/plugins/FWCaloTowerSliceSelector.h
"
19
#include "
Fireworks/Core/interface/FWModelChangeManager.h
"
20
#include "
Fireworks/Core/interface/FWEventItem.h
"
21
#include "
DataFormats/CaloTowers/interface/CaloTower.h
"
22
#include "
DataFormats/CaloTowers/interface/CaloTowerDefs.h
"
23
24
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
(TH2F*
h
,
const
FWEventItem
*
i
) :
FWHistSliceSelector
(
h
,
i
) {}
25
26
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
() {}
27
28
void
FWCaloTowerSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
{
29
const
CaloTowerCollection
*
towers
=
nullptr
;
30
m_item
->
get
(
towers
);
31
assert
(
nullptr
!=
towers
);
32
CaloTowerCollection::const_iterator
tower
=
towers
->begin();
33
std::advance(
tower
, itemIdx);
34
35
eta
=
tower
->eta();
36
phi
=
tower
->phi();
37
}
HLT_FULL_cff.towers
towers
Definition:
HLT_FULL_cff.py:36362
FWModelChangeManager.h
mps_fire.i
i
Definition:
mps_fire.py:428
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition:
SortedCollection.h:80
CaloTower.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:4
cms::cuda::assert
assert(be >=bs)
edm::SortedCollection< CaloTower >
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
CaloTowerDefs.h
h
PVValHelper::phi
Definition:
PVValidationHelpers.h:68
FWCaloTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWCaloTowerSliceSelector.cc:28
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWEventItem.h
FWCaloTowerSliceSelector.h
DDAxes::phi
FWEventItem
Definition:
FWEventItem.h:56
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWCaloTowerSliceSelector.cc:24
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
~FWCaloTowerSliceSelector() override
Definition:
FWCaloTowerSliceSelector.cc:26
Generated for CMSSW Reference Manual by
1.8.16