Main Page
Namespaces
Classes
Package Documentation
CalibCalorimetry
CastorCalib
interface
CastorPedestalsAnalysis.h
Go to the documentation of this file.
1
#ifndef CastorPedestalsAnalysis_H
2
#define CastorPedestalsAnalysis_H
3
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
6
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "
FWCore/Framework/interface/MakerMacros.h
"
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
FWCore/ServiceRegistry/interface/Service.h
"
12
#include "
FWCore/Utilities/interface/InputTag.h
"
13
14
#include "
DataFormats/Common/interface/Handle.h
"
15
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
16
#include "
DataFormats/HcalDetId/interface/HcalElectronicsId.h
"
17
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
18
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
19
#include "
DataFormats/DetId/interface/DetId.h
"
20
#include "
CondFormats/CastorObjects/interface/CastorPedestals.h
"
21
#include "
CondFormats/CastorObjects/interface/CastorPedestalWidths.h
"
22
#include "
CondFormats/CastorObjects/interface/CastorQIECoder.h
"
23
#include "
CondFormats/CastorObjects/interface/CastorQIEData.h
"
24
#include "
CondFormats/CastorObjects/interface/CastorQIEShape.h
"
25
#include "
CondFormats/CastorObjects/interface/CastorElectronicsMap.h
"
26
#include "
CondFormats/CastorObjects/interface/AllObjects.h
"
27
28
#include "
CalibFormats/CastorObjects/interface/CastorDbRecord.h
"
29
#include "
CalibFormats/CastorObjects/interface/CastorDbService.h
"
30
#include "
CalibFormats/CastorObjects/interface/CastorCalibrations.h
"
31
#include "
CalibFormats/CastorObjects/interface/CastorCalibrationWidths.h
"
32
33
// #include "CondTools/Hcal/interface/HcalDbOnline.h"
34
35
#include "
CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h
"
36
// #include "CalibCalorimetry/CastorCalib/interface/CastorCondXML.h"
37
#include "
TBDataFormats/HcalTBObjects/interface/HcalTBTriggerData.h
"
38
39
#include "TFile.h"
40
#include "TProfile.h"
41
#include "TH1.h"
42
#include "TH2.h"
43
#include "TCanvas.h"
44
#include "TStyle.h"
45
46
#include <cmath>
47
#include <iostream>
48
#include <map>
49
#include <iomanip>
50
#include <fstream>
51
#include <vector>
52
#include <string>
53
54
namespace
edm
{
55
class
ParameterSet
;
56
class
Event
;
57
class
EventSetup
;
58
}
59
60
struct
NewPedBunch
61
{
62
HcalCastorDetId
detid
;
63
bool
usedflag
;
64
float
cap[4];
65
float
capfc[4];
66
float
sig[4][4];
67
float
sigfc[4][4];
68
float
prod
[4][4];
69
float
prodfc[4][4];
70
int
num
[4][4];
71
};
72
73
class
CastorPedestalsAnalysis
:
public
edm::EDAnalyzer
74
{
75
public
:
76
//Constructor
77
CastorPedestalsAnalysis
(
const
edm::ParameterSet
& ps);
78
//Destructor
79
~
CastorPedestalsAnalysis
()
override
;
80
//Analysis
81
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
& eventSetup)
override
;
82
83
private
:
84
//Container for data, 1 per channel
85
std::vector<NewPedBunch>
Bunches
;
86
//Flag for saving histos
87
bool
hiSaveFlag
;
88
bool
dumpXML
;
89
bool
verboseflag
;
90
int
runnum
;
91
int
firstTS
;
92
int
lastTS
;
93
std::string
ROOTfilename
;
94
std::string
pedsADCfilename
;
95
std::string
pedsfCfilename
;
96
std::string
widthsADCfilename
;
97
std::string
widthsfCfilename
;
98
std::string
XMLfilename
;
99
std::string
XMLtag
;
100
std::string
ZSfilename
;
101
102
TH1F *
CASTORMeans
;
103
TH1F *
CASTORWidths
;
104
105
// TH2F *dephist[4];
106
TH2F *
dephist
;
107
108
TFile *
theFile
;
109
bool
firsttime
;
110
111
edm::InputTag
castorDigiCollectionTag
;
112
};
113
#endif
114
CastorPedestalsAnalysis::XMLtag
std::string XMLtag
Definition:
CastorPedestalsAnalysis.h:99
parseEventContent.prod
prod
Definition:
parseEventContent.py:153
CastorPedestalsAnalysis::dephist
TH2F * dephist
Definition:
CastorPedestalsAnalysis.h:106
CastorPedestalsAnalysis::firstTS
int firstTS
Definition:
CastorPedestalsAnalysis.h:91
CastorCalibrations.h
pileupDistInMC.num
num
Definition:
pileupDistInMC.py:65
CastorPedestalsAnalysis::runnum
int runnum
Definition:
CastorPedestalsAnalysis.h:90
CastorPedestalsAnalysis::dumpXML
bool dumpXML
Definition:
CastorPedestalsAnalysis.h:88
CastorPedestalsAnalysis::Bunches
std::vector< NewPedBunch > Bunches
Definition:
CastorPedestalsAnalysis.h:85
analyze
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
CastorPedestalsAnalysis::CASTORMeans
TH1F * CASTORMeans
Definition:
CastorPedestalsAnalysis.h:102
MakerMacros.h
HcalTBTriggerData.h
EventSetup.h
CastorPedestalsAnalysis::firsttime
bool firsttime
Definition:
CastorPedestalsAnalysis.h:109
CastorDbASCIIIO.h
CastorPedestalsAnalysis::widthsfCfilename
std::string widthsfCfilename
Definition:
CastorPedestalsAnalysis.h:97
Frameworkfwd.h
CastorPedestalsAnalysis::ROOTfilename
std::string ROOTfilename
Definition:
CastorPedestalsAnalysis.h:93
CastorDbService.h
HcalCastorDetId
Definition:
HcalCastorDetId.h:23
ParameterSet.h
HcalGenericDetId.h
EventSetup
CastorPedestalsAnalysis::lastTS
int lastTS
Definition:
CastorPedestalsAnalysis.h:92
HcalDetId.h
CastorPedestalsAnalysis
Definition:
CastorPedestalsAnalysis.h:73
CastorPedestalsAnalysis::castorDigiCollectionTag
edm::InputTag castorDigiCollectionTag
Definition:
CastorPedestalsAnalysis.h:111
CastorPedestalsAnalysis::ZSfilename
std::string ZSfilename
Definition:
CastorPedestalsAnalysis.h:100
HcalDigiCollections.h
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:52
CastorPedestalsAnalysis::CASTORWidths
TH1F * CASTORWidths
Definition:
CastorPedestalsAnalysis.h:103
CastorPedestalsAnalysis::widthsADCfilename
std::string widthsADCfilename
Definition:
CastorPedestalsAnalysis.h:96
CastorElectronicsMap.h
AllObjects.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
EDAnalyzer.h
NewPedBunch::detid
HcalCastorDetId detid
Definition:
CastorPedestalsAnalysis.h:62
CastorCalibrationWidths.h
CastorPedestalsAnalysis::XMLfilename
std::string XMLfilename
Definition:
CastorPedestalsAnalysis.h:98
NewPedBunch::usedflag
bool usedflag
Definition:
CastorPedestalsAnalysis.h:63
CastorPedestalsAnalysis::pedsADCfilename
std::string pedsADCfilename
Definition:
CastorPedestalsAnalysis.h:94
CastorPedestalsAnalysis::verboseflag
bool verboseflag
Definition:
CastorPedestalsAnalysis.h:89
HcalElectronicsId.h
CastorPedestalsAnalysis::theFile
TFile * theFile
Definition:
CastorPedestalsAnalysis.h:108
CastorDbRecord.h
Event
NewPedBunch
Definition:
CastorPedestalsAnalysis.h:60
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::InputTag
Definition:
InputTag.h:15
CastorPedestalsAnalysis::pedsfCfilename
std::string pedsfCfilename
Definition:
CastorPedestalsAnalysis.h:95
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:36
CastorPedestals.h
CastorQIEData.h
CastorQIECoder.h
CastorPedestalsAnalysis::hiSaveFlag
bool hiSaveFlag
Definition:
CastorPedestalsAnalysis.h:87
CastorQIEShape.h
edm::Event
Definition:
Event.h:70
DetId.h
CastorPedestalWidths.h
event
Definition:
event.py:1
Handle.h
Generated for CMSSW Reference Manual by
1.8.11