CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Static Private Attributes
ResidualRefitting Class Reference

#include <ResidualRefitting.h>

Inheritance diagram for ResidualRefitting:
edm::EDAnalyzer edm::EDConsumerBase

Classes

struct  storage_event
 
struct  StorageHit
 
struct  StorageMuon
 
struct  StorageTrackExtrap
 
struct  StorageTrackHit
 

Public Types

typedef struct ResidualRefitting::StorageHit storage_hit
 
typedef struct ResidualRefitting::StorageMuon storage_muon
 
typedef struct ResidualRefitting::StorageTrackExtrap storage_trackExtrap
 
typedef struct ResidualRefitting::StorageTrackHit storage_trackHit
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void branchMuon (ResidualRefitting::storage_muon &storageTmp, std::string branchName)
 
void branchTrackExtrap (ResidualRefitting::storage_trackExtrap &storageTmp, std::string branchName)
 
void CollectTrackHits (edm::Handle< reco::TrackCollection > trackColl, ResidualRefitting::storage_trackExtrap &trackExtrap, const edm::EventSetup &eventSetup)
 
void cylExtrapTrkSam (int recNum, reco::TrackRef track, ResidualRefitting::storage_trackExtrap &storage, double rho)
 
void dumpMuonRecHits (const ResidualRefitting::storage_hit &hit)
 
void dumpTrackExtrap (const ResidualRefitting::storage_trackExtrap &track)
 
void dumpTrackHits (const ResidualRefitting::storage_trackHit &hit)
 
void dumpTrackRef (reco::TrackRef muon, std::string str)
 
void endJob () override
 
FreeTrajectoryState freeTrajStateMuon (reco::TrackRef muon)
 
bool IsSameHit (TrackingRecHit const &hit1, TrackingRecHit const &hit2)
 
int MatchTrackWithRecHits (reco::TrackCollection::const_iterator trackIt, edm::Handle< reco::TrackCollection > ref)
 
void muonInfo (ResidualRefitting::storage_muon &storeMuon, reco::TrackRef muon, int val)
 
void NewTrackMeasurements (edm::Handle< reco::TrackCollection > trackCollOrig, edm::Handle< reco::TrackCollection > trackColl, ResidualRefitting::storage_trackExtrap &trackExtrap)
 
void omitStation (edm::Handle< reco::MuonCollection > funcMuons, edm::Handle< reco::TrackCollection >, ResidualRefitting::storage_muon &storeGmr, ResidualRefitting::storage_muon &storeSam, ResidualRefitting::storage_trackExtrap &storeExtrap, int omitStation)
 
void omitTrackerSystem (edm::Handle< reco::MuonCollection > trkMuons, ResidualRefitting::storage_muon &storeGmr, ResidualRefitting::storage_muon &storeTrk, ResidualRefitting::storage_trackExtrap &storeExtrap, int omitSystem)
 
 ResidualRefitting (const edm::ParameterSet &)
 
int ReturnSector (DetId detid)
 
int ReturnStation (DetId detid)
 
void StoreTrackerRecHits (DetId detid, const TrackerTopology *tTopo, int iTrack, int iRec)
 
void trkExtrap (const DetId &detid, int iTrkLink, int iTrk, int iRec, const FreeTrajectoryState &freeTrajState, const LocalPoint &recPoint, storage_trackExtrap &storeTemp)
 
void zero_muon (ResidualRefitting::storage_muon *str)
 
void zero_storage ()
 
void zero_trackExtrap (ResidualRefitting::storage_trackExtrap *str)
 
 ~ResidualRefitting () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

bool debug_
 
ResidualRefitting::storage_event eventInfo_
 
edm::InputTag muons_
 
edm::InputTag muonsNoPXBLayer1_
 
edm::InputTag muonsNoPXBLayer2_
 
edm::InputTag muonsNoPXBLayer3_
 
edm::InputTag muonsNoPXF_
 
edm::InputTag muonsNoStation1_
 
edm::InputTag muonsNoStation2_
 
edm::InputTag muonsNoStation3_
 
edm::InputTag muonsNoStation4_
 
edm::InputTag muonsNoTEC_
 
edm::InputTag muonsNoTIBLayer1_
 
edm::InputTag muonsNoTIBLayer2_
 
edm::InputTag muonsNoTIBLayer3_
 
edm::InputTag muonsNoTIBLayer4_
 
edm::InputTag muonsNoTID_
 
edm::InputTag muonsNoTOBLayer1_
 
edm::InputTag muonsNoTOBLayer2_
 
edm::InputTag muonsNoTOBLayer3_
 
edm::InputTag muonsNoTOBLayer4_
 
edm::InputTag muonsNoTOBLayer5_
 
edm::InputTag muonsNoTOBLayer6_
 
edm::InputTag muonsRemake_
 
TBranch * outputBranch_
 
TFile * outputFile_
 
std::string outputFileName_
 
TTree * outputTree_
 
std::string PropagatorSource_
 
ResidualRefitting::storage_trackExtrap samExtrap120_
 
ResidualRefitting::storage_muon storageGmrNew_
 
ResidualRefitting::storage_muon storageGmrNoPXBLayer1
 
ResidualRefitting::storage_muon storageGmrNoPXBLayer2
 
ResidualRefitting::storage_muon storageGmrNoPXBLayer3
 
ResidualRefitting::storage_muon storageGmrNoPXF
 
ResidualRefitting::storage_muon storageGmrNoSt1_
 
ResidualRefitting::storage_muon storageGmrNoSt2_
 
ResidualRefitting::storage_muon storageGmrNoSt3_
 
ResidualRefitting::storage_muon storageGmrNoSt4_
 
ResidualRefitting::storage_muon storageGmrNoTEC
 
ResidualRefitting::storage_muon storageGmrNoTIBLayer1
 
ResidualRefitting::storage_muon storageGmrNoTIBLayer2
 
ResidualRefitting::storage_muon storageGmrNoTIBLayer3
 
ResidualRefitting::storage_muon storageGmrNoTIBLayer4
 
ResidualRefitting::storage_muon storageGmrNoTID
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer1
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer2
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer3
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer4
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer5
 
ResidualRefitting::storage_muon storageGmrNoTOBLayer6
 
ResidualRefitting::storage_muon storageGmrOld_
 
ResidualRefitting::storage_hit storageRecMuon_
 
ResidualRefitting::storage_muon storageSamNew_
 
ResidualRefitting::storage_muon storageSamNoSt1_
 
ResidualRefitting::storage_muon storageSamNoSt2_
 
ResidualRefitting::storage_muon storageSamNoSt3_
 
ResidualRefitting::storage_muon storageSamNoSt4_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapRec_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt1_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt2_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt3_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt4_
 
ResidualRefitting::storage_trackExtrap storageTrackExtrapTracker_
 
ResidualRefitting::storage_trackHit storageTrackHit_
 
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer1
 
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer2
 
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer3
 
ResidualRefitting::storage_trackExtrap storageTrackNoPXF
 
ResidualRefitting::storage_trackExtrap storageTrackNoTEC
 
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer1
 
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer2
 
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer3
 
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer4
 
ResidualRefitting::storage_trackExtrap storageTrackNoTID
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer1
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer2
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer3
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer4
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer5
 
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer6
 
ResidualRefitting::storage_muon storageTrkNew_
 
ResidualRefitting::storage_muon storageTrkNoPXBLayer1
 
ResidualRefitting::storage_muon storageTrkNoPXBLayer2
 
ResidualRefitting::storage_muon storageTrkNoPXBLayer3
 
ResidualRefitting::storage_muon storageTrkNoPXF
 
ResidualRefitting::storage_muon storageTrkNoTEC
 
ResidualRefitting::storage_muon storageTrkNoTIBLayer1
 
ResidualRefitting::storage_muon storageTrkNoTIBLayer2
 
ResidualRefitting::storage_muon storageTrkNoTIBLayer3
 
ResidualRefitting::storage_muon storageTrkNoTIBLayer4
 
ResidualRefitting::storage_muon storageTrkNoTID
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer1
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer2
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer3
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer4
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer5
 
ResidualRefitting::storage_muon storageTrkNoTOBLayer6
 
const MagneticFieldtheField
 
edm::ESHandle< PropagatorthePropagator
 
MuonServiceProxytheService
 
ResidualRefitting::storage_trackExtrap trackExtrap120_
 
const edm::ESHandle< GlobalTrackingGeometrytrackingGeometry
 
edm::InputTag tracks_
 

Static Private Attributes

static const int N_MAX_STORED = 10
 
static const int N_MAX_STORED_HIT = 1000
 
static const int PXB = 1
 
static const int PXF = 2
 
static const int TEC = 6
 
static const int TIB = 3
 
static const int TID = 4
 
static const int TOB = 5
 

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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 39 of file ResidualRefitting.h.

Member Typedef Documentation

◆ storage_hit

◆ storage_muon

◆ storage_trackExtrap

◆ storage_trackHit

Constructor & Destructor Documentation

◆ ResidualRefitting()

ResidualRefitting::ResidualRefitting ( const edm::ParameterSet cfg)
explicit

Definition at line 37 of file ResidualRefitting.cc.

38  : outputFileName_(cfg.getUntrackedParameter<std::string>("histoutputFile")),
39  PropagatorSource_(cfg.getParameter<std::string>("propagator")),
40  muons_(cfg.getParameter<edm::InputTag>("muons")),
41  muonsRemake_(cfg.getParameter<edm::InputTag>("muonsRemake")), //This Feels Misalignment
42  muonsNoStation1_(cfg.getParameter<edm::InputTag>("muonsNoStation1")),
43  muonsNoStation2_(cfg.getParameter<edm::InputTag>("muonsNoStation2")),
44  muonsNoStation3_(cfg.getParameter<edm::InputTag>("muonsNoStation3")),
45  muonsNoStation4_(cfg.getParameter<edm::InputTag>("muonsNoStation4")),
46 
47  /*
48  muonsNoPXBLayer1_ ( cfg.getParameter<edm::InputTag>("muonsNoPXBLayer1" ) ),
49  muonsNoPXBLayer2_ ( cfg.getParameter<edm::InputTag>("muonsNoPXBLayer1" ) ),
50  muonsNoPXBLayer3_ ( cfg.getParameter<edm::InputTag>("muonsNoPXBLayer1" ) ),
51 
52  muonsNoTIBLayer1_ ( cfg.getParameter<edm::InputTag>("muonsNoTIBLayer1" ) ),
53  muonsNoTIBLayer2_ ( cfg.getParameter<edm::InputTag>("muonsNoTIBLayer2" ) ),
54  muonsNoTIBLayer3_ ( cfg.getParameter<edm::InputTag>("muonsNoTIBLayer3" ) ),
55  muonsNoTIBLayer4_ ( cfg.getParameter<edm::InputTag>("muonsNoTIBLayer4" ) ),
56 
57  muonsNoTOBLayer1_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer1" ) ),
58  muonsNoTOBLayer2_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer2" ) ),
59  muonsNoTOBLayer3_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer3" ) ),
60  muonsNoTOBLayer4_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer4" ) ),
61  muonsNoTOBLayer5_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer5" ) ),
62  muonsNoTOBLayer6_ ( cfg.getParameter<edm::InputTag>("muonsNoTOBLayer6" ) ),*/
63  debug_(cfg.getUntrackedParameter<bool>("doDebug")),
64  outputFile_(nullptr),
65  outputTree_(nullptr),
66  outputBranch_(nullptr),
67  theField(nullptr) {
68  eventInfo_.evtNum_ = 0;
69  eventInfo_.evtNum_ = 0;
70 
71  // service parameters
72  edm::ParameterSet serviceParameters = cfg.getParameter<edm::ParameterSet>("ServiceParameters");
73 
74  // the services
75  theService = new MuonServiceProxy(serviceParameters, consumesCollector());
76 
77 } //The constructor

References looper::cfg, edm::EDConsumerBase::consumesCollector(), eventInfo_, ResidualRefitting::storage_event::evtNum_, MuonServiceProxy_cff::MuonServiceProxy, and theService.

◆ ~ResidualRefitting()

ResidualRefitting::~ResidualRefitting ( )
override

Definition at line 261 of file ResidualRefitting.cc.

261  {
262  delete outputFile_;
263  delete theService;
264 }

References outputFile_, and theService.

Member Function Documentation

◆ analyze()

