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
// Auxiliary class
23
class
towerEner
{
24
public
:
25
float
eRec_
;
26
int
tpgEmul_
[5];
27
int
tpgADC_
;
28
int
iphi_
,
ieta_
,
nbXtal_
;
29
towerEner
() : eRec_(0), tpgADC_(0), iphi_(-999), ieta_(-999), nbXtal_(0) {
30
for
(
int
i
= 0;
i
< 5;
i
++)
31
tpgEmul_[
i
] = 0;
32
}
33
};
34
35
class
EcalTPGAnalyzer
:
public
edm::EDAnalyzer
{
36
public
:
37
explicit
EcalTPGAnalyzer
(
const
edm::ParameterSet
&);
38
~
EcalTPGAnalyzer
()
override
;
39
void
analyze
(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
40
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
41
42
private
:
43
struct
EcalTPGVariables
{
44
// event variables
45
unsigned
int
runNb
;
46
unsigned
int
evtNb
;
47
unsigned
int
bxNb
;
48
unsigned
int
orbitNb
;
49
unsigned
int
nbOfActiveTriggers
;
50
int
activeTriggers[128];
51
52
// tower variables
53
unsigned
int
nbOfTowers
;
//max 4032 EB+EE
54
int
ieta
[4032];
55
int
iphi
[4032];
56
int
nbOfXtals[4032];
57
int
rawTPData[4032];
58
int
rawTPEmul1[4032];
59
int
rawTPEmul2[4032];
60
int
rawTPEmul3[4032];
61
int
rawTPEmul4[4032];
62
int
rawTPEmul5[4032];
63
float
eRec[4032];
64
};
65
66
private
:
67
TFile *
file_
;
68
TTree *
tree_
;
69
EcalTPGVariables
treeVariables_
;
70
71
edm::InputTag
tpCollection_
;
72
edm::InputTag
tpEmulatorCollection_
;
73
edm::InputTag
digiCollectionEB_
;
74
edm::InputTag
digiCollectionEE_
;
75
std::string
gtRecordCollectionTag_
;
76
77
bool
allowTP_
;
78
bool
useEE_
;
79
bool
print_
;
80
81
const
CaloSubdetectorGeometry
*
theEndcapGeometry_
;
82
const
CaloSubdetectorGeometry
*
theBarrelGeometry_
;
83
edm::ESHandle<EcalTrigTowerConstituentsMap>
eTTmap_
;
84
};
EcalTPGAnalyzer::gtRecordCollectionTag_
std::string gtRecordCollectionTag_
Definition:
EcalTPGAnalyzer.h:75
towerEner::iphi_
int iphi_
Definition:
EcalTPGAnalyzer.h:28
EcalTPGAnalyzer::EcalTPGVariables::runNb
unsigned int runNb
Definition:
EcalTPGAnalyzer.h:45
towerEner::tpgEmul_
int tpgEmul_[5]
Definition:
EcalTPGAnalyzer.h:26
mps_fire.i
i
Definition:
mps_fire.py:341
towerEner
Definition:
EcalTPGAnalyzer.h:23
LEDCalibrationChannels.iphi
iphi
Definition:
LEDCalibrationChannels.py:64
towerEner::nbXtal_
int nbXtal_
Definition:
EcalTPGAnalyzer.h:28
EcalTPGAnalyzer::theEndcapGeometry_
const CaloSubdetectorGeometry * theEndcapGeometry_
Definition:
EcalTPGAnalyzer.h:81
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
MakerMacros.h
EcalTPGAnalyzer::EcalTPGVariables::bxNb
unsigned int bxNb
Definition:
EcalTPGAnalyzer.h:47
EcalTPGAnalyzer
Definition:
EcalTPGAnalyzer.h:35
towerEner::eRec_
float eRec_
Definition:
EcalTPGAnalyzer.h:25
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
EcalTPGAnalyzer::print_
bool print_
Definition:
EcalTPGAnalyzer.h:79
EcalTPGAnalyzer::EcalTPGVariables::evtNb
unsigned int evtNb
Definition:
EcalTPGAnalyzer.h:46
towerEner::towerEner
towerEner()
Definition:
EcalTPGAnalyzer.h:29
ParameterSet.h
EcalTPGAnalyzer::eTTmap_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
Definition:
EcalTPGAnalyzer.h:83
EcalTPGAnalyzer::treeVariables_
EcalTPGVariables treeVariables_
Definition:
EcalTPGAnalyzer.h:69
EcalTPGAnalyzer::digiCollectionEB_
edm::InputTag digiCollectionEB_
Definition:
EcalTPGAnalyzer.h:73
EcalTPGAnalyzer::allowTP_
bool allowTP_
Definition:
EcalTPGAnalyzer.h:77
edm::ESHandle< EcalTrigTowerConstituentsMap >
EcalTrigTowerConstituentsMap.h
CaloSubdetectorGeometry.h
EcalTPGAnalyzer::tpEmulatorCollection_
edm::InputTag tpEmulatorCollection_
Definition:
EcalTPGAnalyzer.h:72
ESHandle.h
EcalTPGAnalyzer::tpCollection_
edm::InputTag tpCollection_
Definition:
EcalTPGAnalyzer.h:71
edm::EventSetup
Definition:
EventSetup.h:57
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
EcalTPGAnalyzer::theBarrelGeometry_
const CaloSubdetectorGeometry * theBarrelGeometry_
Definition:
EcalTPGAnalyzer.h:82
EcalTPGAnalyzer::file_
TFile * file_
Definition:
EcalTPGAnalyzer.h:67
EcalTPGAnalyzer::EcalTPGVariables::nbOfActiveTriggers
unsigned int nbOfActiveTriggers
Definition:
EcalTPGAnalyzer.h:49
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
EcalTPGAnalyzer::EcalTPGVariables::orbitNb
unsigned int orbitNb
Definition:
EcalTPGAnalyzer.h:48
EcalTPGAnalyzer::EcalTPGVariables::nbOfTowers
unsigned int nbOfTowers
Definition:
EcalTPGAnalyzer.h:53
edm::InputTag
Definition:
InputTag.h:15
towerEner::tpgADC_
int tpgADC_
Definition:
EcalTPGAnalyzer.h:27
EcalTPGAnalyzer::useEE_
bool useEE_
Definition:
EcalTPGAnalyzer.h:78
edm::ParameterSet
Definition:
ParameterSet.h:36
towerEner::ieta_
int ieta_
Definition:
EcalTPGAnalyzer.h:28
EcalTPGAnalyzer::tree_
TTree * tree_
Definition:
EcalTPGAnalyzer.h:68
edm::Event
Definition:
Event.h:72
EcalTPGAnalyzer::EcalTPGVariables
Definition:
EcalTPGAnalyzer.h:43
EcalTPGAnalyzer::digiCollectionEE_
edm::InputTag digiCollectionEE_
Definition:
EcalTPGAnalyzer.h:74
edm::Run
Definition:
Run.h:45
Generated for CMSSW Reference Manual by
1.8.11