CMS 3D CMS Logo

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

#include <DTChamberEfficiency.h>

Inheritance diagram for DTChamberEfficiency:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &event, const edm::EventSetup &eventSetup)
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &)
 
 DTChamberEfficiency (const edm::ParameterSet &pset)
 
 ~DTChamberEfficiency ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Member Functions

bool chamberSelection (const DetId &idDetLay, reco::TransientTrack &trans_track) const
 
std::vector< const DetLayer * > compatibleLayers (const NavigationSchool &navigationSchool, const DetLayer *initialLayer, const FreeTrajectoryState &fts, PropagationDirection propDir)
 
edm::ESHandle< Propagatorpropagator () const
 
MeasurementContainer segQualityCut (const MeasurementContainer &seg_list) const
 

Private Attributes

bool debug
 
edm::ESHandle< DTGeometrydtGeom
 
std::vector< std::vector
< MonitorElement * > > 
histosPerW
 
edm::InputTag labelGEMHits
 
edm::InputTag labelRPCRecHits
 
edm::ESHandle< MagneticFieldmagfield
 
edm::InputTag thecscSegments
 
edm::InputTag thedt4DSegments
 
Chi2MeasurementEstimatortheEstimator
 
double theMaxChi2
 
MuonDetLayerMeasurementstheMeasurementExtractor
 
int theMinNrec
 
std::string theNavigationType
 
double theNSigma
 
MuonServiceProxytheService
 
edm::ESHandle
< GlobalTrackingGeometry
theTrackingGeometry
 
edm::InputTag theTracksLabel_
 
edm::EDGetTokenT
< reco::TrackCollection
theTracksToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Description:

This class provides the histograms for the calculation of the efficiency of muons reconstruction in the DTs. It is applicable both in presence or absence of a magnetic field. Histos are 2D Sector vs Chamber plots for each wheel

Author
: Mario Pelliccioni - INFN Torino pelli.nosp@m.cci@.nosp@m.cern..nosp@m.ch $date : 05/12/2008 16:51:04 CET $

Modification:

Definition at line 60 of file DTChamberEfficiency.h.

Constructor & Destructor Documentation

DTChamberEfficiency::DTChamberEfficiency ( const edm::ParameterSet pset)

Definition at line 55 of file DTChamberEfficiency.cc.

References Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, debug, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), MuonServiceProxy_cff::MuonServiceProxy, and createJobs::theNSigma.

56 {
57  // Get the debug parameter for verbose output
58  debug = pSet.getUntrackedParameter<bool>("debug",false);
59 
60  LogVerbatim("DTDQM|DTMonitorModule|DTChamberEfficiency")
61  << "DTChamberEfficiency: constructor called";
62 
63  // service parameters
64  ParameterSet serviceParameters = pSet.getParameter<ParameterSet>("ServiceParameters");
65  theService = new MuonServiceProxy(serviceParameters);
66 
67  theTracksLabel_ = pSet.getParameter<InputTag>("TrackCollection");
68  theTracksToken_ = consumes<reco::TrackCollection>(theTracksLabel_);
69 
70  theMaxChi2 = static_cast<unsigned int>(pSet.getParameter<double>("theMaxChi2"));
71  theNSigma = pSet.getParameter<double>("theNSigma");
72  theMinNrec = static_cast<int>(pSet.getParameter<double>("theMinNrec"));
73 
74  labelRPCRecHits = pSet.getParameter<InputTag>("theRPCRecHits");
75 
76  thedt4DSegments = pSet.getParameter<InputTag>("dt4DSegments");
77  thecscSegments = pSet.getParameter<InputTag>("cscSegments");
78 
80 
81  theMeasurementExtractor = new MuonDetLayerMeasurements(thedt4DSegments,thecscSegments,
82  labelRPCRecHits,labelGEMHits,iC,true,false,false,false);
83 
84 
85  theNavigationType = pSet.getParameter<string>("NavigationType");
86 
88 }
MuonDetLayerMeasurements * theMeasurementExtractor
T getParameter(std::string const &) const
MuonServiceProxy * theService
edm::InputTag labelGEMHits
edm::InputTag thecscSegments
edm::InputTag labelRPCRecHits
edm::EDGetTokenT< reco::TrackCollection > theTracksToken_
edm::InputTag thedt4DSegments
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::InputTag theTracksLabel_
Chi2MeasurementEstimator * theEstimator
DTChamberEfficiency::~DTChamberEfficiency ( )

