CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
TrackerGeometryCompare Class Reference

#include <TrackerGeometryCompare.h>

Inheritance diagram for TrackerGeometryCompare:
edm::EDAnalyzer edm::EDConsumerBase

Public Types

typedef std::vector< Alignable * > Alignables
 
typedef AlignTransform SurveyValue
 
typedef Alignments SurveyValues
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 Read from DB and print survey info. More...
 
virtual void endJob ()
 
 TrackerGeometryCompare (const edm::ParameterSet &)
 Do nothing. Required by framework. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void addSurveyInfo (Alignable *ali)
 
void compareGeometries (Alignable *refAli, Alignable *curAli, const TrackerTopology *tTopo, const edm::EventSetup &iSetup)
 
void compareSurfaceDeformations (TTree *_inputTree11, TTree *_inputTree12)
 
void createROOTGeometry (const edm::EventSetup &iSetup)
 
void diffCommonTrackerSystem (Alignable *refAli, Alignable *curAli)
 
void fillIdentifiers (int subdetlevel, int rawid, const TrackerTopology *tTopo)
 
void fillTree (Alignable *refAli, const AlgebraicVector &diff, const TrackerTopology *tTopo, const edm::EventSetup &iSetup)
 
bool passIdCut (uint32_t)
 
void setCommonTrackerSystem ()
 
void surveyToTracker (AlignableTracker *ali, Alignments *alignVals, AlignmentErrorsExtended *alignErrors)
 

Private Attributes

TTree * _alignTree
 
float _alphaVal
 
int _badModuleQuality
 
float _betaVal
 
align::StructureType _commonTrackerLevel
 
float _dalphaVal
 
float _daVal
 
float _dbetaVal
 
float _dbVal
 
int _detDim
 
bool _detIdFlag
 
std::string _detIdFlagFile
 
std::vector< uint32_t > _detIdFlagVector
 
float _dgammaVal
 
float _dgVal
 
float _dphiVal
 
float _drVal
 
float _duVal
 
float _dvVal
 
float _dwVal
 
float _dxVal
 
float _dyVal
 
float _dzVal
 
float _etaVal
 
std::string _filename
 
float _gammaVal
 
int _id
 
uint32_t _identifiers [6]
 
int _inModuleList
 
std::string _inputFilename1
 
std::string _inputFilename2
 
TFile * _inputRootFile1
 
TFile * _inputRootFile2
 
TTree * _inputTree01
 
TTree * _inputTree02
 
TTree * _inputTree11
 
TTree * _inputTree12
 
std::string _inputTreenameAlign
 
std::string _inputTreenameDeform
 
int _level
 
int _mid
 
int _mlevel
 
int _moduleInList
 
std::vector< int > _moduleList
 
std::ifstream _moduleListFile
 
std::string _moduleListName
 
float _phiVal
 
float _rVal
 
std::string _setCommonTrackerSystem
 
int _sublevel
 
double _surfDeform [13]
 
float _surLength
 
double _surRot [9]
 
float _surWidth
 
TFile * _theFile
 
align::PositionType _TrackerCommonCM
 
align::GlobalVector _TrackerCommonR
 
align::GlobalVector _TrackerCommonT
 
int _type
 
int _useDetId
 
std::string _weightBy
 
bool _weightById
 
std::string _weightByIdFile
 
std::vector< unsigned int > _weightByIdVector
 
bool _writeToDB
 
float _xVal
 
float _yVal
 
float _zVal
 
AlignableTrackercurrentTracker
 
AlignableTrackerdummyTracker
 
bool firstEvent_
 
std::map< std::string, TH1D * > m_h1
 
int m_nBins
 
double m_rangeHigh
 
double m_rangeLow
 
std::vector< align::StructureTypem_theLevels
 
std::vector< TrackerMapm_vtkmap
 
AlignableTrackerreferenceTracker
 
const SurveyErrorstheSurveyErrors
 
unsigned int theSurveyIndex
 
const AlignmentstheSurveyValues
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Module that reads survey info from DB and prints them out.

Usage: module comparator = TrackerGeometryCompare {

lots of stuff

} path p = { comparator }

Date:
2012/12/02 22:13:12
Revision:
1.14
Author
Nhan Tran

