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 
21 
25 
26 #include <string>
27 #include <fstream>
28 #include <vector>
29 
30 class DTT0;
31 class TFile;
32 
34 public:
37 
39  virtual ~DTt0DBValidation();
40 
42  //Read the DTGeometry and the t0 DB
43  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
44  void endRun(edm::Run const&, edm::EventSetup const&);
45  void endJob();
46  void analyze(const edm::Event& event, const edm::EventSetup& setup) {}
47 
48 private:
49  void bookHistos(DTLayerId lId, int firstWire, int lastWire);
50  void bookHistos(int wheel);
51 
53  // Switch for verbosity
55  // The DB label
58 
59  // The file which will contain the difference plot
62 
64 
65  // The DTGeometry
67 
68  // The t0 map
69  const DTT0 *tZeroMap_;
71 
72  // Map of the t0 and sigma per wire
73  std::map<DTWireId, std::vector<float> > t0RefMap_;
74  std::map<DTWireId, std::vector<float> > t0Map_;
75 
76  // Map of the t0 difference histos per layer
77  std::map<DTLayerId, MonitorElement* > t0DiffHistos_;
78 
79  // Summary histos
80  std::map<int, MonitorElement* > wheelSummary_;
81 };
82 #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:52
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:36