Definition at line 91 of file DTChamberEfficiency.cc.

References LogTrace.

92 {
93  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency")
94  << "DTChamberEfficiency: destructor called";
95 
96  // free memory
97  delete theService;
99  delete theEstimator;
100 }
MuonDetLayerMeasurements * theMeasurementExtractor
MuonServiceProxy * theService
#define LogTrace(id)
Chi2MeasurementEstimator * theEstimator

Member Function Documentation

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

Implements edm::stream::EDAnalyzerBase.

Definition at line 144 of file DTChamberEfficiency.cc.

References alongMomentum, debug, DetId::det(), MuonSubdetId::DT, DTChamberId, event(), HcalObjRepresent::Fill(), TrajectoryStateOnSurface::freeState(), mergeVDriftHistosByStation::histos, i, TrajectoryStateOnSurface::isValid(), edm::HandleBase::isValid(), LogTrace, HLT_ES_cff::magfield, DetId::Muon, oppositeToMomentum, HLT_25ns14e33_v1_cff::propagator, DetId::rawId(), reco::TransientTrack::recHitsSize(), DTChamberId::sector(), DTChamberId::station(), DetId::subdetId(), TrajectoryStateOnSurface::surface(), testEve_cfg::tracks, and DTChamberId::wheel().

146 {
147 
148  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency") <<
149  "--- [DTChamberEfficiency] Event analysed #Run: " <<
150  event.id().run() << " #Event: " << event.id().event() << endl;
151 
152  theService->update(eventSetup);
154 
155  //Read tracks from event
157  event.getByToken(theTracksToken_, tracks);
158 
159  if(tracks.isValid()) { // check the validity of the collection
160 
161  //loop over the muons
162  for(reco::TrackCollection::const_iterator track = tracks->begin(); track!=tracks->end(); ++track) {
163 
164 
166  const int recHitsize = (int)trans_track.recHitsSize();
167  if(recHitsize < theMinNrec) continue;
168 
169  // printout the DT rechits used by the track
170  if (debug) {
171  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency") << "--- New track" << endl;
172  set<DTChamberId> chAlrUsed;
173  for(trackingRecHit_iterator rHit = trans_track.recHitsBegin();
174  rHit != trans_track.recHitsEnd(); ++rHit) {
175  DetId rHitid = (*rHit)->geographicalId();
176  if(!(rHitid.det() == DetId::Muon && rHitid.subdetId() == MuonSubdetId::DT)) continue;
177  DTChamberId wId(rHitid.rawId());
178  if(chAlrUsed.find(wId) != chAlrUsed.end()) continue;
179  chAlrUsed.insert(wId);
180  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency") << " " << wId << endl;
181  }
182  }
183 
184  // Get the layer on which the seed relies
185  DetId id = trans_track.track().innerDetId();
186  const DetLayer *initialLayer = theService->detLayerGeometry()->idToLayer(id);
187 
188  TrajectoryStateOnSurface init_fs = trans_track.innermostMeasurementState();
189  const FreeTrajectoryState *init_fs_free = init_fs.freeState();
190 
191  //get the list of compatible layers
192  vector<const DetLayer*> layer_list = compatibleLayers(*theService->muonNavigationSchool(), initialLayer,*init_fs_free,alongMomentum);
193  vector<const DetLayer*> layer_list_2 = compatibleLayers(*theService->muonNavigationSchool(), initialLayer,*init_fs_free,oppositeToMomentum);
194 
195  layer_list.insert(layer_list.end(),layer_list_2.begin(),layer_list_2.end());
196 
197  set<DTChamberId> alreadyCheckedCh;
198 
199  //loop over the list of compatible layers
200  for(int i=0;i< (int)layer_list.size();i++) {
201 
202  //propagate the track to the i-th layer
203  TrajectoryStateOnSurface tsos = propagator()->propagate(init_fs,layer_list.at(i)->surface());
204  if(!tsos.isValid()) continue;
205 
206  //determine the chambers kinematically compatible with the track on the i-th layer
207  vector<DetWithState> dss = layer_list.at(i)->compatibleDets(tsos, *propagator(), *theEstimator);
208 
209  if(dss.size() == 0) continue;
210 
211  // get the first det (it's the most compatible)
212  const DetWithState detWithState = dss.front();
213  const DetId idDetLay = detWithState.first->geographicalId();
214 
215  // check if this is a DT and the track has the needed quality
216  if(!chamberSelection(idDetLay,trans_track)) continue;
217 
218  DTChamberId DTid = (DTChamberId) idDetLay;
219 
220  // check if the chamber has already been counted
221  if(alreadyCheckedCh.find(DTid) != alreadyCheckedCh.end()) continue;
222  alreadyCheckedCh.insert(DTid);
223 
224  // get the compatible measurements
225  MeasurementContainer detMeasurements_initial = theMeasurementExtractor->measurements(layer_list.at(i),
226  detWithState.first,
227  detWithState.second,
228  *theEstimator, event);
229  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency") << " chamber: " << DTid
230  << " has: " << detMeasurements_initial.size() << " comp. meas." << endl;
231 
232 
233  //we want to be more picky about the quality of the segments:
234  //exclude the segments with less than 12 hits
235  MeasurementContainer detMeasurements = segQualityCut(detMeasurements_initial);
236 
237  // get the histos for this chamber
238  vector<MonitorElement *> histos = histosPerW[DTid.wheel()+2];
239  // fill them
240  if (detMeasurements_initial.size() != 0) histos[0]->Fill(DTid.sector(),DTid.station(),1.);
241  if (detMeasurements.size() != 0) histos[1]->Fill(DTid.sector(),DTid.station(),1.);
242  histos[2]->Fill(DTid.sector(),DTid.station(),1.);
243 
244 
245  }
246  }
247  } else {
248  LogInfo("DTDQM|DTMonitorModule|DTChamberEfficiency") << "[DTChamberEfficiency] Collection: " << theTracksLabel_
249  << " is not valid!" << endl;
250  }
251  return;
252 }
MuonDetLayerMeasurements * theMeasurementExtractor
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
int i
Definition: DBlmapReader.cc:9
MuonServiceProxy * theService
MeasurementContainer segQualityCut(const MeasurementContainer &seg_list) const
std::vector< std::vector< MonitorElement * > > histosPerW
size_t recHitsSize() const
number of RecHits
edm::EDGetTokenT< reco::TrackCollection > theTracksToken_
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
const SurfaceType & surface() const
bool chamberSelection(const DetId &idDetLay, reco::TransientTrack &trans_track) const
edm::ESHandle< Propagator > propagator() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
FreeTrajectoryState const * freeState(bool withErrors=true) const
std::vector< const DetLayer * > compatibleLayers(const NavigationSchool &navigationSchool, const DetLayer *initialLayer, const FreeTrajectoryState &fts, PropagationDirection propDir)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool isValid() const
Definition: HandleBase.h:75
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
MeasurementContainer measurements(const DetLayer *layer, const GeomDet *det, const TrajectoryStateOnSurface &stateOnDet, const MeasurementEstimator &est, const edm::Event &iEvent)
edm::ESHandle< MagneticField > magfield
#define LogTrace(id)
Definition: DetId.h:18
tuple tracks
Definition: testEve_cfg.py:39
edm::InputTag theTracksLabel_
std::vector< TrajectoryMeasurement > MeasurementContainer
T const * product() const
Definition: ESHandle.h:86
void setEvent(const edm::Event &)
set event
int sector() const
Definition: DTChamberId.h:61
Chi2MeasurementEstimator * theEstimator
static const int DT
Definition: MuonSubdetId.h:12
int station() const
Return the station number.
Definition: DTChamberId.h:51
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
void DTChamberEfficiency::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  context 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 114 of file DTChamberEfficiency.cc.

