CMS 3D CMS Logo

CastorPedestalsAnalysis.h
Go to the documentation of this file.
1 #ifndef CastorPedestalsAnalysis_H
2 #define CastorPedestalsAnalysis_H
3 
12 
26 
31 
32 // #include "CondTools/Hcal/interface/HcalDbOnline.h"
33 
35 // #include "CalibCalorimetry/CastorCalib/interface/CastorCondXML.h"
37 
38 #include "TFile.h"
39 #include "TProfile.h"
40 #include "TH1.h"
41 #include "TH2.h"
42 #include "TCanvas.h"
43 #include "TStyle.h"
44 
45 #include <cmath>
46 #include <iostream>
47 #include <map>
48 #include <iomanip>
49 #include <fstream>
50 #include <vector>
51 #include <string>
52 
53 namespace edm {
54  class ParameterSet;
55  class Event;
56  class EventSetup;
57 } // namespace edm
58 
59 struct NewPedBunch {
61  bool usedflag;
62  float cap[4];
63  float capfc[4];
64  float sig[4][4];
65  float sigfc[4][4];
66  float prod[4][4];
67  float prodfc[4][4];
68  int num[4][4];
69 };
70 
72 public:
73  //Constructor
75  //Destructor
76  ~CastorPedestalsAnalysis() override;
77  //Analysis
78  void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override;
79 
80 private:
81  //Container for data, 1 per channel
82  std::vector<NewPedBunch> Bunches;
83  //Flag for saving histos
84  bool hiSaveFlag;
85  bool dumpXML;
87  int runnum;
88  int firstTS;
89  int lastTS;
98 
101 
102  TH1F *CASTORMeans;
104 
105  // TH2F *dephist[4];
106  TH2F *dephist;
107 
108  TFile *theFile;
109  bool firsttime;
110 
112 };
113 #endif
CastorPedestalsAnalysis::Bunches
std::vector< NewPedBunch > Bunches
Definition: CastorPedestalsAnalysis.h:82
CastorPedestalsAnalysis::runnum
int runnum
Definition: CastorPedestalsAnalysis.h:87
CastorPedestalsAnalysis::hiSaveFlag
bool hiSaveFlag
Definition: CastorPedestalsAnalysis.h:84
CastorPedestalsAnalysis::dumpXML
bool dumpXML
Definition: CastorPedestalsAnalysis.h:85
Handle.h
CastorPedestalWidths.h
NewPedBunch::prod
float prod[4][4]
Definition: CastorPedestalsAnalysis.h:66
CastorPedestalsAnalysis::firsttime
bool firsttime
Definition: CastorPedestalsAnalysis.h:109
CastorPedestalsAnalysis::tok_cond_
edm::ESGetToken< CastorDbService, CastorDbRecord > tok_cond_
Definition: CastorPedestalsAnalysis.h:99
CastorPedestalsAnalysis::dephist
TH2F * dephist
Definition: CastorPedestalsAnalysis.h:106
NewPedBunch::sigfc
float sigfc[4][4]
Definition: CastorPedestalsAnalysis.h:65
edm
HLT enums.
Definition: AlignableModifier.h:19
CastorPedestalsAnalysis::XMLtag
std::string XMLtag
Definition: CastorPedestalsAnalysis.h:96
HcalTBTriggerData.h
AllObjects.h
NewPedBunch::num
int num[4][4]
Definition: CastorPedestalsAnalysis.h:68
HcalGenericDetId.h
CastorPedestalsAnalysis::widthsfCfilename
std::string widthsfCfilename
Definition: CastorPedestalsAnalysis.h:94
CastorElectronicsMap.h
EDAnalyzer.h
NewPedBunch::capfc
float capfc[4]
Definition: CastorPedestalsAnalysis.h:63
CastorPedestalsAnalysis::CASTORMeans
TH1F * CASTORMeans
Definition: CastorPedestalsAnalysis.h:102
CastorPedestalsAnalysis::lastTS
int lastTS
Definition: CastorPedestalsAnalysis.h:89
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
MakerMacros.h
CastorCalibrations.h
CastorQIEData.h
CastorPedestalsAnalysis::castorDigiCollectionTag
edm::InputTag castorDigiCollectionTag
Definition: CastorPedestalsAnalysis.h:111
CastorPedestalsAnalysis::ROOTfilename
std::string ROOTfilename
Definition: CastorPedestalsAnalysis.h:90
Service.h
HcalDigiCollections.h
Event
CastorPedestalsAnalysis::~CastorPedestalsAnalysis
~CastorPedestalsAnalysis() override
Definition: CastorPedestalsAnalysis.cc:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCastorDetId
Definition: HcalCastorDetId.h:23
CastorCalibrationWidths.h
NewPedBunch::cap
float cap[4]
Definition: CastorPedestalsAnalysis.h:62
edm::ParameterSet
Definition: ParameterSet.h:47
NewPedBunch::detid
HcalCastorDetId detid
Definition: CastorPedestalsAnalysis.h:60
Event.h
CastorPedestalsAnalysis::XMLfilename
std::string XMLfilename
Definition: CastorPedestalsAnalysis.h:95
ParameterSet
Definition: Functions.h:16
CastorPedestalsAnalysis::verboseflag
bool verboseflag
Definition: CastorPedestalsAnalysis.h:86
HcalDetId.h
CastorPedestalsAnalysis::ZSfilename
std::string ZSfilename
Definition: CastorPedestalsAnalysis.h:97
NewPedBunch::sig
float sig[4][4]
Definition: CastorPedestalsAnalysis.h:64
CastorPedestalsAnalysis::widthsADCfilename
std::string widthsADCfilename
Definition: CastorPedestalsAnalysis.h:93
NewPedBunch::usedflag
bool usedflag
Definition: CastorPedestalsAnalysis.h:61
edm::EventSetup
Definition: EventSetup.h:58
CastorPedestalsAnalysis::CASTORWidths
TH1F * CASTORWidths
Definition: CastorPedestalsAnalysis.h:103
HcalElectronicsId.h
edm::ESGetToken< CastorDbService, CastorDbRecord >
InputTag.h
CastorPedestalsAnalysis::pedsfCfilename
std::string pedsfCfilename
Definition: CastorPedestalsAnalysis.h:92
CastorQIECoder.h
CastorDbASCIIIO.h
CastorPedestals.h
DetId.h
CastorPedestalsAnalysis::pedsADCfilename
std::string pedsADCfilename
Definition: CastorPedestalsAnalysis.h:91
Frameworkfwd.h
CastorPedestalsAnalysis
Definition: CastorPedestalsAnalysis.h:71
CastorPedestalsAnalysis::theFile
TFile * theFile
Definition: CastorPedestalsAnalysis.h:108
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:67
CastorPedestalsAnalysis::firstTS
int firstTS
Definition: CastorPedestalsAnalysis.h:88
EventSetup
NewPedBunch
Definition: CastorPedestalsAnalysis.h:59
ParameterSet.h
CastorPedestalsAnalysis::tok_map_
edm::ESGetToken< CastorElectronicsMap, CastorElectronicsMapRcd > tok_map_
Definition: CastorPedestalsAnalysis.h:100
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:255