CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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
 
typedef WorkerT< EDAnalyzerWorkerType
 

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
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)
 
void cylExtrapTrkSam (int recNum, reco::TrackRef track, ResidualRefitting::storage_trackExtrap &storage, double rho)
 
void dumpMuonRecHits (ResidualRefitting::storage_hit hit)
 
void dumpTrackExtrap (ResidualRefitting::storage_trackExtrap track)
 
void dumpTrackHits (ResidualRefitting::storage_trackHit hit)
 
void dumpTrackRef (reco::TrackRef muon, std::string str)
 
virtual void endJob ()
 
FreeTrajectoryState freeTrajStateMuon (reco::TrackRef muon)
 
bool IsSameHit (trackingRecHit_iterator hit1, trackingRecHit_iterator 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, 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 ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

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
< GlobalTrackingGeometry
trackingGeometry
 
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 &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 38 of file ResidualRefitting.h.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Definition at line 43 of file ResidualRefitting.cc.

References eventInfo_, ResidualRefitting::storage_event::evtNum_, edm::ParameterSet::getParameter(), MuonServiceProxy_cff::MuonServiceProxy, and theService.

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

Definition at line 273 of file ResidualRefitting.cc.

References outputFile_, and theService.

273  {
274  delete outputFile_;
275  delete theService;
276 }
MuonServiceProxy * theService

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 86 of file ResidualRefitting.cc.

References CollectTrackHits(), gather_cfg::cout, cylExtrapTrkSam(), debug_, dumpTrackRef(), edm::EventID::event(), eventInfo_, ResidualRefitting::storage_event::evtNum_, HcalObjRepresent::Fill(), edm::EventSetup::get(), edm::EventBase::id(), metsig::muon, muonInfo(), patZpeak::muons, muons_, muonsNoStation1_, muonsNoStation2_, muonsNoStation3_, muonsNoStation4_, muonsRemake_, ResidualRefitting::StorageMuon::n_, ResidualRefitting::StorageTrackExtrap::n_, N_MAX_STORED, NewTrackMeasurements(), outputBranch_, outputTree_, PropagatorSource_, edm::EventID::run(), ResidualRefitting::storage_event::runNum_, samExtrap120_, storageGmrNew_, storageTrackExtrapRec_, storageTrackExtrapRecNoSt1_, storageTrackExtrapRecNoSt2_, storageTrackExtrapRecNoSt3_, storageTrackExtrapRecNoSt4_, theField, thePropagator, theService, trackExtrap120_, MuonServiceProxy::update(), and zero_storage().

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

Reimplemented from edm::EDAnalyzer.

Definition at line 1013 of file ResidualRefitting.cc.

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_.

1013  {
1014 
1015  std::cout<<"Creating file "<< outputFileName_.c_str()<<std::endl;
1016 
1017  outputFile_ = new TFile( outputFileName_.c_str(), "RECREATE" ) ;
1018 
1019  outputTree_ = new TTree("outputTree","outputTree");
1020 
1021  outputTree_->Branch("eventInfo",&eventInfo_,
1022  "evtNum_/I:"
1023  "runNum_/I"
1024  );
1025 
1026 
1033 
1039 
1057 
1074 
1075  outputBranch_ = outputTree_ -> Branch("recHitsNew", &storageRecMuon_,
1076 
1077  "n_/I:"
1078  "muonLink_[1000]/I:"
1079 
1080  "system_[1000]/I:"
1081  "endcap_[1000]/I:"
1082  "station_[1000]/I:"
1083  "ring_[1000]/I:"
1084  "chamber_[1000]/I:"
1085  "layer_[1000]/I:"
1086  "superLayer_[1000]/I:"
1087  "wheel_[1000]/I:"
1088  "sector_[1000]/I:"
1089 
1090 
1091  "gpX_[1000]/F:"
1092  "gpY_[1000]/F:"
1093  "gpZ_[1000]/F:"
1094  "gpEta_[1000]/F:"
1095  "gpPhi_[1000]/F:"
1096  "lpX_[1000]/F:"
1097  "lpY_[1000]/F:"
1098  "lpZ_[1000]/F"
1099  );
1100 
1101 
1102  outputBranch_ = outputTree_ -> Branch("recHitsTracker", &storageTrackHit_,
1103 
1104  "n_/I:"
1105 
1106  "muonLink_[1000]/I:"
1107  "detector_[1000]/I:"
1108  "subdetector_[1000]/I:"
1109  "blade_[1000]/I:"
1110  "disk_[1000]/I:"
1111  "ladder_[1000]/I:"
1112  "layer_[1000]/I:"
1113  "module_[1000]/I:"
1114  "panel_[1000]/I:"
1115  "ring_[1000]/I:"
1116  "side_[1000]/I:"
1117  "wheel_[1000]/I:"
1118 
1119  "gpX_[1000]/F:"
1120  "gpY_[1000]/F:"
1121  "gpZ_[1000]/F:"
1122  "gpEta_[1000]/F:"
1123  "gpPhi_[1000]/F:"
1124  "lpX_[1000]/F:"
1125  "lpY_[1000]/F:"
1126  "lpZ_[1000]/F"
1127  );
1128 
1129 
1135 
1153 
1156 
1157 }
ResidualRefitting::storage_muon storageGmrNoTIBLayer4
ResidualRefitting::storage_muon storageTrkNoTOBLayer4
ResidualRefitting::storage_muon storageGmrNoTOBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoTEC
ResidualRefitting::storage_muon storageGmrNoPXBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer1
ResidualRefitting::storage_muon storageGmrNoTID
ResidualRefitting::storage_muon storageTrkNoTOBLayer6
ResidualRefitting::storage_muon storageGmrNoTIBLayer1
ResidualRefitting::storage_trackHit storageTrackHit_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt3_
ResidualRefitting::storage_muon storageTrkNoTOBLayer5
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer4
ResidualRefitting::storage_muon storageTrkNoTIBLayer2
ResidualRefitting::storage_muon storageGmrNoTOBLayer2
ResidualRefitting::storage_muon storageGmrNoSt1_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer6
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt1_
ResidualRefitting::storage_muon storageGmrNoTOBLayer6
ResidualRefitting::storage_muon storageSamNew_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer4
ResidualRefitting::storage_muon storageTrkNoTID
ResidualRefitting::storage_trackExtrap storageTrackExtrapTracker_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRec_
ResidualRefitting::storage_muon storageGmrNoTOBLayer4
ResidualRefitting::storage_muon storageGmrNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer2
void branchMuon(ResidualRefitting::storage_muon &storageTmp, std::string branchName)
ResidualRefitting::storage_muon storageSamNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt2_
ResidualRefitting::storage_muon storageTrkNoPXBLayer2
ResidualRefitting::storage_muon storageGmrNoSt2_
ResidualRefitting::storage_muon storageGmrNoSt3_
ResidualRefitting::storage_muon storageGmrNoPXBLayer2
ResidualRefitting::storage_muon storageGmrOld_
ResidualRefitting::storage_muon storageTrkNoPXF
ResidualRefitting::storage_muon storageGmrNoTEC
ResidualRefitting::storage_trackExtrap trackExtrap120_
ResidualRefitting::storage_muon storageGmrNoTIBLayer3
ResidualRefitting::storage_muon storageGmrNew_
std::string outputFileName_
ResidualRefitting::storage_muon storageGmrNoTIBLayer2
ResidualRefitting::storage_muon storageTrkNoTIBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTID
ResidualRefitting::storage_muon storageTrkNoTOBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer5
ResidualRefitting::storage_muon storageSamNoSt2_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer3
ResidualRefitting::storage_muon storageTrkNoTOBLayer1
ResidualRefitting::storage_muon storageGmrNoPXBLayer3
ResidualRefitting::storage_muon storageTrkNoTEC
ResidualRefitting::storage_muon storageSamNoSt3_
ResidualRefitting::storage_muon storageTrkNoPXBLayer1
ResidualRefitting::storage_muon storageTrkNoTIBLayer1
ResidualRefitting::storage_muon storageGmrNoTOBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer1
ResidualRefitting::storage_event eventInfo_
ResidualRefitting::storage_hit storageRecMuon_
tuple cout
Definition: gather_cfg.py:121
ResidualRefitting::storage_muon storageTrkNoTOBLayer3
ResidualRefitting::storage_muon storageTrkNew_
ResidualRefitting::storage_trackExtrap storageTrackNoPXF
ResidualRefitting::storage_muon storageSamNoSt1_
ResidualRefitting::storage_muon storageGmrNoTOBLayer5
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer1
void branchTrackExtrap(ResidualRefitting::storage_trackExtrap &storageTmp, std::string branchName)
ResidualRefitting::storage_muon storageGmrNoPXF
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer2
ResidualRefitting::storage_muon storageTrkNoPXBLayer3
ResidualRefitting::storage_muon storageTrkNoTIBLayer4
ResidualRefitting::storage_trackExtrap samExtrap120_
void ResidualRefitting::branchMuon ( ResidualRefitting::storage_muon storageTmp,
std::string  branchName 
)

Definition at line 1161 of file ResidualRefitting.cc.

References outputBranch_, and outputTree_.

Referenced by beginJob().

1161  {
1162 
1163  outputBranch_ = outputTree_ -> Branch(branchName.c_str(), &storageTmp,
1164  "n_/I:"
1165  "charge_[10]/I:"
1166  "pt_[10]/F:"
1167  "eta_[10]/F:"
1168  "p_[10]/F:"
1169  "phi_[10]/F:"
1170  "numRecHits_[10]/I:"
1171  "chiSq_[10]/F:"
1172  "ndf_[10]/F:"
1173  "chiSqOvrNdf_[10]/F"
1174 
1175  );
1176 
1177 }
void ResidualRefitting::branchTrackExtrap ( ResidualRefitting::storage_trackExtrap storageTmp,
std::string  branchName 
)

Definition at line 1181 of file ResidualRefitting.cc.

References outputBranch_, and outputTree_.

Referenced by beginJob().

1181  {
1182 
1183  outputBranch_ = outputTree_ -> Branch(branchName.c_str(), &storageTmp,
1184  "n_/I:"
1185  "muonLink_[1000]/I:"
1186  "recLink_[1000]/I:"
1187  "gpX_[1000]/F:"
1188  "gpY_[1000]/F:"
1189  "gpZ_[1000]/F:"
1190  "gpEta_[1000]/F:"
1191  "gpPhi_[1000]/F:"
1192  "lpX_[1000]/F:"
1193  "lpY_[1000]/F:"
1194  "lpZ_[1000]/F:"
1195  "resX_[1000]/F:"
1196  "resY_[1000]/F:"
1197  "resZ_[1000]/F"
1198 
1199  );
1200 
1201 }
void ResidualRefitting::CollectTrackHits ( edm::Handle< reco::TrackCollection trackColl,
ResidualRefitting::storage_trackExtrap trackExtrap 
)

Definition at line 280 of file ResidualRefitting.cc.

References ResidualRefitting::StorageHit::chamber_, MuonSubdetId::CSC, debug_, DetId::det(), cond::rpcobgas::detid, MuonSubdetId::DT, dumpTrackRef(), Reference_intrackfit_cff::endcap, ResidualRefitting::StorageHit::endcap_, freeTrajStateMuon(), 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_, errorMatrix2Lands_multiChannel::id, ResidualRefitting::StorageHit::layer_, ResidualRefitting::StorageHit::lpX_, ResidualRefitting::StorageTrackHit::lpX_, ResidualRefitting::StorageHit::lpY_, ResidualRefitting::StorageTrackHit::lpY_, ResidualRefitting::StorageHit::lpZ_, ResidualRefitting::StorageTrackHit::lpZ_, DetId::Muon, metsig::muon, ResidualRefitting::StorageHit::muonLink_, ResidualRefitting::StorageHit::n_, ResidualRefitting::StorageTrackExtrap::n_, ResidualRefitting::StorageTrackHit::n_, 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, DetId::Tracker, MuonServiceProxy::trackingGeometry(), trkExtrap(), ResidualRefitting::StorageHit::wheel_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by analyze().

280  {
281 
282  int iMuonHit = 0;
283  int iTrackHit= 0;
284  int numTracks= 0;
285 
286  for ( reco::TrackCollection::const_iterator muon = trackColl->begin(); muon!=trackColl->end(); muon++) {
287 
288  int iTrack = muon - trackColl->begin();
289  reco::TrackRef trackref=reco::TrackRef(trackColl,iTrack);
291 
292  if (debug_) dumpTrackRef(trackref, "CollectTrackHits Track");
293 
294  for (trackingRecHit_iterator rec = muon->recHitsBegin(); rec != muon->recHitsEnd(); rec++) {
295 
296  int iRec = rec - muon->recHitsBegin();
297  DetId detid = (*rec)->geographicalId();
298 
299  if (detid.det() != DetId::Muon && detid.det() != DetId::Tracker) {
300  if (debug_) printf("Rec Hit not from muon system or tracker... continuing...\n");
301  continue;
302  }
303 // numTracks++;
304 // Get Local and Global Position of Hits
305 
306  LocalPoint lp = (*rec)->localPosition();
307  float lpX = lp.x();
308  float lpY = lp.y();
309  float lpZ = lp.z();
310 
312  MuonTransientTrackingRecHit::specificBuild(theService->trackingGeometry()->idToDet((**rec).geographicalId())
313  ,&(**rec));
314 
315  GlobalPoint gp = mrhp->globalPosition();
316  float gpRecX = gp.x();
317  float gpRecY = gp.y();
318  float gpRecZ = gp.z();
319  float gpRecEta = gp.eta();
320  float gpRecPhi = gp.phi();
321 
322  if (detid.det() == DetId::Muon) {
323 
324  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
325  int endcap = -999;
326  int station = -999;
327  int ring = -999;
328  int chamber = -999;
329  int layer = -999;
330  int superLayer = -999;
331  int wheel = -999;
332  int sector = -999;
333  if ( systemMuon == MuonSubdetId::CSC) {
334  CSCDetId id(detid.rawId());
335  endcap = id.endcap();
336  station = id.station();
337  ring = id.ring();
338  chamber = id.chamber();
339  layer = id.layer();
340  if (debug_)printf("CSC\t[endcap][station][ringN][chamber][layer]:[%d][%d][%d][%d][%d]\t",
341  endcap, station, ring, chamber, layer);
342 
343  }
344  else if ( systemMuon == MuonSubdetId::DT ) {
345  DTWireId id(detid.rawId());
346  station = id.station();
347  layer = id.layer();
348  superLayer = id.superLayer();
349  wheel = id.wheel();
350  sector = id.sector();
351  if (debug_) printf("DT \t[station][layer][superlayer]:[%d][%d][%d]\n", station,layer,superLayer);
352 
353  }
354  else if ( systemMuon == MuonSubdetId::RPC) {
355  RPCDetId id(detid.rawId());
356  station = id.station();
357  if (debug_) printf("RPC\t[station]:[%d]\n", station);
358  }
359 
360 
361  storageRecMuon_.muonLink_ [iMuonHit] = iTrack;
362  storageRecMuon_.system_ [iMuonHit] = systemMuon;
363  storageRecMuon_.endcap_ [iMuonHit] = endcap;
364  storageRecMuon_.station_ [iMuonHit] = station;
365  storageRecMuon_.ring_ [iMuonHit] = ring;
366  storageRecMuon_.chamber_ [iMuonHit] = chamber;
367  storageRecMuon_.layer_ [iMuonHit] = layer;
368  storageRecMuon_.superLayer_ [iMuonHit] = superLayer;
369  storageRecMuon_.wheel_ [iMuonHit] = wheel;
370  storageRecMuon_.sector_ [iMuonHit] = sector;
371 
372  storageRecMuon_.gpX_ [iMuonHit] = gpRecX;
373  storageRecMuon_.gpY_ [iMuonHit] = gpRecY;
374  storageRecMuon_.gpZ_ [iMuonHit] = gpRecZ;
375  storageRecMuon_.gpEta_ [iMuonHit] = gpRecEta;
376  storageRecMuon_.gpPhi_ [iMuonHit] = gpRecPhi;
377  storageRecMuon_.lpX_ [iMuonHit] = lpX;
378  storageRecMuon_.lpY_ [iMuonHit] = lpY;
379  storageRecMuon_.lpZ_ [iMuonHit] = lpZ;
380  iMuonHit++;
381 
382  }
383  else if (detid.det() == DetId::Tracker) {
384 
385  if (debug_) printf("Tracker\n");
386 
387  StoreTrackerRecHits(detid, iTrack, iTrackHit);
388 
389  storageTrackHit_.gpX_ [iTrackHit] = gpRecX;
390  storageTrackHit_.gpY_ [iTrackHit] = gpRecY;
391  storageTrackHit_.gpZ_ [iTrackHit] = gpRecZ;
392  storageTrackHit_.gpEta_ [iTrackHit] = gpRecEta;
393  storageTrackHit_.gpPhi_ [iTrackHit] = gpRecPhi;
394  storageTrackHit_.lpX_ [iTrackHit] = lpX;
395  storageTrackHit_.lpY_ [iTrackHit] = lpY;
396  storageTrackHit_.lpZ_ [iTrackHit] = lpZ;
397  iTrackHit++;
398  }
399  else printf("THIS CAN NOT HAPPEN\n");
400 
401  trkExtrap(detid, numTracks, iTrack, iRec, recoStart, lp, trackExtrap);
402  numTracks++;
403 
404  if (debug_) printf("\tLocal Positon: \tx = %2.2f\ty = %2.2f\tz = %2.2f\n",lpX, lpY, lpZ);
405  if (debug_) printf("\tGlobal Position: \tx = %6.2f\ty = %6.2f\tz = %6.2f\teta = %4.2f\tphi = %3.2f\n",
406  gpRecX,gpRecY,gpRecZ,gpRecEta,gpRecPhi);
407 
408 
409  }
410 
411  }
412 
413  storageRecMuon_ .n_ = iMuonHit;
414  storageTrackHit_.n_ = iTrackHit;
415  trackExtrap .n_ = numTracks;
416 
417 }
int endcap_[N_MAX_STORED_HIT]
void dumpTrackRef(reco::TrackRef muon, std::string str)
float lpZ_[N_MAX_STORED_HIT]
ResidualRefitting::storage_trackHit storageTrackHit_
T y() const
Definition: PV3DBase.h:62
int sector_[N_MAX_STORED_HIT]
int layer_[N_MAX_STORED_HIT]
int chamber_[N_MAX_STORED_HIT]
float lpY_[N_MAX_STORED_HIT]
void trkExtrap(const DetId &detid, int iTrkLink, int iTrk, int iRec, const FreeTrajectoryState &freeTrajState, const LocalPoint &recPoint, storage_trackExtrap &storeTemp)
int muonLink_[N_MAX_STORED_HIT]
float gpEta_[N_MAX_STORED_HIT]
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
static const int CSC
Definition: MuonSubdetId.h:15
float lpX_[N_MAX_STORED_HIT]
int wheel_[N_MAX_STORED_HIT]
T z() const
Definition: PV3DBase.h:63
float gpY_[N_MAX_STORED_HIT]
MuonServiceProxy * theService
FreeTrajectoryState freeTrajStateMuon(reco::TrackRef muon)
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Definition: DetId.h:20
float gpX_[N_MAX_STORED_HIT]
int station_[N_MAX_STORED_HIT]
float gpPhi_[N_MAX_STORED_HIT]
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
void StoreTrackerRecHits(DetId detid, int iTrack, int iRec)
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
static const int RPC
Definition: MuonSubdetId.h:16
float gpZ_[N_MAX_STORED_HIT]
int superLayer_[N_MAX_STORED_HIT]
ResidualRefitting::storage_hit storageRecMuon_
static const int DT
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
T x() const
Definition: PV3DBase.h:61
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
int system_[N_MAX_STORED_HIT]
void ResidualRefitting::cylExtrapTrkSam ( int  recNum,
reco::TrackRef  track,
ResidualRefitting::storage_trackExtrap storage,
double  rho 
)

Definition at line 822 of file ResidualRefitting.cc.

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(), pos, makeMuonMisalignmentScenario::rot, mathSSE::sqrt(), thePropagator, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by analyze().

822  {
823 
826 
827  Cylinder::CylinderPointer myCylinder = Cylinder::build(pos, rot, rho);
828 // SteppingHelixPropagator inwardProp ( theField, oppositeToMomentum );
829 // SteppingHelixPropagator outwardProp ( theField, alongMomentum );
830  FreeTrajectoryState recoStart = freeTrajStateMuon(track);
831 // TrajectoryStateOnSurface recoProp = outwardProp.propagate(recoStart, *myCylinder);
832  TrajectoryStateOnSurface recoProp = thePropagator->propagate(recoStart, *myCylinder);
833 
834  double xVal = -9999;
835  double yVal = -9999;
836  double zVal = -9999;
837  double phiVal = -9999;
838  double etaVal = -9999;
839 
840  if(recoProp.isValid()) {
841  GlobalPoint recoPoint = recoProp.globalPosition();
842  xVal = recoPoint.x();
843  yVal = recoPoint.y();
844  zVal = recoPoint.z();
845  phiVal = recoPoint.phi();
846  etaVal = recoPoint.eta();
847  }
848  storage.muonLink_[recNum] = recNum;
849  storage.gpX_ [recNum] = xVal;
850  storage.gpY_ [recNum] = yVal;
851  storage.gpZ_ [recNum] = zVal;
852  storage.gpEta_ [recNum] = etaVal;
853  storage.gpPhi_ [recNum] = phiVal;
854 
855  float rhoVal = sqrt( xVal*xVal + yVal*yVal);
856 
857  printf("Cylinder: rho = %4.2f\tphi = %4.2f\teta = %4.2f\n", rhoVal, phiVal, etaVal);
858  if (debug_) printf("Cylinder: rho = %4.2f\tphi = %4.2f\teta = %4.2f\n", rhoVal, phiVal, etaVal);
859 
860 
861 }
Definition: DDAxes.h:10
Geom::Phi< T > phi() const
Definition: PV3DBase.h:68
T y() const
Definition: PV3DBase.h:62
GlobalPoint globalPosition() const
T sqrt(T t)
Definition: SSEVec.h:46
T z() const
Definition: PV3DBase.h:63
FreeTrajectoryState freeTrajStateMuon(reco::TrackRef muon)
static CylinderPointer build(const PositionType &pos, const RotationType &rot, Scalar radius, MediumProperties *mp=0)
Definition: Cylinder.h:29
T eta() const
Definition: PV3DBase.h:75
edm::ESHandle< Propagator > thePropagator
T x() const
Definition: PV3DBase.h:61
void ResidualRefitting::dumpMuonRecHits ( ResidualRefitting::storage_hit  hit)

Definition at line 1265 of file ResidualRefitting.cc.

References gather_cfg::cout, i, ResidualRefitting::StorageHit::lpX_, ResidualRefitting::StorageHit::lpY_, ResidualRefitting::StorageHit::lpZ_, ResidualRefitting::StorageHit::n_, ResidualRefitting::StorageHit::superLayer_, and ResidualRefitting::StorageHit::system_.

1265  {
1266  std::cout<<"Muon Rec Hits Dump:\n";
1267  for (unsigned int i = 0; i < (unsigned int)hit.n_; i++) {
1268 
1269 // double rho = sqrt( (float)hit.gpX_[i] * (float)hit.gpX_[i] + (float)hit.gpY_[i] * (float)hit.gpY_[i] );
1270 
1271  printf ("%d\tsubdetector = %d\t superLayer =%d" , i, (int)hit.system_[i], (int)hit.superLayer_[i] );
1272 // printf ("\tGlobal\tx = %0.3f" , (float)hit.gpX_[i] );
1273 // printf ("\ty = %0.3f" , (float)hit.gpY_[i] );
1274 // printf ("\tz = %0.3f" , (float)hit.gpZ_[i] );
1275 // printf ("\trho =%0.3f" , rho );
1276 // printf ("\teta = %0.3f" , (float)hit.gpEta_[i] );
1277 // printf ("\tphi = %0.3f\n" , (float)hit.gpPhi_[i] );
1278  printf ("\t\tLocal\tx = %0.3f" , (float)hit.lpX_[i] );
1279  printf ("\ty = %0.3f" , (float)hit.lpY_[i] );
1280  printf ("\tz = %0.3f\n" , (float)hit.lpZ_[i] );
1281 
1282  }
1283 
1284 }
int i
Definition: DBlmapReader.cc:9
float lpZ_[N_MAX_STORED_HIT]
float lpY_[N_MAX_STORED_HIT]
float lpX_[N_MAX_STORED_HIT]
int superLayer_[N_MAX_STORED_HIT]
tuple cout
Definition: gather_cfg.py:121
int system_[N_MAX_STORED_HIT]
void ResidualRefitting::dumpTrackExtrap ( ResidualRefitting::storage_trackExtrap  track)

Definition at line 1241 of file ResidualRefitting.cc.

References gather_cfg::cout, i, ResidualRefitting::StorageTrackExtrap::lpX_, ResidualRefitting::StorageTrackExtrap::lpY_, ResidualRefitting::StorageTrackExtrap::lpZ_, ResidualRefitting::StorageTrackExtrap::muonLink_, ResidualRefitting::StorageTrackExtrap::n_, and ResidualRefitting::StorageTrackExtrap::recLink_.

1241  {
1242  std::cout<<"\n\nExtrapolation Dump:\n";
1243  for (unsigned int i = 0; i < (unsigned int)track.n_; i++) {
1244 
1245 // double rho = sqrt( (float)track.gpX_[i] * (float)track.gpX_[i] + (float)track.gpY_[i] * (float)track.gpY_[i] );
1246 
1247  printf ("%d\tmuonLink= %d",i, (int)track.muonLink_[i]);
1248  printf ("\trecLink = %d", (int)track.recLink_[i] );
1249 // printf ("\tGlobal\tx = %0.3f" , (float)track.gpX_[i] );
1250 // printf ("\ty = %0.3f" , (float)track.gpY_[i] );
1251 // printf ("\tz = %0.3f" , (float)track.gpZ_[i] );
1252 // printf ("\trho =%0.3f" , rho );
1253 // printf ("\teta = %0.3f" , (float)track.gpEta_[i] );
1254 // printf ("\tphi = %0.3f" , (float)track.gpPhi_[i] );
1255  printf ("\t\tLocal\tx = %0.3f" , (float)track.lpX_[i] );
1256  printf ("\ty = %0.3f" , (float)track.lpY_[i] );
1257  printf ("\tz = %0.3f\n" , (float)track.lpZ_[i] );
1258 
1259  }
1260 
1261 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
void ResidualRefitting::dumpTrackHits ( ResidualRefitting::storage_trackHit  hit)

Definition at line 1288 of file ResidualRefitting.cc.

References gather_cfg::cout, i, ResidualRefitting::StorageTrackHit::layer_, ResidualRefitting::StorageTrackHit::lpX_, ResidualRefitting::StorageTrackHit::lpY_, ResidualRefitting::StorageTrackHit::lpZ_, ResidualRefitting::StorageTrackHit::n_, and ResidualRefitting::StorageTrackHit::subdetector_.

1288  {
1289  std::cout<<"Tracker Rec Hits Dump:\n";
1290  for (unsigned int i = 0; i < (unsigned int)hit.n_; i++) {
1291 
1292 // double rho = sqrt( (float)hit.gpX_[i] * (float)hit.gpX_[i] + (float)hit.gpY_[i] * (float)hit.gpY_[i] );
1293 
1294  printf ("%d\tsubdetector = %d" , i, (int)hit.subdetector_[i] );
1295  printf ("\tlayer = %d" , (int)hit.layer_[i] );
1296 // printf ("\tGlobal\tx = %0.3f" , (float)hit.gpX_[i] );
1297 // printf ("\ty = %0.3f" , (float)hit.gpY_[i] );
1298 // printf ("\tz = %0.3f" , (float)hit.gpZ_[i] );
1299 // printf ("\trho =%0.3f" , rho );
1300 // printf ("\teta = %0.3f" , (float)hit.gpEta_[i] );
1301 // printf ("\tphi = %0.3f\n" , (float)hit.gpPhi_[i] );
1302  printf ("\t\tLocal\tx = %0.3f" , (float)hit.lpX_[i] );
1303  printf ("\ty = %0.3f" , (float)hit.lpY_[i] );
1304  printf ("\tz = %0.3f\n" , (float)hit.lpZ_[i] );
1305 
1306  }
1307 
1308 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
void ResidualRefitting::dumpTrackRef ( reco::TrackRef  muon,
std::string  str 
)

Definition at line 1312 of file ResidualRefitting.cc.

References eta(), AlCaHLTBitMon_ParallelJobs::p, and phi.

Referenced by analyze(), and CollectTrackHits().

1312  {
1313 
1314  float pt = muon->pt();
1315  float p = muon->p ();
1316  float eta = muon->eta();
1317  float phi = muon->phi();
1318  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);
1319 
1320 }
T eta() const
Definition: DDAxes.h:10
void ResidualRefitting::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 1205 of file ResidualRefitting.cc.

References outputFile_.

1205  {
1206 
1207 
1208  outputFile_ -> Write();
1209 
1210  outputFile_ -> Close() ;
1211 
1212 }
FreeTrajectoryState ResidualRefitting::freeTrajStateMuon ( reco::TrackRef  muon)

Definition at line 1216 of file ResidualRefitting.cc.

References DeDxDiscriminatorTools::charge(), gather_cfg::cout, debug_, and theField.

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

1216  {
1217 
1218  math::XYZPoint innerPos = muon -> referencePoint();
1219  math::XYZVector innerMom = muon -> momentum();
1220  if (debug_) std::cout << "Inner Pos: "
1221  << "\tx = " << innerPos.X()
1222  << "\ty = " << innerPos.Y()
1223  << "\tz = " << innerPos.Z()
1224  << std::endl;
1225 
1226  GlobalPoint innerPoint( innerPos.X(), innerPos.Y(), innerPos.Z());
1227  GlobalVector innerVec ( innerMom.X(), innerMom.Y(), innerMom.Z());
1228 
1229  FreeTrajectoryState recoStart( innerPoint, innerVec, muon ->charge(), theField );
1230  return recoStart;
1231 
1232 }
const MagneticField * theField
double charge(const std::vector< uint8_t > &Ampls)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
tuple cout
Definition: gather_cfg.py:121
bool ResidualRefitting::IsSameHit ( trackingRecHit_iterator  hit1,
trackingRecHit_iterator  hit2 
)

Definition at line 544 of file ResidualRefitting.cc.

References alignCSCRings::e.

Referenced by MatchTrackWithRecHits(), and NewTrackMeasurements().

544  {
545 
546 
547  double lpx1 = (*hit1)->localPosition().x();
548  double lpy1 = (*hit1)->localPosition().y();
549  double lpz1 = (*hit1)->localPosition().z();
550 
551  double lpx2 = (*hit2)->localPosition().x();
552  double lpy2 = (*hit2)->localPosition().y();
553  double lpz2 = (*hit2)->localPosition().z();
554  if ( fabs( lpx1 - lpx2) > 1e-3) return false;
555 // printf("Match lpx...\n");
556  if ( fabs( lpy1 - lpy2) > 1e-3) return false;
557 // printf("Match lpy...\n");
558  if ( fabs( lpz1 - lpz2) > 1e-3) return false;
559 // printf("Match lpz...\n");
560 
561  return true;
562 
563 }
int ResidualRefitting::MatchTrackWithRecHits ( reco::TrackCollection::const_iterator  trackIt,
edm::Handle< reco::TrackCollection ref 
)

Definition at line 476 of file ResidualRefitting.cc.

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

Referenced by NewTrackMeasurements().

477  {
478 
479  if (debug_) printf("Matching a re-fitted track to the original track.\n");
480 
481  int TrackMatch = -1;
482 
483  for (trackingRecHit_iterator rec = trackIt->recHitsBegin(); rec!=trackIt->recHitsEnd(); rec++) {
484 
485  bool foundMatch = false;
486  for (reco::TrackCollection::const_iterator refIt = ref->begin(); refIt!=ref->end(); refIt++) {
487 
488  int iTrackMatch = refIt - ref->begin();
489  if (foundMatch && TrackMatch !=iTrackMatch) break;
490  for (trackingRecHit_iterator recRef = refIt->recHitsBegin(); recRef!=refIt->recHitsEnd(); recRef++) {
491 
492  if (!IsSameHit(rec,recRef)) continue;
493 
494  foundMatch = true;
495  TrackMatch = iTrackMatch;
496  // printf("Rec hit match for original track %d\n", iTrackMatch);
497 
498  }
499  }
500  if (!foundMatch) {
501  printf("SOMETHING WENT WRONG! Could not match Track with original track!");
502  exit(1);
503  }
504 
505  }
506  if (debug_) printf("Rec hit match for original track %d\n", TrackMatch);
507 
508 // reco::TrackRef trackref=reco::TrackRef(ref,TrackMatch);
509  return TrackMatch;
510 }
bool IsSameHit(trackingRecHit_iterator hit1, trackingRecHit_iterator hit2)
void ResidualRefitting::muonInfo ( ResidualRefitting::storage_muon storeMuon,
reco::TrackRef  muon,
int  val 
)

Definition at line 678 of file ResidualRefitting.cc.

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_, and ResidualRefitting::StorageMuon::pt_.

Referenced by analyze().

678  {
679 
680 
681  storeMuon.pt_ [val] = muon->pt();
682  storeMuon.p_ [val] = muon->p();
683  storeMuon.eta_[val] = muon->eta();
684  storeMuon.phi_[val] = muon->phi();
685  storeMuon.charge_[val] = muon->charge();
686  storeMuon.numRecHits_[val] = muon->numberOfValidHits();
687  storeMuon.chiSq_[val] = muon->chi2();
688  storeMuon.ndf_[val] = muon->ndof();
689  storeMuon.chiSqOvrNdf_[val] = muon->normalizedChi2();
690 
691 }
float chiSqOvrNdf_[N_MAX_STORED]
void ResidualRefitting::NewTrackMeasurements ( edm::Handle< reco::TrackCollection trackCollOrig,
edm::Handle< reco::TrackCollection trackColl,
ResidualRefitting::storage_trackExtrap trackExtrap 
)

Definition at line 426 of file ResidualRefitting.cc.

References cond::rpcobgas::detid, freeTrajStateMuon(), IsSameHit(), MatchTrackWithRecHits(), metsig::muon, ResidualRefitting::StorageTrackExtrap::n_, MuonTransientTrackingRecHit::specificBuild(), theService, MuonServiceProxy::trackingGeometry(), and trkExtrap().

Referenced by analyze().

427  {
428 
429  int numTracks = 0;
430  int recCounter = 0;
431 
432  for ( reco::TrackCollection::const_iterator muon = trackColl->begin(); muon!=trackColl->end(); muon++) {
433 
434  int iTrack = muon - trackColl->begin();
435 
436  reco::TrackRef trackref=reco::TrackRef(trackColl,iTrack);
438 
439  int iTrackLink = MatchTrackWithRecHits(muon,trackCollOrig);
440  reco::TrackRef ref = reco::TrackRef(trackCollOrig, iTrackLink);
441 
442  for (trackingRecHit_iterator rec1 = ref->recHitsBegin(); rec1!= ref->recHitsEnd(); rec1++, recCounter++) {
443 
444  //int iRec = rec1 - ref->recHitsBegin();
445 
446  bool unbiasedRec = true;
447 
448  for ( trackingRecHit_iterator rec2 = muon->recHitsBegin(); rec2!=muon->recHitsEnd();rec2++) {
449 
450  if (IsSameHit(rec1,rec2)) {
451  unbiasedRec = false;
452  break;
453  }
454  }
455  if (!unbiasedRec) continue;
456 
457  DetId detid = (*rec1)->geographicalId();
458 
460  MuonTransientTrackingRecHit::specificBuild(theService->trackingGeometry()->idToDet((**rec1).geographicalId())
461  ,&(**rec1));
462 
463  trkExtrap(detid, numTracks, iTrackLink, recCounter, recoStart, (*rec1)->localPosition(), trackExtrap);
464  numTracks++;
465 
466  }
467 
468  }
469 
470  trackExtrap.n_ = numTracks;
471 
472 }
void trkExtrap(const DetId &detid, int iTrkLink, int iTrk, int iRec, const FreeTrajectoryState &freeTrajState, const LocalPoint &recPoint, storage_trackExtrap &storeTemp)
int MatchTrackWithRecHits(reco::TrackCollection::const_iterator trackIt, edm::Handle< reco::TrackCollection > ref)
MuonServiceProxy * theService
FreeTrajectoryState freeTrajStateMuon(reco::TrackRef muon)
Definition: DetId.h:20
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
bool IsSameHit(trackingRecHit_iterator hit1, trackingRecHit_iterator hit2)
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
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 
)
void ResidualRefitting::omitTrackerSystem ( edm::Handle< reco::MuonCollection trkMuons,
ResidualRefitting::storage_muon storeGmr,
ResidualRefitting::storage_muon storeTrk,
ResidualRefitting::storage_trackExtrap storeExtrap,
int  omitSystem 
)
int ResidualRefitting::ReturnSector ( DetId  detid)

Definition at line 801 of file ResidualRefitting.cc.

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

Referenced by trkExtrap().

801  {
802 
803  int sector = -999;
804 
805  if (detid.det() == DetId::Muon) {
806 
807  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
808  if ( systemMuon == MuonSubdetId::DT ) {
809  DTWireId id(detid.rawId());
810  sector = id.sector();
811 
812  }
813 
814  }
815 
816  return sector;
817 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
static const int DT
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
int ResidualRefitting::ReturnStation ( DetId  detid)

Definition at line 772 of file ResidualRefitting.cc.

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

Referenced by trkExtrap().

772  {
773 
774  int station = -999;
775 
776  if (detid.det() == DetId::Muon) {
777 
778  int systemMuon = detid.subdetId(); // 1 DT; 2 CSC; 3 RPC
779  if ( systemMuon == MuonSubdetId::CSC) {
780  CSCDetId id(detid.rawId());
781  station = id.station();
782 
783  }
784  else if ( systemMuon == MuonSubdetId::DT ) {
785  DTWireId id(detid.rawId());
786  station = id.station();
787 
788  }
789  else if ( systemMuon == MuonSubdetId::RPC) {
790  RPCDetId id(detid.rawId());
791  station = id.station();
792  }
793 
794  }
795 
796  return station;
797 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
static const int CSC
Definition: MuonSubdetId.h:15
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
static const int RPC
Definition: MuonSubdetId.h:16
static const int DT
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
void ResidualRefitting::StoreTrackerRecHits ( DetId  detid,
int  iTrack,
int  iRec 
)

Definition at line 568 of file ResidualRefitting.cc.

References ResidualRefitting::StorageTrackHit::blade_, gather_cfg::cout, debug_, DetId::det(), ResidualRefitting::StorageTrackHit::detector_, ResidualRefitting::StorageTrackHit::disk_, errorMatrix2Lands_multiChannel::id, ResidualRefitting::StorageTrackHit::ladder_, ResidualRefitting::StorageTrackHit::layer_, python.rootplot.argparse::module, ResidualRefitting::StorageTrackHit::module_, ResidualRefitting::StorageTrackHit::muonLink_, ResidualRefitting::StorageTrackHit::panel_, PXB, PXF, DetId::rawId(), relativeConstraints::ring, ResidualRefitting::StorageTrackHit::ring_, ResidualRefitting::StorageTrackHit::side_, storageTrackHit_, ResidualRefitting::StorageTrackHit::subdetector_, DetId::subdetId(), TEC, TIB, TID, TOB, DetId::Tracker, and ResidualRefitting::StorageTrackHit::wheel_.

Referenced by CollectTrackHits().

568  {
569 
570 
571  int detector = -1;
572  int subdetector = -1;
573  int blade = -1;
574  int disk = -1;
575  int ladder = -1;
576  int layer = -1;
577  int module = -1;
578  int panel = -1;
579  int ring = -1;
580  int side = -1;
581  int wheel = -1;
582 
583 //Detector Info
584 
585  detector = detid.det();
586  subdetector = detid.subdetId();
587 
588  if (detector != DetId::Tracker) {
589  std::cout<<"OMFG NOT THE TRACKER\n"<<std::endl;
590  return;
591  }
592 
593  if (debug_) std::cout<<"Tracker:: ";
594  if (subdetector == ResidualRefitting::PXB) {
595  PXBDetId id(detid.rawId());
596  layer = id.layer();
597  ladder = id.ladder();
598  module = id.module();
599  if (debug_) std::cout << "PXB"
600  << "\tlayer = " << layer
601  << "\tladder = " << ladder
602  << "\tmodule = " << module;
603 
604  }
605  else if (subdetector == ResidualRefitting::PXF) {
606  PXFDetId id(detid.rawId());
607  side = id.side();
608  disk = id.disk();
609  blade = id.blade();
610  panel = id.panel();
611  module = id.module();
612  if (debug_) std::cout << "PXF"
613  << "\tside = " << side
614  << "\tdisk = " << disk
615  << "\tblade = " << blade
616  << "\tpanel = " << panel
617  << "\tmodule = " << module;
618 
619  }
620  else if (subdetector == ResidualRefitting::TIB) {
621  TIBDetId id(detid.rawId());
622  layer = id.layer();
623  module = id.module();
624  if (debug_) std::cout << "TIB"
625  << "\tlayer = " << layer
626  << "\tmodule = "<< module;
627  }
628  else if (subdetector == ResidualRefitting::TID) {
629  TIDDetId id(detid.rawId());
630  side = id.side();
631  wheel = id.wheel();
632  ring = id.ring();
633  if (debug_) std::cout <<"TID"
634  << "\tside = " << side
635  << "\twheel = " << wheel
636  << "\tring = " << ring;
637 
638  }
639  else if (subdetector == ResidualRefitting::TOB) {
640  TOBDetId id(detid.rawId());
641  layer = id.layer();
642  module = id.module();
643  if (debug_) std::cout <<"TOB"
644  <<"\tlayer = " << layer
645  <<"\tmodule = " << module;
646 
647  }
648  else if (subdetector == ResidualRefitting::TEC) {
649  TECDetId id(detid.rawId());
650  ring = id.ring();
651  module = id.module();
652  if (debug_) std::cout <<"TEC"
653  << "\tring = " << ring
654  << "\tmodule = "<< module;
655  }
656 
657 
658 //Do Storage
659 
660  storageTrackHit_.muonLink_ [iRec] =iTrack ;
661  storageTrackHit_.detector_ [iRec] =detector ;
662  storageTrackHit_.subdetector_ [iRec] =subdetector ;
663  storageTrackHit_.blade_ [iRec] =blade ;
664  storageTrackHit_.disk_ [iRec] =disk ;
665  storageTrackHit_.ladder_ [iRec] =ladder ;
666  storageTrackHit_.layer_ [iRec] =layer ;
668  storageTrackHit_.panel_ [iRec] =panel ;
669  storageTrackHit_.ring_ [iRec] =ring ;
670  storageTrackHit_.side_ [iRec] =side ;
671  storageTrackHit_.wheel_ [iRec] =wheel ;
672 
673 }
static const int TIB
static const int PXB
ResidualRefitting::storage_trackHit storageTrackHit_
static const int TOB
static const int TEC
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
static const int TID
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
static const int PXF
tuple cout
Definition: gather_cfg.py:121
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
Definition: vlib.h:209
void ResidualRefitting::trkExtrap ( const DetId detid,
int  iTrkLink,
int  iTrk,
int  iRec,
const FreeTrajectoryState freeTrajState,
const LocalPoint recPoint,
storage_trackExtrap storeTemp 
)

Definition at line 695 of file ResidualRefitting.cc.

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_, TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localPosition(), ResidualRefitting::StorageTrackExtrap::lpX_, ResidualRefitting::StorageTrackExtrap::lpY_, ResidualRefitting::StorageTrackExtrap::lpZ_, DetId::Muon, ResidualRefitting::StorageTrackExtrap::muonLink_, PV3DBase< T, PVType, FrameType >::phi(), 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().

698  {
699 
700  bool dump_ = debug_;
701 
702  if (dump_) std::cout<< "In the trkExtrap function"<<std::endl;
703 
704  float gpExtrapX = -99999;
705  float gpExtrapY = -99999;
706  float gpExtrapZ = -99999;
707  float gpExtrapEta = -99999;
708  float gpExtrapPhi = -99999;
709 
710  float lpX = -99999;
711  float lpY = -99999;
712  float lpZ = -99999;
713 
714  //
715  // Get the local positions for the recHits
716  //
717 
718  float recLpX = recPoint.x();
719  float recLpY = recPoint.y();
720  float recLpZ = recPoint.z();
721 
722  float resX = -9999;
723  float resY = -9999;
724  float resZ = -9999;
725 
726  const GeomDet* gdet = theService->trackingGeometry()->idToDet(detid);
727 
728 // TrajectoryStateOnSurface surfTest = prop.propagate(freeTrajState, gdet->surface());
729  TrajectoryStateOnSurface surfTest = thePropagator->propagate(freeTrajState, gdet->surface());
730 
731  if (surfTest.isValid()) {
732 
733  GlobalPoint globTest = surfTest.globalPosition();
734  gpExtrapX = globTest.x();
735  gpExtrapY = globTest.y();
736  gpExtrapZ = globTest.z();
737  gpExtrapEta = globTest.eta();
738  gpExtrapPhi = globTest.phi();
739  LocalPoint loc = surfTest.localPosition();
740  if (detid.det() == DetId::Muon || detid.det() == DetId::Tracker) {
741  lpX = loc.x();
742  lpY = loc.y();
743  lpZ = loc.z();
744 
745  resX = lpX - recLpX;
746  resY = lpY - recLpY;
747  resZ = lpZ - recLpZ;
748 
749  }
750 
751  }
752  storeTemp.muonLink_ [iTrk] = iTrkLink ;
753  storeTemp.recLink_ [iTrk] = iRec ;
754  storeTemp.gpX_ [iTrk] = gpExtrapX ;
755  storeTemp.gpY_ [iTrk] = gpExtrapY ;
756  storeTemp.gpZ_ [iTrk] = gpExtrapZ ;
757  storeTemp.gpEta_ [iTrk] = gpExtrapEta;
758  storeTemp.gpPhi_ [iTrk] = gpExtrapPhi;
759  storeTemp.lpX_ [iTrk] = lpX ;
760  storeTemp.lpY_ [iTrk] = lpY ;
761  storeTemp.lpZ_ [iTrk] = lpZ ;
762  storeTemp.resX_ [iTrk] = resX ;
763  storeTemp.resY_ [iTrk] = resY ;
764  storeTemp.resZ_ [iTrk] = resZ ;
765 
766  printf("station: %d\tsector: %d\tresX storage: %4.2f\n", ReturnStation(detid), ReturnSector(detid), resX);
767 
768 }
int ReturnStation(DetId detid)
int ReturnSector(DetId detid)
Geom::Phi< T > phi() const
Definition: PV3DBase.h:68
T y() const
Definition: PV3DBase.h:62
GlobalPoint globalPosition() const
T z() const
Definition: PV3DBase.h:63
MuonServiceProxy * theService
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
T eta() const
Definition: PV3DBase.h:75
const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
tuple cout
Definition: gather_cfg.py:121
edm::ESHandle< Propagator > thePropagator
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
T x() const
Definition: PV3DBase.h:61
void ResidualRefitting::zero_muon ( ResidualRefitting::storage_muon str)

Definition at line 969 of file ResidualRefitting.cc.

References ResidualRefitting::StorageMuon::chiSq_, ResidualRefitting::StorageMuon::chiSqOvrNdf_, ResidualRefitting::StorageMuon::eta_, i, ResidualRefitting::StorageMuon::n_, N_MAX_STORED, ResidualRefitting::StorageMuon::ndf_, ResidualRefitting::StorageMuon::numRecHits_, ResidualRefitting::StorageMuon::p_, ResidualRefitting::StorageMuon::phi_, and ResidualRefitting::StorageMuon::pt_.

Referenced by zero_storage().

969  {
970 
971  str->n_ = 0;
972 
973  for (int i = 0; i < ResidualRefitting::N_MAX_STORED; i++) {
974 
975  str->pt_ [i] = -9999;
976  str->eta_ [i] = -9999;
977  str->p_ [i] = -9999;
978  str->phi_ [i] = -9999;
979  str->numRecHits_ [i] = -9999;
980  str->chiSq_ [i] = -9999;
981  str->ndf_ [i] = -9999;
982  str->chiSqOvrNdf_ [i] = -9999;
983  }
984 
985 }
int i
Definition: DBlmapReader.cc:9
static const int N_MAX_STORED
float chiSqOvrNdf_[N_MAX_STORED]
void ResidualRefitting::zero_storage ( )

Definition at line 869 of file ResidualRefitting.cc.

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().

869  {
870  if (debug_) printf("zero_storage\n");
871 
884 //zero out the tracker
888 
890 
895 
897 
904 
906 
910 
912 
917 
919 
926 
928 
935 
937 
939 
943 
945 
950 
957 
959 
961 
962  storageRecMuon_ .n_ = 0;
963  storageTrackHit_ .n_ = 0;
964 
965 }
ResidualRefitting::storage_muon storageGmrNoTIBLayer4
ResidualRefitting::storage_muon storageTrkNoTOBLayer4
void zero_muon(ResidualRefitting::storage_muon *str)
ResidualRefitting::storage_muon storageGmrNoTOBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoTEC
ResidualRefitting::storage_muon storageGmrNoPXBLayer1
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer1
ResidualRefitting::storage_muon storageGmrNoTID
ResidualRefitting::storage_muon storageTrkNoTOBLayer6
ResidualRefitting::storage_muon storageGmrNoTIBLayer1
ResidualRefitting::storage_trackHit storageTrackHit_
void zero_trackExtrap(ResidualRefitting::storage_trackExtrap *str)
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt3_
ResidualRefitting::storage_muon storageTrkNoTOBLayer5
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer4
ResidualRefitting::storage_muon storageTrkNoTIBLayer2
ResidualRefitting::storage_muon storageGmrNoTOBLayer2
ResidualRefitting::storage_muon storageGmrNoSt1_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer6
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt1_
ResidualRefitting::storage_muon storageGmrNoTOBLayer6
ResidualRefitting::storage_muon storageSamNew_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer4
ResidualRefitting::storage_muon storageTrkNoTID
ResidualRefitting::storage_trackExtrap storageTrackExtrapTracker_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRec_
ResidualRefitting::storage_muon storageGmrNoTOBLayer4
ResidualRefitting::storage_muon storageGmrNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer2
ResidualRefitting::storage_muon storageSamNoSt4_
ResidualRefitting::storage_trackExtrap storageTrackExtrapRecNoSt2_
ResidualRefitting::storage_muon storageTrkNoPXBLayer2
ResidualRefitting::storage_muon storageGmrNoSt2_
ResidualRefitting::storage_muon storageGmrNoSt3_
ResidualRefitting::storage_muon storageGmrNoPXBLayer2
ResidualRefitting::storage_muon storageGmrOld_
ResidualRefitting::storage_muon storageTrkNoPXF
ResidualRefitting::storage_muon storageGmrNoTEC
ResidualRefitting::storage_trackExtrap trackExtrap120_
ResidualRefitting::storage_muon storageGmrNoTIBLayer3
ResidualRefitting::storage_muon storageGmrNew_
ResidualRefitting::storage_muon storageGmrNoTIBLayer2
ResidualRefitting::storage_muon storageTrkNoTIBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTID
ResidualRefitting::storage_muon storageTrkNoTOBLayer2
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer5
ResidualRefitting::storage_muon storageSamNoSt2_
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer3
ResidualRefitting::storage_muon storageTrkNoTOBLayer1
ResidualRefitting::storage_muon storageGmrNoPXBLayer3
ResidualRefitting::storage_muon storageTrkNoTEC
ResidualRefitting::storage_muon storageSamNoSt3_
ResidualRefitting::storage_muon storageTrkNoPXBLayer1
ResidualRefitting::storage_muon storageTrkNoTIBLayer1
ResidualRefitting::storage_muon storageGmrNoTOBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer1
ResidualRefitting::storage_hit storageRecMuon_
ResidualRefitting::storage_muon storageTrkNoTOBLayer3
ResidualRefitting::storage_muon storageTrkNew_
ResidualRefitting::storage_trackExtrap storageTrackNoPXF
ResidualRefitting::storage_muon storageSamNoSt1_
ResidualRefitting::storage_muon storageGmrNoTOBLayer5
ResidualRefitting::storage_trackExtrap storageTrackNoTIBLayer3
ResidualRefitting::storage_trackExtrap storageTrackNoTOBLayer1
ResidualRefitting::storage_muon storageGmrNoPXF
ResidualRefitting::storage_trackExtrap storageTrackNoPXBLayer2
ResidualRefitting::storage_muon storageTrkNoPXBLayer3
ResidualRefitting::storage_muon storageTrkNoTIBLayer4
ResidualRefitting::storage_trackExtrap samExtrap120_
void ResidualRefitting::zero_trackExtrap ( ResidualRefitting::storage_trackExtrap str)

Definition at line 989 of file ResidualRefitting.cc.

References ResidualRefitting::StorageTrackExtrap::gpEta_, ResidualRefitting::StorageTrackExtrap::gpPhi_, ResidualRefitting::StorageTrackExtrap::gpX_, ResidualRefitting::StorageTrackExtrap::gpY_, ResidualRefitting::StorageTrackExtrap::gpZ_, i, ResidualRefitting::StorageTrackExtrap::lpX_, ResidualRefitting::StorageTrackExtrap::lpY_, ResidualRefitting::StorageTrackExtrap::lpZ_, ResidualRefitting::StorageTrackExtrap::muonLink_, ResidualRefitting::StorageTrackExtrap::n_, N_MAX_STORED_HIT, ResidualRefitting::StorageTrackExtrap::recLink_, ResidualRefitting::StorageTrackExtrap::resX_, ResidualRefitting::StorageTrackExtrap::resY_, and ResidualRefitting::StorageTrackExtrap::resZ_.

Referenced by zero_storage().

989  {
990 
991  str->n_ = 0;
992  for (int i = 0; i < ResidualRefitting::N_MAX_STORED_HIT; i++) {
993 
994  str->muonLink_ [i] = -9999;
995  str->recLink_ [i] = -9999;
996  str->gpX_ [i] = -9999;
997  str->gpY_ [i] = -9999;
998  str->gpZ_ [i] = -9999;
999  str->gpEta_ [i] = -9999;
1000  str->gpPhi_ [i] = -9999;
1001  str->lpX_ [i] = -9999;
1002  str->lpY_ [i] = -9999;
1003  str->lpZ_ [i] = -9999;
1004  str->resX_ [i] = -9999;
1005  str->resY_ [i] = -9999;
1006  str->resZ_ [i] = -9999;
1007  }
1008 
1009 }
int i
Definition: DBlmapReader.cc:9
static const int N_MAX_STORED_HIT

Member Data Documentation

bool ResidualRefitting::debug_
ResidualRefitting::storage_event ResidualRefitting::eventInfo_

Definition at line 61 of file ResidualRefitting.h.

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

edm::InputTag ResidualRefitting::muons_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

edm::InputTag ResidualRefitting::muonsNoPXBLayer1_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoPXBLayer2_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoPXBLayer3_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoPXF_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoStation1_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

edm::InputTag ResidualRefitting::muonsNoStation2_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

edm::InputTag ResidualRefitting::muonsNoStation3_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

edm::InputTag ResidualRefitting::muonsNoStation4_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

edm::InputTag ResidualRefitting::muonsNoTEC_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTIBLayer1_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTIBLayer2_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTIBLayer3_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTIBLayer4_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTID_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer1_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer2_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer3_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer4_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer5_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsNoTOBLayer6_

Definition at line 344 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::muonsRemake_

Definition at line 344 of file ResidualRefitting.h.

Referenced by analyze().

const int ResidualRefitting::N_MAX_STORED = 10
staticprivate
const int ResidualRefitting::N_MAX_STORED_HIT = 1000
staticprivate
TBranch* ResidualRefitting::outputBranch_

Definition at line 362 of file ResidualRefitting.h.

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

TFile* ResidualRefitting::outputFile_

Definition at line 359 of file ResidualRefitting.h.

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

std::string ResidualRefitting::outputFileName_

Definition at line 339 of file ResidualRefitting.h.

Referenced by beginJob().

TTree* ResidualRefitting::outputTree_

Definition at line 361 of file ResidualRefitting.h.

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

std::string ResidualRefitting::PropagatorSource_

Definition at line 341 of file ResidualRefitting.h.

Referenced by analyze().

const int ResidualRefitting::PXB = 1
staticprivate

Definition at line 43 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

const int ResidualRefitting::PXF = 2
staticprivate

Definition at line 44 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

ResidualRefitting::storage_trackExtrap ResidualRefitting::samExtrap120_

Definition at line 266 of file ResidualRefitting.h.

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

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNew_

Definition at line 236 of file ResidualRefitting.h.

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

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoPXF

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt1_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt2_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt3_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoSt4_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTEC

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTIBLayer4

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTID

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer4

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer5

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrNoTOBLayer6

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageGmrOld_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_hit ResidualRefitting::storageRecMuon_

Definition at line 258 of file ResidualRefitting.h.

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

ResidualRefitting::storage_muon ResidualRefitting::storageSamNew_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt1_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt2_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt3_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageSamNoSt4_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRec_

Definition at line 262 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt1_

Definition at line 262 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt2_

Definition at line 262 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt3_

Definition at line 262 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapRecNoSt4_

Definition at line 262 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackExtrapTracker_

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackHit ResidualRefitting::storageTrackHit_

Definition at line 259 of file ResidualRefitting.h.

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

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer1

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer2

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXBLayer3

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoPXF

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTEC

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer1

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer2

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer3

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTIBLayer4

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTID

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer1

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer2

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer3

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer4

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer5

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_trackExtrap ResidualRefitting::storageTrackNoTOBLayer6

Definition at line 269 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNew_

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoPXF

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTEC

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTIBLayer4

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTID

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer1

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer2

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer3

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer4

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer5

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

ResidualRefitting::storage_muon ResidualRefitting::storageTrkNoTOBLayer6

Definition at line 236 of file ResidualRefitting.h.

Referenced by beginJob(), and zero_storage().

const int ResidualRefitting::TEC = 6
staticprivate

Definition at line 48 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

const MagneticField* ResidualRefitting::theField

Definition at line 366 of file ResidualRefitting.h.

Referenced by analyze(), and freeTrajStateMuon().

edm::ESHandle<Propagator> ResidualRefitting::thePropagator

Definition at line 369 of file ResidualRefitting.h.

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

MuonServiceProxy* ResidualRefitting::theService
const int ResidualRefitting::TIB = 3
staticprivate

Definition at line 45 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

const int ResidualRefitting::TID = 4
staticprivate

Definition at line 46 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

const int ResidualRefitting::TOB = 5
staticprivate

Definition at line 47 of file ResidualRefitting.h.

Referenced by StoreTrackerRecHits().

ResidualRefitting::storage_trackExtrap ResidualRefitting::trackExtrap120_

Definition at line 266 of file ResidualRefitting.h.

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

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

Definition at line 367 of file ResidualRefitting.h.

edm::InputTag ResidualRefitting::tracks_

Definition at line 344 of file ResidualRefitting.h.