CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalPedestalsAnalysis.h
Go to the documentation of this file.
1 #ifndef HcalPedestalsAnalysis_H
2 #define HcalPedestalsAnalysis_H
3 
12 
26 
31 
33 
37 
38 #include "TFile.h"
39 #include "TProfile.h"
40 #include "TH1.h"
41 #include <math.h>
42 #include <iostream>
43 #include <map>
44 #include <iomanip>
45 #include <fstream>
46 #include <vector>
47 #include <string>
48 
49 namespace edm {
50  class ParameterSet;
51  class Event;
52  class EventSetup;
53 }
54 
55  struct NewPedBunch
56  {
58  bool usedflag;
59  float cap[4];
60  float capfc[4];
61  float sig[4][4];
62  float sigfc[4][4];
63  float prod[4][4];
64  float prodfc[4][4];
65  int num[4][4];
66  };
67 
69 {
70  public:
71  //Constructor
73  //Destructor
74  virtual ~HcalPedestalsAnalysis();
75  //Analysis
76  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
77 
78  private:
79  //Container for data, 1 per channel
80  std::vector<NewPedBunch> Bunches;
81  //Flag for saving histos
82  bool hiSaveFlag;
83  bool dumpXML;
85  int runnum;
86  int firstTS;
87  int lastTS;
88  std::string ROOTfilename;
89  std::string pedsADCfilename;
90  std::string pedsfCfilename;
91  std::string widthsADCfilename;
92  std::string widthsfCfilename;
93  std::string XMLfilename;
94  std::string XMLtag;
95 
96  TH1F *HBMeans;
97  TH1F *HBWidths;
98  TH1F *HEMeans;
99  TH1F *HEWidths;
100  TH1F *HFMeans;
101  TH1F *HFWidths;
102  TH1F *HOMeans;
103  TH1F *HOWidths;
104 
105  TFile *theFile;
106  bool firsttime;
111 };
112 #endif
113 
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
HcalPedestalWidths * rawWidthsItem
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
HcalPedestalsAnalysis(const edm::ParameterSet &ps)
HcalPedestalWidths * rawWidthsItemfc
std::vector< NewPedBunch > Bunches