CMS 3D CMS Logo

CSCNoiseMatrixAnalyzer.h

Go to the documentation of this file.
00001 
00007 #include <iostream>
00008 #include <time.h>
00009 #include <sys/stat.h>   
00010 #include <unistd.h>
00011 #include <fstream>
00012 
00013 #include "OnlineDB/CSCCondDB/interface/AutoCorrMat.h"
00014 #include "OnlineDB/CSCCondDB/interface/CSCOnlineDB.h"
00015 #include "CondFormats/CSCObjects/interface/CSCNoiseMatrix.h"
00016 #include "CondFormats/CSCObjects/interface/CSCobject.h"
00017 #include "TFile.h"
00018 #include "TTree.h"
00019 #include "TH1F.h"
00020 #include "TH2F.h"
00021 #include "TDirectory.h"
00022 #include "TCanvas.h"
00023 
00024 class TCalibNoiseMatrixEvt {
00025   public:
00026   Float_t elem[12];
00027   Int_t strip;
00028   Int_t layer;
00029   Int_t cham;
00030   Int_t id;
00031   Int_t flagMatrix;
00032 };
00033 
00034 class CSCNoiseMatrixAnalyzer : public edm::EDAnalyzer {
00035 
00036  public:
00037   explicit CSCNoiseMatrixAnalyzer(edm::ParameterSet const& conf);
00038   virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
00039   
00040 #define CHAMBERS_ma 468
00041 #define LAYERS_ma 6
00042 #define STRIPS_ma 80
00043 #define DDU_ma 36
00044 
00045   ~CSCNoiseMatrixAnalyzer();
00046   
00047  private:
00048  // variables persistent across events should be declared here.
00049  std::vector<int> adc;
00050  std::string chamber_id;
00051  int eventNumber,evt,counterzero,strip,misMatch,NChambers,Nddu,myIndex,myNcham;
00052  int i_chamber,i_layer,reportedChambers,fff,ret_code,length,chamber_num,sector,record,first_strip_index,strips_per_layer,chamber_index;
00053  int dmbID[CHAMBERS_ma],crateID[CHAMBERS_ma],size[CHAMBERS_ma];
00054  int lines,flagMatrix;
00055  std::ifstream filein;
00056  std::string PSet,name,chamber_type;
00057  bool debug;
00058  float *tmp, corrmat[12];
00059  float newMatrix1[480];
00060  float newMatrix2[480];
00061  float newMatrix3[480];
00062  float newMatrix4[480];
00063  float newMatrix5[480];
00064  float newMatrix6[480];
00065  float newMatrix7[480];
00066  float newMatrix8[480];
00067  float newMatrix9[480];
00068  float newMatrix10[480];
00069  float newMatrix11[480];
00070  float newMatrix12[480];
00071 
00072  Chamber_AutoCorrMat cam[CHAMBERS_ma];
00073 };

Generated on Tue Jun 9 17:40:41 2009 for CMSSW by  doxygen 1.5.4