-
Notifications
You must be signed in to change notification settings - Fork 0
AlignmentTool
The tool is used for generating the analyzed ntuples with the information for the further combination from the parallel jobs. Because the alignment parameters are approached iteratively with each process, it is good to save time by using skimmed data.
ESAlignTool.h
and ESAlignTool.cc
are the source codes for this module by using CMSSW EDAnalyzer template.
The beginJob() (/endJob()) is called by running py-file before (/after) accessing all events of data.
The analyze() is called at each event for producing ROOT-ntuple with the residual and values for matrix calculation. At each event, the following steps are included in analyze() :
- initilization for event dependent variables.
- accessing preshower reconstructed hits.
- accessing track information and the association with previous item.
- set local coordinate with respect to global coordinate.
- extrapolating prediction point on preshower plane.
- calculation from the measurement and prediction.
AlignIter1.py
is the execution code for cmsRun.
And, esaligntool_cfi.py
initialize the settings for the process.
The format for the global tag, Tracker alignment tag, Preshower alignment tag is included.
AlignmentCalculation.C
is the core for alignment calculation optimized for preshower only.
The combination of the elements of matrix from parallel jobs, the calcuation for inversing matrix and alignment vector are included in macros and scripts. Some scripts are also included for different working nodes.