test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackerGeometryCompare.h
Go to the documentation of this file.
1 #ifndef Alignment_OfflineValidation_TrackerGeometryCompare_h
2 #define Alignment_OfflineValidation_TrackerGeometryCompare_h
3 
33 
35 
36 
37 //******** Single include for the TkMap *************
40 //***************************************************
41 
42 #include <algorithm>
43 #include <string>
44 #include "TTree.h"
45 #include "TH1D.h"
46 
47 class AlignTransform;
48 class TrackerTopology;
49 
51 public:
54  typedef std::vector<Alignable*> Alignables;
55 
58  const edm::ParameterSet&
59  );
60 
62  virtual void beginJob();
63 
64  virtual void endJob();
65 
66  virtual void analyze(
67  const edm::Event&,
68  const edm::EventSetup&
69  );
70 
71 private:
72 
73 
74  //parameters
75  std::vector<align::StructureType> m_theLevels;
76  //std::vector<int> theSubDets;
77 
78  //compare surface deformations
80  //compares two geometries
81  void compareGeometries(Alignable* refAli, Alignable* curAli, const TrackerTopology* tTopo, const edm::EventSetup& iSetup);
82  //filling the ROOT file
83  void fillTree(Alignable *refAli, const AlgebraicVector& diff, // typedef CLHEP::HepVector AlgebraicVector;
84  const TrackerTopology* tTopo, const edm::EventSetup& iSetup);
85  //for filling identifiers
86  void fillIdentifiers( int subdetlevel, int rawid, const TrackerTopology* tTopo);
87  //converts surveyRcd into alignmentRcd
88  void surveyToTracker(AlignableTracker* ali, Alignments* alignVals, AlignmentErrorsExtended* alignErrors);
89  //need for conversion for surveyToTracker
90  void addSurveyInfo(Alignable* ali);
91  //void createDBGeometry(const edm::EventSetup& iSetup);
92  void createROOTGeometry(const edm::EventSetup& iSetup);
93 
94  // for common tracker system
96  void diffCommonTrackerSystem(Alignable* refAli, Alignable* curAli);
97  bool passIdCut( uint32_t );
98 
102 
103  unsigned int theSurveyIndex;
106 
107  // configurables
113  bool _writeToDB;
120  std::vector< unsigned int > _weightByIdVector;
121 
122  std::vector< uint32_t > _detIdFlagVector;
127 
128  std::ifstream _moduleListFile;
129  std::vector< int > _moduleList;
131 
132  //root configuration
134  TFile* _theFile;
135  TTree* _alignTree;
138  TTree* _inputTree01;
139  TTree* _inputTree02;
140  TTree* _inputTree11;
141  TTree* _inputTree12;
142 
146  // changes in global variables
148  // changes local variables: u, v, w, alpha, beta, gamma
151  uint32_t _identifiers[6];
152  double _surRot[9];
153  int _type;
154  double _surfDeform[13];
155 
156  int m_nBins ;
157  double m_rangeLow ;
158  double m_rangeHigh ;
159 
161 
162  std::vector<TrackerMap> m_vtkmap;
163 
164  std::map<std::string,TH1D*> m_h1 ;
165 
166 
167 };
168 
169 
170 
171 
172 #endif
align::GlobalVector _TrackerCommonR
void compareGeometries(Alignable *refAli, Alignable *curAli, const TrackerTopology *tTopo, const edm::EventSetup &iSetup)
std::vector< align::StructureType > m_theLevels
const Alignments * theSurveyValues
void addSurveyInfo(Alignable *ali)
align::GlobalVector _TrackerCommonT
void diffCommonTrackerSystem(Alignable *refAli, Alignable *curAli)
std::vector< TrackerMap > m_vtkmap
AlignableTracker * dummyTracker
list diff
Definition: mps_update.py:85
std::map< std::string, TH1D * > m_h1
std::vector< Alignable * > Alignables
virtual void beginJob()
Read from DB and print survey info.
std::vector< uint32_t > _detIdFlagVector
TrackerGeometryCompare(const edm::ParameterSet &)
Do nothing. Required by framework.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
align::StructureType _commonTrackerLevel
align::PositionType _TrackerCommonCM
void fillTree(Alignable *refAli, const AlgebraicVector &diff, const TrackerTopology *tTopo, const edm::EventSetup &iSetup)
CLHEP::HepVector AlgebraicVector
AlignableTracker * currentTracker
void surveyToTracker(AlignableTracker *ali, Alignments *alignVals, AlignmentErrorsExtended *alignErrors)
void fillIdentifiers(int subdetlevel, int rawid, const TrackerTopology *tTopo)
AlignableTracker * referenceTracker
void createROOTGeometry(const edm::EventSetup &iSetup)
const SurveyErrors * theSurveyErrors
std::vector< unsigned int > _weightByIdVector
std::vector< int > _moduleList
void compareSurfaceDeformations(TTree *_inputTree11, TTree *_inputTree12)