CMS 3D CMS Logo

CocoaDBMgr.h
Go to the documentation of this file.
1 #ifndef CocoaDBMgr_HH
2 #define CocoaDBMgr_HH
3 //-*- C++ -*-
4 //
5 // Package: Alignment/CocoaFit
6 // Class: CocoaDBMgr
7 //
8 /*
9 
10  Description:
11 */
12 //
13 
14 #include <stdexcept>
15 #include <string>
16 #include <iostream>
17 #include <map>
18 #include <memory>
19 
20 class Event;
21 class EventSetup;
22 class Entry;
23 class Alingments;
24 //#include "FWCore/Framework/interface/EventSetup.h"
25 
26 class OpticalAlignments;
27 class OpticalAlignInfo;
29 class Alignments;
31 class AlignTransform;
33 
34 class OpticalObject;
35 
36 class CocoaDBMgr {
37 private:
38  CocoaDBMgr();
39 
40 public:
41  static CocoaDBMgr* getInstance();
42 
44 
45 public:
46  bool DumpCocoaResults();
47 
48 private:
49  std::unique_ptr<OpticalAlignments> BuildOpticalAlignments();
50  double GetEntryError(const Entry* entry);
51  double GetEntryError(const Entry* entry1, const Entry* entry2);
52 
54 
55  std::pair<std::unique_ptr<Alignments>, std::unique_ptr<AlignmentErrorsExtended> > BuildAlignments(bool bDT);
58 
59 private:
61 };
62 
63 #endif
AlignTransformErrorExtended * GetAlignInfoErrorFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:335
Definition: Entry.h:18
bool DumpCocoaResults()
Definition: CocoaDBMgr.cc:49
static CocoaDBMgr * instance
Definition: CocoaDBMgr.h:60
std::unique_ptr< OpticalAlignments > BuildOpticalAlignments()
Definition: CocoaDBMgr.cc:266
AlignTransform * GetAlignInfoFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:317
double GetEntryError(const Entry *entry)
Definition: CocoaDBMgr.cc:245
OpticalAlignInfo GetOptAlignInfoFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:151
static CocoaDBMgr * getInstance()
Definition: CocoaDBMgr.cc:38
std::pair< std::unique_ptr< Alignments >, std::unique_ptr< AlignmentErrorsExtended > > BuildAlignments(bool bDT)
Definition: CocoaDBMgr.cc:284