******** Including surface deformations in the geometry comparison ********


Definition at line 50 of file TrackerGeometryCompare.h.

Member Typedef Documentation

Definition at line 54 of file TrackerGeometryCompare.h.

Definition at line 52 of file TrackerGeometryCompare.h.

Definition at line 53 of file TrackerGeometryCompare.h.

Constructor & Destructor Documentation

TrackerGeometryCompare::TrackerGeometryCompare ( const edm::ParameterSet cfg)

Do nothing. Required by framework.

Definition at line 61 of file TrackerGeometryCompare.cc.

Member Function Documentation

void TrackerGeometryCompare::addSurveyInfo ( Alignable ali)
private

Definition at line 943 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::analyze ( const edm::Event ,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 238 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::beginJob ( void  )
virtual

Read from DB and print survey info.

Reimplemented from edm::EDAnalyzer.

Definition at line 214 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::compareGeometries ( Alignable refAli,
Alignable curAli,
const TrackerTopology tTopo,
const edm::EventSetup iSetup 
)
private

Definition at line 612 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::compareSurfaceDeformations ( TTree *  _inputTree11,
TTree *  _inputTree12 
)
private

Definition at line 469 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::createROOTGeometry ( const edm::EventSetup iSetup)
private

Definition at line 282 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::diffCommonTrackerSystem ( Alignable refAli,
Alignable curAli 
)
private

Definition at line 723 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 218 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::fillIdentifiers ( int  subdetlevel,
int  rawid,
const TrackerTopology tTopo 
)
private

Definition at line 990 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::fillTree ( Alignable refAli,
const AlgebraicVector diff,
const TrackerTopology tTopo,
const edm::EventSetup iSetup 
)
private

Definition at line 782 of file TrackerGeometryCompare.cc.

bool TrackerGeometryCompare::passIdCut ( uint32_t  id)
private

Definition at line 977 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::setCommonTrackerSystem ( )
private

Definition at line 685 of file TrackerGeometryCompare.cc.

void TrackerGeometryCompare::surveyToTracker ( AlignableTracker ali,
Alignments alignVals,
AlignmentErrorsExtended alignErrors 
)
private

Definition at line 891 of file TrackerGeometryCompare.cc.

Member Data Documentation

TTree* TrackerGeometryCompare::_alignTree
private

Definition at line 135 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_alphaVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_badModuleQuality
private

Definition at line 144 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_betaVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

align::StructureType TrackerGeometryCompare::_commonTrackerLevel
private

Definition at line 123 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dalphaVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_daVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dbetaVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dbVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_detDim
private

Definition at line 144 of file TrackerGeometryCompare.h.

bool TrackerGeometryCompare::_detIdFlag
private

Definition at line 116 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_detIdFlagFile
private

Definition at line 117 of file TrackerGeometryCompare.h.

std::vector< uint32_t > TrackerGeometryCompare::_detIdFlagVector
private

Definition at line 122 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dgammaVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dgVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dphiVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_drVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_duVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dvVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dwVal
private

Definition at line 149 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dxVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dyVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_dzVal
private

Definition at line 147 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_etaVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_filename
private
float TrackerGeometryCompare::_gammaVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_id
private

\ Tree variables

Definition at line 144 of file TrackerGeometryCompare.h.

uint32_t TrackerGeometryCompare::_identifiers[6]
private

Definition at line 151 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_inModuleList
private

Definition at line 144 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_inputFilename1
private

Definition at line 109 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_inputFilename2
private

Definition at line 110 of file TrackerGeometryCompare.h.

TFile* TrackerGeometryCompare::_inputRootFile1
private

Definition at line 136 of file TrackerGeometryCompare.h.

TFile* TrackerGeometryCompare::_inputRootFile2
private

Definition at line 137 of file TrackerGeometryCompare.h.

TTree* TrackerGeometryCompare::_inputTree01
private

Definition at line 138 of file TrackerGeometryCompare.h.

TTree* TrackerGeometryCompare::_inputTree02
private

Definition at line 139 of file TrackerGeometryCompare.h.

TTree* TrackerGeometryCompare::_inputTree11
private

Definition at line 140 of file TrackerGeometryCompare.h.

TTree* TrackerGeometryCompare::_inputTree12
private

Definition at line 141 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_inputTreenameAlign
private

Definition at line 111 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_inputTreenameDeform
private

Definition at line 112 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_level
private

Definition at line 144 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_mid
private

Definition at line 144 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_mlevel
private

Definition at line 144 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_moduleInList
private

Definition at line 130 of file TrackerGeometryCompare.h.

std::vector< int > TrackerGeometryCompare::_moduleList
private

Definition at line 129 of file TrackerGeometryCompare.h.

std::ifstream TrackerGeometryCompare::_moduleListFile
private

Definition at line 128 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_moduleListName
private

Definition at line 108 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_phiVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_rVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_setCommonTrackerSystem
private

Definition at line 115 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_sublevel
private

Definition at line 144 of file TrackerGeometryCompare.h.

double TrackerGeometryCompare::_surfDeform[13]
private

Definition at line 154 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_surLength
private

Definition at line 150 of file TrackerGeometryCompare.h.

double TrackerGeometryCompare::_surRot[9]
private

Definition at line 152 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_surWidth
private

Definition at line 150 of file TrackerGeometryCompare.h.

TFile* TrackerGeometryCompare::_theFile
private

Definition at line 134 of file TrackerGeometryCompare.h.

align::PositionType TrackerGeometryCompare::_TrackerCommonCM
private

Definition at line 126 of file TrackerGeometryCompare.h.

align::GlobalVector TrackerGeometryCompare::_TrackerCommonR
private

Definition at line 125 of file TrackerGeometryCompare.h.

align::GlobalVector TrackerGeometryCompare::_TrackerCommonT
private

Definition at line 124 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_type
private

Definition at line 153 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::_useDetId
private

Definition at line 144 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_weightBy
private

Definition at line 114 of file TrackerGeometryCompare.h.

bool TrackerGeometryCompare::_weightById
private

Definition at line 118 of file TrackerGeometryCompare.h.

std::string TrackerGeometryCompare::_weightByIdFile
private

Definition at line 119 of file TrackerGeometryCompare.h.

std::vector< unsigned int > TrackerGeometryCompare::_weightByIdVector
private

Definition at line 120 of file TrackerGeometryCompare.h.

bool TrackerGeometryCompare::_writeToDB
private

Definition at line 113 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_xVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_yVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

float TrackerGeometryCompare::_zVal
private

Definition at line 145 of file TrackerGeometryCompare.h.

AlignableTracker* TrackerGeometryCompare::currentTracker
private

Definition at line 101 of file TrackerGeometryCompare.h.

AlignableTracker* TrackerGeometryCompare::dummyTracker
private

Definition at line 100 of file TrackerGeometryCompare.h.

bool TrackerGeometryCompare::firstEvent_
private

Definition at line 160 of file TrackerGeometryCompare.h.

std::map<std::string,TH1D*> TrackerGeometryCompare::m_h1
private

Definition at line 164 of file TrackerGeometryCompare.h.

int TrackerGeometryCompare::m_nBins
private

Definition at line 156 of file TrackerGeometryCompare.h.

double TrackerGeometryCompare::m_rangeHigh
private

Definition at line 158 of file TrackerGeometryCompare.h.

double TrackerGeometryCompare::m_rangeLow
private

Definition at line 157 of file TrackerGeometryCompare.h.

std::vector<align::StructureType> TrackerGeometryCompare::m_theLevels
private

Definition at line 75 of file TrackerGeometryCompare.h.

std::vector<TrackerMap> TrackerGeometryCompare::m_vtkmap
private

Definition at line 162 of file TrackerGeometryCompare.h.

AlignableTracker* TrackerGeometryCompare::referenceTracker
private

Definition at line 99 of file TrackerGeometryCompare.h.

const SurveyErrors* TrackerGeometryCompare::theSurveyErrors
private

Definition at line 105 of file TrackerGeometryCompare.h.

unsigned int TrackerGeometryCompare::theSurveyIndex
private

Definition at line 103 of file TrackerGeometryCompare.h.

const Alignments* TrackerGeometryCompare::theSurveyValues
private

Definition at line 104 of file TrackerGeometryCompare.h.