CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
CocoaDBMgr Class Reference

#include <CocoaDBMgr.h>

Public Member Functions

bool DumpCocoaResults ()
 
 ~CocoaDBMgr ()
 

Static Public Member Functions

static CocoaDBMgrgetInstance ()
 

Private Member Functions

std::pair< Alignments *, AlignmentErrorsExtended * > BuildAlignments (bool bDT)
 
OpticalAlignmentsBuildOpticalAlignments ()
 
 CocoaDBMgr ()
 
AlignTransformErrorExtendedGetAlignInfoErrorFromOptO (OpticalObject *opto)
 
AlignTransformGetAlignInfoFromOptO (OpticalObject *opto)
 
double GetEntryError (const Entry *entry)
 
double GetEntryError (const Entry *entry1, const Entry *entry2)
 
OpticalAlignInfo GetOptAlignInfoFromOptO (OpticalObject *opto)
 

Static Private Attributes

static CocoaDBMgrinstance = nullptr
 

Detailed Description

Definition at line 35 of file CocoaDBMgr.h.

Constructor & Destructor Documentation

◆ CocoaDBMgr()

CocoaDBMgr::CocoaDBMgr ( )
private

Definition at line 48 of file CocoaDBMgr.cc.

48 {}

◆ ~CocoaDBMgr()

CocoaDBMgr::~CocoaDBMgr ( )
inline

Definition at line 42 of file CocoaDBMgr.h.

42 {}

Member Function Documentation

◆ BuildAlignments()

std::pair< Alignments *, AlignmentErrorsExtended * > CocoaDBMgr::BuildAlignments ( bool  bDT)
private

Definition at line 303 of file CocoaDBMgr.cc.

303  {
304  Alignments* alignments = new Alignments;
305  AlignmentErrorsExtended* alignmentErrors = new AlignmentErrorsExtended;
306 
307  //read
308  static std::vector<OpticalObject*> optolist = Model::OptOList();
309  static std::vector<OpticalObject*>::const_iterator ite;
310  for (ite = optolist.begin(); ite != optolist.end(); ++ite) {
311  if ((*ite)->type() == "system")
312  continue;
313  std::cout << "CocoaDBMgr::BuildAlignments getCmsswID " << (*ite) << std::endl;
314  std::cout << "CocoaDBMgr::BuildAlignments getCmsswID " << (*ite)->getCmsswID() << std::endl;
315  //check CMSSW ID
316  if ((*ite)->getCmsswID() > 0) { //put the numbers of DT or CSC objects
317  std::cout << " cal fill alignments " << std::endl;
318  alignments->m_align.push_back(*(GetAlignInfoFromOptO(*ite)));
319  std::cout << " fill alignments " << std::endl;
320  // AlignTransformErrorExtended* err =
321  //GetAlignInfoErrorFromOptO( *ite );
322  alignmentErrors->m_alignError.push_back(*(GetAlignInfoErrorFromOptO(*ite)));
323  std::cout << "CocoaDBMgr::BuildAlignments add alignmentError " << alignmentErrors->m_alignError.size()
324  << std::endl;
325  }
326  }
327 
328  if (ALIUtils::debug >= 4)
329  std::cout << "CocoaDBMgr::BuildAlignments end with n alignment " << alignments->m_align.size()
330  << " n alignmentError " << alignmentErrors->m_alignError.size() << std::endl;
331  return std::pair<Alignments*, AlignmentErrorsExtended*>(alignments, alignmentErrors);
332 }

References gather_cfg::cout, ALIUtils::debug, Alignments::m_align, AlignmentErrorsExtended::m_alignError, and Model::OptOList().

◆ BuildOpticalAlignments()

OpticalAlignments * CocoaDBMgr::BuildOpticalAlignments ( )
private

Definition at line 285 of file CocoaDBMgr.cc.

