TrackerAlignment

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#ifndef Alignment_TrackerAlignment_TrackerAlignment_H
#define Alignment_TrackerAlignment_TrackerAlignment_H

/** \class TrackerAlignment
 *  The TrackerAlignment helper class for alignment jobs
 *  - Rotates and Translates any module for the tracker based on rawId
 *
 *  \author Nhan Tran
 */

#include "FWCore/Framework/interface/EventSetup.h"

#include "Alignment/TrackerAlignment/interface/AlignableTracker.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
class TrackerTopology;

class TrackerAlignment {
public:
  TrackerAlignment(const TrackerTopology* tTopo, const TrackerGeometry* tGeom);

  ~TrackerAlignment();

  AlignableTracker* getAlignableTracker() { return theAlignableTracker; }

  void moveAlignablePixelEndCaps(int rawId,
                                 const align::Scalars& localDisplacements,
                                 const align::Scalars& localRotations);
  void moveAlignableEndCaps(int rawId, const align::Scalars& localDisplacements, const align::Scalars& localRotations);
  void moveAlignablePixelHalfBarrels(int rawId,
                                     const align::Scalars& localDisplacements,
                                     const align::Scalars& localRotations);
  void moveAlignableInnerHalfBarrels(int rawId,
                                     const align::Scalars& localDisplacements,
                                     const align::Scalars& localRotations);
  void moveAlignableOuterHalfBarrels(int rawId,
                                     const align::Scalars& localDisplacements,
                                     const align::Scalars& localRotations);
  void moveAlignableTIDs(int rawId, const align::Scalars& localDisplacements, const align::Scalars& localRotations);
  void moveAlignableTIBTIDs(int rawId,
                            const align::Scalars& globalDisplacements,
                            const align::RotationType& backwardRotation,
                            const align::RotationType& forwardRotation,
                            bool toAndFro);

  void saveToDB();

private:
  AlignableTracker* theAlignableTracker;
  std::string theAlignRecordName, theErrorRecordName;
};
#endif  //TrackerAlignment_H