References DQMStore::IBooker::book2D(), mergeVDriftHistosByStation::histos, LogTrace, and DQMStore::IBooker::setCurrentFolder().

114  {
115 
116  LogTrace("DTDQM|DTMonitorModule|DTChamberEfficiency")
117  << "DTChamberEfficiency: booking histos";
118 
119  // Create the monitor elements
120  ibooker.setCurrentFolder("DT/05-ChamberEff/Task");
121 
122  for(int wheel=-2;wheel<=2;wheel++){
123 
124  vector<MonitorElement *> histos;
125 
126  stringstream wheel_str; wheel_str << wheel;
127 
128  histos.push_back(ibooker.book2D("hCountSectVsChamb_All_W"+ wheel_str.str(),
129  "Countings for wheel " + wheel_str.str(),14,1.,15.,4,1.,5.));
130 
131  histos.push_back(ibooker.book2D("hCountSectVsChamb_Qual_W"+ wheel_str.str(),
132  "Countings for wheel " + wheel_str.str(),14,1.,15.,4,1.,5.));
133 
134 
135  histos.push_back(ibooker.book2D("hExtrapSectVsChamb_W"+ wheel_str.str(),
136  "Extrapolations for wheel " + wheel_str.str(),14,1.,15.,4,1.,5.));
137 
138  histosPerW.push_back(histos);
139  }
140 
141  return;
142 }
std::vector< std::vector< MonitorElement * > > histosPerW
#define LogTrace(id)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
bool DTChamberEfficiency::chamberSelection ( const DetId idDetLay,
reco::TransientTrack trans_track 
) const
private

