Main Page
Namespaces
Classes
Package Documentation
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
25
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
(TH2F*
h
,
const
FWEventItem
*
i
):
26
FWHistSliceSelector
(h, i)
27
{
28
}
29
30
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
()
31
{
32
}
33
34
void
35
FWCaloTowerSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
36
{
37
const
CaloTowerCollection
* towers=
nullptr
;
38
m_item
->
get
(towers);
39
assert(
nullptr
!=towers);
40
CaloTowerCollection::const_iterator
tower = towers->
begin
();
41
std::advance(tower, itemIdx);
42
43
eta = tower->eta();
44
phi = tower->phi();
45
}
mps_fire.i
i
Definition:
mps_fire.py:269
edm::SortedCollection< CaloTower >
CaloTowerDefs.h
h
Definition:
CSCDQM_HistoNames.h:23
CaloTower.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:85
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition:
SortedCollection.h:82
PVValHelper::eta
Definition:
PVValidationHelpers.h:49
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:51
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
DDAxes::phi
FWCaloTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWCaloTowerSliceSelector.cc:35
FWCaloTowerSliceSelector.h
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWCaloTowerSliceSelector.cc:25
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
~FWCaloTowerSliceSelector() override
Definition:
FWCaloTowerSliceSelector.cc:30
edm::SortedCollection::begin
const_iterator begin() const
Definition:
SortedCollection.h:303
Generated for CMSSW Reference Manual by
1.8.11