void ResidualRefitting::analyze ( const edm::Event event,
const edm::EventSetup eventSetup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 79 of file ResidualRefitting.cc.

79  {
80  if (debug_)
81  printf("STARTING EVENT\n");
82 
83  eventInfo_.evtNum_ = (int)event.id().run();
84  eventInfo_.runNum_ = (int)event.id().event();
85 
86  // Generator Collection
87 
88  // The original muon collection that is sitting in memory
90 
96 
97  event.getByLabel(muons_, muons); //set label to muons
98  event.getByLabel(muonsRemake_, muonTracks);
99  event.getByLabel(muonsNoStation1_, muonsNoSt1);
100  event.getByLabel(muonsNoStation2_, muonsNoSt2);
101  event.getByLabel(muonsNoStation3_, muonsNoSt3);
102  event.getByLabel(muonsNoStation4_, muonsNoSt4);
103 
104  /*
105 // std::cout<<"Muon Collection No PXB "<<std::endl;
106 //Tracker Barrel Pixel Refits
107  edm::Handle<MuonCollection> muonsNoPXBLayer1Coll;
108  event.getByLabel(muonsNoPXBLayer1_, muonsNoPXBLayer1Coll);
109  edm::Handle<MuonCollection> muonsNoPXBLayer2Coll;
110  event.getByLabel(muonsNoPXBLayer2_, muonsNoPXBLayer2Coll);
111  edm::Handle<MuonCollection> muonsNoPXBLayer3Coll;
112  event.getByLabel(muonsNoPXBLayer3_, muonsNoPXBLayer3Coll);
113 // std::cout<<"Muon Collection No TIB "<<std::endl;
114 // Tracker Inner Barrel Refits
115  edm::Handle<MuonCollection> muonsNoTIBLayer1Coll;
116  event.getByLabel(muonsNoTIBLayer1_, muonsNoTIBLayer1Coll);
117  edm::Handle<MuonCollection> muonsNoTIBLayer2Coll;
118  event.getByLabel(muonsNoTIBLayer2_, muonsNoTIBLayer2Coll);
119  edm::Handle<MuonCollection> muonsNoTIBLayer3Coll;
120  event.getByLabel(muonsNoTIBLayer3_, muonsNoTIBLayer3Coll);
121  edm::Handle<MuonCollection> muonsNoTIBLayer4Coll;
122  event.getByLabel(muonsNoTIBLayer4_, muonsNoTIBLayer4Coll);
123 
124 // std::cout<<"Muon Collection No TOB "<<std::endl;
125 
126 //Tracker outer barrel refits
127  edm::Handle<MuonCollection> muonsNoTOBLayer1Coll;
128  event.getByLabel(muonsNoTOBLayer1_, muonsNoTOBLayer1Coll);
129  edm::Handle<MuonCollection> muonsNoTOBLayer2Coll;
130  event.getByLabel(muonsNoTOBLayer2_, muonsNoTOBLayer2Coll);
131  edm::Handle<MuonCollection> muonsNoTOBLayer3Coll;
132  event.getByLabel(muonsNoTOBLayer3_, muonsNoTOBLayer3Coll);
133  edm::Handle<MuonCollection> muonsNoTOBLayer4Coll;
134  event.getByLabel(muonsNoTOBLayer4_, muonsNoTOBLayer4Coll);
135  edm::Handle<MuonCollection> muonsNoTOBLayer5Coll;
136  event.getByLabel(muonsNoTOBLayer5_, muonsNoTOBLayer5Coll);
137  edm::Handle<MuonCollection> muonsNoTOBLayer6Coll;
138  event.getByLabel(muonsNoTOBLayer6_, muonsNoTOBLayer6Coll);
139 */
140  //magnetic field information
142  edm::ESHandle<GlobalTrackingGeometry> globalTrackingGeometry;
143  eventSetup.get<IdealMagneticFieldRecord>().get(field);
144  eventSetup.get<GlobalTrackingGeometryRecord>().get(globalTrackingGeometry);
146  theField = &*field;
147 
148  theService->update(eventSetup);
149 
150  //Zero storage
151  zero_storage();
152 
153  //Do the Gmr Muons from the unModified Collection
154 
155  /*
156  int iGmr = 0;
157  if ( (muons->end() - muons->begin()) > 0) printf("Data Dump:: Original GMR Muons\n");
158  for ( MuonCollection::const_iterator muon = muons->begin(); muon!=muons->end(); muon++, iGmr++) {
159  if ( iGmr >= ResidualRefitting::N_MAX_STORED) break; // error checking
160  if (!debug
161 
162  dumpTrackRef(muon->combinedMuon(), "cmb");
163  dumpTrackRef(muon->standAloneMuon(), "sam");
164  dumpTrackRef(muon->track(), "trk");
165 
166 
167  }
168  storageGmrOld_.n_ = iGmr;
169  storageSamNew_.n_ = iGmr;
170 */
171 
172  //Refitted muons
173  if (debug_)
174  printf("Data Dump:: Rebuilt GMR Muon Track With TeV refitter default\n");
175  int iGmrRemake = 0;
176  for (reco::TrackCollection::const_iterator muon = muonTracks->begin(); muon != muonTracks->end();
177  muon++, iGmrRemake++) {
178  if (iGmrRemake >= ResidualRefitting::N_MAX_STORED)
179  break; // error checking
180  // from TrackInfoProducer/test/TrackInfoAnalyzerExample.cc
181  reco::TrackRef trackref = reco::TrackRef(muonTracks, iGmrRemake);
182 
183  if (debug_)
184  dumpTrackRef(trackref, "gmr");
185  muonInfo(storageGmrNew_, trackref, iGmrRemake);
186  }
187  storageGmrNew_.n_ = iGmrRemake;
188 
189  if (debug_)
190  printf("muons Remake");
191  if (debug_)
192  printf("-----------------------------------------\n");
193  CollectTrackHits(muonTracks, storageTrackExtrapRec_, eventSetup);
194 
195  if (true) {
196  printf("muons No Station 1");
197  printf("-----------------------------------------\n");
198  }
199  NewTrackMeasurements(muonTracks, muonsNoSt1, storageTrackExtrapRecNoSt1_);
200 
201  if (true) {
202  printf("muons No Station 2");
203  printf("-----------------------------------------\n");
204  }
205  NewTrackMeasurements(muonTracks, muonsNoSt2, storageTrackExtrapRecNoSt2_);
206 
207  if (true) {
208  printf("muons No Station 3");
209  printf("-----------------------------------------\n");
210  }
211  NewTrackMeasurements(muonTracks, muonsNoSt3, storageTrackExtrapRecNoSt3_);
212 
213  if (true) {
214  printf("muons No Station 4");
215  printf("-----------------------------------------\n");
216  }
217  NewTrackMeasurements(muonTracks, muonsNoSt4, storageTrackExtrapRecNoSt4_);
218 
219  // dumpMuonRecHits(storageRecMuon_);
220 
221  /****************************************************************************************************************************************/
222 
223  /*
224  * extrapolates track to a cylinder.
225  * commented for cosmic runs with no tracker in reco muons!!
226  *
227 */
228 
229  int iGmrCyl = 0;
230  for (reco::MuonCollection::const_iterator muon = muons->begin(); muon != muons->end(); muon++, iGmrCyl++) {
231  dumpTrackRef(muon->combinedMuon(), "cmb");
232  dumpTrackRef(muon->standAloneMuon(), "sam");
233  dumpTrackRef(muon->track(), "trk");
234 
235  cylExtrapTrkSam(iGmrCyl, muon->standAloneMuon(), samExtrap120_, 120.);
236  cylExtrapTrkSam(iGmrCyl, muon->track(), trackExtrap120_, 120.);
237  }
238  samExtrap120_.n_ = iGmrCyl;
239  trackExtrap120_.n_ = iGmrCyl;
240 
241  if (iGmrRemake > 0 || iGmrCyl > 0) {
242  outputTree_->Fill();
243  std::cout << "FILLING NTUPLE!" << std::endl;
244  std::cout << "Entries Recorded: " << outputTree_->GetEntries() << " Branch :: " << outputBranch_->GetEntries()
245  << std::endl
246  << std::endl;
247  } else
248  std::cout << "no tracks -- no fill!\n" << std::endl << std::endl;
249 
250  // /*************************************************************************************************************/
251  // //END OF ntuple dumper
252  // //END OF ntuple dumper
253  // /***********************************************************************************************************/
254 }

References CollectTrackHits(), gather_cfg::cout, cylExtrapTrkSam(), debug_, dumpTrackRef(), eventInfo_, ResidualRefitting::storage_event::evtNum_, edm::EventSetup::get(), get, createfilelist::int, muonInfo(), PDWG_BPHSkim_cff::muons, muons_, muonsNoStation1_, muonsNoStation2_, muonsNoStation3_, muonsNoStation4_, muonsRemake_, ResidualRefitting::StorageMuon::n_, ResidualRefitting::StorageTrackExtrap::n_, N_MAX_STORED, NewTrackMeasurements(), outputBranch_, outputTree_, PropagatorSource_, ResidualRefitting::storage_event::runNum_, samExtrap120_, storageGmrNew_, storageTrackExtrapRec_, storageTrackExtrapRecNoSt1_, storageTrackExtrapRecNoSt2_, storageTrackExtrapRecNoSt3_, storageTrackExtrapRecNoSt4_, theField, thePropagator, theService, trackExtrap120_, MuonServiceProxy::update(), and zero_storage().

◆ beginJob()

void ResidualRefitting::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 966 of file ResidualRefitting.cc.

966  {
967  std::cout << "Creating file " << outputFileName_.c_str() << std::endl;
968 
969  outputFile_ = new TFile(outputFileName_.c_str(), "RECREATE");
970 
971  outputTree_ = new TTree("outputTree", "outputTree");
972 
973  outputTree_->Branch("eventInfo",
974  &eventInfo_,
975  "evtNum_/I:"
976  "runNum_/I");
977 
984 
990 
1008 
1025 
1026  outputBranch_ = outputTree_->Branch("recHitsNew",
1027  &storageRecMuon_,
1028 
1029  "n_/I:"
1030  "muonLink_[1000]/I:"
1031 
1032  "system_[1000]/I:"
1033  "endcap_[1000]/I:"
1034  "station_[1000]/I:"
1035  "ring_[1000]/I:"
1036  "chamber_[1000]/I:"
1037  "layer_[1000]/I:"
1038  "superLayer_[1000]/I:"
1039  "wheel_[1000]/I:"
1040  "sector_[1000]/I:"
1041 
1042  "gpX_[1000]/F:"
1043  "gpY_[1000]/F:"
1044  "gpZ_[1000]/F:"
1045  "gpEta_[1000]/F:"
1046  "gpPhi_[1000]/F:"
1047  "lpX_[1000]/F:"
1048  "lpY_[1000]/F:"
1049  "lpZ_[1000]/F");
1050 
1051  outputBranch_ = outputTree_->Branch("recHitsTracker",
1053 
1054  "n_/I:"
1055 
1056  "muonLink_[1000]/I:"
1057  "detector_[1000]/I:"
1058  "subdetector_[1000]/I:"
1059  "blade_[1000]/I:"
1060  "disk_[1000]/I:"
1061  "ladder_[1000]/I:"
1062  "layer_[1000]/I:"
1063  "module_[1000]/I:"
1064  "panel_[1000]/I:"
1065  "ring_[1000]/I:"
1066  "side_[1000]/I:"
1067  "wheel_[1000]/I:"
1068 
1069  "gpX_[1000]/F:"
1070  "gpY_[1000]/F:"
1071  "gpZ_[1000]/F:"
1072  "gpEta_[1000]/F:"
1073  "gpPhi_[1000]/F:"
1074  "lpX_[1000]/F:"
1075  "lpY_[1000]/F:"
1076  "lpZ_[1000]/F");
1077 
1083 
1101 
1104 }

References branchMuon(), branchTrackExtrap(), gather_cfg::cout, eventInfo_, outputBranch_, outputFile_, outputFileName_, outputTree_, samExtrap120_, storageGmrNew_, storageGmrNoPXBLayer1, storageGmrNoPXBLayer2, storageGmrNoPXBLayer3, storageGmrNoPXF, storageGmrNoSt1_, storageGmrNoSt2_, storageGmrNoSt3_, storageGmrNoSt4_, storageGmrNoTEC, storageGmrNoTIBLayer1, storageGmrNoTIBLayer2, storageGmrNoTIBLayer3, storageGmrNoTIBLayer4, storageGmrNoTID, storageGmrNoTOBLayer1, storageGmrNoTOBLayer2, storageGmrNoTOBLayer3, storageGmrNoTOBLayer4, storageGmrNoTOBLayer5, storageGmrNoTOBLayer6, storageGmrOld_, storageRecMuon_, storageSamNew_, storageSamNoSt1_, storageSamNoSt2_, storageSamNoSt3_, storageSamNoSt4_, storageTrackExtrapRec_, storageTrackExtrapRecNoSt1_, storageTrackExtrapRecNoSt2_, storageTrackExtrapRecNoSt3_, storageTrackExtrapRecNoSt4_, storageTrackExtrapTracker_, storageTrackHit_, storageTrackNoPXBLayer1, storageTrackNoPXBLayer2, storageTrackNoPXBLayer3, storageTrackNoPXF, storageTrackNoTEC, storageTrackNoTIBLayer1, storageTrackNoTIBLayer2, storageTrackNoTIBLayer3, storageTrackNoTIBLayer4, storageTrackNoTID, storageTrackNoTOBLayer1, storageTrackNoTOBLayer2, storageTrackNoTOBLayer3, storageTrackNoTOBLayer4, storageTrackNoTOBLayer5, storageTrackNoTOBLayer6, storageTrkNew_, storageTrkNoPXBLayer1, storageTrkNoPXBLayer2, storageTrkNoPXBLayer3, storageTrkNoPXF, storageTrkNoTEC, storageTrkNoTIBLayer1, storageTrkNoTIBLayer2, storageTrkNoTIBLayer3, storageTrkNoTIBLayer4, storageTrkNoTID, storageTrkNoTOBLayer1, storageTrkNoTOBLayer2, storageTrkNoTOBLayer3, storageTrkNoTOBLayer4, storageTrkNoTOBLayer5, storageTrkNoTOBLayer6, and trackExtrap120_.

◆ branchMuon()

void ResidualRefitting::branchMuon ( ResidualRefitting::storage_muon storageTmp,
std::string  branchName 
)

Definition at line 1108 of file ResidualRefitting.cc.

1108  {
1109  outputBranch_ = outputTree_->Branch(branchName.c_str(),
1110  &storageTmp,
1111  "n_/I:"
1112  "charge_[10]/I:"
1113  "pt_[10]/F:"
1114  "eta_[10]/F:"
1115  "p_[10]/F:"
1116  "phi_[10]/F:"
1117  "numRecHits_[10]/I:"
1118  "chiSq_[10]/F:"
1119  "ndf_[10]/F:"
1120  "chiSqOvrNdf_[10]/F"
1121 
1122  );
1123 }

References electrons_cff::branchName, outputBranch_, and outputTree_.

Referenced by beginJob().

◆ branchTrackExtrap()

void ResidualRefitting::branchTrackExtrap ( ResidualRefitting::storage_trackExtrap storageTmp,
std::string  branchName 
)

Definition at line 1127 of file ResidualRefitting.cc.

1127  {
1128  outputBranch_ = outputTree_->Branch(branchName.c_str(),
1129  &storageTmp,
1130  "n_/I:"
1131  "muonLink_[1000]/I:"
1132  "recLink_[1000]/I:"
1133  "gpX_[1000]/F:"
1134  "gpY_[1000]/F:"
1135  "gpZ_[1000]/F:"
1136  "gpEta_[1000]/F:"
1137  "gpPhi_[1000]/F:"
1138  "lpX_[1000]/F:"
1139  "lpY_[1000]/F:"
1140  "lpZ_[1000]/F:"
1141  "resX_[1000]/F:"
1142  "resY_[1000]/F:"
1143  "resZ_[1000]/F"
1144 
1145  );
1146 }

References electrons_cff::branchName, outputBranch_, and outputTree_.

Referenced by beginJob().

◆ CollectTrackHits()

void ResidualRefitting::CollectTrackHits ( edm::Handle< reco::TrackCollection trackColl,
ResidualRefitting::storage_trackExtrap trackExtrap,
const edm::EventSetup eventSetup 
)

Definition at line 268 of file ResidualRefitting.cc.

270  {
271  //Retrieve tracker topology from geometry
272  edm::ESHandle<TrackerTopology> tTopoHandle;
273  eventSetup.get<TrackerTopologyRcd>().get(tTopoHandle);
274  const TrackerTopology* const tTopo = tTopoHandle.product();
275 
276  int iMuonHit = 0;
277  int iTrackHit = 0;
278  int numTracks = 0;
279 
280  for (reco::TrackCollection::const_iterator muon = trackColl->begin(); muon != trackColl->end(); muon++) {
281  int iTrack = muon - trackColl->begin();
282  reco::TrackRef trackref = reco::TrackRef(trackColl, iTrack);
284 
285  if (debug_)
286  dumpTrackRef(trackref, "CollectTrackHits Track");
287 
288  int iRec = 0;
289  for (auto const& rec : muon->recHits()) {
290  DetId detid = rec->geographicalId();
291 
292  if (detid.det() != DetId::Muon && detid.det() != DetId::Tracker) {
293  if (debug_)
294  printf("Rec Hit not from muon system or tracker... continuing...\n");
295  continue;
296  }
297  // numTracks++;
298  // Get Local and Global Position of Hits
299 
300  LocalPoint lp = rec->localPosition();
301  float lpX = lp.x();
302  float lpY = lp.y();
303  float lpZ = lp.z();
304 
306  theService->trackingGeometry()->idToDet(rec->geographicalId()), rec);
307 
308  GlobalPoint gp = mrhp->globalPosition();
309  float gpRecX = gp.x();
310  float gpRecY = gp.y();
311  float gpRecZ = gp.z();
312  float gpRecEta = gp.eta();
313  float gpRecPhi = gp.phi();
314 
315  if (detid.det() == DetId::Muon) {
316  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
317  int endcap = -999;
318  int station = -999;
319  int ring = -999;
320  int chamber = -999;
321  int layer = -999;
322  int superLayer = -999;
323  int wheel = -999;
324  int sector = -999;
325  if (systemMuon == MuonSubdetId::CSC) {
326  CSCDetId id(detid.rawId());
327  endcap = id.endcap();
328  station = id.station();
329  ring = id.ring();
330  chamber = id.chamber();
331  layer = id.layer();
332  if (debug_)
333  printf("CSC\t[endcap][station][ringN][chamber][layer]:[%d][%d][%d][%d][%d]\t",
334  endcap,
335  station,
336  ring,
337  chamber,
338  layer);
339 
340  } else if (systemMuon == MuonSubdetId::DT) {
341  DTWireId id(detid.rawId());
342  station = id.station();
343  layer = id.layer();
344  superLayer = id.superLayer();
345  wheel = id.wheel();
346  sector = id.sector();
347  if (debug_)
348  printf("DT \t[station][layer][superlayer]:[%d][%d][%d]\n", station, layer, superLayer);
349 
350  } else if (systemMuon == MuonSubdetId::RPC) {
351  RPCDetId id(detid.rawId());
352  station = id.station();
353  if (debug_)
354  printf("RPC\t[station]:[%d]\n", station);
355  }
356 
357  storageRecMuon_.muonLink_[iMuonHit] = iTrack;
358  storageRecMuon_.system_[iMuonHit] = systemMuon;
359  storageRecMuon_.endcap_[iMuonHit] = endcap;
360  storageRecMuon_.station_[iMuonHit] = station;
361  storageRecMuon_.ring_[iMuonHit] = ring;
362  storageRecMuon_.chamber_[iMuonHit] = chamber;
363  storageRecMuon_.layer_[iMuonHit] = layer;
364  storageRecMuon_.superLayer_[iMuonHit] = superLayer;
365  storageRecMuon_.wheel_[iMuonHit] = wheel;
366  storageRecMuon_.sector_[iMuonHit] = sector;
367 
368  storageRecMuon_.gpX_[iMuonHit] = gpRecX;
369  storageRecMuon_.gpY_[iMuonHit] = gpRecY;
370  storageRecMuon_.gpZ_[iMuonHit] = gpRecZ;
371  storageRecMuon_.gpEta_[iMuonHit] = gpRecEta;
372  storageRecMuon_.gpPhi_[iMuonHit] = gpRecPhi;
373  storageRecMuon_.lpX_[iMuonHit] = lpX;
374  storageRecMuon_.lpY_[iMuonHit] = lpY;
375  storageRecMuon_.lpZ_[iMuonHit] = lpZ;
376  iMuonHit++;
377 
378  } else if (detid.det() == DetId::Tracker) {
379  if (debug_)
380  printf("Tracker\n");
381 
382  StoreTrackerRecHits(detid, tTopo, iTrack, iTrackHit);
383 
384  storageTrackHit_.gpX_[iTrackHit] = gpRecX;
385  storageTrackHit_.gpY_[iTrackHit] = gpRecY;
386  storageTrackHit_.gpZ_[iTrackHit] = gpRecZ;
387  storageTrackHit_.gpEta_[iTrackHit] = gpRecEta;
388  storageTrackHit_.gpPhi_[iTrackHit] = gpRecPhi;
389  storageTrackHit_.lpX_[iTrackHit] = lpX;
390  storageTrackHit_.lpY_[iTrackHit] = lpY;
391  storageTrackHit_.lpZ_[iTrackHit] = lpZ;
392  iTrackHit++;
393  } else
394  printf("THIS CAN NOT HAPPEN\n");
395 
396  trkExtrap(detid, numTracks, iTrack, iRec, recoStart, lp, trackExtrap);
397  numTracks++;
398 
399  if (debug_)
400  printf("\tLocal Positon: \tx = %2.2f\ty = %2.2f\tz = %2.2f\n", lpX, lpY, lpZ);
401  if (debug_)
402  printf("\tGlobal Position: \tx = %6.2f\ty = %6.2f\tz = %6.2f\teta = %4.2f\tphi = %3.2f\n",
403  gpRecX,
404  gpRecY,
405  gpRecZ,
406  gpRecEta,
407  gpRecPhi);
408 
409  ++iRec;
410  }
411  }
412 
413  storageRecMuon_.n_ = iMuonHit;
414  storageTrackHit_.n_ = iTrackHit;
415  trackExtrap.n_ = numTracks;
416 }

