ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HFmon2012/interface/Raddam.h
Revision: 1.1
Committed: Tue Feb 28 12:48:28 2012 UTC (13 years, 2 months ago) by yilmaz
Content type: text/plain
Branch: MAIN
Log Message:
update

File Contents

# Content
1 /*
2 * $Id: Raddam.h,v 1.2 2012/02/22 18:49:17 yilmaz Exp $
3 *
4 * Description : Raddam
5 * Author : Sercan Sen, Taylan Yetkin
6 * Created : $Date: 2012/02/22 18:49:17 $
7 * Credits for PMT Event Rejection Algorithms:
8 * https://twiki.cern.ch/twiki/bin/viewauth/CMS/HcalRecHitReflagger
9 * Dinko Ferencek, Francesco Santanastasio, Jeff Temple
10 * The code from above authors has been modified to make it work locally
11 */
12 // system include files
13 #include <memory>
14 #include <string>
15 #include <vector>
16 #include <iostream>
17 #include <fstream>
18 #include <iomanip>
19 #include <map>
20 #include <utility>
21 #include <sstream>
22
23
24 // user include files
25 #include "FWCore/Framework/interface/Frameworkfwd.h"
26 #include "FWCore/Framework/interface/EDAnalyzer.h"
27 #include "FWCore/Utilities/interface/InputTag.h"
28 #include "FWCore/ParameterSet/interface/ParameterSet.h"
29
30 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
31 #include "DataFormats/HcalRecHit/interface/HFRecHit.h"
32 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
33 #include "CalibFormats/HcalObjects/interface/HcalCalibrations.h"
34 #include "CondFormats/HcalObjects/interface/HcalQIEShape.h"
35 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
36 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
37 #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
38 #include "Geometry/Records/interface/CaloGeometryRecord.h"
39 #include "Geometry/CaloTopology/interface/HcalTopology.h"
40 #include "DataFormats/TrackReco/interface/Track.h"
41 #include "DataFormats/TrackReco/interface/TrackFwd.h"
42
43 //TFile Service
44 #include "FWCore/ServiceRegistry/interface/Service.h"
45 #include "CommonTools/UtilAlgos/interface/TFileService.h"
46
47 using namespace std;
48
49 class TTree;
50
51 class Raddam : public edm::EDAnalyzer {
52 public:
53 explicit Raddam(const edm::ParameterSet&);
54 ~Raddam();
55
56
57 private:
58
59 virtual void beginRun(const edm::Run & run,const edm::EventSetup&);
60 virtual void beginJob() ;
61 virtual void analyze(const edm::Event&, const edm::EventSetup&);
62 virtual void endJob();
63
64 private:
65
66 void initialize();
67
68 edm::Service<TFileService> fs;
69
70 TTree* fTree;
71 int fRunNo;
72 int fEventNo;
73 int fNumDigis;
74 int fCharge[1728][10];
75 int fCharge_fc[1728][10];
76 int fEta[1728];
77 int fPhi[1728];
78 int fDepth[1728];
79
80 int tNumLaser;
81 int tHitChannel[1728];
82 float tHitNS[1728];
83
84 float tClockOpto;
85 float tRawOpto;
86 float tTrig;
87
88
89 };