Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimCalorimetry
EcalTrigPrimProducers
plugins
EcalTrigPrimAnalyzerMIPs.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Class: EcalTrigPrimAnalyzerMIPs
4
//
5
//
6
// Original Author: Pascal Paganini
7
//
8
9
10
// system include files
11
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
12
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
FWCore/Framework/interface/MakerMacros.h
"
15
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
#include <vector>
18
#include <string>
19
#include <TFile.h>
20
#include <TTree.h>
21
22
//
23
// class declaration
24
//
25
26
class
towerEner
{
27
public
:
28
float
eRec_
,
mean_
,
tpgGeV_
;
29
float
data_
[10] ;
30
int
tpgADC_
,
tpgEmul0_
,
tpgEmul1_
,
tpgEmul2_
,
tpgEmul3_
,
tpgEmul4_
;
31
int
iphi_
,
ieta_
,
ttf_
,
fg_
,
nXtal_
;
32
float
sample_
;
33
towerEner
()
34
:
eRec_
(0),
mean_
(0),
tpgGeV_
(0),
tpgADC_
(0),
35
tpgEmul0_
(0),
tpgEmul1_
(0),
tpgEmul2_
(0),
tpgEmul3_
(0),
tpgEmul4_
(0),
36
iphi_
(-999),
ieta_
(-999),
ttf_
(-999),
fg_
(-999),
nXtal_
(0),
sample_
(0)
37
{
38
for
(
int
i
=0 ;
i
<10 ;
i
++)
data_
[
i
] = 0. ;
39
}
40
};
41
42
43
class
EcalTrigPrimAnalyzerMIPs
:
public
edm::EDAnalyzer
{
44
public
:
45
explicit
EcalTrigPrimAnalyzerMIPs
(
const
edm::ParameterSet
&);
46
~EcalTrigPrimAnalyzerMIPs
();
47
48
49
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
50
51
private
:
52
53
TFile *
histfile_
;
54
55
TTree *
tree_
;
56
int
iphi_
,
ieta_
,
tpgADC_
,
ttf_
,
fg_
,
57
tpgEmul0_
,
tpgEmul1_
,
tpgEmul2_
,
tpgEmul3_
,
tpgEmul4_
,
58
nevt_
,
nXtal_
;
59
float
eRec_
,
mean_
,
tpgGeV_
,
sample_
;
60
float
data0_
,
data1_
,
data2_
,
data3_
,
data4_
,
data5_
,
data6_
,
data7_
,
data8_
,
data9_
;
61
62
TTree *
fedtree_
;
63
int
fedId_
,
fedSize_
;
64
65
TTree *
treetopbot_
;
66
int
iphitop_
,
ietatop_
,
iphibot_
,
ietabot_
,
Ntop_
,
Nbot_
;
67
float
Etop_
,
Ebot_
;
68
69
std::string
label_
;
70
std::string
producer_
;
71
std::string
digi_label_
;
72
std::string
digi_producer_
;
73
std::string
emul_label_
;
74
std::string
emul_producer_
;
75
76
};
77
EcalTrigPrimAnalyzerMIPs::fedtree_
TTree * fedtree_
Definition:
EcalTrigPrimAnalyzerMIPs.h:62
EcalTrigPrimAnalyzerMIPs::treetopbot_
TTree * treetopbot_
Definition:
EcalTrigPrimAnalyzerMIPs.h:65
EcalTrigPrimAnalyzerMIPs::fedSize_
int fedSize_
Definition:
EcalTrigPrimAnalyzerMIPs.h:63
EcalTrigPrimAnalyzerMIPs::~EcalTrigPrimAnalyzerMIPs
~EcalTrigPrimAnalyzerMIPs()
Definition:
EcalTrigPrimAnalyzerMIPs.cc:109
towerEner::iphi_
int iphi_
Definition:
EcalTPGAnalyzer.h:29
EcalTrigPrimAnalyzerMIPs::ieta_
int ieta_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
i
int i
Definition:
DBlmapReader.cc:9
EcalTrigPrimAnalyzerMIPs::sample_
float sample_
Definition:
EcalTrigPrimAnalyzerMIPs.h:59
EcalTrigPrimAnalyzerMIPs::iphibot_
int iphibot_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
EcalTrigPrimAnalyzerMIPs::data0_
float data0_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::data1_
float data1_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::eRec_
float eRec_
Definition:
EcalTrigPrimAnalyzerMIPs.h:59
EcalTrigPrimAnalyzerMIPs::iphitop_
int iphitop_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
towerEner
Definition:
EcalTPGAnalyzer.h:24
towerEner::fg_
int fg_
Definition:
EcalTrigPrimAnalyzerMIPs.h:31
EcalTrigPrimAnalyzerMIPs::mean_
float mean_
Definition:
EcalTrigPrimAnalyzerMIPs.h:59
EcalTrigPrimAnalyzerMIPs::data6_
float data6_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::tpgEmul2_
int tpgEmul2_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
towerEner::tpgEmul1_
int tpgEmul1_
Definition:
EcalTrigPrimAnalyzerMIPs.h:30
EcalTrigPrimAnalyzerMIPs::tpgADC_
int tpgADC_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::nevt_
int nevt_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::tpgEmul0_
int tpgEmul0_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::data8_
float data8_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::Nbot_
int Nbot_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
Event.h
EcalTrigPrimAnalyzerMIPs::ietabot_
int ietabot_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
MakerMacros.h
EcalTrigPrimAnalyzerMIPs::data5_
float data5_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
towerEner::eRec_
float eRec_
Definition:
EcalTPGAnalyzer.h:26
EcalTrigPrimAnalyzerMIPs::EcalTrigPrimAnalyzerMIPs
EcalTrigPrimAnalyzerMIPs(const edm::ParameterSet &)
Definition:
EcalTrigPrimAnalyzerMIPs.cc:47
EcalTrigPrimAnalyzerMIPs::tpgEmul1_
int tpgEmul1_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::ietatop_
int ietatop_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
EcalTrigPrimAnalyzerMIPs
Definition:
EcalTrigPrimAnalyzerMIPs.h:43
EcalTrigPrimAnalyzerMIPs::tpgEmul4_
int tpgEmul4_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
towerEner::towerEner
towerEner()
Definition:
EcalTrigPrimAnalyzerMIPs.h:33
towerEner::tpgEmul4_
int tpgEmul4_
Definition:
EcalTrigPrimAnalyzerMIPs.h:30
ParameterSet.h
EcalTrigPrimAnalyzerMIPs::nXtal_
int nXtal_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::tpgEmul3_
int tpgEmul3_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::data4_
float data4_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::digi_producer_
std::string digi_producer_
Definition:
EcalTrigPrimAnalyzerMIPs.h:72
EcalTrigPrimAnalyzerMIPs::emul_producer_
std::string emul_producer_
Definition:
EcalTrigPrimAnalyzerMIPs.h:74
EcalTrigPrimAnalyzerMIPs::data3_
float data3_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
towerEner::data_
float data_[10]
Definition:
EcalTrigPrimAnalyzerMIPs.h:29
EcalTrigPrimAnalyzerMIPs::Etop_
float Etop_
Definition:
EcalTrigPrimAnalyzerMIPs.h:67
EcalTrigPrimAnalyzerMIPs::tpgGeV_
float tpgGeV_
Definition:
EcalTrigPrimAnalyzerMIPs.h:59
EcalTrigPrimAnalyzerMIPs::fedId_
int fedId_
Definition:
EcalTrigPrimAnalyzerMIPs.h:63
edm::EventSetup
Definition:
EventSetup.h:44
EcalTrigPrimAnalyzerMIPs::data2_
float data2_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::histfile_
TFile * histfile_
Definition:
EcalTrigPrimAnalyzerMIPs.h:53
EcalTrigPrimAnalyzerMIPs::fg_
int fg_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
edm::EDAnalyzer
Definition:
EDAnalyzer.h:14
EDAnalyzer.h
towerEner::mean_
float mean_
Definition:
EcalTrigPrimAnalyzerMIPs.h:28
EcalTrigPrimAnalyzerMIPs::digi_label_
std::string digi_label_
Definition:
EcalTrigPrimAnalyzerMIPs.h:71
towerEner::tpgEmul0_
int tpgEmul0_
Definition:
EcalTrigPrimAnalyzerMIPs.h:30
EcalTrigPrimAnalyzerMIPs::iphi_
int iphi_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
towerEner::sample_
float sample_
Definition:
EcalTrigPrimAnalyzerMIPs.h:32
EcalTrigPrimAnalyzerMIPs::label_
std::string label_
Definition:
EcalTrigPrimAnalyzerMIPs.h:69
EcalTrigPrimAnalyzerMIPs::producer_
std::string producer_
Definition:
EcalTrigPrimAnalyzerMIPs.h:70
EcalTrigPrimAnalyzerMIPs::Ntop_
int Ntop_
Definition:
EcalTrigPrimAnalyzerMIPs.h:66
towerEner::ttf_
int ttf_
Definition:
EcalTrigPrimAnalyzerMIPs.h:31
EcalTrigPrimAnalyzerMIPs::data7_
float data7_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
EcalTrigPrimAnalyzerMIPs::tree_
TTree * tree_
Definition:
EcalTrigPrimAnalyzerMIPs.h:55
EcalTrigPrimAnalyzerMIPs::data9_
float data9_
Definition:
EcalTrigPrimAnalyzerMIPs.h:60
towerEner::tpgADC_
int tpgADC_
Definition:
EcalTPGAnalyzer.h:28
edm::ParameterSet
Definition:
ParameterSet.h:35
towerEner::ieta_
int ieta_
Definition:
EcalTPGAnalyzer.h:29
towerEner::tpgEmul2_
int tpgEmul2_
Definition:
EcalTrigPrimAnalyzerMIPs.h:30
EcalTrigPrimAnalyzerMIPs::emul_label_
std::string emul_label_
Definition:
EcalTrigPrimAnalyzerMIPs.h:73
edm::Event
Definition:
Event.h:50
EcalTrigPrimAnalyzerMIPs::Ebot_
float Ebot_
Definition:
EcalTrigPrimAnalyzerMIPs.h:67
towerEner::tpgGeV_
float tpgGeV_
Definition:
EcalTrigPrimAnalyzerMIPs.h:28
towerEner::tpgEmul3_
int tpgEmul3_
Definition:
EcalTrigPrimAnalyzerMIPs.h:30
EcalTrigPrimAnalyzerMIPs::ttf_
int ttf_
Definition:
EcalTrigPrimAnalyzerMIPs.h:56
EcalTrigPrimAnalyzerMIPs::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
EcalTrigPrimAnalyzerMIPs.cc:121
towerEner::nXtal_
int nXtal_
Definition:
EcalTrigPrimAnalyzerMIPs.h:31
Generated for CMSSW Reference Manual by
1.8.5