Main Page
Namespaces
Classes
Package Documentation
CaloOnlineTools
EcalTools
plugins
EcalTPGAnalyzer.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Class: EcalTPGAnalyzer
4
//
5
//
6
// Original Author: Pascal Paganini
7
//
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
10
#include "
FWCore/Framework/interface/Event.h
"
11
#include "
FWCore/Framework/interface/MakerMacros.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
13
#include "
Geometry/CaloTopology/interface/EcalTrigTowerConstituentsMap.h
"
14
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
15
#include <vector>
16
#include <string>
17
#include <TFile.h>
18
#include <TTree.h>
19
20
class
CaloSubdetectorGeometry
;
21
22
23
// Auxiliary class
24
class
towerEner
{
25
public
:
26
float
eRec_
;
27
int
tpgEmul_
[5] ;
28
int
tpgADC_
;
29
int
iphi_
,
ieta_
,
nbXtal_
;
30
towerEner
()
31
: eRec_(0), tpgADC_(0),
32
iphi_(-999), ieta_(-999), nbXtal_(0)
33
{
34
for
(
int
i
=0 ;
i
<5 ;
i
++) tpgEmul_[
i
] = 0 ;
35
}
36
};
37
38
39
class
EcalTPGAnalyzer
:
public
edm::EDAnalyzer
{
40
public
:
41
explicit
EcalTPGAnalyzer
(
const
edm::ParameterSet
&);
42
~
EcalTPGAnalyzer
()
override
;
43
void
analyze
(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
44
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
45
46
private
:
47
struct
EcalTPGVariables
48
{
49
// event variables
50
unsigned
int
runNb
;
51
unsigned
int
evtNb
;
52
unsigned
int
bxNb
;
53
unsigned
int
orbitNb
;
54
unsigned
int
nbOfActiveTriggers
;
55
int
activeTriggers[128] ;
56
57
// tower variables
58
unsigned
int
nbOfTowers
;
//max 4032 EB+EE
59
int
ieta[4032] ;
60
int
iphi[4032] ;
61
int
nbOfXtals[4032] ;
62
int
rawTPData[4032] ;
63
int
rawTPEmul1[4032] ;
64
int
rawTPEmul2[4032] ;
65
int
rawTPEmul3[4032] ;
66
int
rawTPEmul4[4032] ;
67
int
rawTPEmul5[4032] ;
68
float
eRec[4032] ;
69
} ;
70
71
private
:
72
TFile *
file_
;
73
TTree *
tree_
;
74
EcalTPGVariables
treeVariables_
;
75
76
edm::InputTag
tpCollection_
;
77
edm::InputTag
tpEmulatorCollection_
;
78
edm::InputTag
digiCollectionEB_
;
79
edm::InputTag
digiCollectionEE_
;
80
std::string
gtRecordCollectionTag_
;
81
82
bool
allowTP_
;
83
bool
useEE_
;
84
bool
print_
;
85
86
const
CaloSubdetectorGeometry
*
theEndcapGeometry_
;
87
const
CaloSubdetectorGeometry
*
theBarrelGeometry_
;
88
edm::ESHandle<EcalTrigTowerConstituentsMap>
eTTmap_
;
89
90
91
};
92
EcalTPGAnalyzer::gtRecordCollectionTag_
std::string gtRecordCollectionTag_
Definition:
EcalTPGAnalyzer.h:80
towerEner::iphi_
int iphi_
Definition:
EcalTPGAnalyzer.h:29
EcalTPGAnalyzer::EcalTPGVariables::runNb
unsigned int runNb
Definition:
EcalTPGAnalyzer.h:50
towerEner::tpgEmul_
int tpgEmul_[5]
Definition:
EcalTPGAnalyzer.h:27
mps_fire.i
i
Definition:
mps_fire.py:277
towerEner
Definition:
EcalTPGAnalyzer.h:24
towerEner::nbXtal_
int nbXtal_
Definition:
EcalTPGAnalyzer.h:29
EcalTPGAnalyzer::theEndcapGeometry_
const CaloSubdetectorGeometry * theEndcapGeometry_
Definition:
EcalTPGAnalyzer.h:86
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
MakerMacros.h
EcalTPGAnalyzer::EcalTPGVariables::bxNb
unsigned int bxNb
Definition:
EcalTPGAnalyzer.h:52
EcalTPGAnalyzer
Definition:
EcalTPGAnalyzer.h:39
towerEner::eRec_
float eRec_
Definition:
EcalTPGAnalyzer.h:26
EcalTPGAnalyzer::print_
bool print_
Definition:
EcalTPGAnalyzer.h:84
EcalTPGAnalyzer::EcalTPGVariables::evtNb
unsigned int evtNb
Definition:
EcalTPGAnalyzer.h:51
towerEner::towerEner
towerEner()
Definition:
EcalTPGAnalyzer.h:30
ParameterSet.h
EcalTPGAnalyzer::eTTmap_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
Definition:
EcalTPGAnalyzer.h:88
EcalTPGAnalyzer::treeVariables_
EcalTPGVariables treeVariables_
Definition:
EcalTPGAnalyzer.h:74
EcalTPGAnalyzer::digiCollectionEB_
edm::InputTag digiCollectionEB_
Definition:
EcalTPGAnalyzer.h:78
EcalTPGAnalyzer::allowTP_
bool allowTP_
Definition:
EcalTPGAnalyzer.h:82
edm::ESHandle< EcalTrigTowerConstituentsMap >
EcalTrigTowerConstituentsMap.h
CaloSubdetectorGeometry.h
EcalTPGAnalyzer::tpEmulatorCollection_
edm::InputTag tpEmulatorCollection_
Definition:
EcalTPGAnalyzer.h:77
ESHandle.h
EcalTPGAnalyzer::tpCollection_
edm::InputTag tpCollection_
Definition:
EcalTPGAnalyzer.h:76
edm::EventSetup
Definition:
EventSetup.h:51
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
EDAnalyzer.h
EcalTPGAnalyzer::theBarrelGeometry_
const CaloSubdetectorGeometry * theBarrelGeometry_
Definition:
EcalTPGAnalyzer.h:87
EcalTPGAnalyzer::file_
TFile * file_
Definition:
EcalTPGAnalyzer.h:72
EcalTPGAnalyzer::EcalTPGVariables::nbOfActiveTriggers
unsigned int nbOfActiveTriggers
Definition:
EcalTPGAnalyzer.h:54
EcalTPGAnalyzer::EcalTPGVariables::orbitNb
unsigned int orbitNb
Definition:
EcalTPGAnalyzer.h:53
EcalTPGAnalyzer::EcalTPGVariables::nbOfTowers
unsigned int nbOfTowers
Definition:
EcalTPGAnalyzer.h:58
edm::InputTag
Definition:
InputTag.h:15
towerEner::tpgADC_
int tpgADC_
Definition:
EcalTPGAnalyzer.h:28
EcalTPGAnalyzer::useEE_
bool useEE_
Definition:
EcalTPGAnalyzer.h:83
edm::ParameterSet
Definition:
ParameterSet.h:36
towerEner::ieta_
int ieta_
Definition:
EcalTPGAnalyzer.h:29
EcalTPGAnalyzer::tree_
TTree * tree_
Definition:
EcalTPGAnalyzer.h:73
edm::Event
Definition:
Event.h:70
EcalTPGAnalyzer::EcalTPGVariables
Definition:
EcalTPGAnalyzer.h:47
EcalTPGAnalyzer::digiCollectionEE_
edm::InputTag digiCollectionEE_
Definition:
EcalTPGAnalyzer.h:79
analyze
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::Run
Definition:
Run.h:44
Generated for CMSSW Reference Manual by
1.8.11