285  {
286  OpticalAlignments* optalign = new OpticalAlignments;
287 
288  static std::vector<OpticalObject*> optolist = Model::OptOList();
289  static std::vector<OpticalObject*>::const_iterator ite;
290  for (ite = optolist.begin(); ite != optolist.end(); ++ite) {
291  if ((*ite)->type() == "system")
292  continue;
294  optalign->opticalAlignments_.push_back(data);
295  if (ALIUtils::debug >= 5) {
296  std::cout << "@@@@ OPTALIGNINFO TO BE WRITTEN TO DB " << data << std::endl;
297  }
298  }
299  return optalign;
300 }

References gather_cfg::cout, data, ALIUtils::debug, OpticalAlignments::opticalAlignments_, and Model::OptOList().

◆ DumpCocoaResults()

bool CocoaDBMgr::DumpCocoaResults ( )

Definition at line 51 of file CocoaDBMgr.cc.

51  {
53 
55  int nrcd;
56 
57  cond::Time_t appendTime = Fit::nEvent + 1;
58  if (gomgr->GlobalOptions()["writeDBOptAlign"] > 0) {
59  //----- Build OpticalAlignments
61 
62  //--- Dump OpticalAlignments
63  nrcd = optalign->opticalAlignments_.size();
64  if (!myDbService.isAvailable()) {
65  throw cms::Exception("CocoaDBMgr::DumpCocoaResults DB not available");
66  }
67  // try{
68  if (myDbService->isNewTagRequest("OpticalAlignmentsRcd")) {
69  std::cout << " new OA to DB "
70  << "begin " << myDbService->beginOfTime() << " current " << myDbService->currentTime() << " end "
71  << myDbService->endOfTime() << std::endl;
72  myDbService->createNewIOV<OpticalAlignments>(
73  optalign,
74  myDbService->beginOfTime(),
75  myDbService->endOfTime(),
76  // myDbService->endOfTime(),
77  "OpticalAlignmentsRcd");
78  } else {
79  std::cout << " old OA to DB "
80  << " current " << myDbService->currentTime() << " end " << myDbService->endOfTime() << std::endl;
81  myDbService->appendSinceTime<OpticalAlignments>(
82  optalign,
83  // myDbService->endOfTime(),
84  appendTime,
85  // myDbService->currentTime(),
86  "OpticalAlignmentsRcd");
87  }
88 
89  /* }catch(const cond::Exception& er) {
90  std::cout<<er.what()<<std::endl;
91  }catch(const std::exception& er){
92  std::cout<<"caught std::exception "<<er.what()<<std::endl;
93  }catch(...){
94  std::cout<<"Funny error"<<std::endl;
95  } */
96 
97  if (ALIUtils::debug >= 2)
98  std::cout << "OpticalAlignmentsRcd WRITTEN TO DB : " << nrcd << std::endl;
99  }
100 
101  if (gomgr->GlobalOptions()["writeDBAlign"] > 0) {
102  // Build DT alignments and errors
103  std::pair<Alignments*, AlignmentErrorsExtended*> dtali = BuildAlignments(true);
104  Alignments* dt_Alignments = dtali.first;
105  AlignmentErrorsExtended* dt_AlignmentErrors = dtali.second;
106 
107  // Dump DT alignments and errors
108  nrcd = dt_Alignments->m_align.size();
109  if (myDbService->isNewTagRequest("DTAlignmentRcd")) {
110  myDbService->createNewIOV<Alignments>(
111  &(*dt_Alignments), myDbService->beginOfTime(), myDbService->endOfTime(), "DTAlignmentRcd");
112  } else {
113  myDbService->appendSinceTime<Alignments>(&(*dt_Alignments),
114  appendTime,
115  // myDbService->currentTime(),
116  "DTAlignmentRcd");
117  }
118  if (ALIUtils::debug >= 2)
119  std::cout << "DTAlignmentRcd WRITTEN TO DB : " << nrcd << std::endl;
120 
121  nrcd = dt_AlignmentErrors->m_alignError.size();
122  if (myDbService->isNewTagRequest("DTAlignmentErrorExtendedRcd")) {
124  &(*dt_AlignmentErrors), myDbService->beginOfTime(), myDbService->endOfTime(), "DTAlignmentErrorExtendedRcd");
125  } else {
127  &(*dt_AlignmentErrors), appendTime, "DTAlignmentErrorExtendedRcd");
128  }
129  if (ALIUtils::debug >= 2)
130  std::cout << "DTAlignmentErrorExtendedRcd WRITTEN TO DB : " << nrcd << std::endl;
131 
132  // Build CSC alignments and errors
133  std::pair<Alignments*, AlignmentErrorsExtended*> cscali = BuildAlignments(false);
134  Alignments* csc_Alignments = cscali.first;
135  AlignmentErrorsExtended* csc_AlignmentErrors = cscali.second;
136 
137  // Dump CSC alignments and errors
138  nrcd = csc_Alignments->m_align.size();
139  if (myDbService->isNewTagRequest("CSCAlignmentRcd")) {
140  myDbService->createNewIOV<Alignments>(
141  &(*csc_Alignments), myDbService->beginOfTime(), myDbService->endOfTime(), "CSCAlignmentRcd");
142  } else {
143  myDbService->appendSinceTime<Alignments>(&(*csc_Alignments), appendTime, "CSCAlignmentRcd");
144  }
145  if (ALIUtils::debug >= 2)
146  std::cout << "CSCAlignmentRcd WRITTEN TO DB : " << nrcd << std::endl;
147 
148  nrcd = csc_AlignmentErrors->m_alignError.size();
149  if (myDbService->isNewTagRequest("CSCAlignmentErrorExtendedRcd")) {
150  myDbService->createNewIOV<AlignmentErrorsExtended>(&(*csc_AlignmentErrors),
151  myDbService->beginOfTime(),
152  myDbService->endOfTime(),
153  "CSCAlignmentErrorExtendedRcd");
154  } else {
156  &(*csc_AlignmentErrors), appendTime, "CSCAlignmentErrorExtendedRcd");
157  }
158  if (ALIUtils::debug >= 2)
159  std::cout << "CSCAlignmentErrorExtendedRcd WRITTEN TO DB : " << nrcd << std::endl;
160 
161  //? gives unreadable error??? std::cout << "@@@@ OPTICALALIGNMENTS WRITTEN TO DB " << *optalign << std::endl;
162 
163  return TRUE;
164  }
165 
166  return TRUE;
167 }