References relativeConstraints::chamber, ResidualRefitting::StorageHit::chamber_, MuonSubdetId::CSC, debug_, DetId::det(), MuonSubdetId::DT, dumpTrackRef(), makeMuonMisalignmentScenario::endcap, ResidualRefitting::StorageHit::endcap_, freeTrajStateMuon(), edm::EventSetup::get(), get, runTauDisplay::gp, ResidualRefitting::StorageHit::gpEta_, ResidualRefitting::StorageTrackHit::gpEta_, ResidualRefitting::StorageHit::gpPhi_, ResidualRefitting::StorageTrackHit::gpPhi_, ResidualRefitting::StorageHit::gpX_, ResidualRefitting::StorageTrackHit::gpX_, ResidualRefitting::StorageHit::gpY_, ResidualRefitting::StorageTrackHit::gpY_, ResidualRefitting::StorageHit::gpZ_, ResidualRefitting::StorageTrackHit::gpZ_, triggerObjects_cff::id, GlobalTrackingGeometry::idToDet(), ResidualRefitting::StorageHit::layer_, ResidualRefitting::StorageHit::lpX_, ResidualRefitting::StorageTrackHit::lpX_, ResidualRefitting::StorageHit::lpY_, ResidualRefitting::StorageTrackHit::lpY_, ResidualRefitting::StorageHit::lpZ_, ResidualRefitting::StorageTrackHit::lpZ_, DetId::Muon, ResidualRefitting::StorageHit::muonLink_, ResidualRefitting::StorageHit::n_, ResidualRefitting::StorageTrackExtrap::n_, ResidualRefitting::StorageTrackHit::n_, edm::ESHandle< T >::product(), DetId::rawId(), relativeConstraints::ring, ResidualRefitting::StorageHit::ring_, MuonSubdetId::RPC, ResidualRefitting::StorageHit::sector_, MuonTransientTrackingRecHit::specificBuild(), relativeConstraints::station, ResidualRefitting::StorageHit::station_, storageRecMuon_, storageTrackHit_, StoreTrackerRecHits(), DetId::subdetId(), ResidualRefitting::StorageHit::superLayer_, ResidualRefitting::StorageHit::system_, theService, pfDisplacedTrackerVertex_cfi::trackColl, DetId::Tracker, MuonServiceProxy::trackingGeometry(), trkExtrap(), makeMuonMisalignmentScenario::wheel, ResidualRefitting::StorageHit::wheel_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by analyze().

◆ cylExtrapTrkSam()

void ResidualRefitting::cylExtrapTrkSam ( int  recNum,
reco::TrackRef  track,
ResidualRefitting::storage_trackExtrap storage,
double  rho 
)

Definition at line 780 of file ResidualRefitting.cc.

783  {
784  Cylinder::PositionType pos(0, 0, 0);
786 
788  // SteppingHelixPropagator inwardProp ( theField, oppositeToMomentum );
789  // SteppingHelixPropagator outwardProp ( theField, alongMomentum );
791  // TrajectoryStateOnSurface recoProp = outwardProp.propagate(recoStart, *myCylinder);
792  TrajectoryStateOnSurface recoProp = thePropagator->propagate(recoStart, *myCylinder);
793 
794  double xVal = -9999;
795  double yVal = -9999;
796  double zVal = -9999;
797  double phiVal = -9999;
798  double etaVal = -9999;
799 
800  if (recoProp.isValid()) {
801  GlobalPoint recoPoint = recoProp.globalPosition();
802  xVal = recoPoint.x();
803  yVal = recoPoint.y();
804  zVal = recoPoint.z();
805  phiVal = recoPoint.phi();
806  etaVal = recoPoint.eta();
807  }
808  storage.muonLink_[recNum] = recNum;
809  storage.gpX_[recNum] = xVal;
810  storage.gpY_[recNum] = yVal;
811  storage.gpZ_[recNum] = zVal;
812  storage.gpEta_[recNum] = etaVal;
813  storage.gpPhi_[recNum] = phiVal;
814 
815  float rhoVal = sqrt(xVal * xVal + yVal * yVal);
816 
817  printf("Cylinder: rho = %4.2f\tphi = %4.2f\teta = %4.2f\n", rhoVal, phiVal, etaVal);
818  if (debug_)
819  printf("Cylinder: rho = %4.2f\tphi = %4.2f\teta = %4.2f\n", rhoVal, phiVal, etaVal);
820 }

