CMS 3D CMS Logo

CSCOverlapsAlignmentAlgorithm.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: MuonAlignmentAlgorithms
4 // Class: CSCOverlapsAlignmentAlgorithm
5 //
13 //
14 // Original Author: Jim Pivarski,,,
15 // Created: Tue Oct 7 14:56:49 CDT 2008
16 // $Id: CSCOverlapsAlignmentAlgorithm.h,v 1.6 2010/09/10 11:56:11 mussgill Exp $
17 //
18 //
19 
48 
52 
53 #include "TH1F.h"
54 #include "TH2F.h"
55 #include "TProfile.h"
56 #include "TStyle.h"
57 
58 #include <sstream>
59 #include <map>
60 
62 public:
65 
66  void initialize(const edm::EventSetup &iSetup,
67  AlignableTracker *alignableTracker,
68  AlignableMuon *alignableMuon,
69  AlignableExtras *alignableExtras,
70  AlignmentParameterStore *alignmentParameterStore) override;
71  void run(const edm::EventSetup &iSetup, const EventInfo &eventInfo) override;
72 
73  void terminate(const edm::EventSetup &iSetup) override;
74 
75  // having to make read-only accessors for all of these would be ridiculous, so they're public
77 
78  TProfile *m_fiducial_ME11;
79  TProfile *m_fiducial_ME12;
80  TProfile *m_fiducial_MEx1;
81  TProfile *m_fiducial_MEx2;
82 
83  TH1F *m_slope;
84  TH1F *m_slope_MEp4;
85  TH1F *m_slope_MEp3;
86  TH1F *m_slope_MEp2;
87  TH1F *m_slope_MEp1;
88  TH1F *m_slope_MEm1;
89  TH1F *m_slope_MEm2;
90  TH1F *m_slope_MEm3;
91  TH1F *m_slope_MEm4;
92 
99 
100  TH1F *m_drdz;
101 
102  TH2F *m_occupancy;
119 
120  int m_mode;
122  double m_maxdrdz;
134 
135 private:
139 
142  double m_minP;
143  double m_maxRedChi2;
145  std::vector<std::string> m_readTemporaryFiles;
147 
151  std::vector<CSCChamberFitter> m_fitters;
152  std::vector<CSCPairResidualsConstraint *> m_residualsConstraints;
153  std::map<std::pair<CSCDetId, CSCDetId>, CSCPairResidualsConstraint *> m_quickChamberLookup;
154 
157 
158  TH1F *m_histP10;
159  TH1F *m_histP100;
160  TH1F *m_histP1000;
161 };
Propagator.h
CSCOverlapsAlignmentAlgorithm::m_slope_MEm4
TH1F * m_slope_MEm4
Definition: CSCOverlapsAlignmentAlgorithm.h:91
CSCOverlapsAlignmentAlgorithm::m_alignables
align::Alignables m_alignables
Definition: CSCOverlapsAlignmentAlgorithm.h:149
CSCOverlapsAlignmentAlgorithm::m_useTrackWeights
bool m_useTrackWeights
Definition: CSCOverlapsAlignmentAlgorithm.h:130
CSCOverlapsAlignmentAlgorithm::m_XYpos_mep2
TH2F * m_XYpos_mep2
Definition: CSCOverlapsAlignmentAlgorithm.h:104
CSCOverlapsAlignmentAlgorithm::m_offsetResiduals
TH1F * m_offsetResiduals
Definition: CSCOverlapsAlignmentAlgorithm.h:96
CSCOverlapsAlignmentAlgorithm::m_trackTransformer
TrackTransformer * m_trackTransformer
Definition: CSCOverlapsAlignmentAlgorithm.h:155
MessageLogger.h
CSCOverlapsAlignmentAlgorithm::run
void run(const edm::EventSetup &iSetup, const EventInfo &eventInfo) override
Run the algorithm (must be implemented in derived class)
Definition: CSCOverlapsAlignmentAlgorithm.cc:252
CSCOverlapsAlignmentAlgorithm::m_histP10
TH1F * m_histP10
Definition: CSCOverlapsAlignmentAlgorithm.h:158
CSCOverlapsAlignmentAlgorithm::m_reportFileName
std::string m_reportFileName
Definition: CSCOverlapsAlignmentAlgorithm.h:141
ESHandle.h
AlgebraicObjects.h
CSCOverlapsAlignmentAlgorithm::m_fitters
std::vector< CSCChamberFitter > m_fitters
Definition: CSCOverlapsAlignmentAlgorithm.h:151
CSCOverlapsAlignmentAlgorithm::m_fiducial_ME12
TProfile * m_fiducial_ME12
Definition: CSCOverlapsAlignmentAlgorithm.h:79
CSCOverlapsAlignmentAlgorithm::m_fiducial_ME11
TProfile * m_fiducial_ME11
Definition: CSCOverlapsAlignmentAlgorithm.h:78
AlignmentParameterSelector.h
CSCOverlapsAlignmentAlgorithm::m_maxdrdz
double m_maxdrdz
Definition: CSCOverlapsAlignmentAlgorithm.h:122
CSCOverlapsAlignmentAlgorithm::m_readTemporaryFiles
std::vector< std::string > m_readTemporaryFiles
Definition: CSCOverlapsAlignmentAlgorithm.h:145
CSCOverlapsAlignmentAlgorithm::CSCOverlapsAlignmentAlgorithm
CSCOverlapsAlignmentAlgorithm(const edm::ParameterSet &iConfig, edm::ConsumesCollector &)
Definition: CSCOverlapsAlignmentAlgorithm.cc:3
CSCOverlapsAlignmentAlgorithm::m_propToken
const edm::ESGetToken< Propagator, TrackingComponentsRecord > m_propToken
Definition: CSCOverlapsAlignmentAlgorithm.h:137
CSCOverlapsAlignmentAlgorithm::m_truncateSlopeResid
double m_truncateSlopeResid
Definition: CSCOverlapsAlignmentAlgorithm.h:127
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mep1
TH2F * m_RPhipos_mep1
Definition: CSCOverlapsAlignmentAlgorithm.h:111
CSCOverlapsAlignmentAlgorithm::m_histP1000
TH1F * m_histP1000
Definition: CSCOverlapsAlignmentAlgorithm.h:160
CSCOverlapsAlignmentAlgorithm::~CSCOverlapsAlignmentAlgorithm
~CSCOverlapsAlignmentAlgorithm() override
Definition: CSCOverlapsAlignmentAlgorithm.cc:196
CSCOverlapsAlignmentAlgorithm::m_occupancy
TH2F * m_occupancy
Definition: CSCOverlapsAlignmentAlgorithm.h:102
CSCOverlapsAlignmentAlgorithm::m_makeHistograms
bool m_makeHistograms
Definition: CSCOverlapsAlignmentAlgorithm.h:133
CSCOverlapsAlignmentAlgorithm::m_quickChamberLookup
std::map< std::pair< CSCDetId, CSCDetId >, CSCPairResidualsConstraint * > m_quickChamberLookup
Definition: CSCOverlapsAlignmentAlgorithm.h:153
TransientTrack.h
CSCOverlapsAlignmentAlgorithm::m_XYpos_mep3
TH2F * m_XYpos_mep3
Definition: CSCOverlapsAlignmentAlgorithm.h:105
CSCOverlapsAlignmentAlgorithm::m_writeTemporaryFile
std::string m_writeTemporaryFile
Definition: CSCOverlapsAlignmentAlgorithm.h:144
AlignmentAlgorithmBase
Definition: AlignmentAlgorithmBase.h:60
CSCOverlapsAlignmentAlgorithm::m_minStationsInTrackRefits
int m_minStationsInTrackRefits
Definition: CSCOverlapsAlignmentAlgorithm.h:126
CSCOverlapsAlignmentAlgorithm::m_slope_MEm1
TH1F * m_slope_MEm1
Definition: CSCOverlapsAlignmentAlgorithm.h:88
CSCDetId.h
CSCOverlapsAlignmentAlgorithm::m_truncateOffsetResid
double m_truncateOffsetResid
Definition: CSCOverlapsAlignmentAlgorithm.h:128
CSCOverlapsAlignmentAlgorithm::initialize
void initialize(const edm::EventSetup &iSetup, AlignableTracker *alignableTracker, AlignableMuon *alignableMuon, AlignableExtras *alignableExtras, AlignmentParameterStore *alignmentParameterStore) override
Call at beginning of job (must be implemented in derived class)
Definition: CSCOverlapsAlignmentAlgorithm.cc:198
AlignmentParameters.h
CSCOverlapsAlignmentAlgorithm::m_alignmentParameterStore
AlignmentParameterStore * m_alignmentParameterStore
Definition: CSCOverlapsAlignmentAlgorithm.h:148
Propagator
Definition: Propagator.h:44
CSCOverlapsAlignmentAlgorithm::m_fiducial_MEx2
TProfile * m_fiducial_MEx2
Definition: CSCOverlapsAlignmentAlgorithm.h:81
CSCOverlapsAlignmentAlgorithm::m_slopeResiduals
TH1F * m_slopeResiduals
Definition: CSCOverlapsAlignmentAlgorithm.h:93
CSCOverlapsAlignmentAlgorithm::m_drdz
TH1F * m_drdz
Definition: CSCOverlapsAlignmentAlgorithm.h:100
Track.h
CSCOverlapsAlignmentAlgorithm::m_cscGeometryToken
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > m_cscGeometryToken
Definition: CSCOverlapsAlignmentAlgorithm.h:136
CSCOverlapsAlignmentAlgorithm::m_slope_MEp3
TH1F * m_slope_MEp3
Definition: CSCOverlapsAlignmentAlgorithm.h:85
LocalError.h
CSCOverlapsAlignmentAlgorithm::m_slopeResiduals_weighted
TH1F * m_slopeResiduals_weighted
Definition: CSCOverlapsAlignmentAlgorithm.h:94
CSCOverlapsAlignmentAlgorithm::m_mode_string
std::string m_mode_string
Definition: CSCOverlapsAlignmentAlgorithm.h:140
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mem4
TH2F * m_RPhipos_mem4
Definition: CSCOverlapsAlignmentAlgorithm.h:118
Service.h
CSCOverlapsAlignmentAlgorithm::m_minP
double m_minP
Definition: CSCOverlapsAlignmentAlgorithm.h:142
AlignableTracker
Definition: AlignableTracker.h:17
CSCOverlapsAlignmentAlgorithm::m_propagatorPointer
const Propagator * m_propagatorPointer
Definition: CSCOverlapsAlignmentAlgorithm.h:156
CSCOverlapsAlignmentAlgorithm::m_offsetResiduals_weighted
TH1F * m_offsetResiduals_weighted
Definition: CSCOverlapsAlignmentAlgorithm.h:97
AlignableExtras
Definition: AlignableExtras.h:19
CSCPairResidualsConstraint
Definition: CSCPairResidualsConstraint.h:27
AlignableNavigator.h
AlignableNavigator
Definition: AlignableNavigator.h:25
AlignmentParameterStore.h
CSCChamberFitter.h
CSCOverlapsAlignmentAlgorithm::m_tthbToken
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > m_tthbToken
Definition: CSCOverlapsAlignmentAlgorithm.h:138
TFileService.h
CSCOverlapsAlignmentAlgorithm::m_histP100
TH1F * m_histP100
Definition: CSCOverlapsAlignmentAlgorithm.h:159
CSCOverlapsAlignmentAlgorithm::m_offsetResiduals_normalized
TH1F * m_offsetResiduals_normalized
Definition: CSCOverlapsAlignmentAlgorithm.h:98
CSCOverlapsAlignmentAlgorithm::m_slope_MEp1
TH1F * m_slope_MEp1
Definition: CSCOverlapsAlignmentAlgorithm.h:87
CSCOverlapsAlignmentAlgorithm::m_minHitsPerChamber
int m_minHitsPerChamber
Definition: CSCOverlapsAlignmentAlgorithm.h:121
AlignmentAlgorithmBase::terminate
virtual void terminate()
Called at end of job (must be implemented in derived class)
Definition: AlignmentAlgorithmBase.h:158
TransientTrackBuilder.h
edm::ParameterSet
Definition: ParameterSet.h:47
CSCOverlapsAlignmentAlgorithm::m_XYpos_mep4
TH2F * m_XYpos_mep4
Definition: CSCOverlapsAlignmentAlgorithm.h:106
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mep4
TH2F * m_RPhipos_mep4
Definition: CSCOverlapsAlignmentAlgorithm.h:114
AlignableMuon.h
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mem3
TH2F * m_RPhipos_mem3
Definition: CSCOverlapsAlignmentAlgorithm.h:117
CSCOverlapsAlignmentAlgorithm::m_slope_MEm3
TH1F * m_slope_MEm3
Definition: CSCOverlapsAlignmentAlgorithm.h:90
CSCOverlapsAlignmentAlgorithm::m_errorFromRMS
bool m_errorFromRMS
Definition: CSCOverlapsAlignmentAlgorithm.h:131
CSCOverlapsAlignmentAlgorithm::m_mode
int m_mode
Definition: CSCOverlapsAlignmentAlgorithm.h:120
AlignableMuon
Constructor of the full muon geometry.
Definition: AlignableMuon.h:38
CSCOverlapsAlignmentAlgorithm
Definition: CSCOverlapsAlignmentAlgorithm.h:61
CSCOverlapsAlignmentAlgorithm::m_useHitWeights
bool m_useHitWeights
Definition: CSCOverlapsAlignmentAlgorithm.h:124
CSCOverlapsAlignmentAlgorithm::m_XYpos_mep1
TH2F * m_XYpos_mep1
Definition: CSCOverlapsAlignmentAlgorithm.h:103
CSCOverlapsAlignmentAlgorithm::m_fiducial_MEx1
TProfile * m_fiducial_MEx1
Definition: CSCOverlapsAlignmentAlgorithm.h:80
CSCAlignmentCorrections.h
TrackTransformer.h
edm::EventSetup
Definition: EventSetup.h:58
CSCOverlapsAlignmentAlgorithm::m_residualsConstraints
std::vector< CSCPairResidualsConstraint * > m_residualsConstraints
Definition: CSCOverlapsAlignmentAlgorithm.h:152
TransientTrackRecord.h
MuonSubdetId.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< CSCGeometry, MuonGeometryRecord >
CSCOverlapsAlignmentAlgorithm::m_fiducial
bool m_fiducial
Definition: CSCOverlapsAlignmentAlgorithm.h:123
CSCOverlapsAlignmentAlgorithm::m_XYpos_mem1
TH2F * m_XYpos_mem1
Definition: CSCOverlapsAlignmentAlgorithm.h:107
CSCOverlapsAlignmentAlgorithm::m_doAlignment
bool m_doAlignment
Definition: CSCOverlapsAlignmentAlgorithm.h:146
AlignableObjectId.h
dumpTauVariables_cfi.eventInfo
eventInfo
add run, event number and lumi section
Definition: dumpTauVariables_cfi.py:12
Trajectory.h
align::Alignables
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
AlignmentParameterStore
Definition: AlignmentParameterStore.h:23
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mep3
TH2F * m_RPhipos_mep3
Definition: CSCOverlapsAlignmentAlgorithm.h:113
CSCOverlapsAlignmentAlgorithm::m_slope_MEp4
TH1F * m_slope_MEp4
Definition: CSCOverlapsAlignmentAlgorithm.h:84
TrackingComponentsRecord.h
Alignable.h
CSCOverlapsAlignmentAlgorithm::m_slopeResiduals_normalized
TH1F * m_slopeResiduals_normalized
Definition: CSCOverlapsAlignmentAlgorithm.h:95
CSCOverlapsAlignmentAlgorithm::m_XYpos_mem3
TH2F * m_XYpos_mem3
Definition: CSCOverlapsAlignmentAlgorithm.h:109
CSCOverlapsAlignmentAlgorithm::m_hitsPerChamber
TH1F * m_hitsPerChamber
Definition: CSCOverlapsAlignmentAlgorithm.h:76
CSCOverlapsAlignmentAlgorithm::m_XYpos_mem2
TH2F * m_XYpos_mem2
Definition: CSCOverlapsAlignmentAlgorithm.h:108
AlignmentAlgorithmBase.h
Interface/Base class for alignment algorithms, each alignment algorithm has to be derived from this c...
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mem1
TH2F * m_RPhipos_mem1
Definition: CSCOverlapsAlignmentAlgorithm.h:115
CSCPairConstraint.h
CSCOverlapsAlignmentAlgorithm::m_slope
TH1F * m_slope
Definition: CSCOverlapsAlignmentAlgorithm.h:83
AlignableTracker.h
CSCOverlapsAlignmentAlgorithm::m_slope_MEp2
TH1F * m_slope_MEp2
Definition: CSCOverlapsAlignmentAlgorithm.h:86
ParameterSet.h
CSCOverlapsAlignmentAlgorithm::m_maxRedChi2
double m_maxRedChi2
Definition: CSCOverlapsAlignmentAlgorithm.h:143
CSCOverlapsAlignmentAlgorithm::m_slope_MEm2
TH1F * m_slope_MEm2
Definition: CSCOverlapsAlignmentAlgorithm.h:89
MuonGeometryRecord.h
CSCOverlapsAlignmentAlgorithm::m_XYpos_mem4
TH2F * m_XYpos_mem4
Definition: CSCOverlapsAlignmentAlgorithm.h:110
CSCOverlapsAlignmentAlgorithm::m_alignableNavigator
AlignableNavigator * m_alignableNavigator
Definition: CSCOverlapsAlignmentAlgorithm.h:150
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mep2
TH2F * m_RPhipos_mep2
Definition: CSCOverlapsAlignmentAlgorithm.h:112
CSCOverlapsAlignmentAlgorithm::m_RPhipos_mem2
TH2F * m_RPhipos_mem2
Definition: CSCOverlapsAlignmentAlgorithm.h:116
CSCOverlapsAlignmentAlgorithm::m_slopeFromTrackRefit
bool m_slopeFromTrackRefit
Definition: CSCOverlapsAlignmentAlgorithm.h:125
CSCOverlapsAlignmentAlgorithm::m_minTracksPerOverlap
int m_minTracksPerOverlap
Definition: CSCOverlapsAlignmentAlgorithm.h:132
CSCOverlapsAlignmentAlgorithm::m_combineME11
bool m_combineME11
Definition: CSCOverlapsAlignmentAlgorithm.h:129
CSCGeometry.h
AlignmentAlgorithmBase::EventInfo
define event information passed to algorithms
Definition: AlignmentAlgorithmBase.h:73
TrackTransformer
Definition: TrackTransformer.h:46