CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HitEff Class Reference

#include <HitEff.h>

Inheritance diagram for HitEff:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 HitEff (const edm::ParameterSet &conf)
 
 ~HitEff () override=default
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void beginJob () override
 
void endJob () override
 

Private Attributes

bool addCommonMode_
 
bool addLumi_
 
unsigned int bunchx
 
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecordchi2MeasurementEstimatorToken_
 
float ClusterLocErrX
 
float ClusterLocErrY
 
float ClusterLocX
 
float ClusterLocY
 
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
 
float ClusterStoN
 
const edm::EDGetTokenT< reco::TrackCollectioncombinatorialTracks_token_
 
float commonMode
 
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
 
int compSettings
 
edm::ParameterSet conf_
 
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecordcpeToken_
 
bool cutOnTracks_
 
bool DEBUG
 
const edm::EDGetTokenT< DetIdCollectiondigis_token_
 
unsigned int event
 
int events
 
int EventTrackCKF
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeomToken_
 
bool highPurity
 
unsigned int Id
 
float instLumi
 
unsigned int layers
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecordmeasurementTkToken_
 
unsigned int ModIsBad
 
int nHits
 
const edm::ESGetToken< Propagator, TrackingComponentsRecordpropagatorToken_
 
float pT
 
float PU
 
float ResX
 
float ResXSig
 
unsigned int run
 
const edm::EDGetTokenT< LumiScalersCollectionscalerToken_
 
SiStripClusterInfo siStripClusterInfo_
 
unsigned int SiStripQualBad
 
const edm::ESGetToken< SiStripQuality, SiStripQualityRcdsiStripQualityToken_
 
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtopoToken_
 
int tquality
 
const edm::EDGetTokenT< MeasurementTrackerEventtrackerEvent_token_
 
unsigned int trackMultiplicityCut_
 
TTree * traj
 
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
 
float TrajGlbX
 
float TrajGlbY
 
float TrajGlbZ
 
unsigned int trajHitValid
 
float TrajLocAngleX
 
float TrajLocAngleY
 
float TrajLocErrX
 
float TrajLocErrY
 
float TrajLocX
 
float TrajLocY
 
const edm::EDGetTokenT< TrajTrackAssociationCollectiontrajTrackAsso_token_
 
bool useAllHitsFromTracksWithMissingHits_
 
bool useFirstMeas_
 
bool useLastMeas_
 
unsigned int whatlayer
 
bool withinAcceptance
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 51 of file HitEff.h.

Constructor & Destructor Documentation

◆ HitEff()

HitEff::HitEff ( const edm::ParameterSet conf)
explicit

Definition at line 73 of file HitEff.cc.

References addCommonMode_, addLumi_, compSettings, conf_, cutOnTracks_, DEBUG, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), layers, trackMultiplicityCut_, useAllHitsFromTracksWithMissingHits_, useFirstMeas_, and useLastMeas_.

74  : scalerToken_(consumes<LumiScalersCollection>(conf.getParameter<edm::InputTag>("lumiScalers"))),
78  consumes<reco::TrackCollection>(conf.getParameter<edm::InputTag>("combinatorialTracks"))),
79  trajectories_token_(consumes<std::vector<Trajectory> >(conf.getParameter<edm::InputTag>("trajectories"))),
80  trajTrackAsso_token_(consumes<TrajTrackAssociationCollection>(conf.getParameter<edm::InputTag>("trajectories"))),
83  digis_token_(consumes<DetIdCollection>(conf.getParameter<edm::InputTag>("siStripDigis"))),
84  trackerEvent_token_(consumes<MeasurementTrackerEvent>(conf.getParameter<edm::InputTag>("trackerEvent"))),
87  cpeToken_(esConsumes(edm::ESInputTag("", "StripCPEfromTrackAngle"))),
92  propagatorToken_(esConsumes(edm::ESInputTag("", "PropagatorWithMaterial"))),
93  conf_(conf) {
94  compSettings = conf_.getUntrackedParameter<int>("CompressionSettings", -1);
95  layers = conf_.getParameter<int>("Layer");
96  DEBUG = conf_.getParameter<bool>("Debug");
97  addLumi_ = conf_.getUntrackedParameter<bool>("addLumi", false);
98  addCommonMode_ = conf_.getUntrackedParameter<bool>("addCommonMode", false);
99  cutOnTracks_ = conf_.getUntrackedParameter<bool>("cutOnTracks", false);
100  trackMultiplicityCut_ = conf.getUntrackedParameter<unsigned int>("trackMultiplicity", 100);
101  useFirstMeas_ = conf_.getUntrackedParameter<bool>("useFirstMeas", false);
102  useLastMeas_ = conf_.getUntrackedParameter<bool>("useLastMeas", false);
104  conf_.getUntrackedParameter<bool>("useAllHitsFromTracksWithMissingHits", false);
105 }
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: HitEff.h:89
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: HitEff.h:85
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:74
int compSettings
Definition: HitEff.h:99
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:77
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:66
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
Definition: HitEff.h:88
bool DEBUG
Definition: HitEff.h:101
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:81
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: HitEff.h:86
T getUntrackedParameter(std::string const &, T const &) const
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:79
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:76
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
Definition: HitEff.h:92
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:80
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTkToken_
Definition: HitEff.h:90
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2MeasurementEstimatorToken_
Definition: HitEff.h:91
bool useLastMeas_
Definition: HitEff.h:73
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken_
Definition: HitEff.h:87
unsigned int trackMultiplicityCut_
Definition: HitEff.h:71
unsigned int layers
Definition: HitEff.h:100
bool addLumi_
Definition: HitEff.h:68
bool addCommonMode_
Definition: HitEff.h:69
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:78
bool cutOnTracks_
Definition: HitEff.h:70
bool useFirstMeas_
Definition: HitEff.h:72
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:63
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:64
edm::ParameterSet conf_
Definition: HitEff.h:94

◆ ~HitEff()

HitEff::~HitEff ( )
overridedefault

Member Function Documentation

◆ analyze()

void HitEff::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 166 of file HitEff.cc.

References funct::abs(), addCommonMode_, addLumi_, AnalyticalPropagator_cfi::AnalyticalPropagator, anyDirection, edm::AssociationMap< Tag >::begin(), Surface::bounds(), bunchx, hltPixelTracks_cff::chi2, chi2MeasurementEstimatorToken_, ClusterLocErrX, ClusterLocErrY, ClusterLocX, ClusterLocY, clusters_token_, ClusterStoN, combinatorialTracks_token_, commonMode, commonModeToken_, edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, cpeToken_, cutOnTracks_, digis_token_, MillePedeFileConverter_cfg::e, edm::AssociationMap< Tag >::end(), events, EventTrackCKF, geomToken_, SiStripQuality::getBadApvs(), edm::EventSetup::getData(), edm::EventSetup::getHandle(), muons_cff::highPurity, highPurity, mps_fire::i, Id, TrackerGeometry::idToDetUnit(), cuy::ii, SiStripClusterInfo::initEvent(), input, instLumi, sistrip::SpyUtilities::isValid(), edm::HandleBase::isValid(), edm::Ref< C, T, F >::key(), layers, StripClusterParameterEstimator::localParameters(), LogDebug, V0Monitor_cfi::lumiScalers, magFieldToken_, measurementTkToken_, HLT_2022v11_cff::measurementTrackerEvent, combine::missing, ModIsBad, heavyionUCCDQM_cfi::nClusters, reco::MuonTime::nDof, nHits, StripTopology::nstrips(), AlCaHLTBitMon_ParallelJobs::p, TrapezoidalPlaneBounds::parameters(), edm::Handle< T >::product(), TrackCandidateProducer_cfi::propagator, propagatorToken_, pT, PU, rpcPointValidation_cfi::recHit, TrajectoryMeasurement::recHit(), ResX, ResXSig, run, scalerToken_, SiStripClusterInfo::setCluster(), SiStripClusterInfo::signalOverNoise(), siStripClusterInfo_, SiStripQualBad, siStripQualityToken_, edm::EDCollection< T >::size(), edm::DetSetVector< T >::size(), StripGeomDetUnit::specificTopology(), mathSSE::sqrt(), subdetector, GeomDet::surface(), StripSubdetector::TEC, TrackerTopology::tecSide(), reco::MuonTime::timeAtIpInOut, reco::MuonTime::timeAtIpInOutErr, createJobs::tmp, topoToken_, PbPb_ZMuSkimMuonDPG_cff::tracker, trackerEvent_token_, trackMultiplicityCut_, traj, trajectories_token_, TrajGlbX, TrajGlbY, TrajGlbZ, trajHitValid, TrajLocAngleX, TrajLocAngleY, TrajLocErrX, TrajLocErrY, TrajLocX, TrajLocY, trajTrackAsso_token_, useAllHitsFromTracksWithMissingHits_, useFirstMeas_, useLastMeas_, whatlayer, Bounds::width(), and withinAcceptance.

