CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTt0DBValidation.h
Go to the documentation of this file.
1 #ifndef DTt0DBValidation_H
2 #define DTt0DBValidation_H
3 
19 
23 
24 #include <string>
25 #include <fstream>
26 #include <vector>
27 
28 class DTT0;
29 class TFile;
30 
32 public:
35 
37  virtual ~DTt0DBValidation();
38 
40  //Read the DTGeometry and the t0 DB
41  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
42  void endRun(edm::Run const&, edm::EventSetup const&);
43  void endJob();
44  void analyze(const edm::Event& event, const edm::EventSetup& setup) {}
45 
46 private:
47  void bookHistos(DTLayerId lId, int firstWire, int lastWire);
48  void bookHistos(int wheel);
49 
51  // Switch for verbosity
53  // The DB label
56 
57  // The file which will contain the difference plot
60 
62 
63  // The DTGeometry
65 
66  // The t0 map
67  const DTT0 *tZeroMap_;
69 
70  // Map of the t0 and sigma per wire
71  std::map<DTWireId, std::vector<float> > t0RefMap_;
72  std::map<DTWireId, std::vector<float> > t0Map_;
73 
74  // Map of the t0 difference histos per layer
75  std::map<DTLayerId, MonitorElement* > t0DiffHistos_;
76 
77  // Summary histos
78  std::map<int, MonitorElement* > wheelSummary_;
79 };
80 #endif
const DTT0 * tZeroRefMap_
virtual ~DTt0DBValidation()
Destructor.
std::string metname_
std::string labelDB_
std::map< int, MonitorElement * > wheelSummary_
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
Operations.
std::string labelDBRef_
Definition: DTT0.h:53
std::map< DTWireId, std::vector< float > > t0RefMap_
DTt0DBValidation(const edm::ParameterSet &pset)
Constructor.
std::string outputFileName_
edm::ESHandle< DTGeometry > dtGeom_
std::string t0TestName_
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
std::map< DTLayerId, MonitorElement * > t0DiffHistos_
void analyze(const edm::Event &event, const edm::EventSetup &setup)
const DTT0 * tZeroMap_
std::map< DTWireId, std::vector< float > > t0Map_
void bookHistos(DTLayerId lId, int firstWire, int lastWire)
void endRun(edm::Run const &, edm::EventSetup const &)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:43