Definition at line 254 of file DTChamberEfficiency.cc.

References DetId::det(), MuonSubdetId::DT, DetId::Muon, reco::TransientTrack::recHit(), reco::TransientTrack::recHitsSize(), and DetId::subdetId().

255 {
256  //check that we have a muon and that is a DT detector
257  if(!(idDetLay.det() == DetId::Muon && idDetLay.subdetId() == MuonSubdetId::DT)) return false;
258 
259  if(trans_track.recHitsSize() == 2)
260  if(trans_track.recHit(0)->geographicalId() == idDetLay ||
261  trans_track.recHit(1)->geographicalId() == idDetLay) return false;
262 
263  return true;
264 }
size_t recHitsSize() const
number of RecHits
TrackingRecHitRef recHit(size_t i) const
get n-th recHit
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
static const int DT
Definition: MuonSubdetId.h:12
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
vector< const DetLayer * > DTChamberEfficiency::compatibleLayers ( const NavigationSchool navigationSchool,
const DetLayer initialLayer,
const FreeTrajectoryState fts,
PropagationDirection  propDir 
)
private

Definition at line 294 of file DTChamberEfficiency.cc.

References DirectMuonNavigation::compatibleLayers(), and NavigationSchool::compatibleLayers().

296 {
297 
298 vector<const DetLayer*> detLayers;
299 
300 if(theNavigationType == "Standard"){
301  // ask for compatible layers
302  detLayers = navigationSchool.compatibleLayers(*initialLayer,fts,propDir);
303  // I have to fit by hand the first layer until the seedTSOS is defined on the first rechit layer
304  // In fact the first layer is not returned by initialLayer->compatibleLayers.
305 
306  detLayers.insert(detLayers.begin(),initialLayer);
307 
308  }
309  else if (theNavigationType == "Direct"){
310 
311  DirectMuonNavigation navigation(ESHandle<MuonDetLayerGeometry>(&*theService->detLayerGeometry()));
312  detLayers = navigation.compatibleLayers(fts,propDir);
313  }
314  else
315  LogError("DTDQM|DTMonitorModule|DTChamberEfficiency") << "No Properly Navigation Selected!!"<<endl;
316 
317  return detLayers;
318 }
MuonServiceProxy * theService
std::vector< const DetLayer * > compatibleLayers(const DetLayer &detLayer, Args &&...args) const
Returns all layers compatible.
void DTChamberEfficiency::dqmBeginRun ( const edm::Run run,
const edm::EventSetup setup 
)
virtual

Reimplemented from DQMEDAnalyzer.

Definition at line 102 of file DTChamberEfficiency.cc.

References edm::EventSetup::get(), and HLT_ES_cff::magfield.

103 {
104  // Get the DT Geometry
105  setup.get<MuonGeometryRecord>().get(dtGeom);
106 
107  setup.get<IdealMagneticFieldRecord>().get(magfield);
109 
110  return;
111 }
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
edm::ESHandle< DTGeometry > dtGeom
edm::ESHandle< MagneticField > magfield
const T & get() const
Definition: EventSetup.h:56
ESHandle< Propagator > DTChamberEfficiency::propagator ( ) const
inlineprivate

