CMS 3D CMS Logo

CTPPSRPAlignmentCorrectionsMethods.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM offline software.
4  * Authors:
5  * Jan Kaspar
6  * Helena Malbouisson
7  * Clemencia Mora Herrera
8  *
9  ****************************************************************************/
10 
11 #ifndef CondFormats_CTPPSReadoutObjects_CTPPSRPAlignmentCorrectionsMethods
12 #define CondFormats_CTPPSReadoutObjects_CTPPSRPAlignmentCorrectionsMethods
13 
17 
18 #include <xercesc/dom/DOM.hpp>
19 
20 //----------------------------------------------------------------------------------------------------
21 
23 {
24  public:
26 
29 
31  static void writeToXML( const CTPPSRPAlignmentCorrectionsDataSequence &seq, const std::string& fileName,
32  bool precise = false, bool wrErrors = true,
33  bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true );
34 
36  static void writeToXML( const CTPPSRPAlignmentCorrectionsData &ad, const std::string& fileName,
37  bool precise = false, bool wrErrors = true,
38  bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true )
39  {
42  s.insert(iov, ad);
43  writeToXML(s, fileName, precise, wrErrors, wrSh_xy, wrSh_z, wrRot_xy, wrRot_z);
44  }
45 
47 
49 
50  protected:
52  static CTPPSRPAlignmentCorrectionsData getCorrectionsData( xercesc::DOMNode* );
53 
55  static void writeXML( const CTPPSRPAlignmentCorrectionData& data, FILE* f, bool precise, bool wrErrors,
56  bool wrSh_xy, bool wrSh_z, bool wrRot_xy, bool wrRot_z );
57 
59  static void writeXMLBlock( const CTPPSRPAlignmentCorrectionsData&, FILE*, bool precise = false, bool wrErrors = true,
60  bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true );
61 };
62 
63 #endif
static edm::IOVSyncValue stringToIOVValue(const std::string &)
Time sequence of alignment corrections. I/O methods have been factored out to: CondFormats/CTPPSReado...
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
static CTPPSRPAlignmentCorrectionsDataSequence loadFromXML(const std::string &fileName)
loads sequence of alignment corrections from XML file
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
static std::string iovValueToString(const edm::IOVSyncValue &)
double f[11][100]
void insert(const edm::ValidityInterval &iov, const CTPPSRPAlignmentCorrectionsData &data)
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
static void writeXMLBlock(const CTPPSRPAlignmentCorrectionsData &, FILE *, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true)
writes a block of corrections into a file
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
static void writeToXML(const CTPPSRPAlignmentCorrectionsDataSequence &seq, const std::string &fileName, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true)
writes sequence of alignment corrections into a single XML file
static void writeToXML(const CTPPSRPAlignmentCorrectionsData &ad, const std::string &fileName, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true)
writes alignment corrections into a single XML file, assigning infinite interval of validity ...
static void writeXML(const CTPPSRPAlignmentCorrectionData &data, FILE *f, bool precise, bool wrErrors, bool wrSh_xy, bool wrSh_z, bool wrRot_xy, bool wrRot_z)
writes data of a correction in XML format
static CTPPSRPAlignmentCorrectionsData getCorrectionsData(xercesc::DOMNode *)
load corrections data corresponding to one IOV
Alignment correction for an element of the CT-PPS detector. Within the geometry description, every sensor (more generally every element) is given its translation and rotation. These two quantities shall be understood in local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then it holds.