References Cylinder::build(), debug_, PV3DBase< T, PVType, FrameType >::eta(), freeTrajStateMuon(), TrajectoryStateOnSurface::globalPosition(), ResidualRefitting::StorageTrackExtrap::gpEta_, ResidualRefitting::StorageTrackExtrap::gpPhi_, ResidualRefitting::StorageTrackExtrap::gpX_, ResidualRefitting::StorageTrackExtrap::gpY_, ResidualRefitting::StorageTrackExtrap::gpZ_, TrajectoryStateOnSurface::isValid(), ResidualRefitting::StorageTrackExtrap::muonLink_, PV3DBase< T, PVType, FrameType >::phi(), Propagator::propagate(), rho, makeMuonMisalignmentScenario::rot, mathSSE::sqrt(), thePropagator, HLT_2018_cff::track, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by analyze().

◆ dumpMuonRecHits()

void ResidualRefitting::dumpMuonRecHits ( const ResidualRefitting::storage_hit hit)

Definition at line 1200 of file ResidualRefitting.cc.

1200  {
1201  std::cout << "Muon Rec Hits Dump:\n";
1202  for (unsigned int i = 0; i < (unsigned int)hit.n_; i++) {
1203  // double rho = sqrt( (float)hit.gpX_[i] * (float)hit.gpX_[i] + (float)hit.gpY_[i] * (float)hit.gpY_[i] );
1204 
1205  printf("%d\tsubdetector = %d\t superLayer =%d", i, (int)hit.system_[i], (int)hit.superLayer_[i]);
1206  // printf ("\tGlobal\tx = %0.3f" , (float)hit.gpX_[i] );
1207  // printf ("\ty = %0.3f" , (float)hit.gpY_[i] );
1208  // printf ("\tz = %0.3f" , (float)hit.gpZ_[i] );
1209  // printf ("\trho =%0.3f" , rho );
1210  // printf ("\teta = %0.3f" , (float)hit.gpEta_[i] );
1211  // printf ("\tphi = %0.3f\n" , (float)hit.gpPhi_[i] );
1212  printf("\t\tLocal\tx = %0.3f", (float)hit.lpX_[i]);
1213  printf("\ty = %0.3f", (float)hit.lpY_[i]);
1214  printf("\tz = %0.3f\n", (float)hit.lpZ_[i]);
1215  }
1216 }

References gather_cfg::cout, mps_fire::i, and createfilelist::int.

◆ dumpTrackExtrap()

void ResidualRefitting::dumpTrackExtrap ( const ResidualRefitting::storage_trackExtrap track)

Definition at line 1179 of file ResidualRefitting.cc.

1179  {
1180  std::cout << "\n\nExtrapolation Dump:\n";
1181  for (unsigned int i = 0; i < (unsigned int)track.n_; i++) {
1182  // double rho = sqrt( (float)track.gpX_[i] * (float)track.gpX_[i] + (float)track.gpY_[i] * (float)track.gpY_[i] );
1183 
1184  printf("%d\tmuonLink= %d", i, (int)track.muonLink_[i]);
1185  printf("\trecLink = %d", (int)track.recLink_[i]);
1186  // printf ("\tGlobal\tx = %0.3f" , (float)track.gpX_[i] );
1187  // printf ("\ty = %0.3f" , (float)track.gpY_[i] );
1188  // printf ("\tz = %0.3f" , (float)track.gpZ_[i] );
1189  // printf ("\trho =%0.3f" , rho );
1190  // printf ("\teta = %0.3f" , (float)track.gpEta_[i] );
1191  // printf ("\tphi = %0.3f" , (float)track.gpPhi_[i] );
1192  printf("\t\tLocal\tx = %0.3f", (float)track.lpX_[i]);
1193  printf("\ty = %0.3f", (float)track.lpY_[i]);
1194  printf("\tz = %0.3f\n", (float)track.lpZ_[i]);
1195  }
1196 }

References gather_cfg::cout, mps_fire::i, createfilelist::int, and HLT_2018_cff::track.

◆ dumpTrackHits()

void ResidualRefitting::dumpTrackHits ( const ResidualRefitting::storage_trackHit hit)

Definition at line 1220 of file ResidualRefitting.cc.

1220  {
1221  std::cout << "Tracker Rec Hits Dump:\n";
1222  for (unsigned int i = 0; i < (unsigned int)hit.n_; i++) {
1223  // double rho = sqrt( (float)hit.gpX_[i] * (float)hit.gpX_[i] + (float)hit.gpY_[i] * (float)hit.gpY_[i] );
1224 
1225  printf("%d\tsubdetector = %d", i, (int)hit.subdetector_[i]);
1226  printf("\tlayer = %d", (int)hit.layer_[i]);
1227  // printf ("\tGlobal\tx = %0.3f" , (float)hit.gpX_[i] );
1228  // printf ("\ty = %0.3f" , (float)hit.gpY_[i] );
1229  // printf ("\tz = %0.3f" , (float)hit.gpZ_[i] );
1230  // printf ("\trho =%0.3f" , rho );
1231  // printf ("\teta = %0.3f" , (float)hit.gpEta_[i] );
1232  // printf ("\tphi = %0.3f\n" , (float)hit.gpPhi_[i] );
1233  printf("\t\tLocal\tx = %0.3f", (float)hit.lpX_[i]);
1234  printf("\ty = %0.3f", (float)hit.lpY_[i]);
1235  printf("\tz = %0.3f\n", (float)hit.lpZ_[i]);
1236  }
1237 }

References gather_cfg::cout, mps_fire::i, and createfilelist::int.

◆ dumpTrackRef()

void ResidualRefitting::dumpTrackRef ( reco::TrackRef  muon,
std::string  str 
)

Definition at line 1241 of file ResidualRefitting.cc.

1241  {
1242  float pt = muon->pt();
1243  float p = muon->p();
1244  float eta = muon->eta();
1245  float phi = muon->phi();
1246  printf("\t%s: \tp = %4.2f \t pt = %4.2f \t eta = %4.2f \t phi = %4.2f\n", str.c_str(), p, pt, eta, phi);
1247 }

References PVValHelper::eta, AlCaHLTBitMon_ParallelJobs::p, phi, DiDispStaMuonMonitor_cfi::pt, and str.

Referenced by analyze(), and CollectTrackHits().

◆ endJob()

void ResidualRefitting::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 1150 of file ResidualRefitting.cc.

1150  {
1151  outputFile_->Write();
1152 
1153  outputFile_->Close();
1154 }

References outputFile_.

Referenced by o2olib.O2ORunMgr::executeJob().

◆ freeTrajStateMuon()

FreeTrajectoryState ResidualRefitting::freeTrajStateMuon ( reco::TrackRef  muon)

Definition at line 1158 of file ResidualRefitting.cc.

1158  {
1159  math::XYZPoint innerPos = muon->referencePoint();
1160  math::XYZVector innerMom = muon->momentum();
1161  if (debug_)
1162  std::cout << "Inner Pos: "
1163  << "\tx = " << innerPos.X() << "\ty = " << innerPos.Y() << "\tz = " << innerPos.Z() << std::endl;
1164 
1165  GlobalPoint innerPoint(innerPos.X(), innerPos.Y(), innerPos.Z());
1166  GlobalVector innerVec(innerMom.X(), innerMom.Y(), innerMom.Z());
1167 
1168  FreeTrajectoryState recoStart(innerPoint, innerVec, muon->charge(), theField);
1169  return recoStart;
1170 }

References gather_cfg::cout, debug_, and theField.

Referenced by CollectTrackHits(), cylExtrapTrkSam(), and NewTrackMeasurements().

◆ IsSameHit()

bool ResidualRefitting::IsSameHit ( TrackingRecHit const &  hit1,
TrackingRecHit const &  hit2 
)

Definition at line 533 of file ResidualRefitting.cc.

533  {
534  double lpx1 = hit1.localPosition().x();
535  double lpy1 = hit1.localPosition().y();
536  double lpz1 = hit1.localPosition().z();
537 
538  double lpx2 = hit2.localPosition().x();
539  double lpy2 = hit2.localPosition().y();
540  double lpz2 = hit2.localPosition().z();
541  if (fabs(lpx1 - lpx2) > 1e-3)
542  return false;
543  // printf("Match lpx...\n");
544  if (fabs(lpy1 - lpy2) > 1e-3)
545  return false;
546  // printf("Match lpy...\n");
547  if (fabs(lpz1 - lpz2) > 1e-3)
548  return false;
549  // printf("Match lpz...\n");
550 
551  return true;
552 }

References MillePedeFileConverter_cfg::e, TrackingRecHit::localPosition(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by MatchTrackWithRecHits(), and NewTrackMeasurements().

◆ MatchTrackWithRecHits()

int ResidualRefitting::MatchTrackWithRecHits ( reco::TrackCollection::const_iterator  trackIt,
edm::Handle< reco::TrackCollection ref 
)

Definition at line 467 of file ResidualRefitting.cc.

468  {
469  if (debug_)
470  printf("Matching a re-fitted track to the original track.\n");
471 
472  int TrackMatch = -1;
473 
474  for (auto const& rec : trackIt->recHits()) {
475  bool foundMatch = false;
476  for (reco::TrackCollection::const_iterator refIt = ref->begin(); refIt != ref->end(); refIt++) {
477  int iTrackMatch = refIt - ref->begin();
478  if (foundMatch && TrackMatch != iTrackMatch)
479  break;
480  for (auto const& recRef : refIt->recHits()) {
481  if (!IsSameHit(*rec, *recRef))
482  continue;
483 
484  foundMatch = true;
485  TrackMatch = iTrackMatch;
486  // printf("Rec hit match for original track %d\n", iTrackMatch);
487  }
488  }
489  if (!foundMatch) {
490  printf("SOMETHING WENT WRONG! Could not match Track with original track!");
491  exit(1);
492  }
493  }
494  if (debug_)
495  printf("Rec hit match for original track %d\n", TrackMatch);
496 
497  // reco::TrackRef trackref=reco::TrackRef(ref,TrackMatch);
498  return TrackMatch;
499 }

References debug_, beamvalidation::exit(), and IsSameHit().

Referenced by NewTrackMeasurements().

◆ muonInfo()

void ResidualRefitting::muonInfo ( ResidualRefitting::storage_muon storeMuon,
reco::TrackRef  muon,
int  val 
)

Definition at line 649 of file ResidualRefitting.cc.

649  {
650  storeMuon.pt_[val] = muon->pt();
651  storeMuon.p_[val] = muon->p();
652  storeMuon.eta_[val] = muon->eta();
653  storeMuon.phi_[val] = muon->phi();
654  storeMuon.charge_[val] = muon->charge();
655  storeMuon.numRecHits_[val] = muon->numberOfValidHits();
656  storeMuon.chiSq_[val] = muon->chi2();
657  storeMuon.ndf_[val] = muon->ndof();
658  storeMuon.chiSqOvrNdf_[val] = muon->normalizedChi2();
659 }

References ResidualRefitting::StorageMuon::charge_, ResidualRefitting::StorageMuon::chiSq_, ResidualRefitting::StorageMuon::chiSqOvrNdf_, ResidualRefitting::StorageMuon::eta_, ResidualRefitting::StorageMuon::ndf_, ResidualRefitting::StorageMuon::numRecHits_, ResidualRefitting::StorageMuon::p_, ResidualRefitting::StorageMuon::phi_, ResidualRefitting::StorageMuon::pt_, and heppy_batch::val.

Referenced by analyze().

◆ NewTrackMeasurements()

void ResidualRefitting::NewTrackMeasurements ( edm::Handle< reco::TrackCollection trackCollOrig,
edm::Handle< reco::TrackCollection trackColl,
ResidualRefitting::storage_trackExtrap trackExtrap 
)

Definition at line 425 of file ResidualRefitting.cc.

427  {
428  int numTracks = 0;
429  int recCounter = 0;
430 
431  for (reco::TrackCollection::const_iterator muon = trackColl->begin(); muon != trackColl->end(); muon++) {
432  int iTrack = muon - trackColl->begin();
433 
434  reco::TrackRef trackref = reco::TrackRef(trackColl, iTrack);
436 
437  int iTrackLink = MatchTrackWithRecHits(muon, trackCollOrig);
438  reco::TrackRef ref = reco::TrackRef(trackCollOrig, iTrackLink);
439 
440  for (auto const& rec1 : ref->recHits()) {
441  bool unbiasedRec = true;
442 
443  for (auto const& rec2 : muon->recHits()) {
444  if (IsSameHit(*rec1, *rec2)) {
445  unbiasedRec = false;
446  break;
447  }
448  }
449  if (!unbiasedRec)
450  continue;
451 
452  DetId detid = rec1->geographicalId();
453 
455  theService->trackingGeometry()->idToDet(rec1->geographicalId()), rec1);
456 
457  trkExtrap(detid, numTracks, iTrackLink, recCounter, recoStart, rec1->localPosition(), trackExtrap);
458  numTracks++;
459  }
460  }
461 
462  trackExtrap.n_ = numTracks;
463 }