166  {
167  //Retrieve tracker topology from geometry
168  const TrackerTopology* tTopo = &es.getData(topoToken_);
170 
171  // bool DEBUG = false;
172 
173  LogDebug("SiStripHitEfficiency:HitEff") << "beginning analyze from HitEff" << endl;
174 
175  using namespace edm;
176  using namespace reco;
177  // Step A: Get Inputs
178 
179  int run_nr = e.id().run();
180  int ev_nr = e.id().event();
181  int bunch_nr = e.bunchCrossing();
182 
183  // Luminosity informations
185  instLumi = 0;
186  PU = 0;
187  if (addLumi_) {
188  e.getByToken(scalerToken_, lumiScalers);
189  if (lumiScalers->begin() != lumiScalers->end()) {
190  instLumi = lumiScalers->begin()->instantLumi();
191  PU = lumiScalers->begin()->pileup();
192  }
193  }
194 
195  // CM
197  if (addCommonMode_)
198  e.getByToken(commonModeToken_, commonModeDigis);
199 
200  //CombinatoriaTrack
201  edm::Handle<reco::TrackCollection> trackCollectionCKF;
202  //edm::InputTag TkTagCKF = conf_.getParameter<edm::InputTag>("combinatorialTracks");
203  e.getByToken(combinatorialTracks_token_, trackCollectionCKF);
204 
205  edm::Handle<std::vector<Trajectory> > TrajectoryCollectionCKF;
206  //edm::InputTag TkTrajCKF = conf_.getParameter<edm::InputTag>("trajectories");
207  e.getByToken(trajectories_token_, TrajectoryCollectionCKF);
208 
209  edm::Handle<TrajTrackAssociationCollection> trajTrackAssociationHandle;
210  e.getByToken(trajTrackAsso_token_, trajTrackAssociationHandle);
211 
212  // Clusters
213  // get the SiStripClusters from the event
215  //e.getByLabel("siStripClusters", theClusters);
216  e.getByToken(clusters_token_, theClusters);
217 
218  //get tracker geometry
220  const TrackerGeometry* tkgeom = &(*tracker);
221 
222  //get Cluster Parameter Estimator
223  //std::string cpe = conf_.getParameter<std::string>("StripCPE");
224  edm::ESHandle<StripClusterParameterEstimator> parameterestimator = es.getHandle(cpeToken_);
225  const StripClusterParameterEstimator& stripcpe(*parameterestimator);
226 
227  // get the SiStripQuality records
228  edm::ESHandle<SiStripQuality> SiStripQuality_ = es.getHandle(siStripQualityToken_);
229 
230  const MagneticField* magField_ = &es.getData(magFieldToken_);
231 
232  // get the list of module IDs with FED-detected errors
233  edm::Handle<DetIdCollection> fedErrorIds;
234  //e.getByLabel("siStripDigis", fedErrorIds );
235  e.getByToken(digis_token_, fedErrorIds);
236 
237  ESHandle<MeasurementTracker> measurementTrackerHandle = es.getHandle(measurementTkToken_);
238 
240  //e.getByLabel("MeasurementTrackerEvent", measurementTrackerEvent);
242 
244  const Propagator* thePropagator = &es.getData(propagatorToken_);
245 
246  events++;
247 
248  // *************** SiStripCluster Collection
249  const edmNew::DetSetVector<SiStripCluster>& input = *theClusters;
250 
251  //go through clusters to write out global position of good clusters for the layer understudy for comparison
252  // Loop through clusters just to print out locations
253  // Commented out to avoid discussion, should really be deleted.
254  /*
255  for (edmNew::DetSetVector<SiStripCluster>::const_iterator DSViter = input.begin(); DSViter != input.end(); DSViter++) {
256  // DSViter is a vector of SiStripClusters located on a single module
257  unsigned int ClusterId = DSViter->id();
258  DetId ClusterDetId(ClusterId);
259  const StripGeomDetUnit * stripdet=(const StripGeomDetUnit*)tkgeom->idToDetUnit(ClusterDetId);
260 
261  edmNew::DetSet<SiStripCluster>::const_iterator begin=DSViter->begin();
262  edmNew::DetSet<SiStripCluster>::const_iterator end =DSViter->end();
263  for(edmNew::DetSet<SiStripCluster>::const_iterator iter=begin;iter!=end;++iter) {
264  //iter is a single SiStripCluster
265  StripClusterParameterEstimator::LocalValues parameters=stripcpe.localParameters(*iter,*stripdet);
266 
267  const Surface* surface;
268  surface = &(tracker->idToDet(ClusterDetId)->surface());
269  LocalPoint lp = parameters.first;
270  GlobalPoint gp = surface->toGlobal(lp);
271  unsigned int layer = ::checkLayer(ClusterId, tTopo);
272  if(DEBUG) LOGPRINT << "Found hit in cluster collection layer = " << layer << " with id = " << ClusterId << " local X position = " << lp.x() << " +- " << sqrt(parameters.second.xx()) << " matched/stereo/rphi = " << ((ClusterId & 0x3)==0) << "/" << ((ClusterId & 0x3)==1) << "/" << ((ClusterId & 0x3)==2) << endl;
273  }
274  }
275  */
276 
277  // Tracking
278  const reco::TrackCollection* tracksCKF = trackCollectionCKF.product();
279  LogDebug("SiStripHitEfficiency:HitEff") << "number ckf tracks found = " << tracksCKF->size() << endl;
280  //if (tracksCKF->size() == 1 ){
281  if (!tracksCKF->empty()) {
282  if (cutOnTracks_ && (tracksCKF->size() >= trackMultiplicityCut_))
283  return;
284  if (cutOnTracks_)
285  LogDebug("SiStripHitEfficiency:HitEff")
286  << "starting checking good event with < " << trackMultiplicityCut_ << " tracks" << endl;
287 
288  EventTrackCKF++;
289 
290 #ifdef ExtendedCALIBTree
291  //get dEdx info if available
292  Handle<ValueMap<DeDxData> > dEdxUncalibHandle;
293  if (e.getByLabel("dedxMedianCTF", dEdxUncalibHandle)) {
294  const ValueMap<DeDxData> dEdxTrackUncalib = *dEdxUncalibHandle.product();
295 
296  reco::TrackRef itTrack = reco::TrackRef(trackCollectionCKF, 0);
297  dedx = dEdxTrackUncalib[itTrack].dEdx();
298  dedxNOM = dEdxTrackUncalib[itTrack].numberOfMeasurements();
299  } else {
300  dedx = -999.0;
301  dedxNOM = -999;
302  }
303 
304  //get muon and ecal timing info if available
306  if (e.getByLabel("muonsWitht0Correction", muH)) {
307  const MuonCollection& muonsT0 = *muH.product();
308  if (!muonsT0.empty()) {
309  MuonTime mt0 = muonsT0[0].time();
310  timeDT = mt0.timeAtIpInOut;
311  timeDTErr = mt0.timeAtIpInOutErr;
312  timeDTDOF = mt0.nDof;
313 
314  bool hasCaloEnergyInfo = muonsT0[0].isEnergyValid();
315  if (hasCaloEnergyInfo)
316  timeECAL = muonsT0[0].calEnergy().ecal_time;
317  }
318  } else {
319  timeDT = -999.0;
320  timeDTErr = -999.0;
321  timeDTDOF = -999;
322  timeECAL = -999.0;
323  }
324 
325 #endif
326  // actually should do a loop over all the tracks in the event here
327 
328  // Looping over traj-track associations to be able to get traj & track informations
329  for (TrajTrackAssociationCollection::const_iterator it = trajTrackAssociationHandle->begin();
330  it != trajTrackAssociationHandle->end();
331  it++) {
333  reco::TrackRef itrack = it->val;
334 
335  // for each track, fill some variables such as number of hits and momentum
336  nHits = itraj->foundHits();
337 #ifdef ExtendedCALIBTree
338  nLostHits = itraj->lostHits();
339  chi2 = (itraj->chiSquared() / itraj->ndof());
340  p = itraj->lastMeasurement().updatedState().globalMomentum().mag();
341 #endif
342  pT = sqrt((itraj->lastMeasurement().updatedState().globalMomentum().x() *
343  itraj->lastMeasurement().updatedState().globalMomentum().x()) +
344  (itraj->lastMeasurement().updatedState().globalMomentum().y() *
345  itraj->lastMeasurement().updatedState().globalMomentum().y()));
346 
347  // track quality
349 
350  std::vector<TrajectoryMeasurement> TMeas = itraj->measurements();
351  vector<TrajectoryMeasurement>::iterator itm;
352  double xloc = 0.;
353  double yloc = 0.;
354  double xErr = 0.;
355  double yErr = 0.;
356  double angleX = -999.;
357  double angleY = -999.;
358  double xglob, yglob, zglob;
359 
360  // Check whether the trajectory has some missing hits
361  bool hasMissingHits = false;
362  for (itm = TMeas.begin(); itm != TMeas.end(); itm++) {
363  auto theHit = (*itm).recHit();
364  if (theHit->getType() == TrackingRecHit::Type::missing)
365  hasMissingHits = true;
366  }
367 
368  // Loop on each measurement and take it into consideration
369  //--------------------------------------------------------
370 
371  for (itm = TMeas.begin(); itm != TMeas.end(); itm++) {
372  auto theInHit = (*itm).recHit();
373 
374  LogDebug("SiStripHitEfficiency:HitEff") << "theInHit is valid = " << theInHit->isValid() << endl;
375 
376  unsigned int iidd = theInHit->geographicalId().rawId();
377 
378  unsigned int TKlayers = ::checkLayer(iidd, tTopo);
379  LogDebug("SiStripHitEfficiency:HitEff") << "TKlayer from trajectory: " << TKlayers << " from module = " << iidd
380  << " matched/stereo/rphi = " << ((iidd & 0x3) == 0) << "/"
381  << ((iidd & 0x3) == 1) << "/" << ((iidd & 0x3) == 2) << endl;
382 
383  // Test first and last points of the trajectory
384  // the list of measurements starts from outer layers !!! This could change -> should add a check
385  bool isFirstMeas = (itm == (TMeas.end() - 1));
386  bool isLastMeas = (itm == (TMeas.begin()));
387 
388  if (!useFirstMeas_ && isFirstMeas)
389  continue;
390  if (!useLastMeas_ && isLastMeas)
391  continue;
392 
393  // In case of missing hit in the track, check whether to use the other hits or not.
394  if (hasMissingHits && theInHit->getType() != TrackingRecHit::Type::missing &&
396  continue;
397 
398  // If Trajectory measurement from TOB 6 or TEC 9, skip it because it's always valid they are filled later
399  if (TKlayers == 10 || TKlayers == 22) {
400  LogDebug("SiStripHitEfficiency:HitEff") << "skipping original TM for TOB 6 or TEC 9" << endl;
401  continue;
402  }
403 
404  // Make vector of TrajectoryAtInvalidHits to hold the trajectories
405  std::vector<TrajectoryAtInvalidHit> TMs;
406 
407  // Make AnalyticalPropagator to use in TAVH constructor
409 
410  // for double sided layers check both sensors--if no hit was found on either sensor surface,
411  // the trajectory measurements only have one invalid hit entry on the matched surface
412  // so get the TrajectoryAtInvalidHit for both surfaces and include them in the study
413  if (::isDoubleSided(iidd, tTopo) && ((iidd & 0x3) == 0)) {
414  // do hit eff check twice--once for each sensor
415  //add a TM for each surface
416  TMs.push_back(TrajectoryAtInvalidHit(*itm, tTopo, tkgeom, propagator, 1));
417  TMs.push_back(TrajectoryAtInvalidHit(*itm, tTopo, tkgeom, propagator, 2));
418  } else if (::isDoubleSided(iidd, tTopo) && (!::check2DPartner(iidd, TMeas))) {
419  // if only one hit was found the trajectory measurement is on that sensor surface, and the other surface from
420  // the matched layer should be added to the study as well
421  TMs.push_back(TrajectoryAtInvalidHit(*itm, tTopo, tkgeom, propagator, 1));
422  TMs.push_back(TrajectoryAtInvalidHit(*itm, tTopo, tkgeom, propagator, 2));
423  LogDebug("SiStripHitEfficiency:HitEff") << " found a hit with a missing partner" << endl;
424  } else {
425  //only add one TM for the single surface and the other will be added in the next iteration
426  TMs.push_back(TrajectoryAtInvalidHit(*itm, tTopo, tkgeom, propagator));
427  }
428 
430  //Now check for tracks at TOB6 and TEC9
431 
432  // to make sure we only propagate on the last TOB5 hit check the next entry isn't also in TOB5
433  // to avoid bias, make sure the TOB5 hit is valid (an invalid hit on TOB5 could only exist with a valid hit on TOB6)
434 
435  bool isValid = theInHit->isValid();
436  bool isLast = (itm == (TMeas.end() - 1));
437  bool isLastTOB5 = true;
438  if (!isLast) {
439  if (::checkLayer((++itm)->recHit()->geographicalId().rawId(), tTopo) == 9)
440  isLastTOB5 = false;
441  else
442  isLastTOB5 = true;
443  --itm;
444  }
445 
446  if (TKlayers == 9 && isValid && isLastTOB5) {
447  // if ( TKlayers==9 && itm==TMeas.rbegin()) {
448  // if ( TKlayers==9 && (itm==TMeas.back()) ) { // to check for only the last entry in the trajectory for propagation
449  std::vector<BarrelDetLayer const*> barrelTOBLayers =
450  measurementTrackerHandle->geometricSearchTracker()->tobLayers();
451  const DetLayer* tob6 = barrelTOBLayers[barrelTOBLayers.size() - 1];
452  const LayerMeasurements layerMeasurements{*measurementTrackerHandle, *measurementTrackerEvent};
453  const TrajectoryStateOnSurface tsosTOB5 = itm->updatedState();
454  auto tmp = layerMeasurements.measurements(*tob6, tsosTOB5, *thePropagator, *estimator);
455 
456  if (!tmp.empty()) {
457  LogDebug("SiStripHitEfficiency:HitEff") << "size of TM from propagation = " << tmp.size() << endl;
458 
459  // take the last of the TMs, which is always an invalid hit
460  // if no detId is available, ie detId==0, then no compatible layer was crossed
461  // otherwise, use that TM for the efficiency measurement
462  TrajectoryMeasurement tob6TM(tmp.back());
463  const auto& tob6Hit = tob6TM.recHit();
464 
465  if (tob6Hit->geographicalId().rawId() != 0) {
466  LogDebug("SiStripHitEfficiency:HitEff") << "tob6 hit actually being added to TM vector" << endl;
467  TMs.push_back(TrajectoryAtInvalidHit(tob6TM, tTopo, tkgeom, propagator));
468  }
469  }
470  }
471 
472  bool isLastTEC8 = true;
473  if (!isLast) {
474  if (::checkLayer((++itm)->recHit()->geographicalId().rawId(), tTopo) == 21)
475  isLastTEC8 = false;
476  else
477  isLastTEC8 = true;
478  --itm;
479  }
480 
481  if (TKlayers == 21 && isValid && isLastTEC8) {
482  std::vector<const ForwardDetLayer*> posTecLayers =
483  measurementTrackerHandle->geometricSearchTracker()->posTecLayers();
484  const DetLayer* tec9pos = posTecLayers[posTecLayers.size() - 1];
485  std::vector<const ForwardDetLayer*> negTecLayers =
486  measurementTrackerHandle->geometricSearchTracker()->negTecLayers();
487  const DetLayer* tec9neg = negTecLayers[negTecLayers.size() - 1];
488  const LayerMeasurements layerMeasurements{*measurementTrackerHandle, *measurementTrackerEvent};
489  const TrajectoryStateOnSurface tsosTEC9 = itm->updatedState();
490 
491  // check if track on positive or negative z
492  if (!(iidd == StripSubdetector::TEC))
493  LogDebug("SiStripHitEfficiency:HitEff") << "there is a problem with TEC 9 extrapolation" << endl;
494 
495  //LOGPRINT << " tec9 id = " << iidd << " and side = " << tTopo->tecSide(iidd) << endl;
496  vector<TrajectoryMeasurement> tmp;
497  if (tTopo->tecSide(iidd) == 1) {
498  tmp = layerMeasurements.measurements(*tec9neg, tsosTEC9, *thePropagator, *estimator);
499  //LOGPRINT << "on negative side" << endl;
500  }
501  if (tTopo->tecSide(iidd) == 2) {
502  tmp = layerMeasurements.measurements(*tec9pos, tsosTEC9, *thePropagator, *estimator);
503  //LOGPRINT << "on positive side" << endl;
504  }
505 
506  if (!tmp.empty()) {
507  // take the last of the TMs, which is always an invalid hit
508  // if no detId is available, ie detId==0, then no compatible layer was crossed
509  // otherwise, use that TM for the efficiency measurement
510  TrajectoryMeasurement tec9TM(tmp.back());
511  const auto& tec9Hit = tec9TM.recHit();
512 
513  unsigned int tec9id = tec9Hit->geographicalId().rawId();
514  LogDebug("SiStripHitEfficiency:HitEff")
515  << "tec9id = " << tec9id << " is Double sided = " << ::isDoubleSided(tec9id, tTopo)
516  << " and 0x3 = " << (tec9id & 0x3) << endl;
517 
518  if (tec9Hit->geographicalId().rawId() != 0) {
519  LogDebug("SiStripHitEfficiency:HitEff") << "tec9 hit actually being added to TM vector" << endl;
520  // in tec the hit can be single or doubled sided. whenever the invalid hit at the end of vector of TMs is
521  // double sided it is always on the matched surface, so we need to split it into the true sensor surfaces
522  if (::isDoubleSided(tec9id, tTopo)) {
523  TMs.push_back(TrajectoryAtInvalidHit(tec9TM, tTopo, tkgeom, propagator, 1));
524  TMs.push_back(TrajectoryAtInvalidHit(tec9TM, tTopo, tkgeom, propagator, 2));
525  } else
526  TMs.push_back(TrajectoryAtInvalidHit(tec9TM, tTopo, tkgeom, propagator));
527  }
528  } //else LOGPRINT << "tec9 tmp empty" << endl;
529  }
530 
532 
533  // Modules Constraints
534 
535  for (std::vector<TrajectoryAtInvalidHit>::const_iterator TM = TMs.begin(); TM != TMs.end(); ++TM) {
536  // --> Get trajectory from combinatedState
537  iidd = TM->monodet_id();
538  LogDebug("SiStripHitEfficiency:HitEff") << "setting iidd = " << iidd << " before checking efficiency and ";
539 
540  xloc = TM->localX();
541  yloc = TM->localY();
542 
543  angleX = atan(TM->localDxDz());
544  angleY = atan(TM->localDyDz());
545 
546  TrajLocErrX = 0.0;
547  TrajLocErrY = 0.0;
548 
549  xglob = TM->globalX();
550  yglob = TM->globalY();
551  zglob = TM->globalZ();
552  xErr = TM->localErrorX();
553  yErr = TM->localErrorY();
554 
555  TrajGlbX = 0.0;
556  TrajGlbY = 0.0;
557  TrajGlbZ = 0.0;
558  withinAcceptance = TM->withinAcceptance();
559 
560  trajHitValid = TM->validHit();
561  int TrajStrip = -1;
562 
563  // reget layer from iidd here, to account for TOB 6 and TEC 9 TKlayers being off
564  TKlayers = ::checkLayer(iidd, tTopo);
565 
566  if ((layers == TKlayers) || (layers == 0)) { // Look at the layer not used to reconstruct the track
567  whatlayer = TKlayers;
568  LogDebug("SiStripHitEfficiency:HitEff") << "Looking at layer under study" << endl;
569  ModIsBad = 2;
570  Id = 0;
571  SiStripQualBad = 0;
572  run = 0;
573  event = 0;
574  TrajLocX = 0.0;
575  TrajLocY = 0.0;
576  TrajLocAngleX = -999.0;
577  TrajLocAngleY = -999.0;
578  ResX = 0.0;
579  ResXSig = 0.0;
580  ClusterLocX = 0.0;
581  ClusterLocY = 0.0;
582  ClusterLocErrX = 0.0;
583  ClusterLocErrY = 0.0;
584  ClusterStoN = 0.0;
585  bunchx = 0;
586  commonMode = -100;
587 
588  // RPhi RecHit Efficiency
589 
590  if (!input.empty()) {
591  LogDebug("SiStripHitEfficiency:HitEff") << "Checking clusters with size = " << input.size() << endl;
592  int nClusters = 0;
593  std::vector<std::vector<float> >
594  VCluster_info; //fill with X residual, X residual pull, local X, sig(X), local Y, sig(Y), StoN
595  for (edmNew::DetSetVector<SiStripCluster>::const_iterator DSViter = input.begin(); DSViter != input.end();
596  DSViter++) {
597  // DSViter is a vector of SiStripClusters located on a single module
598  //if (DEBUG) LOGPRINT << "the ID from the DSViter = " << DSViter->id() << endl;
599  unsigned int ClusterId = DSViter->id();
600  if (ClusterId == iidd) {
601  LogDebug("SiStripHitEfficiency:HitEff")
602  << "found (ClusterId == iidd) with ClusterId = " << ClusterId << " and iidd = " << iidd << endl;
603  DetId ClusterDetId(ClusterId);
604  const StripGeomDetUnit* stripdet = (const StripGeomDetUnit*)tkgeom->idToDetUnit(ClusterDetId);
605  const StripTopology& Topo = stripdet->specificTopology();
606 
607  float hbedge = 0.0;
608  float htedge = 0.0;
609  float hapoth = 0.0;
610  float uylfac = 0.0;
611  float uxlden = 0.0;
612  if (TKlayers >= 11) {
613  const BoundPlane& plane = stripdet->surface();
614  const TrapezoidalPlaneBounds* trapezoidalBounds(
615  dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
616  std::array<const float, 4> const& parameterTrap =
617  (*trapezoidalBounds).parameters(); // el bueno aqui
618  hbedge = parameterTrap[0];
619  htedge = parameterTrap[1];
620  hapoth = parameterTrap[3];
621  uylfac = (htedge - hbedge) / (htedge + hbedge) / hapoth;
622  uxlden = 1 + yloc * uylfac;
623  }
624 
625  // Need to know position of trajectory in strip number for selecting the right APV later
626  if (TrajStrip == -1) {
627  int nstrips = Topo.nstrips();
628  float pitch = stripdet->surface().bounds().width() / nstrips;
629  TrajStrip = xloc / pitch + nstrips / 2.0;
630  // Need additionnal corrections for endcap
631  if (TKlayers >= 11) {
632  float TrajLocXMid = xloc / (1 + (htedge - hbedge) * yloc / (htedge + hbedge) /
633  hapoth); // radialy extrapolated x loc position at middle
634  TrajStrip = TrajLocXMid / pitch + nstrips / 2.0;
635  }
636  //LOGPRINT<<" Layer "<<TKlayers<<" TrajStrip: "<<nstrips<<" "<<pitch<<" "<<TrajStrip<<endl;
637  }
638 
639  for (edmNew::DetSet<SiStripCluster>::const_iterator iter = DSViter->begin(); iter != DSViter->end();
640  ++iter) {
641  //iter is a single SiStripCluster
642  StripClusterParameterEstimator::LocalValues parameters = stripcpe.localParameters(*iter, *stripdet);
643  float res = (parameters.first.x() - xloc);
644  float sigma = ::checkConsistency(parameters, xloc, xErr);
645  // The consistency is probably more accurately measured with the Chi2MeasurementEstimator. To use it
646  // you need a TransientTrackingRecHit instead of the cluster
647  //theEstimator= new Chi2MeasurementEstimator(30);
648  //const Chi2MeasurementEstimator *theEstimator(100);
649  //theEstimator->estimate(TM->tsos(), TransientTrackingRecHit);
650 
651  if (TKlayers >= 11) {
652  res = parameters.first.x() - xloc / uxlden; // radialy extrapolated x loc position at middle
653  sigma = abs(res) /
654  sqrt(parameters.second.xx() + xErr * xErr / uxlden / uxlden +
655  yErr * yErr * xloc * xloc * uylfac * uylfac / uxlden / uxlden / uxlden / uxlden);
656  }
657 
658  siStripClusterInfo_.setCluster(*iter, ClusterId);
659  // signal to noise from SiStripClusterInfo not working in 225. I'll fix this after the interface
660  // redesign in 300 -ku
661  //float cluster_info[7] = {res, sigma, parameters.first.x(), sqrt(parameters.second.xx()), parameters.first.y(), sqrt(parameters.second.yy()), signal_to_noise};
662  std::vector<float> cluster_info;
663  cluster_info.push_back(res);
664  cluster_info.push_back(sigma);
665  cluster_info.push_back(parameters.first.x());
666  cluster_info.push_back(sqrt(parameters.second.xx()));
667  cluster_info.push_back(parameters.first.y());
668  cluster_info.push_back(sqrt(parameters.second.yy()));
669  cluster_info.push_back(siStripClusterInfo_.signalOverNoise());
670  VCluster_info.push_back(cluster_info);
671  nClusters++;
672  LogDebug("SiStripHitEfficiency:HitEff") << "Have ID match. residual = " << VCluster_info.back()[0]
673  << " res sigma = " << VCluster_info.back()[1] << endl;
674  LogDebug("SiStripHitEfficiency:HitEff")
675  << "trajectory measurement compatability estimate = " << (*itm).estimate() << endl;
676  LogDebug("SiStripHitEfficiency:HitEff")
677  << "hit position = " << parameters.first.x() << " hit error = " << sqrt(parameters.second.xx())
678  << " trajectory position = " << xloc << " traj error = " << xErr << endl;
679  }
680  }
681  }
682  float FinalResSig = 1000.0;
683  float FinalCluster[7] = {1000.0, 1000.0, 0.0, 0.0, 0.0, 0.0, 0.0};
684  if (nClusters > 0) {
685  LogDebug("SiStripHitEfficiency:HitEff") << "found clusters > 0" << endl;
686  if (nClusters > 1) {
687  //get the smallest one
688  vector<vector<float> >::iterator ires;
689  for (ires = VCluster_info.begin(); ires != VCluster_info.end(); ires++) {
690  if (abs((*ires)[1]) < abs(FinalResSig)) {
691  FinalResSig = (*ires)[1];
692  for (unsigned int i = 0; i < ires->size(); i++) {
693  LogDebug("SiStripHitEfficiency:HitEff")
694  << "filling final cluster. i = " << i << " before fill FinalCluster[i]=" << FinalCluster[i]
695  << " and (*ires)[i] =" << (*ires)[i] << endl;
696  FinalCluster[i] = (*ires)[i];
697  LogDebug("SiStripHitEfficiency:HitEff")
698  << "filling final cluster. i = " << i << " after fill FinalCluster[i]=" << FinalCluster[i]
699  << " and (*ires)[i] =" << (*ires)[i] << endl;
700  }
701  }
702  LogDebug("SiStripHitEfficiency:HitEff")
703  << "iresidual = " << (*ires)[0] << " isigma = " << (*ires)[1]
704  << " and FinalRes = " << FinalCluster[0] << endl;
705  }
706  } else {
707  FinalResSig = VCluster_info.at(0)[1];
708  for (unsigned int i = 0; i < VCluster_info.at(0).size(); i++) {
709  FinalCluster[i] = VCluster_info.at(0)[i];
710  }
711  }
712  VCluster_info.clear();
713  }
714 
715  LogDebug("SiStripHitEfficiency:HitEff")
716  << "Final residual in X = " << FinalCluster[0] << "+-" << (FinalCluster[0] / FinalResSig) << endl;
717  LogDebug("SiStripHitEfficiency:HitEff") << "Checking location of trajectory: abs(yloc) = " << abs(yloc)
718  << " abs(xloc) = " << abs(xloc) << endl;
719  LogDebug("SiStripHitEfficiency:HitEff")
720  << "Checking location of cluster hit: yloc = " << FinalCluster[4] << "+-" << FinalCluster[5]
721  << " xloc = " << FinalCluster[2] << "+-" << FinalCluster[3] << endl;
722  LogDebug("SiStripHitEfficiency:HitEff") << "Final cluster signal to noise = " << FinalCluster[6] << endl;
723 
724  float exclusionWidth = 0.4;
725  float TOBexclusion = 0.0;
726  float TECexRing5 = -0.89;
727  float TECexRing6 = -0.56;
728  float TECexRing7 = 0.60;
729  //Added by Chris Edelmaier to do TEC bonding exclusion
730  int subdetector = ((iidd >> 25) & 0x7);
731  int ringnumber = ((iidd >> 5) & 0x7);
732 
733  //New TOB and TEC bonding region exclusion zone
734  if ((TKlayers >= 5 && TKlayers < 11) ||
735  ((subdetector == 6) && ((ringnumber >= 5) && (ringnumber <= 7)))) {
736  //There are only 2 cases that we need to exclude for
737  float highzone = 0.0;
738  float lowzone = 0.0;
739  float higherr = yloc + 5.0 * yErr;
740  float lowerr = yloc - 5.0 * yErr;
741  if (TKlayers >= 5 && TKlayers < 11) {
742  //TOB zone
743  highzone = TOBexclusion + exclusionWidth;
744  lowzone = TOBexclusion - exclusionWidth;
745  } else if (ringnumber == 5) {
746  //TEC ring 5
747  highzone = TECexRing5 + exclusionWidth;
748  lowzone = TECexRing5 - exclusionWidth;
749  } else if (ringnumber == 6) {
750  //TEC ring 6
751  highzone = TECexRing6 + exclusionWidth;
752  lowzone = TECexRing6 - exclusionWidth;
753  } else if (ringnumber == 7) {
754  //TEC ring 7
755  highzone = TECexRing7 + exclusionWidth;
756  lowzone = TECexRing7 - exclusionWidth;
757  }
758  //Now that we have our exclusion region, we just have to properly identify it
759  if ((highzone <= higherr) && (highzone >= lowerr))
760  withinAcceptance = false;
761  if ((lowzone >= lowerr) && (lowzone <= higherr))
762  withinAcceptance = false;
763  if ((higherr <= highzone) && (higherr >= lowzone))
764  withinAcceptance = false;
765  if ((lowerr >= lowzone) && (lowerr <= highzone))
766  withinAcceptance = false;
767  }
768 
769  // fill ntuple varibles
770  //get global position from module id number iidd
771  TrajGlbX = xglob;
772  TrajGlbY = yglob;
773  TrajGlbZ = zglob;
774 
775  TrajLocErrX = xErr;
776  TrajLocErrY = yErr;
777 
778  Id = iidd;
779  run = run_nr;
780  event = ev_nr;
781  bunchx = bunch_nr;
782  //if ( SiStripQuality_->IsModuleBad(iidd) ) {
783  if (SiStripQuality_->getBadApvs(iidd) != 0) {
784  SiStripQualBad = 1;
785  LogDebug("SiStripHitEfficiency:HitEff") << "strip is bad from SiStripQuality" << endl;
786  } else {
787  SiStripQualBad = 0;
788  LogDebug("SiStripHitEfficiency:HitEff") << "strip is good from SiStripQuality" << endl;
789  }
790 
791  //check for FED-detected errors and include those in SiStripQualBad
792  for (unsigned int ii = 0; ii < fedErrorIds->size(); ii++) {
793  if (iidd == (*fedErrorIds)[ii].rawId())
794  SiStripQualBad = 1;
795  }
796 
797  TrajLocX = xloc;
798  TrajLocY = yloc;
799  TrajLocAngleX = angleX;
800  TrajLocAngleY = angleY;
801  ResX = FinalCluster[0];
802  ResXSig = FinalResSig;
803  if (FinalResSig != FinalCluster[1])
804  LogDebug("SiStripHitEfficiency:HitEff")
805  << "Problem with best cluster selection because FinalResSig = " << FinalResSig
806  << " and FinalCluster[1] = " << FinalCluster[1] << endl;
807  ClusterLocX = FinalCluster[2];
808  ClusterLocY = FinalCluster[4];
809  ClusterLocErrX = FinalCluster[3];
810  ClusterLocErrY = FinalCluster[5];
811  ClusterStoN = FinalCluster[6];
812 
813  // CM of APV crossed by traj
814  if (addCommonMode_)
815  if (commonModeDigis.isValid() && TrajStrip >= 0 && TrajStrip <= 768) {
816  edm::DetSetVector<SiStripRawDigi>::const_iterator digiframe = commonModeDigis->find(iidd);
817  if (digiframe != commonModeDigis->end())
818  if ((unsigned)TrajStrip / 128 < digiframe->data.size())
819  commonMode = digiframe->data.at(TrajStrip / 128).adc();
820  }
821 
822  LogDebug("SiStripHitEfficiency:HitEff") << "before check good" << endl;
823 
824  if (FinalResSig < 999.0) { //could make requirement on track/hit consistency, but for
825  //now take anything with a hit on the module
826  LogDebug("SiStripHitEfficiency:HitEff")
827  << "hit being counted as good " << FinalCluster[0] << " FinalRecHit " << iidd << " TKlayers "
828  << TKlayers << " xloc " << xloc << " yloc " << yloc << " module " << iidd
829  << " matched/stereo/rphi = " << ((iidd & 0x3) == 0) << "/" << ((iidd & 0x3) == 1) << "/"
830  << ((iidd & 0x3) == 2) << endl;
831  ModIsBad = 0;
832  traj->Fill();
833  } else {
834  LogDebug("SiStripHitEfficiency:HitEff")
835  << "hit being counted as bad ######### Invalid RPhi FinalResX " << FinalCluster[0]
836  << " FinalRecHit " << iidd << " TKlayers " << TKlayers << " xloc " << xloc << " yloc " << yloc
837  << " module " << iidd << " matched/stereo/rphi = " << ((iidd & 0x3) == 0) << "/"
838  << ((iidd & 0x3) == 1) << "/" << ((iidd & 0x3) == 2) << endl;
839  ModIsBad = 1;
840  traj->Fill();
841 
842  LogDebug("SiStripHitEfficiency:HitEff") << " RPhi Error " << sqrt(xErr * xErr + yErr * yErr)
843  << " ErrorX " << xErr << " yErr " << yErr << endl;
844  }
845  LogDebug("SiStripHitEfficiency:HitEff") << "after good location check" << endl;
846  }
847  LogDebug("SiStripHitEfficiency:HitEff") << "after list of clusters" << endl;
848  }
849  LogDebug("SiStripHitEfficiency:HitEff") << "After layers=TKLayers if" << endl;
850  }
851  LogDebug("SiStripHitEfficiency:HitEff") << "After looping over TrajAtValidHit list" << endl;
852  }
853  LogDebug("SiStripHitEfficiency:HitEff") << "end TMeasurement loop" << endl;
854  }
855  LogDebug("SiStripHitEfficiency:HitEff") << "end of trajectories loop" << endl;
856  }
857 }
std::pair< LocalPoint, LocalError > LocalValues
static constexpr auto TEC
virtual int nstrips() const =0
float TrajGlbZ
Definition: HitEff.h:114
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: HitEff.h:89
float ClusterLocErrX
Definition: HitEff.h:117
float ClusterLocErrY
Definition: HitEff.h:117
void setCluster(const SiStripCluster &cluster, int detId)
float TrajGlbY
Definition: HitEff.h:114
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: HitEff.h:85
float TrajLocX
Definition: HitEff.h:115
float ResXSig
Definition: HitEff.h:118
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:74
TString subdetector
float instLumi
Definition: HitEff.h:128
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:77
T const * product() const
Definition: Handle.h:70
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:66
float ClusterStoN
Definition: HitEff.h:117
data_type const * const_iterator
Definition: DetSetNew.h:31
float TrajLocErrX
Definition: HitEff.h:116
float commonMode
Definition: HitEff.h:129
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
Definition: HitEff.h:88
key_type key() const
Accessor for product key.
Definition: Ref.h:250
Definition: Electron.h:6
missing
Definition: combine.py:5
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:81
unsigned int bunchx
Definition: HitEff.h:126
static std::string const input
Definition: EdmProvDump.cc:47
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: HitEff.h:86
const_iterator end() const
last iterator over the map (read only)
float signalOverNoise() const
bool highPurity
Definition: HitEff.h:123
size_type size() const
Return the number of contained DetSets.
Definition: DetSetVector.h:259
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:79
unsigned int tecSide(const DetId &id) const
float PU
Definition: HitEff.h:128
int nHits
Definition: HitEff.h:124
unsigned int Id
Definition: HitEff.h:120
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:76
T sqrt(T t)
Definition: SSEVec.h:19
float timeAtIpInOutErr
Definition: MuonTime.h:14
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
Definition: HitEff.h:92
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:80
int nDof
number of muon stations used
Definition: MuonTime.h:9
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
unsigned int trajHitValid
Definition: HitEff.h:126
unsigned int ModIsBad
Definition: HitEff.h:119
float TrajGlbX
Definition: HitEff.h:114
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTkToken_
Definition: HitEff.h:90
bool withinAcceptance
Definition: HitEff.h:122
unsigned int run
Definition: HitEff.h:126
float ClusterLocX
Definition: HitEff.h:117
ii
Definition: cuy.py:589
int events
Definition: HitEff.h:97
float TrajLocAngleX
Definition: HitEff.h:115
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2MeasurementEstimatorToken_
Definition: HitEff.h:91
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetId.h:17
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
bool useLastMeas_
Definition: HitEff.h:73
unsigned int whatlayer
Definition: HitEff.h:102
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken_
Definition: HitEff.h:87
virtual const std::array< const float, 4 > parameters() const
unsigned int trackMultiplicityCut_
Definition: HitEff.h:71
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20
unsigned int layers
Definition: HitEff.h:100
float pT
Definition: HitEff.h:125
float ResX
Definition: HitEff.h:118
bool addLumi_
Definition: HitEff.h:68
bool isValid() const
Definition: HandleBase.h:70
unsigned int SiStripQualBad
Definition: HitEff.h:121
bool addCommonMode_
Definition: HitEff.h:69
const_iterator begin() const
first iterator over the map (read only)
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:78
fixed size matrix
HLT enums.
float TrajLocErrY
Definition: HitEff.h:116
float TrajLocAngleY
Definition: HitEff.h:115
size_type size() const
Definition: EDCollection.h:82
bool cutOnTracks_
Definition: HitEff.h:70
bool useFirstMeas_
Definition: HitEff.h:72
float ClusterLocY
Definition: HitEff.h:117
void initEvent(const edm::EventSetup &iSetup)
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
tmp
align.sh
Definition: createJobs.py:716
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:63
TTree * traj
Definition: HitEff.h:96
virtual float width() const =0
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:64
float timeAtIpInOut
Definition: MuonTime.h:13
int EventTrackCKF
Definition: HitEff.h:97
float TrajLocY
Definition: HitEff.h:115
ConstRecHitPointer const & recHit() const
#define LogDebug(id)
short getBadApvs(uint32_t detid) const
const Bounds & bounds() const
Definition: Surface.h:87

◆ beginJob()

void HitEff::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 107 of file HitEff.cc.

References addCommonMode_, addLumi_, bunchx, hltPixelTracks_cff::chi2, ClusterLocErrX, ClusterLocErrY, ClusterLocX, ClusterLocY, ClusterStoN, commonMode, compSettings, events, EventTrackCKF, compareTotals::fs, highPurity, Id, instLumi, ModIsBad, nHits, AlCaHLTBitMon_ParallelJobs::p, pT, PU, ResX, ResXSig, run, SiStripQualBad, tquality, traj, TrajGlbX, TrajGlbY, TrajGlbZ, trajHitValid, TrajLocAngleX, TrajLocAngleY, TrajLocErrX, TrajLocErrY, TrajLocX, TrajLocY, whatlayer, and withinAcceptance.

107  {
109  if (compSettings > 0) {
110  edm::LogInfo("SiStripHitEfficiency:HitEff") << "the compressions settings are:" << compSettings << std::endl;
111  fs->file().SetCompressionSettings(compSettings);
112  }
113 
114  traj = fs->make<TTree>("traj", "tree of trajectory positions");
115 #ifdef ExtendedCALIBTree
116  traj->Branch("timeDT", &timeDT, "timeDT/F");
117  traj->Branch("timeDTErr", &timeDTErr, "timeDTErr/F");
118  traj->Branch("timeDTDOF", &timeDTDOF, "timeDTDOF/I");
119  traj->Branch("timeECAL", &timeECAL, "timeECAL/F");
120  traj->Branch("dedx", &dedx, "dedx/F");
121  traj->Branch("dedxNOM", &dedxNOM, "dedxNOM/I");
122  traj->Branch("nLostHits", &nLostHits, "nLostHits/I");
123  traj->Branch("chi2", &chi2, "chi2/F");
124  traj->Branch("p", &p, "p/F");
125 #endif
126  traj->Branch("TrajGlbX", &TrajGlbX, "TrajGlbX/F");
127  traj->Branch("TrajGlbY", &TrajGlbY, "TrajGlbY/F");
128  traj->Branch("TrajGlbZ", &TrajGlbZ, "TrajGlbZ/F");
129  traj->Branch("TrajLocX", &TrajLocX, "TrajLocX/F");
130  traj->Branch("TrajLocY", &TrajLocY, "TrajLocY/F");
131  traj->Branch("TrajLocAngleX", &TrajLocAngleX, "TrajLocAngleX/F");
132  traj->Branch("TrajLocAngleY", &TrajLocAngleY, "TrajLocAngleY/F");
133  traj->Branch("TrajLocErrX", &TrajLocErrX, "TrajLocErrX/F");
134  traj->Branch("TrajLocErrY", &TrajLocErrY, "TrajLocErrY/F");
135  traj->Branch("ClusterLocX", &ClusterLocX, "ClusterLocX/F");
136  traj->Branch("ClusterLocY", &ClusterLocY, "ClusterLocY/F");
137  traj->Branch("ClusterLocErrX", &ClusterLocErrX, "ClusterLocErrX/F");
138  traj->Branch("ClusterLocErrY", &ClusterLocErrY, "ClusterLocErrY/F");
139  traj->Branch("ClusterStoN", &ClusterStoN, "ClusterStoN/F");
140  traj->Branch("ResX", &ResX, "ResX/F");
141  traj->Branch("ResXSig", &ResXSig, "ResXSig/F");
142  traj->Branch("ModIsBad", &ModIsBad, "ModIsBad/i");
143  traj->Branch("SiStripQualBad", &SiStripQualBad, "SiStripQualBad/i");
144  traj->Branch("withinAcceptance", &withinAcceptance, "withinAcceptance/O");
145  traj->Branch("nHits", &nHits, "nHits/I");
146  traj->Branch("pT", &pT, "pT/F");
147  traj->Branch("highPurity", &highPurity, "highPurity/O");
148  traj->Branch("trajHitValid", &trajHitValid, "trajHitValid/i");
149  traj->Branch("Id", &Id, "Id/i");
150  traj->Branch("run", &run, "run/i");
151  traj->Branch("event", &event, "event/i");
152  traj->Branch("layer", &whatlayer, "layer/i");
153  traj->Branch("tquality", &tquality, "tquality/I");
154  traj->Branch("bunchx", &bunchx, "bunchx/I");
155  if (addLumi_) {
156  traj->Branch("instLumi", &instLumi, "instLumi/F");
157  traj->Branch("PU", &PU, "PU/F");
158  }
159  if (addCommonMode_)
160  traj->Branch("commonMode", &commonMode, "commonMode/F");
161 
162  events = 0;
163  EventTrackCKF = 0;
164 }
float TrajGlbZ
Definition: HitEff.h:114
float ClusterLocErrX
Definition: HitEff.h:117
float ClusterLocErrY
Definition: HitEff.h:117
float TrajGlbY
Definition: HitEff.h:114
float TrajLocX
Definition: HitEff.h:115
float ResXSig
Definition: HitEff.h:118
int compSettings
Definition: HitEff.h:99
float instLumi
Definition: HitEff.h:128
float ClusterStoN
Definition: HitEff.h:117
float TrajLocErrX
Definition: HitEff.h:116
float commonMode
Definition: HitEff.h:129
unsigned int bunchx
Definition: HitEff.h:126
bool highPurity
Definition: HitEff.h:123
float PU
Definition: HitEff.h:128
int nHits
Definition: HitEff.h:124
unsigned int Id
Definition: HitEff.h:120
unsigned int trajHitValid
Definition: HitEff.h:126
unsigned int ModIsBad
Definition: HitEff.h:119
float TrajGlbX
Definition: HitEff.h:114
bool withinAcceptance
Definition: HitEff.h:122
unsigned int run
Definition: HitEff.h:126
float ClusterLocX
Definition: HitEff.h:117
int events
Definition: HitEff.h:97
float TrajLocAngleX
Definition: HitEff.h:115
Log< level::Info, false > LogInfo
unsigned int whatlayer
Definition: HitEff.h:102
float pT
Definition: HitEff.h:125
float ResX
Definition: HitEff.h:118
bool addLumi_
Definition: HitEff.h:68
unsigned int SiStripQualBad
Definition: HitEff.h:121
bool addCommonMode_
Definition: HitEff.h:69
float TrajLocErrY
Definition: HitEff.h:116
float TrajLocAngleY
Definition: HitEff.h:115
float ClusterLocY
Definition: HitEff.h:117
TTree * traj
Definition: HitEff.h:96
int EventTrackCKF
Definition: HitEff.h:97
float TrajLocY
Definition: HitEff.h:115
int tquality
Definition: HitEff.h:127
Definition: event.py:1

◆ endJob()

void HitEff::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 859 of file HitEff.cc.

References events, EventTrackCKF, LogDebug, and traj.

Referenced by o2olib.O2ORunMgr::executeJob().

859  {
860  traj->GetDirectory()->cd();
861  traj->Write();
862 
863  LogDebug("SiStripHitEfficiency:HitEff") << " Events Analysed " << events << endl;
864  LogDebug("SiStripHitEfficiency:HitEff") << " Number Of Tracked events " << EventTrackCKF << endl;
865 }
int events
Definition: HitEff.h:97
TTree * traj
Definition: HitEff.h:96
int EventTrackCKF
Definition: HitEff.h:97
#define LogDebug(id)

Member Data Documentation

◆ addCommonMode_

bool HitEff::addCommonMode_
private

Definition at line 69 of file HitEff.h.

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

◆ addLumi_

bool HitEff::addLumi_
private

Definition at line 68 of file HitEff.h.

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

◆ bunchx

unsigned int HitEff::bunchx
private

Definition at line 126 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ chi2MeasurementEstimatorToken_

const edm::ESGetToken<Chi2MeasurementEstimatorBase, TrackingComponentsRecord> HitEff::chi2MeasurementEstimatorToken_
private

Definition at line 91 of file HitEff.h.

Referenced by analyze().

◆ ClusterLocErrX

float HitEff::ClusterLocErrX
private

Definition at line 117 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ ClusterLocErrY

float HitEff::ClusterLocErrY
private

Definition at line 117 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ ClusterLocX

float HitEff::ClusterLocX
private

Definition at line 117 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ ClusterLocY

float HitEff::ClusterLocY
private

Definition at line 117 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ clusters_token_

const edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > HitEff::clusters_token_
private

Definition at line 79 of file HitEff.h.

Referenced by analyze().

◆ ClusterStoN

float HitEff::ClusterStoN
private

Definition at line 117 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ combinatorialTracks_token_

const edm::EDGetTokenT<reco::TrackCollection> HitEff::combinatorialTracks_token_
private

Definition at line 76 of file HitEff.h.

Referenced by analyze().

◆ commonMode

float HitEff::commonMode
private

Definition at line 129 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ commonModeToken_

const edm::EDGetTokenT<edm::DetSetVector<SiStripRawDigi> > HitEff::commonModeToken_
private

Definition at line 64 of file HitEff.h.

Referenced by analyze().

◆ compSettings

int HitEff::compSettings
private

Definition at line 99 of file HitEff.h.

Referenced by beginJob(), and HitEff().

◆ conf_

edm::ParameterSet HitEff::conf_
private

Definition at line 94 of file HitEff.h.

Referenced by HitEff().

◆ cpeToken_

Definition at line 87 of file HitEff.h.

Referenced by analyze().

◆ cutOnTracks_

bool HitEff::cutOnTracks_
private

Definition at line 70 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ DEBUG

bool HitEff::DEBUG
private

Definition at line 101 of file HitEff.h.

Referenced by HitEff().

◆ digis_token_

const edm::EDGetTokenT<DetIdCollection> HitEff::digis_token_
private

Definition at line 80 of file HitEff.h.

Referenced by analyze().

◆ event

unsigned int HitEff::event
private

◆ events

int HitEff::events
private

◆ EventTrackCKF

int HitEff::EventTrackCKF
private

Definition at line 97 of file HitEff.h.

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

◆ geomToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> HitEff::geomToken_
private

Definition at line 86 of file HitEff.h.

Referenced by analyze().

◆ highPurity

bool HitEff::highPurity
private

Definition at line 123 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ Id

unsigned int HitEff::Id
private

Definition at line 120 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ instLumi

float HitEff::instLumi
private

Definition at line 128 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ layers

unsigned int HitEff::layers
private

Definition at line 100 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ magFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> HitEff::magFieldToken_
private

Definition at line 89 of file HitEff.h.

Referenced by analyze().

◆ measurementTkToken_

const edm::ESGetToken<MeasurementTracker, CkfComponentsRecord> HitEff::measurementTkToken_
private

Definition at line 90 of file HitEff.h.

Referenced by analyze().

◆ ModIsBad

unsigned int HitEff::ModIsBad
private

Definition at line 119 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ nHits

int HitEff::nHits
private

Definition at line 124 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ propagatorToken_

const edm::ESGetToken<Propagator, TrackingComponentsRecord> HitEff::propagatorToken_
private

Definition at line 92 of file HitEff.h.

Referenced by analyze().

◆ pT

float HitEff::pT
private

Definition at line 125 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ PU

float HitEff::PU
private

◆ ResX

float HitEff::ResX
private

Definition at line 118 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ ResXSig

float HitEff::ResXSig
private

Definition at line 118 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ run

unsigned int HitEff::run
private

◆ scalerToken_

const edm::EDGetTokenT<LumiScalersCollection> HitEff::scalerToken_
private

Definition at line 63 of file HitEff.h.

Referenced by analyze().

◆ siStripClusterInfo_

SiStripClusterInfo HitEff::siStripClusterInfo_
private

Definition at line 66 of file HitEff.h.

Referenced by analyze().

◆ SiStripQualBad

unsigned int HitEff::SiStripQualBad
private

Definition at line 121 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ siStripQualityToken_

const edm::ESGetToken<SiStripQuality, SiStripQualityRcd> HitEff::siStripQualityToken_
private

Definition at line 88 of file HitEff.h.

Referenced by analyze().

◆ topoToken_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> HitEff::topoToken_
private

Definition at line 85 of file HitEff.h.

Referenced by analyze().

◆ tquality

int HitEff::tquality
private

Definition at line 127 of file HitEff.h.

Referenced by beginJob().

◆ trackerEvent_token_

const edm::EDGetTokenT<MeasurementTrackerEvent> HitEff::trackerEvent_token_
private

Definition at line 81 of file HitEff.h.

Referenced by analyze().

◆ trackMultiplicityCut_

unsigned int HitEff::trackMultiplicityCut_
private

Definition at line 71 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ traj

TTree* HitEff::traj
private

Definition at line 96 of file HitEff.h.

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

◆ trajectories_token_

const edm::EDGetTokenT<std::vector<Trajectory> > HitEff::trajectories_token_
private

Definition at line 77 of file HitEff.h.

Referenced by analyze().

◆ TrajGlbX

float HitEff::TrajGlbX
private

Definition at line 114 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajGlbY

float HitEff::TrajGlbY
private

Definition at line 114 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajGlbZ

float HitEff::TrajGlbZ
private

Definition at line 114 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ trajHitValid

unsigned int HitEff::trajHitValid
private

Definition at line 126 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocAngleX

float HitEff::TrajLocAngleX
private

Definition at line 115 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocAngleY

float HitEff::TrajLocAngleY
private

Definition at line 115 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocErrX

float HitEff::TrajLocErrX
private

Definition at line 116 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocErrY

float HitEff::TrajLocErrY
private

Definition at line 116 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocX

float HitEff::TrajLocX
private

Definition at line 115 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ TrajLocY

float HitEff::TrajLocY
private

Definition at line 115 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ trajTrackAsso_token_

const edm::EDGetTokenT<TrajTrackAssociationCollection> HitEff::trajTrackAsso_token_
private

Definition at line 78 of file HitEff.h.

Referenced by analyze().

◆ useAllHitsFromTracksWithMissingHits_

bool HitEff::useAllHitsFromTracksWithMissingHits_
private

Definition at line 74 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ useFirstMeas_

bool HitEff::useFirstMeas_
private

Definition at line 72 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ useLastMeas_

bool HitEff::useLastMeas_
private

Definition at line 73 of file HitEff.h.

Referenced by analyze(), and HitEff().

◆ whatlayer

unsigned int HitEff::whatlayer
private

Definition at line 102 of file HitEff.h.

Referenced by analyze(), and beginJob().

◆ withinAcceptance

bool HitEff::withinAcceptance
private

Definition at line 122 of file HitEff.h.

Referenced by analyze(), and beginJob().