src
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
}
mps_fire.i
i
Definition:
mps_fire.py:429
edm::SortedCollection< CaloTower >
CaloTowerDefs.h
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
CaloTower.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition:
SortedCollection.h:80
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
cms::cuda::assert
assert(be >=bs)
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
DDAxes::phi
FWCaloTowerSliceSelector.h
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWCaloTowerSliceSelector.cc:24
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
~FWCaloTowerSliceSelector() override
Definition:
FWCaloTowerSliceSelector.cc:26
FWCaloTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWCaloTowerSliceSelector.cc:28
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
HLT_2024v14_cff.towers
towers
Definition:
HLT_2024v14_cff.py:60003
l1tHGCalTowerProducer_cfi.tower
tower
Definition:
l1tHGCalTowerProducer_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.14