References freeTrajStateMuon(), GlobalTrackingGeometry::idToDet(), IsSameHit(), MatchTrackWithRecHits(), ResidualRefitting::StorageTrackExtrap::n_, MuonTransientTrackingRecHit::specificBuild(), theService, pfDisplacedTrackerVertex_cfi::trackColl, MuonServiceProxy::trackingGeometry(), and trkExtrap().

Referenced by analyze().

◆ omitStation()

void ResidualRefitting::omitStation ( edm::Handle< reco::MuonCollection funcMuons,
edm::Handle< reco::TrackCollection ,
ResidualRefitting::storage_muon storeGmr,
ResidualRefitting::storage_muon storeSam,
ResidualRefitting::storage_trackExtrap storeExtrap,
int  omitStation 
)

◆ omitTrackerSystem()

void ResidualRefitting::omitTrackerSystem ( edm::Handle< reco::MuonCollection trkMuons,
ResidualRefitting::storage_muon storeGmr,
ResidualRefitting::storage_muon storeTrk,
ResidualRefitting::storage_trackExtrap storeExtrap,
int  omitSystem 
)

◆ ReturnSector()

int ResidualRefitting::ReturnSector ( DetId  detid)

Definition at line 763 of file ResidualRefitting.cc.

763  {
764  int sector = -999;
765 
766  if (detid.det() == DetId::Muon) {
767  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
768  if (systemMuon == MuonSubdetId::DT) {
769  DTWireId id(detid.rawId());
770  sector = id.sector();
771  }
772  }
773 
774  return sector;
775 }

References DetId::det(), MuonSubdetId::DT, triggerObjects_cff::id, DetId::Muon, DetId::rawId(), and DetId::subdetId().

Referenced by trkExtrap().

◆ ReturnStation()

int ResidualRefitting::ReturnStation ( DetId  detid)

Definition at line 739 of file ResidualRefitting.cc.

739  {
740  int station = -999;
741 
742  if (detid.det() == DetId::Muon) {
743  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
744  if (systemMuon == MuonSubdetId::CSC) {
745  CSCDetId id(detid.rawId());
746  station = id.station();
747 
748  } else if (systemMuon == MuonSubdetId::DT) {
749  DTWireId id(detid.rawId());
750  station = id.station();
751 
752  } else if (systemMuon == MuonSubdetId::RPC) {
753  RPCDetId id(detid.rawId());
754  station = id.station();
755  }
756  }
757 
758  return station;
759 }

References MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, triggerObjects_cff::id, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, relativeConstraints::station, and DetId::subdetId().

Referenced by trkExtrap().

◆ StoreTrackerRecHits()

void ResidualRefitting::StoreTrackerRecHits ( DetId  detid,
const TrackerTopology tTopo,
int  iTrack,
int  iRec 
)

Definition at line 557 of file ResidualRefitting.cc.

557  {
558  int detector = -1;
559  int subdetector = -1;
560  int blade = -1;
561  int disk = -1;
562  int ladder = -1;
563  int layer = -1;
564  int module = -1;
565  int panel = -1;
566  int ring = -1;
567  int side = -1;
568  int wheel = -1;
569 
570  //Detector Info
571 
572  detector = detid.det();
573  subdetector = detid.subdetId();
574 
575  if (detector != DetId::Tracker) {
576  std::cout << "OMFG NOT THE TRACKER\n" << std::endl;
577  return;
578  }
579 
580  if (debug_)
581  std::cout << "Tracker:: ";
583  layer = tTopo->pxbLayer(detid.rawId());
584  ladder = tTopo->pxbLadder(detid.rawId());
585  module = tTopo->pxbModule(detid.rawId());
586  if (debug_)
587  std::cout << "PXB"
588  << "\tlayer = " << layer << "\tladder = " << ladder << "\tmodule = " << module;
589 
590  } else if (subdetector == ResidualRefitting::PXF) {
591  side = tTopo->pxfSide(detid.rawId());
592  disk = tTopo->pxfDisk(detid.rawId());
593  blade = tTopo->pxfBlade(detid.rawId());
594  panel = tTopo->pxfPanel(detid.rawId());
595  module = tTopo->pxfModule(detid.rawId());
596  if (debug_)
597  std::cout << "PXF"
598  << "\tside = " << side << "\tdisk = " << disk << "\tblade = " << blade << "\tpanel = " << panel
599  << "\tmodule = " << module;
600 
601  } else if (subdetector == ResidualRefitting::TIB) {
602  layer = tTopo->tibLayer(detid.rawId());
603  module = tTopo->tibModule(detid.rawId());
604  if (debug_)
605  std::cout << "TIB"
606  << "\tlayer = " << layer << "\tmodule = " << module;
607  } else if (subdetector == ResidualRefitting::TID) {
608  side = tTopo->tidSide(detid.rawId());
609  wheel = tTopo->tidWheel(detid.rawId());
610  ring = tTopo->tidRing(detid.rawId());
611  if (debug_)
612  std::cout << "TID"
613  << "\tside = " << side << "\twheel = " << wheel << "\tring = " << ring;
614 
615  } else if (subdetector == ResidualRefitting::TOB) {
616  layer = tTopo->tobLayer(detid.rawId());
617  module = tTopo->tobModule(detid.rawId());
618  if (debug_)
619  std::cout << "TOB"
620  << "\tlayer = " << layer << "\tmodule = " << module;
621 
622  } else if (subdetector == ResidualRefitting::TEC) {
623  ring = tTopo->tecRing(detid.rawId());
624  module = tTopo->tecModule(detid.rawId());
625  if (debug_)
626  std::cout << "TEC"
627  << "\tring = " << ring << "\tmodule = " << module;
628  }
629 
630  //Do Storage
631 
632  storageTrackHit_.muonLink_[iRec] = iTrack;
635  storageTrackHit_.blade_[iRec] = blade;
636  storageTrackHit_.disk_[iRec] = disk;
638  storageTrackHit_.layer_[iRec] = layer;
640  storageTrackHit_.panel_[iRec] = panel;
641  storageTrackHit_.ring_[iRec] = ring;
642  storageTrackHit_.side_[iRec] = side;
643  storageTrackHit_.wheel_[iRec] = wheel;
644 }

References ResidualRefitting::StorageTrackHit::blade_, gather_cfg::cout, debug_, DetId::det(), hgcalTestNeighbor_cfi::detector, ResidualRefitting::StorageTrackHit::detector_, ResidualRefitting::StorageTrackHit::disk_, PVValHelper::ladder, ResidualRefitting::StorageTrackHit::ladder_, ResidualRefitting::StorageTrackHit::layer_, ResidualRefitting::StorageTrackHit::module_, ResidualRefitting::StorageTrackHit::muonLink_, ResidualRefitting::StorageTrackHit::panel_, PXB, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), PXF, TrackerTopology::pxfBlade(), TrackerTopology::pxfDisk(), TrackerTopology::pxfModule(), TrackerTopology::pxfPanel(), TrackerTopology::pxfSide(), DetId::rawId(), relativeConstraints::ring, ResidualRefitting::StorageTrackHit::ring_, ResidualRefitting::StorageTrackHit::side_, storageTrackHit_, subdetector, ResidualRefitting::StorageTrackHit::subdetector_, DetId::subdetId(), TEC, TrackerTopology::tecModule(), TrackerTopology::tecRing(), TIB, TrackerTopology::tibLayer(), TrackerTopology::tibModule(), TID, TrackerTopology::tidRing(), TrackerTopology::tidSide(), TrackerTopology::tidWheel(), TOB, TrackerTopology::tobLayer(), TrackerTopology::tobModule(), DetId::Tracker, makeMuonMisalignmentScenario::wheel, and ResidualRefitting::StorageTrackHit::wheel_.

Referenced by CollectTrackHits().

◆ trkExtrap()

void ResidualRefitting::trkExtrap ( const DetId detid,
int  iTrkLink,
int  iTrk,
int  iRec,
const FreeTrajectoryState freeTrajState,
const LocalPoint recPoint,
storage_trackExtrap storeTemp 
)

Definition at line 663 of file ResidualRefitting.cc.

669  {
670  bool dump_ = debug_;
671 
672  if (dump_)
673  std::cout << "In the trkExtrap function" << std::endl;
674 
675  float gpExtrapX = -99999;
676  float gpExtrapY = -99999;
677  float gpExtrapZ = -99999;
678  float gpExtrapEta = -99999;
679  float gpExtrapPhi = -99999;
680 
681  float lpX = -99999;
682  float lpY = -99999;
683  float lpZ = -99999;
684 
685  //
686  // Get the local positions for the recHits
687  //
688 
689  float recLpX = recPoint.x();
690  float recLpY = recPoint.y();
691  float recLpZ = recPoint.z();
692 
693  float resX = -9999;
694  float resY = -9999;
695  float resZ = -9999;
696 
697  const GeomDet* gdet = theService->trackingGeometry()->idToDet(detid);
698 
699  // TrajectoryStateOnSurface surfTest = prop.propagate(freeTrajState, gdet->surface());
700  TrajectoryStateOnSurface surfTest = thePropagator->propagate(freeTrajState, gdet->surface());
701 
702  if (surfTest.isValid()) {
703  GlobalPoint globTest = surfTest.globalPosition();
704  gpExtrapX = globTest.x();
705  gpExtrapY = globTest.y();
706  gpExtrapZ = globTest.z();
707  gpExtrapEta = globTest.eta();
708  gpExtrapPhi = globTest.phi();
709  LocalPoint loc = surfTest.localPosition();
710  if (detid.det() == DetId::Muon || detid.det() == DetId::Tracker) {
711  lpX = loc.x();
712  lpY = loc.y();
713  lpZ = loc.z();
714 
715  resX = lpX - recLpX;
716  resY = lpY - recLpY;
717  resZ = lpZ - recLpZ;
718  }
719  }
720  storeTemp.muonLink_[iTrk] = iTrkLink;
721  storeTemp.recLink_[iTrk] = iRec;
722  storeTemp.gpX_[iTrk] = gpExtrapX;
723  storeTemp.gpY_[iTrk] = gpExtrapY;
724  storeTemp.gpZ_[iTrk] = gpExtrapZ;
725  storeTemp.gpEta_[iTrk] = gpExtrapEta;
726  storeTemp.gpPhi_[iTrk] = gpExtrapPhi;
727  storeTemp.lpX_[iTrk] = lpX;
728  storeTemp.lpY_[iTrk] = lpY;
729  storeTemp.lpZ_[iTrk] = lpZ;
730  storeTemp.resX_[iTrk] = resX;
731  storeTemp.resY_[iTrk] = resY;
732  storeTemp.resZ_[iTrk] = resZ;
733 
734  printf("station: %d\tsector: %d\tresX storage: %4.2f\n", ReturnStation(detid), ReturnSector(detid), resX);
735 }

