Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:25

0001 #ifndef DTMapGenerator_H
0002 #define DTMapGenerator_H
0003 
0004 /** \class DTMapGenerator
0005  *  Class which creates a textual map of the hardware channels 
0006  *  in the software detIds
0007  *  \author G. Cerminara S. Bolognesi - INFN Torino
0008  */
0009 
0010 #include "FWCore/Framework/interface/Frameworkfwd.h"
0011 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0012 #include "DataFormats/MuonDetId/interface/DTWireId.h"
0013 
0014 #include <string>
0015 #include <set>
0016 
0017 class DTMapGenerator : public edm::one::EDAnalyzer<> {
0018 public:
0019   /// Constructor
0020   DTMapGenerator(const edm::ParameterSet& pset);
0021 
0022   /// Destructor
0023   ~DTMapGenerator() override = default;
0024 
0025   // Operations
0026 
0027   void beginJob() override {}
0028 
0029   void analyze(const edm::Event& event, const edm::EventSetup& setup) override {}
0030 
0031   void endJob() override;
0032 
0033 protected:
0034 private:
0035   //Check if the wire exists in the channels list :
0036   //(/afs/cern.ch/cms/Physics/muon/CMSSW/DT/channelsMaps/existing_channels.txt)
0037   bool checkWireExist(
0038       const std::set<DTWireId>& wireMap, int wheel, int station, int sector, int sl, int layer, int wire);
0039 
0040   //file name with the output map
0041   std::string outputMapName;
0042   //file name with the input base map (DDU,ROS -> Wheel,Sector,Chamber)
0043   std::string inputMapName;
0044   //rosType = 8 for commissioning, 25 otherwise
0045   int rosType;
0046 };
0047 #endif