References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), gather_cfg::cout, cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), ALIUtils::debug, cond::service::PoolDBOutputService::endOfTime(), Exception, GlobalOptionMgr::getInstance(), GlobalOptionMgr::GlobalOptions(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), Alignments::m_align, AlignmentErrorsExtended::m_alignError, Fit::nEvent, OpticalAlignments::opticalAlignments_, and TRUE.

Referenced by Fit::startFit().

◆ GetAlignInfoErrorFromOptO()

AlignTransformErrorExtended * CocoaDBMgr::GetAlignInfoErrorFromOptO ( OpticalObject opto)
private

Definition at line 353 of file CocoaDBMgr.cc.

353  {
354  if (ALIUtils::debug >= 3)
355  std::cout << "@@@ CocoaDBMgr::GetAlignInfoErrorFromOptO " << opto->name() << std::endl;
356 
357  align::ID cmsswID = opto->getCmsswID();
358 
359  GlobalError gerr(1., 0., 1., 0., 0., 1.);
360  //double(dx*dx), 0., double(dy*dy), 0., 0., double(dz*dz) ) ;
361  CLHEP::HepSymMatrix errms = asHepMatrix(gerr.matrix());
362  AlignTransformErrorExtended* alignError = new AlignTransformErrorExtended(errms, cmsswID);
363  return alignError;
364 
365  CLHEP::HepMatrix errm(3, 3);
366  const std::vector<Entry*>& theCoordinateEntryVector = opto->CoordinateEntryList();
367  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptOfill errm " << opto->name() << std::endl;
368  errm(0, 0) = GetEntryError(theCoordinateEntryVector[0]) * 1._m; // m in COCOA, cm in DB
369  errm(1, 1) = GetEntryError(theCoordinateEntryVector[1]) * 1._m; // m in COCOA, cm in DB
370  errm(2, 2) = GetEntryError(theCoordinateEntryVector[2]) * 1._m; // m in COCOA, cm in DB
371  errm(0, 1) = GetEntryError(theCoordinateEntryVector[0], theCoordinateEntryVector[1]) * 1._m; // m in COCOA, cm in DB
372  errm(0, 2) = GetEntryError(theCoordinateEntryVector[0], theCoordinateEntryVector[2]) * 1._m; // m in COCOA, cm in DB
373  errm(1, 2) = GetEntryError(theCoordinateEntryVector[1], theCoordinateEntryVector[2]) * 1._m; // m in COCOA, cm in DB
374  // errm(1,0) = errm(0,1);
375  // errm(2,0) = errm(0,2);
376  // errm(2,1) = errm(1,2);
377 
378  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptO errm filled" << opto->name() << std::endl;
379  // CLHEP::HepSymMatrix errms(3);
380  // errms.assign(errm);
381 
382  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptO errms filled " << opto->name() << std::endl;
383  // AlignTransformErrorExtended* alignError = new AlignTransformErrorExtended( errms, cmsswID );
384  // AlignTransformErrorExtended* alignError = 0;
385 
386  std::cout << alignError << "@@@ CocoaDBMgr::GetAlignInfoFromOptO error built " << opto->name() << std::endl;
387  //t return alignError;
388  return (AlignTransformErrorExtended*)nullptr;
389 }

