CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalPedestalWidthsValidation.h
Go to the documentation of this file.
1 #ifndef HcalPedestalWidthsValidation_H
2 #define HcalPedestalWidthsValidation_H
3 
12 
26 
31 
33 
36 
37 #include "TFile.h"
38 #include "TProfile.h"
39 #include "TH1.h"
40 #include "TH2.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 
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  TH1F * hist[4];
67  TH2F * covarhistADC;
68  TH2F * covarhistfC;
69  };
70 
72 {
73  public:
74  //Constructor
76  //Destructor
78  //Analysis
79  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
80 
81  private:
82  //Container for data, 1 per channel
83  std::vector<NewPedBunchVal> BunchVales;
84  int runnum;
85  int firstTS;
86  int lastTS;
87  std::string ROOTfilename;
88  std::string pedsADCfilename;
89  std::string pedsfCfilename;
90  std::string widthsADCfilename;
91  std::string widthsfCfilename;
92 
93  TH1F *HBMeans;
94  TH1F *HBWidths;
95  TH1F *HEMeans;
96  TH1F *HEWidths;
97  TH1F *HFMeans;
98  TH1F *HFWidths;
99  TH1F *HOMeans;
100  TH1F *HOWidths;
101 
102  TFile *theFile;
103  bool firsttime;
108 };
109 #endif
110 
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
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
std::vector< NewPedBunchVal > BunchVales
HcalPedestalWidthsValidation(const edm::ParameterSet &ps)