Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-15 04:14:34

0001 #ifndef CocoaDBMgr_HH
0002 #define CocoaDBMgr_HH
0003 //-*- C++ -*-
0004 //
0005 // Package:    Alignment/CocoaFit
0006 // Class:      CocoaDBMgr
0007 //
0008 /*
0009 
0010  Description: 
0011 */
0012 //
0013 
0014 #include <stdexcept>
0015 #include <string>
0016 #include <iostream>
0017 #include <map>
0018 #include <memory>
0019 
0020 class Event;
0021 class EventSetup;
0022 class Entry;
0023 class Alingments;
0024 //#include "FWCore/Framework/interface/EventSetup.h"
0025 
0026 class OpticalAlignments;
0027 class OpticalAlignInfo;
0028 class OpticalAlignMeasurements;
0029 class Alignments;
0030 class AlignmentErrorsExtended;
0031 class AlignTransform;
0032 class AlignTransformErrorExtended;
0033 
0034 class OpticalObject;
0035 
0036 class CocoaDBMgr {
0037 private:
0038   CocoaDBMgr();
0039 
0040 public:
0041   static CocoaDBMgr* getInstance();
0042 
0043   ~CocoaDBMgr() {}
0044 
0045 public:
0046   bool DumpCocoaResults();
0047 
0048 private:
0049   std::unique_ptr<OpticalAlignments> BuildOpticalAlignments();
0050   double GetEntryError(const Entry* entry);
0051   double GetEntryError(const Entry* entry1, const Entry* entry2);
0052 
0053   OpticalAlignInfo GetOptAlignInfoFromOptO(OpticalObject* opto);
0054 
0055   std::pair<std::unique_ptr<Alignments>, std::unique_ptr<AlignmentErrorsExtended> > BuildAlignments(bool bDT);
0056   AlignTransform* GetAlignInfoFromOptO(OpticalObject* opto);
0057   AlignTransformErrorExtended* GetAlignInfoErrorFromOptO(OpticalObject* opto);
0058 
0059 private:
0060   static CocoaDBMgr* instance;
0061 };
0062 
0063 #endif