References asHepMatrix(), OpticalObject::CoordinateEntryList(), gather_cfg::cout, ALIUtils::debug, OpticalObject::getCmsswID(), GlobalErrorBase< T, ErrorWeightType >::matrix(), and OpticalObject::name().

◆ GetAlignInfoFromOptO()

AlignTransform * CocoaDBMgr::GetAlignInfoFromOptO ( OpticalObject opto)
private

Definition at line 335 of file CocoaDBMgr.cc.

335  {
336  if (ALIUtils::debug >= 3)
337  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptO " << opto->name() << std::endl;
338 
339  const AlignTransform::Translation& trans = opto->centreGlob();
340  const AlignTransform::Rotation& rot = opto->rmGlob();
341  align::ID cmsswID = opto->getCmsswID();
342 
343  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptO buildalign" << opto->name() << std::endl;
344  AlignTransform* align = new AlignTransform(trans, rot, cmsswID);
345 
346  std::cout << "@@@ CocoaDBMgr::GetAlignInfoFromOptO alig built " << opto->name() << std::endl;
347 
348  return align;
349  // return dd;
350 }

References OpticalObject::centreGlob(), gather_cfg::cout, ALIUtils::debug, OpticalObject::getCmsswID(), OpticalObject::name(), OpticalObject::rmGlob(), and makeMuonMisalignmentScenario::rot.

◆ GetEntryError() [1/2]

double CocoaDBMgr::GetEntryError ( const Entry entry)
private

◆ GetEntryError() [2/2]

double CocoaDBMgr::GetEntryError ( const Entry entry1,
const Entry entry2 
)
private

◆ getInstance()

CocoaDBMgr * CocoaDBMgr::getInstance ( )
static

Definition at line 40 of file CocoaDBMgr.cc.

40  {
41  if (!instance) {
42  instance = new CocoaDBMgr;
43  }
44  return instance;
45 }

References instance.

Referenced by Fit::startFit().

◆ GetOptAlignInfoFromOptO()

