CMS 3D CMS Logo

CSCOldGainAnalyzer.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 #include "OnlineDB/CSCCondDB/interface/CSCMap.h"
00013 #include "OnlineDB/CSCCondDB/interface/CSCOnlineDB.h"
00014 #include "CondFormats/CSCObjects/interface/CSCGains.h"
00015 #include "CondFormats/CSCObjects/interface/CSCobject.h"
00016 #include "TFile.h"
00017 #include "TTree.h"
00018 #include "TH2F.h"
00019 
00020 class TCalibOldGainEvt {
00021   public:
00022   Float_t slope;
00023   Float_t intercept;
00024   Float_t chi2;
00025   Int_t strip;
00026   Int_t layer;
00027   Int_t cham;
00028   Int_t id;
00029   Int_t flagGain;
00030   Int_t flagIntercept;
00031 };
00032 
00033 class CSCOldGainAnalyzer : public edm::EDAnalyzer {
00034  public:
00035   explicit CSCOldGainAnalyzer(edm::ParameterSet const& conf);
00036   virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
00037   
00038 #define CHAMBERS_oldga 10
00039 #define LAYERS_oldga 6
00040 #define STRIPS_oldga 80
00041 #define NUMBERPLOTTED_oldga 10 
00042 #define NUMMODTEN_oldga 200
00043 #define DDU_oldga 4
00044 
00045   ~CSCOldGainAnalyzer();
00046   
00047  private:
00048   std::vector<int> newadc; 
00049   std::string chamber_id;
00050   int eventNumber,evt,chamber_num,sector,i_chamber,i_layer,reportedChambers,first_strip_index,strips_per_layer,chamber_index;
00051   int fff,ret_code,length,strip,misMatch,NChambers,Nddu,record;
00052   time_t rawtime;
00053   int dmbID[CHAMBERS_oldga],crateID[CHAMBERS_oldga],size[CHAMBERS_oldga]; 
00054   float gainSlope,gainIntercept;
00055   float adcMax[DDU_oldga][CHAMBERS_oldga][LAYERS_oldga][STRIPS_oldga];
00056   float adcMean_max[DDU_oldga][CHAMBERS_oldga][LAYERS_oldga][STRIPS_oldga];
00057   float maxmodten[NUMMODTEN_oldga][CHAMBERS_oldga][LAYERS_oldga][STRIPS_oldga];
00058   float newGain[480];
00059   float newIntercept[480];
00060   float newChi2[480];
00061   float myCharge[10];
00062   int lines,flagGain,flagIntercept,counter,myIndex;
00063   std::ifstream filein;
00064   std::string PSet,name;
00065   bool debug;
00066   TH2F adcCharge;
00067 };

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