References gather_cfg::cout, debug_, DetId::det(), PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), ResidualRefitting::StorageTrackExtrap::gpEta_, ResidualRefitting::StorageTrackExtrap::gpPhi_, ResidualRefitting::StorageTrackExtrap::gpX_, ResidualRefitting::StorageTrackExtrap::gpY_, ResidualRefitting::StorageTrackExtrap::gpZ_, GlobalTrackingGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localPosition(), ResidualRefitting::StorageTrackExtrap::lpX_, ResidualRefitting::StorageTrackExtrap::lpY_, ResidualRefitting::StorageTrackExtrap::lpZ_, DetId::Muon, ResidualRefitting::StorageTrackExtrap::muonLink_, PV3DBase< T, PVType, FrameType >::phi(), Propagator::propagate(), ResidualRefitting::StorageTrackExtrap::recLink_, ResidualRefitting::StorageTrackExtrap::resX_, ResidualRefitting::StorageTrackExtrap::resY_, ResidualRefitting::StorageTrackExtrap::resZ_, ReturnSector(), ReturnStation(), GeomDet::surface(), thePropagator, theService, DetId::Tracker, MuonServiceProxy::trackingGeometry(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by CollectTrackHits(), and NewTrackMeasurements().

◆ zero_muon()

void ResidualRefitting::zero_muon ( ResidualRefitting::storage_muon str)

Definition at line 928 of file ResidualRefitting.cc.

928  {
929  str->n_ = 0;
930 
931  for (int i = 0; i < ResidualRefitting::N_MAX_STORED; i++) {
932  str->pt_[i] = -9999;
933  str->eta_[i] = -9999;
934  str->p_[i] = -9999;
935  str->phi_[i] = -9999;
936  str->numRecHits_[i] = -9999;
937  str->chiSq_[i] = -9999;
938  str->ndf_[i] = -9999;
939  str->chiSqOvrNdf_[i] = -9999;
940  }
941 }

References mps_fire::i, N_MAX_STORED, and str.

Referenced by zero_storage().

◆ zero_storage()

void ResidualRefitting::zero_storage ( )

Definition at line 828 of file ResidualRefitting.cc.

828  {
829  if (debug_)
830  printf("zero_storage\n");
831 
844  //zero out the tracker
848 
850 
855 
857 
864 
866 
870 
872 
877 
879 
886 
888 
895 
897 
899 
903 
905 
910 
917 
919 
921 
922  storageRecMuon_.n_ = 0;
923  storageTrackHit_.n_ = 0;
924 }

References debug_, ResidualRefitting::StorageHit::n_, ResidualRefitting::StorageTrackHit::n_, samExtrap120_, storageGmrNew_, storageGmrNoPXBLayer1, storageGmrNoPXBLayer2, storageGmrNoPXBLayer3, storageGmrNoPXF, storageGmrNoSt1_, storageGmrNoSt2_, storageGmrNoSt3_, storageGmrNoSt4_, storageGmrNoTEC, storageGmrNoTIBLayer1, storageGmrNoTIBLayer2, storageGmrNoTIBLayer3, storageGmrNoTIBLayer4, storageGmrNoTID, storageGmrNoTOBLayer1, storageGmrNoTOBLayer2, storageGmrNoTOBLayer3, storageGmrNoTOBLayer4, storageGmrNoTOBLayer5, storageGmrNoTOBLayer6, storageGmrOld_, storageRecMuon_, storageSamNew_, storageSamNoSt1_, storageSamNoSt2_, storageSamNoSt3_, storageSamNoSt4_, storageTrackExtrapRec_, storageTrackExtrapRecNoSt1_, storageTrackExtrapRecNoSt2_, storageTrackExtrapRecNoSt3_, storageTrackExtrapRecNoSt4_, storageTrackExtrapTracker_, storageTrackHit_, storageTrackNoPXBLayer1, storageTrackNoPXBLayer2, storageTrackNoPXBLayer3, storageTrackNoPXF, storageTrackNoTEC, storageTrackNoTIBLayer1, storageTrackNoTIBLayer2, storageTrackNoTIBLayer3, storageTrackNoTIBLayer4, storageTrackNoTID, storageTrackNoTOBLayer1, storageTrackNoTOBLayer2, storageTrackNoTOBLayer3, storageTrackNoTOBLayer4, storageTrackNoTOBLayer5, storageTrackNoTOBLayer6, storageTrkNew_, storageTrkNoPXBLayer1, storageTrkNoPXBLayer2, storageTrkNoPXBLayer3, storageTrkNoPXF, storageTrkNoTEC, storageTrkNoTIBLayer1, storageTrkNoTIBLayer2, storageTrkNoTIBLayer3, storageTrkNoTIBLayer4, storageTrkNoTID, storageTrkNoTOBLayer1, storageTrkNoTOBLayer2, storageTrkNoTOBLayer3, storageTrkNoTOBLayer4, storageTrkNoTOBLayer5, storageTrkNoTOBLayer6, trackExtrap120_, zero_muon(), and zero_trackExtrap().

Referenced by analyze().

◆ zero_trackExtrap()

void ResidualRefitting::zero_trackExtrap ( ResidualRefitting::storage_trackExtrap str)

Definition at line 945 of file ResidualRefitting.cc.

945  {
946  str->n_ = 0;
947  for (int i = 0; i < ResidualRefitting::N_MAX_STORED_HIT; i++) {
948  str->muonLink_[i] = -9999;
949  str->recLink_[i] = -9999;
950  str->gpX_[i] = -9999;
951  str->gpY_[i] = -9999;
952  str->gpZ_[i] = -9999;
953  str->gpEta_[i] = -9999;
954  str->gpPhi_[i] = -9999;
955  str->lpX_[i] = -9999;
956  str->lpY_[i] = -9999;
957  str->lpZ_[i] = -9999;
958  str->resX_[i] = -9999;
959  str->resY_[i] = -9999;
960  str->resZ_[i] = -9999;
961  }
962 }

References mps_fire::i, N_MAX_STORED_HIT, and str.

Referenced by zero_storage().

Member Data Documentation

◆ debug_

bool ResidualRefitting::debug_

◆ eventInfo_

ResidualRefitting::storage_event ResidualRefitting::eventInfo_

Definition at line 59 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and ResidualRefitting().

◆ muons_

edm::InputTag ResidualRefitting::muons_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ muonsNoPXBLayer1_

edm::InputTag ResidualRefitting::muonsNoPXBLayer1_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoPXBLayer2_

edm::InputTag ResidualRefitting::muonsNoPXBLayer2_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoPXBLayer3_

edm::InputTag ResidualRefitting::muonsNoPXBLayer3_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoPXF_

edm::InputTag ResidualRefitting::muonsNoPXF_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoStation1_

edm::InputTag ResidualRefitting::muonsNoStation1_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ muonsNoStation2_

edm::InputTag ResidualRefitting::muonsNoStation2_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ muonsNoStation3_

edm::InputTag ResidualRefitting::muonsNoStation3_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ muonsNoStation4_

edm::InputTag ResidualRefitting::muonsNoStation4_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ muonsNoTEC_

edm::InputTag ResidualRefitting::muonsNoTEC_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTIBLayer1_

edm::InputTag ResidualRefitting::muonsNoTIBLayer1_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTIBLayer2_

edm::InputTag ResidualRefitting::muonsNoTIBLayer2_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTIBLayer3_

edm::InputTag ResidualRefitting::muonsNoTIBLayer3_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTIBLayer4_

edm::InputTag ResidualRefitting::muonsNoTIBLayer4_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTID_

edm::InputTag ResidualRefitting::muonsNoTID_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer1_

edm::InputTag ResidualRefitting::muonsNoTOBLayer1_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer2_

edm::InputTag ResidualRefitting::muonsNoTOBLayer2_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer3_

edm::InputTag ResidualRefitting::muonsNoTOBLayer3_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer4_

edm::InputTag ResidualRefitting::muonsNoTOBLayer4_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer5_

edm::InputTag ResidualRefitting::muonsNoTOBLayer5_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsNoTOBLayer6_

edm::InputTag ResidualRefitting::muonsNoTOBLayer6_

Definition at line 330 of file ResidualRefitting.h.

◆ muonsRemake_

edm::InputTag ResidualRefitting::muonsRemake_

Definition at line 330 of file ResidualRefitting.h.

Referenced by analyze().

◆ N_MAX_STORED

const int ResidualRefitting::N_MAX_STORED = 10
staticprivate

◆ N_MAX_STORED_HIT

const int ResidualRefitting::N_MAX_STORED_HIT = 1000
staticprivate

◆ outputBranch_

TBranch* ResidualRefitting::outputBranch_

Definition at line 343 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), branchMuon(), and branchTrackExtrap().

◆ outputFile_

TFile* ResidualRefitting::outputFile_

Definition at line 340 of file ResidualRefitting.h.

Referenced by beginJob(), endJob(), and ~ResidualRefitting().

◆ outputFileName_

std::string ResidualRefitting::outputFileName_

Definition at line 325 of file ResidualRefitting.h.

Referenced by beginJob().

◆ outputTree_

TTree* ResidualRefitting::outputTree_

Definition at line 342 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), branchMuon(), and branchTrackExtrap().

◆ PropagatorSource_

std::string ResidualRefitting::PropagatorSource_

Definition at line 327 of file ResidualRefitting.h.

Referenced by analyze().

◆ PXB

const int ResidualRefitting::PXB = 1
staticprivate

Definition at line 43 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ PXF

const int ResidualRefitting::PXF = 2
staticprivate

Definition at line 44 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ samExtrap120_

ResidualRefitting::storage_trackExtrap ResidualRefitting::samExtrap120_

Definition at line 248 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageGmrNew_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNew_

Definition at line 224 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageGmrNoPXBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoPXBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoPXBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoPXF

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXF

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoSt1_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt1_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoSt2_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt2_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoSt3_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt3_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoSt4_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt4_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTEC

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTEC

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTIBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTIBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTIBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTIBLayer4

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer4

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTID

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTID

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer4

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer4

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer5

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer5

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrNoTOBLayer6

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer6

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageGmrOld_

ResidualRefitting::storage_muon ResidualRefitting::storageGmrOld_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageRecMuon_

ResidualRefitting::storage_hit ResidualRefitting::storageRecMuon_

Definition at line 240 of file ResidualRefitting.h.

Referenced by beginJob(), CollectTrackHits(), and zero_storage().

◆ storageSamNew_

ResidualRefitting::storage_muon ResidualRefitting::storageSamNew_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageSamNoSt1_

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt1_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageSamNoSt2_

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt2_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageSamNoSt3_

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt3_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageSamNoSt4_

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt4_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackExtrapRec_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRec_

Definition at line 244 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageTrackExtrapRecNoSt1_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt1_

Definition at line 244 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageTrackExtrapRecNoSt2_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt2_

Definition at line 244 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageTrackExtrapRecNoSt3_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt3_

Definition at line 244 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageTrackExtrapRecNoSt4_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt4_

Definition at line 244 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ storageTrackExtrapTracker_

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapTracker_

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackHit_

ResidualRefitting::storage_trackHit ResidualRefitting::storageTrackHit_

Definition at line 241 of file ResidualRefitting.h.

Referenced by beginJob(), CollectTrackHits(), StoreTrackerRecHits(), and zero_storage().

◆ storageTrackNoPXBLayer1

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer1

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoPXBLayer2

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer2

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoPXBLayer3

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer3

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoPXF

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXF

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTEC

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTEC

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTIBLayer1

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer1

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTIBLayer2

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer2

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTIBLayer3

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer3

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTIBLayer4

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer4

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTID

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTID

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer1

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer1

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer2

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer2

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer3

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer3

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer4

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer4

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer5

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer5

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrackNoTOBLayer6

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer6

Definition at line 251 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNew_

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNew_

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoPXBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoPXBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoPXBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoPXF

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXF

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTEC

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTEC

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTIBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTIBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTIBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTIBLayer4

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer4

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTID

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTID

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer1

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer1

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer2

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer2

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer3

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer3

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer4

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer4

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer5

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer5

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ storageTrkNoTOBLayer6

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer6

Definition at line 224 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

◆ TEC

const int ResidualRefitting::TEC = 6
staticprivate

Definition at line 48 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ theField

const MagneticField* ResidualRefitting::theField

Definition at line 347 of file ResidualRefitting.h.

Referenced by analyze(), and freeTrajStateMuon().

◆ thePropagator

edm::ESHandle<Propagator> ResidualRefitting::thePropagator

Definition at line 350 of file ResidualRefitting.h.

Referenced by analyze(), cylExtrapTrkSam(), and trkExtrap().

◆ theService

MuonServiceProxy* ResidualRefitting::theService

◆ TIB

const int ResidualRefitting::TIB = 3
staticprivate

Definition at line 45 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ TID

const int ResidualRefitting::TID = 4
staticprivate

Definition at line 46 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ TOB

const int ResidualRefitting::TOB = 5
staticprivate

Definition at line 47 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

◆ trackExtrap120_

ResidualRefitting::storage_trackExtrap ResidualRefitting::trackExtrap120_

Definition at line 248 of file ResidualRefitting.h.

Referenced by analyze(), beginJob(), and zero_storage().

◆ trackingGeometry

const edm::ESHandle<GlobalTrackingGeometry> ResidualRefitting::trackingGeometry

Definition at line 348 of file ResidualRefitting.h.

◆ tracks_

edm::InputTag ResidualRefitting::tracks_

Definition at line 330 of file ResidualRefitting.h.