OpticalAlignInfo CocoaDBMgr::GetOptAlignInfoFromOptO ( OpticalObject opto)
private

Definition at line 170 of file CocoaDBMgr.cc.

170  {
171  LogDebug("Alignment") << " CocoaDBMgr::GetOptAlignInfoFromOptO " << opto->name();
173  data.ID_ = opto->getCmsswID();
174  data.type_ = opto->type();
175  data.name_ = opto->name();
176 
177  //----- Centre in local coordinates
178  CLHEP::Hep3Vector centreLocal = opto->centreGlob() - opto->parent()->centreGlob();
179  CLHEP::HepRotation parentRmGlobInv = inverseOf(opto->parent()->rmGlob());
180  centreLocal = parentRmGlobInv * centreLocal;
181 
182  const std::vector<Entry*>& theCoordinateEntryVector = opto->CoordinateEntryList();
183  LogDebug("Alignment") << " CocoaDBMgr::GetOptAlignInfoFromOptO starting coord ";
184  if (theCoordinateEntryVector.size() == 6) {
185  const Entry* const translationX = theCoordinateEntryVector.at(0);
186  OpticalAlignParam translationXDataForDB;
187  translationXDataForDB.name_ = translationX->name();
188  translationXDataForDB.dim_type_ = translationX->type();
189  translationXDataForDB.value_ = centreLocal.x() * 1._m; // m in COCOA, cm in DB
190  translationXDataForDB.error_ = GetEntryError(translationX) * 1._m; // m in COCOA, cm in DB
191  translationXDataForDB.quality_ = translationX->quality();
192  data.x_ = translationXDataForDB;
193 
194  const Entry* const translationY = theCoordinateEntryVector.at(1);
195  OpticalAlignParam translationYDataForDB;
196  translationYDataForDB.name_ = translationY->name();
197  translationYDataForDB.dim_type_ = translationY->type();
198  translationYDataForDB.value_ = centreLocal.y() * 1._m; // m in COCOA, cm in DB
199  translationYDataForDB.error_ = GetEntryError(translationY) * 1._m; // m in COCOA, cm in DB
200  translationYDataForDB.quality_ = translationY->quality();
201  data.y_ = translationYDataForDB;
202 
203  const Entry* const translationZ = theCoordinateEntryVector.at(2);
204  OpticalAlignParam translationZDataForDB;
205  translationZDataForDB.name_ = translationZ->name();
206  translationZDataForDB.dim_type_ = translationZ->type();
207  translationZDataForDB.value_ = centreLocal.z() * 1._m; // m in COCOA, cm in DB
208  translationZDataForDB.error_ = GetEntryError(translationZ) * 1._m; // m in COCOA, cm in DB
209  translationZDataForDB.quality_ = translationZ->quality();
210  data.z_ = translationZDataForDB;
211 
212  //----- angles in local coordinates
213  std::vector<double> anglocal = opto->getLocalRotationAngles(theCoordinateEntryVector);
214  if (anglocal.size() == 3) {
215  const Entry* const rotationX = theCoordinateEntryVector.at(3);
216  OpticalAlignParam rotationXDataForDB;
217  rotationXDataForDB.name_ = rotationX->name();
218  rotationXDataForDB.dim_type_ = rotationX->type();
219  rotationXDataForDB.value_ = anglocal.at(0);
220  rotationXDataForDB.error_ = GetEntryError(rotationX);
221  rotationXDataForDB.quality_ = rotationX->quality();
222  data.angx_ = rotationXDataForDB;
223 
224  const Entry* const rotationY = theCoordinateEntryVector.at(4);
225  OpticalAlignParam rotationYDataForDB;
226  rotationYDataForDB.name_ = rotationY->name();
227  rotationYDataForDB.dim_type_ = rotationY->type();
228  rotationYDataForDB.value_ = anglocal.at(1);
229  rotationYDataForDB.error_ = GetEntryError(rotationY);
230  rotationYDataForDB.quality_ = rotationY->quality();
231  data.angy_ = rotationYDataForDB;
232 
233  const Entry* const rotationZ = theCoordinateEntryVector.at(5);
234  OpticalAlignParam rotationZDataForDB;
235  rotationZDataForDB.name_ = rotationZ->name();
236  rotationZDataForDB.dim_type_ = rotationZ->type();
237  rotationZDataForDB.value_ = anglocal.at(2);
238  rotationZDataForDB.error_ = GetEntryError(rotationZ);
239  rotationZDataForDB.quality_ = rotationZ->quality();
240  data.angz_ = rotationZDataForDB;
241  }
242  }
243 
244  std::cout << " CocoaDBMgr::GetOptAlignInfoFromOptO starting entry " << std::endl;
245  for (const auto& myDBExtraEntry : opto->ExtraEntryList()) {
246  OpticalAlignParam extraEntry;
247  extraEntry.name_ = myDBExtraEntry->name();
248  extraEntry.dim_type_ = myDBExtraEntry->type();
249  extraEntry.value_ = myDBExtraEntry->value();
250  extraEntry.error_ = myDBExtraEntry->sigma();
251  if (extraEntry.dim_type_ == "centre" || extraEntry.dim_type_ == "length") {
252  extraEntry.value_ *= 1._m; // m in COCOA, cm in DB
253  extraEntry.error_ *= 1._m; // m in COCOA, cm in DB
254  }
255  extraEntry.quality_ = myDBExtraEntry->quality();
256  data.extraEntries_.emplace_back(extraEntry);
257  std::cout << " CocoaDBMgr::GetOptAlignInfoFromOptO done extra entry " << extraEntry.name_ << std::endl;
258  }
259 
260  return data;
261 }

