Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Fireworks
Calo
src
thetaBins.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Calo
4
// Class : thetaBins
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Thu Dec 11 22:59:38 EST 2008
11
//
12
13
// system include files
14
#include <
math.h
>
15
16
// user include files
17
#include "
Fireworks/Calo/interface/thetaBins.h
"
18
#include "
Fireworks/Core/interface/fw3dlego_xbins.h
"
19
20
21
// NOTE:
22
// Here we assume 72 bins in phi. At high eta we have only 36 and at the
23
// very end 18 bins. These large bins are splited among smaller bins
24
// decreasing energy in each entry by factor of 2 and 4 for 36 and 18 bin
25
// cases. Other options will be implemented later
26
//
27
// http://ecal-od-software.web.cern.ch/ecal-od-software/documents/documents/cal_newedm_roadmap_v1_0.pdf
28
// Eta mapping:
29
// ieta - [-41,-1]+[1,41] - total 82 bins
30
// calo tower gives eta of the ceneter of each bin
31
// size:
32
// 0.087 - [-20,-1]+[1,20]
33
// the rest have variable size from 0.09-0.30
34
// Phi mapping:
35
// iphi - [1-72]
36
// calo tower gives phi of the center of each bin
37
// for |ieta|<=20 phi bins are all of the same size
38
// iphi 36-37 transition corresponds to 3.1 -> -3.1 transition
39
// for 20 < |ieta| < 40
40
// there are only 36 active bins corresponding to odd numbers
41
// iphi 35->37, corresponds to 3.05 -> -3.05 transition
42
// for |ieta| >= 40
43
// there are only 18 active bins 3,7,11,15 etc
44
// iphi 31 -> 35, corresponds to 2.79253 -> -3.14159 transition
45
46
namespace
fireworks {
47
std::vector<std::pair<double,double> >
48
thetaBins
()
49
{
50
const
int
n_bins =
fw3dlego::xbins_n
- 1;
51
std::vector<std::pair<double,double> >
thetaBins
(n_bins);
52
for
(
int
i
= 0;
i
< n_bins; ++
i
)
53
{
54
thetaBins[
i
].first = 2*atan(
exp
(-
fw3dlego::xbins
[
i
]) );
55
thetaBins[
i
].second = 2*atan(
exp
(-
fw3dlego::xbins
[i+1]) );
56
}
57
return
thetaBins
;
58
}
59
}
math.h
i
int i
Definition:
DBlmapReader.cc:9
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1088
fw3dlego_xbins.h
thetaBins.h
fw3dlego::xbins
const double xbins[]
Definition:
fw3dlego_xbins.cc:17
fireworks::thetaBins
std::vector< std::pair< double, double > > thetaBins()
Definition:
thetaBins.cc:48
fw3dlego::xbins_n
const int xbins_n
Definition:
fw3dlego_xbins.cc:16
Generated for CMSSW Reference Manual by
1.8.5