Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:33

0001 /****************************************************************************
0002 * Authors: 
0003 *  Jan Kašpar (jan.kaspar@gmail.com) 
0004 ****************************************************************************/
0005 
0006 #ifndef CalibPPS_AlignmentRelative_Utilities_h
0007 #define CalibPPS_AlignmentRelative_Utilities_h
0008 
0009 #include "DataFormats/CTPPSDetId/interface/CTPPSDetId.h"
0010 
0011 #include <TMatrixD.h>
0012 
0013 class CTPPSRPAlignmentCorrectionsData;
0014 class AlignmentGeometry;
0015 
0016 extern void printId(unsigned int id);
0017 
0018 extern void print(TMatrixD &m, const char *label = nullptr, bool mathematicaFormat = false);
0019 
0020 /**
0021  * NOTE ON ERROR PROPAGATION
0022  *
0023  * It is not possible to split (and merge again) the experimental errors between the RP and sensor
0024  * contributions. To do so, one would need to keep the entire covariance matrix. Thus, it has been
0025  * decided to save:
0026  *   RP errors = the uncertainty of the common shift/rotation
0027  *   sensor error = the full experimental uncertainty
0028  * In consequence: RP and sensor errors SHOULD NEVER BE SUMMED!
0029  **/
0030 extern void factorRPFromSensorCorrections(const CTPPSRPAlignmentCorrectionsData &input,
0031                                           CTPPSRPAlignmentCorrectionsData &expanded,
0032                                           CTPPSRPAlignmentCorrectionsData &factored,
0033                                           const AlignmentGeometry &,
0034                                           bool equalWeights = false,
0035                                           unsigned int verbosity = 0);
0036 
0037 #endif