Vector3DBase
Definition: Vector3DBase.h:8
ResidualRefitting::storageGmrNoPXF
ResidualRefitting::storage_muon storageGmrNoPXF
Definition: ResidualRefitting.h:224
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
TkRotation< float >
ResidualRefitting::storageTrkNoPXBLayer3
ResidualRefitting::storage_muon storageTrkNoPXBLayer3
Definition: ResidualRefitting.h:224
ResidualRefitting::storageGmrNoTIBLayer1
ResidualRefitting::storage_muon storageGmrNoTIBLayer1
Definition: ResidualRefitting.h:224
ResidualRefitting::PXB
static const int PXB
Definition: ResidualRefitting.h:43
ResidualRefitting::StoreTrackerRecHits
void StoreTrackerRecHits(DetId detid, const TrackerTopology *tTopo, int iTrack, int iRec)
Definition: ResidualRefitting.cc:557
MuonSubdetId::CSC
static constexpr int CSC
Definition: MuonSubdetId.h:12
pfDisplacedTrackerVertex_cfi.trackColl
trackColl
Definition: pfDisplacedTrackerVertex_cfi.py:6
ResidualRefitting::StorageTrackHit::disk_
int disk_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:179
mps_fire.i
i
Definition: mps_fire.py:355
ResidualRefitting::dumpTrackRef
void dumpTrackRef(reco::TrackRef muon, std::string str)
Definition: ResidualRefitting.cc:1241
ResidualRefitting::StorageHit::station_
int station_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:95
MuonTransientTrackingRecHit::specificBuild
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
Definition: MuonTransientTrackingRecHit.h:75
ResidualRefitting::storageGmrNoPXBLayer1
ResidualRefitting::storage_muon storageGmrNoPXBLayer1
Definition: ResidualRefitting.h:224
ResidualRefitting::storageGmrNoTOBLayer5
ResidualRefitting::storage_muon storageGmrNoTOBLayer5
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackExtrap::gpX_
float gpX_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:141
GeomDet
Definition: GeomDet.h:27
ResidualRefitting::storageTrackNoTIBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer3
Definition: ResidualRefitting.h:251
ResidualRefitting::storageTrkNoTOBLayer4
ResidualRefitting::storage_muon storageTrkNoTOBLayer4
Definition: ResidualRefitting.h:224
TrackerTopology::pxfSide
unsigned int pxfSide(const DetId &id) const
Definition: TrackerTopology.h:192
muon
Definition: MuonCocktails.h:17
ResidualRefitting::storageTrkNoTOBLayer6
ResidualRefitting::storage_muon storageTrkNoTOBLayer6
Definition: ResidualRefitting.h:224
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
ResidualRefitting::StorageTrackHit::panel_
int panel_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:183
ResidualRefitting::StorageHit::system_
int system_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:93
ResidualRefitting::theField
const MagneticField * theField
Definition: ResidualRefitting.h:347
relativeConstraints.station
station
Definition: relativeConstraints.py:67
ResidualRefitting::StorageTrackHit::lpY_
float lpY_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:194
electrons_cff.branchName
branchName
Definition: electrons_cff.py:492
ResidualRefitting::zero_trackExtrap
void zero_trackExtrap(ResidualRefitting::storage_trackExtrap *str)
Definition: ResidualRefitting.cc:945
TrackerTopology
Definition: TrackerTopology.h:16
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ResidualRefitting::StorageTrackHit::side_
int side_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:185
ResidualRefitting::CollectTrackHits
void CollectTrackHits(edm::Handle< reco::TrackCollection > trackColl, ResidualRefitting::storage_trackExtrap &trackExtrap, const edm::EventSetup &eventSetup)
Definition: ResidualRefitting.cc:268
ResidualRefitting::ReturnStation
int ReturnStation(DetId detid)
Definition: ResidualRefitting.cc:739
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
ResidualRefitting::storageGmrNoTOBLayer1
ResidualRefitting::storage_muon storageGmrNoTOBLayer1
Definition: ResidualRefitting.h:224
TrackerTopology::pxbLadder
unsigned int pxbLadder(const DetId &id) const
Definition: TrackerTopology.h:155
RPCDetId
Definition: RPCDetId.h:16
TrajectoryStateOnSurface::globalPosition
GlobalPoint globalPosition() const
Definition: TrajectoryStateOnSurface.h:65
ResidualRefitting::StorageTrackExtrap::gpPhi_
float gpPhi_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:145
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos
Definition: PixelAliasList.h:18
ResidualRefitting::StorageMuon::phi_
float phi_[N_MAX_STORED]
Definition: ResidualRefitting.h:68
ResidualRefitting::storageTrackNoTEC
ResidualRefitting::storage_trackExtrap storageTrackNoTEC
Definition: ResidualRefitting.h:251
ResidualRefitting::TEC
static const int TEC
Definition: ResidualRefitting.h:48
ResidualRefitting::StorageTrackHit::gpY_
float gpY_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:189
ResidualRefitting::StorageMuon::numRecHits_
int numRecHits_[N_MAX_STORED]
Definition: ResidualRefitting.h:69
ResidualRefitting::storageTrackNoTOBLayer4
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer4
Definition: ResidualRefitting.h:251
ResidualRefitting::storageTrackNoTIBLayer4
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer4
Definition: ResidualRefitting.h:251
ResidualRefitting::StorageHit::chamber_
int chamber_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:97
ResidualRefitting::storageTrkNoTID
ResidualRefitting::storage_muon storageTrkNoTID
Definition: ResidualRefitting.h:224
ResidualRefitting::zero_muon
void zero_muon(ResidualRefitting::storage_muon *str)
Definition: ResidualRefitting.cc:928
ResidualRefitting::storageTrackExtrapTracker_
ResidualRefitting::storage_trackExtrap storageTrackExtrapTracker_
Definition: ResidualRefitting.h:251
ResidualRefitting::storageTrkNoTIBLayer2
ResidualRefitting::storage_muon storageTrkNoTIBLayer2
Definition: ResidualRefitting.h:224
GlobalTrackingGeometryRecord
Definition: GlobalTrackingGeometryRecord.h:17
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
ResidualRefitting::storageTrackExtrapRec_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRec_
Definition: ResidualRefitting.h:244
ResidualRefitting::StorageHit::superLayer_
int superLayer_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:99
ResidualRefitting::ReturnSector
int ReturnSector(DetId detid)
Definition: ResidualRefitting.cc:763
ResidualRefitting::StorageTrackExtrap::n_
int n_
Definition: ResidualRefitting.h:137
ResidualRefitting::StorageHit::n_
int n_
Definition: ResidualRefitting.h:90
ResidualRefitting::N_MAX_STORED
static const int N_MAX_STORED
Definition: ResidualRefitting.h:40
ReferenceCountingPointer< Cylinder >
ResidualRefitting::PropagatorSource_
std::string PropagatorSource_
Definition: ResidualRefitting.h:327
ResidualRefitting::storageGmrNoSt1_
ResidualRefitting::storage_muon storageGmrNoSt1_
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrackNoTOBLayer6
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer6
Definition: ResidualRefitting.h:251
ResidualRefitting::storageTrackExtrapRecNoSt1_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt1_
Definition: ResidualRefitting.h:244
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
ResidualRefitting::StorageHit::ring_
int ring_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:96
ResidualRefitting::outputFile_
TFile * outputFile_
Definition: ResidualRefitting.h:340
ResidualRefitting::storageTrackExtrapRecNoSt3_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt3_
Definition: ResidualRefitting.h:244
edm::Handle< reco::MuonCollection >
ResidualRefitting::storageTrackNoPXBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer1
Definition: ResidualRefitting.h:251
ResidualRefitting::StorageHit::gpX_
float gpX_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:103
MuonServiceProxy_cff.MuonServiceProxy
MuonServiceProxy
Definition: MuonServiceProxy_cff.py:15
TrackerTopology::tidRing
unsigned int tidRing(const DetId &id) const
Definition: TrackerTopology.h:218
ResidualRefitting::storageTrackNoTIBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer2
Definition: ResidualRefitting.h:251
ResidualRefitting::StorageHit::gpZ_
float gpZ_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:105
edm::Ref< TrackCollection >
TrackerTopology::tidWheel
unsigned int tidWheel(const DetId &id) const
Definition: TrackerTopology.h:201
ResidualRefitting::TID
static const int TID
Definition: ResidualRefitting.h:46
ResidualRefitting::storageGmrNoTID
ResidualRefitting::storage_muon storageGmrNoTID
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackHit::n_
int n_
Definition: ResidualRefitting.h:173
TrackerTopology::pxbLayer
unsigned int pxbLayer(const DetId &id) const
Definition: TrackerTopology.h:144
ResidualRefitting::storageGmrNoTOBLayer4
ResidualRefitting::storage_muon storageGmrNoTOBLayer4
Definition: ResidualRefitting.h:224
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
TrackerTopology::pxfPanel
unsigned int pxfPanel(const DetId &id) const
Definition: TrackerTopology.h:450
ResidualRefitting::StorageTrackHit::wheel_
int wheel_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:186
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
ResidualRefitting::storageTrackHit_
ResidualRefitting::storage_trackHit storageTrackHit_
Definition: ResidualRefitting.h:241
ResidualRefitting::muonsNoStation2_
edm::InputTag muonsNoStation2_
Definition: ResidualRefitting.h:330
DetId
Definition: DetId.h:17
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
ResidualRefitting::storageTrackNoTOBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer2
Definition: ResidualRefitting.h:251
ResidualRefitting::storageGmrNoTOBLayer6
ResidualRefitting::storage_muon storageGmrNoTOBLayer6
Definition: ResidualRefitting.h:224
ResidualRefitting::storageGmrNoSt3_
ResidualRefitting::storage_muon storageGmrNoSt3_
Definition: ResidualRefitting.h:224
ResidualRefitting::trkExtrap
void trkExtrap(const DetId &detid, int iTrkLink, int iTrk, int iRec, const FreeTrajectoryState &freeTrajState, const LocalPoint &recPoint, storage_trackExtrap &storeTemp)
Definition: ResidualRefitting.cc:663
ResidualRefitting::outputBranch_
TBranch * outputBranch_
Definition: ResidualRefitting.h:343
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
ResidualRefitting::storageTrkNoTOBLayer5
ResidualRefitting::storage_muon storageTrkNoTOBLayer5
Definition: ResidualRefitting.h:224
ResidualRefitting::storageSamNoSt4_
ResidualRefitting::storage_muon storageSamNoSt4_
Definition: ResidualRefitting.h:224
ResidualRefitting::TOB
static const int TOB
Definition: ResidualRefitting.h:47
DTWireId
Definition: DTWireId.h:12
ResidualRefitting::StorageMuon::chiSq_
float chiSq_[N_MAX_STORED]
Definition: ResidualRefitting.h:70
ResidualRefitting::outputTree_
TTree * outputTree_
Definition: ResidualRefitting.h:342
PVValHelper::eta
Definition: PVValidationHelpers.h:69
ResidualRefitting::N_MAX_STORED_HIT
static const int N_MAX_STORED_HIT
Definition: ResidualRefitting.h:41
ResidualRefitting::storageTrackExtrapRecNoSt2_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt2_
Definition: ResidualRefitting.h:244
ResidualRefitting::storageGmrNoTOBLayer2
ResidualRefitting::storage_muon storageGmrNoTOBLayer2
Definition: ResidualRefitting.h:224
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ResidualRefitting::debug_
bool debug_
Definition: ResidualRefitting.h:337
str
#define str(s)
Definition: TestProcessor.cc:48
ResidualRefitting::StorageTrackHit::muonLink_
int muonLink_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:175
edm::ESHandle< MagneticField >
ResidualRefitting::StorageTrackHit::lpZ_
float lpZ_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:195
ResidualRefitting::storageTrkNoPXF
ResidualRefitting::storage_muon storageTrkNoPXF
Definition: ResidualRefitting.h:224
ResidualRefitting::muonsNoStation1_
edm::InputTag muonsNoStation1_
Definition: ResidualRefitting.h:330
ResidualRefitting::storageGmrNoSt4_
ResidualRefitting::storage_muon storageGmrNoSt4_
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrackExtrapRecNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt4_
Definition: ResidualRefitting.h:244
ResidualRefitting::storageGmrNoTEC
ResidualRefitting::storage_muon storageGmrNoTEC
Definition: ResidualRefitting.h:224
ResidualRefitting::NewTrackMeasurements
void NewTrackMeasurements(edm::Handle< reco::TrackCollection > trackCollOrig, edm::Handle< reco::TrackCollection > trackColl, ResidualRefitting::storage_trackExtrap &trackExtrap)
Definition: ResidualRefitting.cc:425
ResidualRefitting::StorageMuon::chiSqOvrNdf_
float chiSqOvrNdf_[N_MAX_STORED]
Definition: ResidualRefitting.h:72
ResidualRefitting::branchMuon
void branchMuon(ResidualRefitting::storage_muon &storageTmp, std::string branchName)
Definition: ResidualRefitting.cc:1108
MuonSubdetId::DT
static constexpr int DT
Definition: MuonSubdetId.h:11
ResidualRefitting::storage_event::evtNum_
int evtNum_
Definition: ResidualRefitting.h:55
ResidualRefitting::MatchTrackWithRecHits
int MatchTrackWithRecHits(reco::TrackCollection::const_iterator trackIt, edm::Handle< reco::TrackCollection > ref)
Definition: ResidualRefitting.cc:467
ResidualRefitting::storageSamNew_
ResidualRefitting::storage_muon storageSamNew_
Definition: ResidualRefitting.h:224
Point3DBase< float, LocalTag >
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
reco::TrackRef
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20
DDAxes::rho
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ResidualRefitting::StorageHit::lpZ_
float lpZ_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:110
ResidualRefitting::StorageHit::gpPhi_
float gpPhi_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:107
ResidualRefitting::StorageTrackExtrap::gpEta_
float gpEta_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:144
MuonServiceProxy::update
void update(const edm::EventSetup &setup, bool duringEvent=true)
update the services each event
Definition: MuonServiceProxy.cc:111
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
ResidualRefitting::outputFileName_
std::string outputFileName_
Definition: ResidualRefitting.h:325
ResidualRefitting::muonsRemake_
edm::InputTag muonsRemake_
Definition: ResidualRefitting.h:330
ResidualRefitting::StorageHit::wheel_
int wheel_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:100
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition: TrajectoryStateOnSurface.h:74
ResidualRefitting::StorageHit::gpEta_
float gpEta_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:106
ResidualRefitting::StorageHit::endcap_
int endcap_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:94
edm::ParameterSet
Definition: ParameterSet.h:36
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
ResidualRefitting::StorageTrackHit::gpEta_
float gpEta_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:191
DetId::Tracker
Definition: DetId.h:25
ResidualRefitting::storageGmrNoSt2_
ResidualRefitting::storage_muon storageGmrNoSt2_
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackHit::ring_
int ring_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:184
ResidualRefitting::StorageTrackExtrap::gpY_
float gpY_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:142
ResidualRefitting::StorageMuon::p_
float p_[N_MAX_STORED]
Definition: ResidualRefitting.h:67
ResidualRefitting::storage_event::runNum_
int runNum_
Definition: ResidualRefitting.h:56
ResidualRefitting::muonsNoStation3_
edm::InputTag muonsNoStation3_
Definition: ResidualRefitting.h:330
ResidualRefitting::muonInfo
void muonInfo(ResidualRefitting::storage_muon &storeMuon, reco::TrackRef muon, int val)
Definition: ResidualRefitting.cc:649
CSCDetId
Definition: CSCDetId.h:26
ResidualRefitting::StorageTrackExtrap::muonLink_
int muonLink_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:139
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
ResidualRefitting::StorageHit::gpY_
float gpY_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:104
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
Cylinder::build
static CylinderPointer build(const PositionType &pos, const RotationType &rot, Scalar radius, Bounds *bounds=nullptr)
Definition: Cylinder.h:45
TrackerTopology::tibModule
unsigned int tibModule(const DetId &id) const
Definition: TrackerTopology.h:172
TrackerTopology::tidSide
unsigned int tidSide(const DetId &id) const
Definition: TrackerTopology.h:190
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
createfilelist.int
int
Definition: createfilelist.py:10
TrackerTopology::tecRing
unsigned int tecRing(const DetId &id) const
ring id
Definition: TrackerTopology.h:217
ResidualRefitting::storageGmrOld_
ResidualRefitting::storage_muon storageGmrOld_
Definition: ResidualRefitting.h:224
TrackerTopology::pxfModule
unsigned int pxfModule(const DetId &id) const
Definition: TrackerTopology.h:163
TrackerTopology::pxfDisk
unsigned int pxfDisk(const DetId &id) const
Definition: TrackerTopology.h:446
ResidualRefitting::storageTrkNoPXBLayer2
ResidualRefitting::storage_muon storageTrkNoPXBLayer2
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrkNoTOBLayer1
ResidualRefitting::storage_muon storageTrkNoTOBLayer1
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrkNoTEC
ResidualRefitting::storage_muon storageTrkNoTEC
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageMuon::ndf_
float ndf_[N_MAX_STORED]
Definition: ResidualRefitting.h:71
Propagator::propagate
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
module
Definition: vlib.h:198
get
#define get
ResidualRefitting::muons_
edm::InputTag muons_
Definition: ResidualRefitting.h:330
ResidualRefitting::storageGmrNoTOBLayer3
ResidualRefitting::storage_muon storageGmrNoTOBLayer3
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackHit::layer_
int layer_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:181
ResidualRefitting::theService
MuonServiceProxy * theService
Definition: ResidualRefitting.h:349
ResidualRefitting::storageGmrNoTIBLayer3
ResidualRefitting::storage_muon storageGmrNoTIBLayer3
Definition: ResidualRefitting.h:224
looper.cfg
cfg
Definition: looper.py:297
ResidualRefitting::storageGmrNoPXBLayer2
ResidualRefitting::storage_muon storageGmrNoPXBLayer2
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackHit::blade_
int blade_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:178
ResidualRefitting::StorageTrackHit::ladder_
int ladder_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:180
ResidualRefitting::freeTrajStateMuon
FreeTrajectoryState freeTrajStateMuon(reco::TrackRef muon)
Definition: ResidualRefitting.cc:1158
DDAxes::phi
ResidualRefitting::storageGmrNoTIBLayer2
ResidualRefitting::storage_muon storageGmrNoTIBLayer2
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageHit::sector_
int sector_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:101
TrackerTopology::tobLayer
unsigned int tobLayer(const DetId &id) const
Definition: TrackerTopology.h:147
ResidualRefitting::storageTrkNew_
ResidualRefitting::storage_muon storageTrkNew_
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageMuon::eta_
float eta_[N_MAX_STORED]
Definition: ResidualRefitting.h:66
heppy_batch.val
val
Definition: heppy_batch.py:351
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
ResidualRefitting::trackExtrap120_
ResidualRefitting::storage_trackExtrap trackExtrap120_
Definition: ResidualRefitting.h:248
ResidualRefitting::storageGmrNoPXBLayer3
ResidualRefitting::storage_muon storageGmrNoPXBLayer3
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageTrackHit::module_
int module_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:182
TrackerTopology::tobModule
unsigned int tobModule(const DetId &id) const
Definition: TrackerTopology.h:166
ResidualRefitting::PXF
static const int PXF
Definition: ResidualRefitting.h:44
TrackerTopology::pxbModule
unsigned int pxbModule(const DetId &id) const
Definition: TrackerTopology.h:160
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
ResidualRefitting::storageTrkNoPXBLayer1
ResidualRefitting::storage_muon storageTrkNoPXBLayer1
Definition: ResidualRefitting.h:224
MuonSubdetId::RPC
static constexpr int RPC
Definition: MuonSubdetId.h:13
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ResidualRefitting::storageTrackNoTID
ResidualRefitting::storage_trackExtrap storageTrackNoTID
Definition: ResidualRefitting.h:251
MuonServiceProxy::trackingGeometry
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
Definition: MuonServiceProxy.h:59
ResidualRefitting::eventInfo_
ResidualRefitting::storage_event eventInfo_
Definition: ResidualRefitting.h:59
ResidualRefitting::storageTrkNoTOBLayer2
ResidualRefitting::storage_muon storageTrkNoTOBLayer2
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageMuon::pt_
float pt_[N_MAX_STORED]
Definition: ResidualRefitting.h:65
GlobalTrackingGeometry::idToDet
const GeomDet * idToDet(DetId) const override
Definition: GlobalTrackingGeometry.cc:44
ResidualRefitting::storageRecMuon_
ResidualRefitting::storage_hit storageRecMuon_
Definition: ResidualRefitting.h:240
ResidualRefitting::StorageTrackHit::gpX_
float gpX_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:188
ResidualRefitting::storageGmrNew_
ResidualRefitting::storage_muon storageGmrNew_
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrackNoPXBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer2
Definition: ResidualRefitting.h:251
PVValHelper::ladder
Definition: PVValidationHelpers.h:72
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
ResidualRefitting::thePropagator
edm::ESHandle< Propagator > thePropagator
Definition: ResidualRefitting.h:350
ResidualRefitting::storageTrackNoTOBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer3
Definition: ResidualRefitting.h:251
ResidualRefitting::cylExtrapTrkSam
void cylExtrapTrkSam(int recNum, reco::TrackRef track, ResidualRefitting::storage_trackExtrap &storage, double rho)
Definition: ResidualRefitting.cc:780
ResidualRefitting::storageTrkNoTIBLayer4
ResidualRefitting::storage_muon storageTrkNoTIBLayer4
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageHit::muonLink_
int muonLink_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:91
TrackerTopology::tecModule
unsigned int tecModule(const DetId &id) const
Definition: TrackerTopology.h:169
ResidualRefitting::zero_storage
void zero_storage()
Definition: ResidualRefitting.cc:828
ResidualRefitting::storageSamNoSt3_
ResidualRefitting::storage_muon storageSamNoSt3_
Definition: ResidualRefitting.h:224
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
ResidualRefitting::StorageMuon::charge_
int charge_[N_MAX_STORED]
Definition: ResidualRefitting.h:64
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
TrackerTopology::pxfBlade
unsigned int pxfBlade(const DetId &id) const
Definition: TrackerTopology.h:447
ResidualRefitting::storageTrkNoTIBLayer3
ResidualRefitting::storage_muon storageTrkNoTIBLayer3
Definition: ResidualRefitting.h:224
DetId::Muon
Definition: DetId.h:26
ResidualRefitting::storageTrackNoTIBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer1
Definition: ResidualRefitting.h:251
ResidualRefitting::StorageTrackHit::gpPhi_
float gpPhi_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:192
ResidualRefitting::StorageTrackHit::lpX_
float lpX_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:193
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53
ResidualRefitting::StorageMuon::n_
int n_
Definition: ResidualRefitting.h:62
ResidualRefitting::storageTrackNoTOBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer1
Definition: ResidualRefitting.h:251
event
Definition: event.py:1
ResidualRefitting::storageTrackNoPXBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer3
Definition: ResidualRefitting.h:251
ResidualRefitting::branchTrackExtrap
void branchTrackExtrap(ResidualRefitting::storage_trackExtrap &storageTmp, std::string branchName)
Definition: ResidualRefitting.cc:1127
ResidualRefitting::storageSamNoSt2_
ResidualRefitting::storage_muon storageSamNoSt2_
Definition: ResidualRefitting.h:224
ResidualRefitting::StorageHit::layer_
int layer_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:98
ResidualRefitting::storageTrkNoTOBLayer3
ResidualRefitting::storage_muon storageTrkNoTOBLayer3
Definition: ResidualRefitting.h:224
ResidualRefitting::storageTrackNoTOBLayer5
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer5
Definition: ResidualRefitting.h:251
ResidualRefitting::StorageHit::lpY_
float lpY_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:109
ResidualRefitting::samExtrap120_
ResidualRefitting::storage_trackExtrap samExtrap120_
Definition: ResidualRefitting.h:248
ResidualRefitting::storageTrackNoPXF
ResidualRefitting::storage_trackExtrap storageTrackNoPXF
Definition: ResidualRefitting.h:251
edm::InputTag
Definition: InputTag.h:15
ResidualRefitting::storageSamNoSt1_
ResidualRefitting::storage_muon storageSamNoSt1_
Definition: ResidualRefitting.h:224
ResidualRefitting::storageGmrNoTIBLayer4
ResidualRefitting::storage_muon storageGmrNoTIBLayer4
Definition: ResidualRefitting.h:224
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
ResidualRefitting::StorageHit::lpX_
float lpX_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:108
ResidualRefitting::StorageTrackHit::subdetector_
int subdetector_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:177
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition: TrajectoryStateOnSurface.h:54
hit
Definition: SiStripHitEffFromCalibTree.cc:88
ResidualRefitting::TIB
static const int TIB
Definition: ResidualRefitting.h:45
ResidualRefitting::StorageTrackExtrap::gpZ_
float gpZ_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:143
ResidualRefitting::IsSameHit
bool IsSameHit(TrackingRecHit const &hit1, TrackingRecHit const &hit2)
Definition: ResidualRefitting.cc:533
ResidualRefitting::StorageTrackHit::detector_
int detector_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:176
ResidualRefitting::storageTrkNoTIBLayer1
ResidualRefitting::storage_muon storageTrkNoTIBLayer1
Definition: ResidualRefitting.h:224
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
ResidualRefitting::muonsNoStation4_
edm::InputTag muonsNoStation4_
Definition: ResidualRefitting.h:330
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition: TrackerTopology.h:150
ResidualRefitting::StorageTrackHit::gpZ_
float gpZ_[N_MAX_STORED_HIT]
Definition: ResidualRefitting.h:190
TrackingComponentsRecord
Definition: TrackingComponentsRecord.h:12
subdetector
TString subdetector
Definition: trackSplitPlot.h:54