Definition at line 320 of file DTChamberEfficiency.cc.

320  {
321  return theService->propagator("SteppingHelixPropagatorAny");
322 }
MuonServiceProxy * theService
MeasurementContainer DTChamberEfficiency::segQualityCut ( const MeasurementContainer seg_list) const
private

Definition at line 266 of file DTChamberEfficiency.cc.

References DTChamberId, query::result, and DTChamberId::station().

267 {
268 
270 
271  for(MeasurementContainer::const_iterator mescont_Itr = seg_list.begin();
272  mescont_Itr != seg_list.end(); ++mescont_Itr){
273 
274  //get the rechits of the segment
275  TransientTrackingRecHit::ConstRecHitContainer recHit_list = mescont_Itr->recHit()->transientHits();
276 
277  //loop over the rechits and get the number of hits
278  int nhit_seg(0);
279  for(TransientTrackingRecHit::ConstRecHitContainer::const_iterator recList_Itr = recHit_list.begin();
280  recList_Itr != recHit_list.end(); ++recList_Itr){
281 
282  nhit_seg += (int)(*recList_Itr)->transientHits().size();
283  }
284 
285  DTChamberId tmpId = (DTChamberId)mescont_Itr->recHit()->hit()->geographicalId();
286 
287  if(tmpId.station() < 4 && nhit_seg >= 12) result.push_back(*mescont_Itr);
288  if(tmpId.station() == 4 && nhit_seg >= 8) result.push_back(*mescont_Itr);
289  }
290 
291  return result;
292 }
tuple result
Definition: query.py:137
std::vector< ConstRecHitPointer > ConstRecHitContainer
std::vector< TrajectoryMeasurement > MeasurementContainer
int station() const
Return the station number.
Definition: DTChamberId.h:51

Member Data Documentation

bool DTChamberEfficiency::debug
private
edm::ESHandle<DTGeometry> DTChamberEfficiency::dtGeom
private

Definition at line 105 of file DTChamberEfficiency.h.

std::vector<std::vector<MonitorElement*> > DTChamberEfficiency::histosPerW
private

Definition at line 114 of file DTChamberEfficiency.h.

edm::InputTag DTChamberEfficiency::labelGEMHits
private

Definition at line 97 of file DTChamberEfficiency.h.

edm::InputTag DTChamberEfficiency::labelRPCRecHits
private

Definition at line 94 of file DTChamberEfficiency.h.

edm::ESHandle<MagneticField> DTChamberEfficiency::magfield
private

Definition at line 111 of file DTChamberEfficiency.h.

edm::InputTag DTChamberEfficiency::thecscSegments
private

Definition at line 96 of file DTChamberEfficiency.h.

edm::InputTag DTChamberEfficiency::thedt4DSegments
private

Definition at line 95 of file DTChamberEfficiency.h.

Chi2MeasurementEstimator* DTChamberEfficiency::theEstimator
private

Definition at line 109 of file DTChamberEfficiency.h.

double DTChamberEfficiency::theMaxChi2
private

Definition at line 99 of file DTChamberEfficiency.h.

MuonDetLayerMeasurements* DTChamberEfficiency::theMeasurementExtractor
private

Definition at line 108 of file DTChamberEfficiency.h.

int DTChamberEfficiency::theMinNrec
private

Definition at line 101 of file DTChamberEfficiency.h.

std::string DTChamberEfficiency::theNavigationType
private

Definition at line 103 of file DTChamberEfficiency.h.

double DTChamberEfficiency::theNSigma
private

Definition at line 100 of file DTChamberEfficiency.h.

MuonServiceProxy* DTChamberEfficiency::theService
private

Definition at line 107 of file DTChamberEfficiency.h.

edm::ESHandle<GlobalTrackingGeometry> DTChamberEfficiency::theTrackingGeometry
private

Definition at line 112 of file DTChamberEfficiency.h.

edm::InputTag DTChamberEfficiency::theTracksLabel_
private

Definition at line 91 of file DTChamberEfficiency.h.

edm::EDGetTokenT<reco::TrackCollection> DTChamberEfficiency::theTracksToken_
private

Definition at line 92 of file DTChamberEfficiency.h.