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 // $Id: HcalPedestalsAnalysis.h,v 1.15 2012/11/13 03:30:20 dlange Exp $
2 
3 #ifndef HcalPedestalsAnalysis_H
4 #define HcalPedestalsAnalysis_H
5 
15 
29 
34 
36 
40 
41 #include "TFile.h"
42 #include "TProfile.h"
43 #include "TH1.h"
44 #include <math.h>
45 #include <iostream>
46 #include <map>
47 #include <iomanip>
48 #include <fstream>
49 #include <vector>
50 #include <string>
51 
52 namespace edm {
53  class ParameterSet;
54  class Event;
55  class EventSetup;
56 }
57 
58  struct NewPedBunch
59  {
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 
71 class HcalTopology;
72 
74 {
75  public:
76  //Constructor
78  //Destructor
79  virtual ~HcalPedestalsAnalysis();
80  //Analysis
81  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
82  virtual void endJob();
83 
84  private:
85  //Container for data, 1 per channel
86  std::vector<NewPedBunch> Bunches;
87  //Flag for saving histos
88  bool hiSaveFlag;
89  bool dumpXML;
91  int runnum;
92  int firstTS;
93  int lastTS;
94  int ievt;
102 
103  TH1F *HBMeans;
104  TH1F *HBWidths;
105  TH1F *HEMeans;
106  TH1F *HEWidths;
107  TH1F *HFMeans;
108  TH1F *HFWidths;
109  TH1F *HOMeans;
110  TH1F *HOWidths;
111 
112  TFile *theFile;
113  bool firsttime;
119 
123 };
124 #endif
125 
edm::InputTag hbheDigiCollectionTag_
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