CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibMuon/DTCalibration/plugins/DTMapGenerator.h

Go to the documentation of this file.
00001 #ifndef DTMapGenerator_H
00002 #define DTMapGenerator_H
00003 
00012 #include "FWCore/Framework/interface/Frameworkfwd.h"
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 #include "DataFormats/MuonDetId/interface/DTWireId.h"
00015 
00016 
00017 #include <string>
00018 #include <set>
00019 
00020 class DTMapGenerator : public edm::EDAnalyzer {
00021 
00022 public:
00023 
00025   DTMapGenerator(const edm::ParameterSet& pset);
00026 
00028   virtual ~DTMapGenerator();
00029 
00030   // Operations
00031 
00032   virtual void beginJob(){}
00033 
00034   virtual void analyze(const edm::Event& event, const edm::EventSetup& setup){}
00035 
00036   virtual void endJob();
00037 
00038 protected:
00039 
00040 private:
00041   //Check if the wire exists in the channels list :
00042   //(/afs/cern.ch/cms/Physics/muon/CMSSW/DT/channelsMaps/existing_channels.txt)
00043   bool checkWireExist(const std::set<DTWireId>& wireMap, int wheel, int station, int sector, int sl, int layer, int wire);
00044 
00045   //file name with the output map
00046   std::string outputMapName;
00047   //file name with the input base map (DDU,ROS -> Wheel,Sector,Chamber)
00048   std::string inputMapName;
00049   //rosType = 8 for commissioning, 25 otherwise
00050   int rosType;
00051 };
00052 #endif