CMS 3D CMS Logo

CastorPedestalsAnalysis.h
Go to the documentation of this file.
1 #ifndef CastorPedestalsAnalysis_H
2 #define CastorPedestalsAnalysis_H
3 
13 
27 
32 
33 // #include "CondTools/Hcal/interface/HcalDbOnline.h"
34 
36 // #include "CalibCalorimetry/CastorCalib/interface/CastorCondXML.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 } // namespace edm
59 
60 struct NewPedBunch {
62  bool usedflag;
63  float cap[4];
64  float capfc[4];
65  float sig[4][4];
66  float sigfc[4][4];
67  float prod[4][4];
68  float prodfc[4][4];
69  int num[4][4];
70 };
71 
73 public:
74  //Constructor
76  //Destructor
77  ~CastorPedestalsAnalysis() override;
78  //Analysis
79  void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override;
80 
81 private:
82  //Container for data, 1 per channel
83  std::vector<NewPedBunch> Bunches;
84  //Flag for saving histos
85  bool hiSaveFlag;
86  bool dumpXML;
88  int runnum;
89  int firstTS;
90  int lastTS;
99 
100  TH1F *CASTORMeans;
102 
103  // TH2F *dephist[4];
104  TH2F *dephist;
105 
106  TFile *theFile;
107  bool firsttime;
108 
110 };
111 #endif
CastorPedestalsAnalysis::Bunches
std::vector< NewPedBunch > Bunches
Definition: CastorPedestalsAnalysis.h:83
CastorPedestalsAnalysis::runnum
int runnum
Definition: CastorPedestalsAnalysis.h:88
CastorPedestalsAnalysis::hiSaveFlag
bool hiSaveFlag
Definition: CastorPedestalsAnalysis.h:85
CastorPedestalsAnalysis::dumpXML
bool dumpXML
Definition: CastorPedestalsAnalysis.h:86
Handle.h
CastorPedestalWidths.h
NewPedBunch::prod
float prod[4][4]
Definition: CastorPedestalsAnalysis.h:67
ESHandle.h
CastorPedestalsAnalysis::firsttime
bool firsttime
Definition: CastorPedestalsAnalysis.h:107
CastorPedestalsAnalysis::dephist
TH2F * dephist
Definition: CastorPedestalsAnalysis.h:104
NewPedBunch::sigfc
float sigfc[4][4]
Definition: CastorPedestalsAnalysis.h:66
edm
HLT enums.
Definition: AlignableModifier.h:19
CastorPedestalsAnalysis::XMLtag
std::string XMLtag
Definition: CastorPedestalsAnalysis.h:97
HcalTBTriggerData.h
AllObjects.h
NewPedBunch::num
int num[4][4]
Definition: CastorPedestalsAnalysis.h:69
HcalGenericDetId.h
CastorPedestalsAnalysis::widthsfCfilename
std::string widthsfCfilename
Definition: CastorPedestalsAnalysis.h:95
CastorElectronicsMap.h
EDAnalyzer.h
NewPedBunch::capfc
float capfc[4]
Definition: CastorPedestalsAnalysis.h:64
CastorPedestalsAnalysis::CASTORMeans
TH1F * CASTORMeans
Definition: CastorPedestalsAnalysis.h:100
CastorPedestalsAnalysis::lastTS
int lastTS
Definition: CastorPedestalsAnalysis.h:90
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
MakerMacros.h
CastorCalibrations.h
CastorQIEData.h
CastorPedestalsAnalysis::castorDigiCollectionTag
edm::InputTag castorDigiCollectionTag
Definition: CastorPedestalsAnalysis.h:109
CastorPedestalsAnalysis::ROOTfilename
std::string ROOTfilename
Definition: CastorPedestalsAnalysis.h:91
Service.h
HcalDigiCollections.h
Event
CastorPedestalsAnalysis::~CastorPedestalsAnalysis
~CastorPedestalsAnalysis() override
Definition: CastorPedestalsAnalysis.cc:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCastorDetId
Definition: HcalCastorDetId.h:23
CastorCalibrationWidths.h
NewPedBunch::cap
float cap[4]
Definition: CastorPedestalsAnalysis.h:63
edm::ParameterSet
Definition: ParameterSet.h:36
NewPedBunch::detid
HcalCastorDetId detid
Definition: CastorPedestalsAnalysis.h:61
Event.h
CastorPedestalsAnalysis::XMLfilename
std::string XMLfilename
Definition: CastorPedestalsAnalysis.h:96
ParameterSet
Definition: Functions.h:16
CastorPedestalsAnalysis::verboseflag
bool verboseflag
Definition: CastorPedestalsAnalysis.h:87
HcalDetId.h
CastorPedestalsAnalysis::ZSfilename
std::string ZSfilename
Definition: CastorPedestalsAnalysis.h:98
NewPedBunch::sig
float sig[4][4]
Definition: CastorPedestalsAnalysis.h:65
CastorPedestalsAnalysis::widthsADCfilename
std::string widthsADCfilename
Definition: CastorPedestalsAnalysis.h:94
NewPedBunch::usedflag
bool usedflag
Definition: CastorPedestalsAnalysis.h:62
edm::EventSetup
Definition: EventSetup.h:57
CastorPedestalsAnalysis::CASTORWidths
TH1F * CASTORWidths
Definition: CastorPedestalsAnalysis.h:101
HcalElectronicsId.h
InputTag.h
CastorPedestalsAnalysis::pedsfCfilename
std::string pedsfCfilename
Definition: CastorPedestalsAnalysis.h:93
CastorQIECoder.h
CastorDbASCIIIO.h
CastorPedestals.h
DetId.h
CastorPedestalsAnalysis::pedsADCfilename
std::string pedsADCfilename
Definition: CastorPedestalsAnalysis.h:92
Frameworkfwd.h
CastorPedestalsAnalysis
Definition: CastorPedestalsAnalysis.h:72
CastorPedestalsAnalysis::theFile
TFile * theFile
Definition: CastorPedestalsAnalysis.h:106
EventSetup.h
CastorDbService.h
CastorPedestalsAnalysis::CastorPedestalsAnalysis
CastorPedestalsAnalysis(const edm::ParameterSet &ps)
Definition: CastorPedestalsAnalysis.cc:11
CastorQIEShape.h
NewPedBunch::prodfc
float prodfc[4][4]
Definition: CastorPedestalsAnalysis.h:68
CastorPedestalsAnalysis::firstTS
int firstTS
Definition: CastorPedestalsAnalysis.h:89
EventSetup
NewPedBunch
Definition: CastorPedestalsAnalysis.h:60
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
CastorDbRecord.h
edm::InputTag
Definition: InputTag.h:15
CastorPedestalsAnalysis::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: CastorPedestalsAnalysis.cc:252