00001 #ifndef CalibTracker_SiStripLorentzAngle_SiStripCalibLorentzAngle_h 00002 #define CalibTracker_SiStripLorentzAngle_SiStripCalibLorentzAngle_h 00003 00004 #include <map> 00005 00006 #include "FWCore/Framework/interface/EDAnalyzer.h" 00007 #include "FWCore/Framework/interface/Event.h" 00008 #include "DataFormats/Common/interface/Handle.h" 00009 #include "FWCore/Framework/interface/EventSetup.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 #include "CondFormats/SiStripObjects/interface/SiStripLorentzAngle.h" 00012 00013 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" 00014 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00015 00016 #include "DataFormats/DetId/interface/DetId.h" 00017 #include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" 00018 00019 #include "DQMServices/Core/interface/MonitorElement.h" 00020 #include "DQMServices/Core/interface/DQMStore.h" 00021 00022 #include "DataFormats/GeometryVector/interface/GlobalPoint.h" 00023 00024 #include "MagneticField/Engine/interface/MagneticField.h" 00025 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h" 00026 00027 class SiStripCalibLorentzAngle : public ConditionDBWriter<SiStripLorentzAngle> 00028 { 00029 public: 00030 00031 explicit SiStripCalibLorentzAngle(const edm::ParameterSet& conf); 00032 00033 virtual ~SiStripCalibLorentzAngle(); 00034 00035 SiStripLorentzAngle* getNewObject(); 00036 void algoBeginJob(const edm::EventSetup&); 00037 00038 private: 00039 00040 edm::ESHandle<TrackerGeometry> estracker; 00041 edm::ESHandle<MagneticField> magfield_; 00042 typedef std::map <unsigned int, MonitorElement*> histomap; 00043 histomap histos; 00044 double gphi, geta; 00045 const GlobalPoint gposition; 00046 00047 std::map< uint32_t, float> detid_la; 00048 edm::ParameterSet conf_; 00049 //double appliedVoltage_; 00050 //double chargeMobility_; 00051 //double temperature_; 00052 //double temperatureerror_; 00053 //double rhall_; 00054 //double holeBeta_; 00055 //double holeSaturationVelocity_; 00056 }; 00057 00058 00059 #endif