CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTResidualCalibration.h
Go to the documentation of this file.
1 #ifndef CalibMuon_DTCalibration_DTResidualCalibration_h
2 #define CalibMuon_DTCalibration_DTResidualCalibration_h
3 
16 
18 
19 #include <string>
20 #include <vector>
21 #include <map>
22 
23 class TFile;
24 class TH1F;
25 class TH2F;
26 class DTGeometry;
27 class DTSuperLayerId;
28 class DTLayerId;
29 
31  public:
35  virtual ~DTResidualCalibration();
36 
37  void beginJob();
38  void beginRun(const edm::Run&, const edm::EventSetup&);
39  void endJob();
40  void analyze(const edm::Event& event, const edm::EventSetup& setup);
41 
42  protected:
43 
44  private:
45  float segmentToWireDistance(const DTRecHit1D& recHit1D, const DTRecSegment4D& segment);
46  // Book a set of histograms for a given super-layer/layer
47  void bookHistos(DTSuperLayerId slId);
48  void bookHistos(DTLayerId slId);
49  // Fill a set of histograms for a given super-layer/layer
50  void fillHistos(DTSuperLayerId slId, float distance, float residualOnDistance);
51  void fillHistos(DTLayerId slId, float distance, float residualOnDistance);
52 
55  std::string rootBaseDir_;
56 
58  TFile* rootFile_;
59  // Geometry
61  // Histograms per super-layer
62  std::map<DTSuperLayerId, std::vector<TH1F*> > histoMapTH1F_;
63  std::map<DTSuperLayerId, std::vector<TH2F*> > histoMapTH2F_;
64  // Histograms per layer
65  std::map<DTLayerId, std::vector<TH1F*> > histoMapPerLayerTH1F_;
66  std::map<DTLayerId, std::vector<TH2F*> > histoMapPerLayerTH2F_;
67 };
68 #endif
void fillHistos(DTSuperLayerId slId, float distance, float residualOnDistance)
void bookHistos(DTSuperLayerId slId)
std::map< DTLayerId, std::vector< TH1F * > > histoMapPerLayerTH1F_
DTResidualCalibration(const edm::ParameterSet &pset)
Constructor.
virtual ~DTResidualCalibration()
Destructor.
void analyze(const edm::Event &event, const edm::EventSetup &setup)
void beginRun(const edm::Run &, const edm::EventSetup &)
std::map< DTSuperLayerId, std::vector< TH1F * > > histoMapTH1F_
std::map< DTLayerId, std::vector< TH2F * > > histoMapPerLayerTH2F_
std::map< DTSuperLayerId, std::vector< TH2F * > > histoMapTH2F_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const DTGeometry * dtGeom_
float segmentToWireDistance(const DTRecHit1D &recHit1D, const DTRecSegment4D &segment)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:33