References OpticalObject::centreGlob(), OpticalObject::CoordinateEntryList(), gather_cfg::cout, data, OpticalAlignParam::dim_type_, OpticalAlignParam::error_, OpticalObject::ExtraEntryList(), OpticalObject::getCmsswID(), OpticalObject::getLocalRotationAngles(), LogDebug, OpticalObject::name(), OpticalAlignParam::name_, OpticalObject::parent(), OpticalAlignParam::quality_, OpticalObject::rmGlob(), OpticalObject::type(), and OpticalAlignParam::value_.

Member Data Documentation

◆ instance

CocoaDBMgr * CocoaDBMgr::instance = nullptr
staticprivate

Definition at line 59 of file CocoaDBMgr.h.

Referenced by production_tasks.Task::getname().

CocoaDBMgr::instance
static CocoaDBMgr * instance
Definition: CocoaDBMgr.h:59
align
Definition: AlignableIndexer.h:30
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition: PoolDBOutputService.cc:215
OpticalAlignParam::error_
double error_
Definition: OpticalAlignInfo.h:47
GlobalOptionMgr::GlobalOptions
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
Definition: GlobalOptionMgr.h:31
GlobalOptionMgr
Definition: GlobalOptionMgr.h:18
OpticalObject::name
const ALIstring & name() const
Definition: OpticalObject.h:58
GlobalOptionMgr::getInstance
static GlobalOptionMgr * getInstance()
Definition: GlobalOptionMgr.cc:18
AlignTransform::Rotation
CLHEP::HepRotation Rotation
Definition: AlignTransform.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
OpticalAlignments::opticalAlignments_
std::vector< OpticalAlignInfo > opticalAlignments_
Definition: OpticalAlignments.h:30
cond::service::PoolDBOutputService::appendSinceTime
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
Definition: PoolDBOutputService.h:141
OpticalAlignInfo
Definition: OpticalAlignInfo.h:71
AlignTransform::Translation
CLHEP::Hep3Vector Translation
Definition: AlignTransform.h:18
CocoaDBMgr::GetEntryError
double GetEntryError(const Entry *entry)
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
OpticalObject::centreGlob
const CLHEP::Hep3Vector & centreGlob() const
Definition: OpticalObject.h:75
TRUE
#define TRUE
Definition: scimark2.h:12
OpticalObject::type
const ALIstring & type() const
Definition: OpticalObject.h:59
OpticalObject::rmGlob
const CLHEP::HepRotation & rmGlob() const
Definition: OpticalObject.h:83
OpticalObject::getLocalRotationAngles
std::vector< double > getLocalRotationAngles(const std::vector< Entry * > &entries) const
Definition: OpticalObject.cc:1679
cond::service::PoolDBOutputService::createNewIOV
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
Definition: PoolDBOutputService.h:116
OpticalAlignParam::name_
std::string name_
Definition: OpticalAlignInfo.h:49
ALIUtils::debug
static ALIint debug
Definition: ALIUtils.h:34
Model::OptOList
static std::vector< OpticalObject * > & OptOList()
Definition: Model.h:84
CocoaDBMgr::BuildOpticalAlignments
OpticalAlignments * BuildOpticalAlignments()
Definition: CocoaDBMgr.cc:285
AlignTransform
Definition: AlignTransform.h:15
CocoaDBMgr::CocoaDBMgr
CocoaDBMgr()
Definition: CocoaDBMgr.cc:48
OpticalAlignParam
Definition: OpticalAlignInfo.h:34
OpticalObject::ExtraEntryList
const std::vector< Entry * > & ExtraEntryList() const
Definition: OpticalObject.h:65
OpticalObject::getCmsswID
const ALIuint getCmsswID() const
Definition: OpticalObject.h:97
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
align::ID
uint32_t ID
Definition: Definitions.h:24
OpticalObject::parent
const OpticalObject * parent() const
Definition: OpticalObject.h:60
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
edm::Service< cond::service::PoolDBOutputService >
GlobalErrorBase< double, ErrorMatrixTag >
OpticalObject::CoordinateEntryList
const std::vector< Entry * > & CoordinateEntryList() const
Definition: OpticalObject.h:63
AlignmentErrorsExtended
Definition: AlignmentErrorsExtended.h:10
cond::service::PoolDBOutputService::endOfTime
cond::Time_t endOfTime() const
Definition: PoolDBOutputService.cc:213
Fit::nEvent
static ALIuint nEvent
Definition: Fit.h:208
CocoaDBMgr::GetOptAlignInfoFromOptO
OpticalAlignInfo GetOptAlignInfoFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:170
Exception
Definition: hltDiff.cc:246
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
AlignTransformErrorExtended
Definition: AlignTransformErrorExtended.h:13
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition: PoolDBOutputService.cc:128
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
OpticalAlignments
Definition: OpticalAlignments.h:22
Alignments::m_align
std::vector< AlignTransform > m_align
Definition: Alignments.h:19
AlignmentErrorsExtended::m_alignError
std::vector< AlignTransformErrorExtended > m_alignError
Definition: AlignmentErrorsExtended.h:19
CocoaDBMgr::GetAlignInfoErrorFromOptO
AlignTransformErrorExtended * GetAlignInfoErrorFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:353
CocoaDBMgr::BuildAlignments
std::pair< Alignments *, AlignmentErrorsExtended * > BuildAlignments(bool bDT)
Definition: CocoaDBMgr.cc:303
CocoaDBMgr::GetAlignInfoFromOptO
AlignTransform * GetAlignInfoFromOptO(OpticalObject *opto)
Definition: CocoaDBMgr.cc:335
asHepMatrix
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:59
OpticalAlignParam::value_
double value_
Definition: OpticalAlignInfo.h:46
Alignments
Definition: Alignments.h:10
OpticalAlignParam::quality_
int quality_
Definition: OpticalAlignInfo.h:48
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:217
OpticalAlignParam::dim_type_
std::string dim_type_
Definition: OpticalAlignInfo.h:50