Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/CaloTowerFwd.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
=0;
38
m_item
->
get
(towers);
39
assert
(0!=towers);
40
CaloTowerCollection::const_iterator
tower = towers->
begin
();
41
std::advance(tower, itemIdx);
42
43
eta = tower->eta();
44
phi = tower->phi();
45
}
i
int i
Definition:
DBlmapReader.cc:9
edm::SortedCollection< CaloTower >
CaloTower.h
assert
assert(m_qm.get())
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:84
edm::SortedCollection< CaloTower >::const_iterator
std::vector< CaloTower >::const_iterator const_iterator
Definition:
SortedCollection.h:82
eta
T eta() const
Definition:
Basic3DVectorLD.h:177
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:51
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
FWCaloTowerSliceSelector.h
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector
virtual ~FWCaloTowerSliceSelector()
Definition:
FWCaloTowerSliceSelector.cc:30
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
FWCaloTowerSliceSelector::FWCaloTowerSliceSelector
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWCaloTowerSliceSelector.cc:25
HLT_25ns14e33_v1_cff.towers
tuple towers
Definition:
HLT_25ns14e33_v1_cff.py:8669
edm::SortedCollection::begin
const_iterator begin() const
Definition:
SortedCollection.h:303
FWCaloTowerSliceSelector::getItemEntryEtaPhi
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
Definition:
FWCaloTowerSliceSelector.cc:35
phi
Definition:
DDAxes.h:10
CaloTowerFwd.h
Generated for CMSSW Reference Manual by
1.8.5