CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalCalibPeds.h
Go to the documentation of this file.
1 #ifndef HcalCalibPeds_H
2 #define HcalCalibPeds_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 "TCanvas.h"
42 #include "TStyle.h"
43 
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 
59  {
61  bool usedflag;
62  float cap[4];
63  int num[4];
64  };
65 
67 {
68  public:
69  //Constructor
71  //Destructor
72  virtual ~HcalCalibPeds();
73  //Analysis
74  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup);
75 
76  private:
77  //Container for data, 1 per channel
78  std::vector<CalibPedBunch> Bunches;
79  //Flag for saving histos
80  int runnum;
81  int firstTS;
82  int lastTS;
84 
85  TFile *theFile;
86  bool firsttime;
87 };
88 #endif
89 
HcalCalibDetId calibdetid
Definition: HcalCalibPeds.h:60
float cap[4]
Definition: HcalCalibPeds.h:62
TFile * theFile
Definition: HcalCalibPeds.h:85
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< CalibPedBunch > Bunches
Definition: HcalCalibPeds.h:78
std::string pedsADCfilename
Definition: HcalCalibPeds.h:83
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
virtual ~HcalCalibPeds()
HcalCalibPeds(const edm::ParameterSet &ps)