CMS 3D CMS Logo

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

#include <DQM/TrackerMonitorTrack/src/TrackingMonitor.cc>

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

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void beginJob (void)
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &eSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
virtual void endRun (const edm::Run &, const edm::EventSetup &) override
 
virtual void setMaxMinBin (std::vector< double > &, std::vector< double > &, std::vector< int > &, double, double, int, double, double, int)
 
virtual void setNclus (const edm::Event &, std::vector< int > &)
 
 TrackingMonitor (const edm::ParameterSet &)
 
 ~TrackingMonitor ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 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 ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void doProfileX (TH2 *th2, MonitorElement *me)
 
void doProfileX (MonitorElement *th2m, MonitorElement *me)
 

Private Attributes

std::string AlgoName_
 
edm::EDGetTokenT< edm::View< reco::Track > > allTrackToken_
 
edm::InputTag bsSrc_
 
edm::EDGetTokenT< reco::BeamSpotbsSrcToken_
 
std::string builderName
 
std::vector< std::string > ClusterLabels
 
edm::ParameterSet conf_
 
StringCutObjectSelector< reco::Track, true > denSelection_
 
bool doAllPlots
 
bool doAllSeedPlots
 
bool doDCAPlots_
 
bool doFractionPlot_
 
bool doGeneralPropertiesPlots_
 
bool doHitPropertiesPlots_
 
bool doLumiAnalysis
 
bool doPlotsVsBX_
 
bool doPlotsVsBXlumi_
 
bool doPlotsVsGoodPVtx_
 
bool doPlotsVsLUMI_
 
bool doProfilesVsLS_
 
bool doPUmonitoring_
 
bool doSeedLumiAnalysis_
 
bool doSeedNumberPlot
 
bool doSeedVsClusterPlot
 
bool doTkCandPlots
 
bool doTrackerSpecific_
 
MonitorElementFractionOfGoodTracks
 
GenericTriggerEventFlaggenTriggerEventFlag_
 
MonitorElementGoodTracksFractionVsBX
 
MonitorElementGoodTracksFractionVsGoodPVtx
 
MonitorElementGoodTracksFractionVsLS
 
MonitorElementGoodTracksFractionVsLUMI
 
std::string histname
 
edm::EDGetTokenT< LumiScalersCollectionlumiscalersToken_
 
MonitorElementNumberEventsOfVsBX
 
MonitorElementNumberEventsOfVsGoodPVtx
 
MonitorElementNumberEventsOfVsLS
 
MonitorElementNumberEventsOfVsLUMI
 
MonitorElementNumberOfGoodPVtxVsBX
 
MonitorElementNumberOfGoodPVtxVsLS
 
MonitorElementNumberOfGoodPVtxVsLUMI
 
MonitorElementNumberOfGoodPVtxWO0VsBX
 
MonitorElementNumberOfGoodPVtxWO0VsLS
 
MonitorElementNumberOfGoodPVtxWO0VsLUMI
 
MonitorElementNumberOfMeanLayersPerTrack
 
MonitorElementNumberOfMeanRecHitsPerTrack
 
MonitorElementNumberOfPixelClustersVsGoodPVtx
 
MonitorElementNumberOfPixelClustersVsLUMI
 
MonitorElementNumberOfPVtxVsGoodPVtx
 
MonitorElementNumberOfRecHitsPerTrackVsBX
 
MonitorElementNumberOfRecHitsPerTrackVsGoodPVtx
 
MonitorElementNumberOfRecHitsPerTrackVsLS
 
MonitorElementNumberOfRecHitsPerTrackVsLUMI
 
MonitorElementNumberOfSeeds
 
MonitorElementNumberOfSeeds_lumiFlag
 
MonitorElementNumberOfStripClustersVsGoodPVtx
 
MonitorElementNumberOfStripClustersVsLUMI
 
MonitorElementNumberOfTrackCandidates
 
MonitorElementNumberOfTracks
 
MonitorElementNumberOfTracks_lumiFlag
 
MonitorElementNumberOfTracksVsBX
 
MonitorElementNumberOfTracksVsBXlumi
 
MonitorElementNumberOfTracksVsGoodPVtx
 
MonitorElementNumberOfTracksVsLS
 
MonitorElementNumberOfTracksVsLUMI
 
MonitorElementNumberOfTracksVsPUPVtx
 
MonitorElementNumberOfTrkVsClus
 
std::vector< MonitorElement * > NumberOfTrkVsClusters
 
MonitorElementNumberOfTrkVsPixelClus
 
MonitorElementNumberOfTrkVsStripClus
 
StringCutObjectSelector< reco::Track, true > numSelection_
 
edm::InputTag pixelClusterInputTag_
 
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
 
int pvNDOF_
 
edm::InputTag pvSrc_
 
edm::EDGetTokenT< reco::VertexCollectionpvSrcToken_
 
std::string Quality_
 
bool runTrackBuildingAnalyzerForSeed
 
std::vector< MonitorElement * > SeedsVsClusters
 
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken_
 
edm::InputTag stripClusterInputTag_
 
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersToken_
 
GetLumitheLumiDetails_
 
TrackAnalyzertheTrackAnalyzer
 
TrackBuildingAnalyzertheTrackBuildingAnalyzer
 
edm::ESHandle< TransientTrackingRecHitBuildertheTTRHBuilder
 
std::vector< VertexMonitor * > theVertexMonitor
 
edm::EDGetTokenT< TrackCandidateCollectiontrackCandidateToken_
 
edm::EDGetTokenT< edm::View< reco::Track > > trackToken_
 

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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
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::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (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)
 
- 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)
 

Detailed Description

Monitoring source for general quantities related to tracks.

Definition at line 49 of file TrackingMonitor.h.

Constructor & Destructor Documentation

TrackingMonitor::TrackingMonitor ( const edm::ParameterSet iConfig)
explicit

Definition at line 40 of file TrackingMonitor.cc.

References AlgoName_, allTrackToken_, bsSrc_, bsSrcToken_, EnergyCorrector::c, conf_, edm::EDConsumerBase::consumesCollector(), doFractionPlot_, doPlotsVsBX_, doPlotsVsBXlumi_, doPlotsVsGoodPVtx_, doPlotsVsLUMI_, doPUmonitoring_, edm::ParameterSet::getParameter(), mps_fire::i, edm::InputTag::label(), lumiscalersToken_, pixelClusterInputTag_, pixelClustersToken_, pvSrc_, pvSrcToken_, Quality_, seedToken_, AlCaHLTBitMon_QueryRunRegistry::string, stripClusterInputTag_, stripClustersToken_, theLumiDetails_, theTrackAnalyzer, theVertexMonitor, trackCandidateToken_, findElectronsInSiStrips_cfi::trackProducer, and trackToken_.

41  : conf_ ( iConfig )
46  // , NumberOfGoodTracks(NULL)
51  // , NumberOfGoodTrkVsClus(NULL)
54  // , NumberOfGoodTracksVsLS(NULL)
56  // , GoodTracksNumberOfRecHitsPerTrackVsLS(NULL)
57  // ADD by Mia for PU monitoring
58  // vertex plots to be moved in ad hoc class
85  // , NumberOfGoodTracks_lumiFlag(NULL)
86 
87  , builderName ( conf_.getParameter<std::string>("TTRHBuilder"))
88  , doTrackerSpecific_ ( conf_.getParameter<bool>("doTrackerSpecific") )
89  , doLumiAnalysis ( conf_.getParameter<bool>("doLumiAnalysis"))
90  , doProfilesVsLS_ ( conf_.getParameter<bool>("doProfilesVsLS"))
91  , doAllPlots ( conf_.getParameter<bool>("doAllPlots"))
92  , doGeneralPropertiesPlots_( conf_.getParameter<bool>("doGeneralPropertiesPlots"))
93  , doHitPropertiesPlots_ ( conf_.getParameter<bool>("doHitPropertiesPlots"))
94  , doPUmonitoring_ ( conf_.getParameter<bool>("doPUmonitoring") )
95  , genTriggerEventFlag_(new GenericTriggerEventFlag(iConfig.getParameter<edm::ParameterSet>("genericTriggerEventPSet"),consumesCollector(), *this))
98  , pvNDOF_ ( conf_.getParameter<int> ("pvNDOF") )
99 {
100 
103 
104  // input tags for collections from the configuration
105  bsSrc_ = conf_.getParameter<edm::InputTag>("beamSpot");
106  pvSrc_ = conf_.getParameter<edm::InputTag>("primaryVertex");
107  bsSrcToken_ = consumes<reco::BeamSpot>(bsSrc_);
108  pvSrcToken_ = mayConsume<reco::VertexCollection>(pvSrc_);
109 
110  lumiscalersToken_ = consumes<LumiScalersCollection>(conf_.getParameter<edm::InputTag>("scal") );
111 
112  edm::InputTag alltrackProducer = conf_.getParameter<edm::InputTag>("allTrackProducer");
114  edm::InputTag tcProducer = conf_.getParameter<edm::InputTag>("TCProducer");
115  edm::InputTag seedProducer = conf_.getParameter<edm::InputTag>("SeedProducer");
116  allTrackToken_ = consumes<edm::View<reco::Track> >(alltrackProducer);
117  trackToken_ = consumes<edm::View<reco::Track> >(trackProducer);
118  trackCandidateToken_ = consumes<TrackCandidateCollection>(tcProducer);
119  seedToken_ = consumes<edm::View<TrajectorySeed> >(seedProducer);
120 
123  stripClustersToken_ = mayConsume<edmNew::DetSetVector<SiStripCluster> > (stripClusterInputTag_);
124  pixelClustersToken_ = mayConsume<edmNew::DetSetVector<SiPixelCluster> > (pixelClusterInputTag_);
125 
126  doFractionPlot_ = true;
127  if (alltrackProducer.label()==trackProducer.label()) doFractionPlot_ = false;
128 
129  Quality_ = conf_.getParameter<std::string>("Quality");
130  AlgoName_ = conf_.getParameter<std::string>("AlgoName");
131 
132  // get flag from the configuration
133  doPlotsVsBXlumi_ = conf_.getParameter<bool>("doPlotsVsBXlumi");
134  if ( doPlotsVsBXlumi_ )
135  theLumiDetails_ = new GetLumi( iConfig.getParameter<edm::ParameterSet>("BXlumiSetup"), c );
136  doPlotsVsGoodPVtx_ = conf_.getParameter<bool>("doPlotsVsGoodPVtx");
137  doPlotsVsLUMI_ = conf_.getParameter<bool>("doPlotsVsLUMI");
138  doPlotsVsBX_ = conf_.getParameter<bool>("doPlotsVsBX");
139 
140  if ( doPUmonitoring_ ) {
141 
142  std::vector<edm::InputTag> primaryVertexInputTags = conf_.getParameter<std::vector<edm::InputTag> >("primaryVertexInputTags");
143  std::vector<edm::InputTag> selPrimaryVertexInputTags = conf_.getParameter<std::vector<edm::InputTag> >("selPrimaryVertexInputTags");
144  std::vector<std::string> pvLabels = conf_.getParameter<std::vector<std::string> > ("pvLabels");
145 
146  if (primaryVertexInputTags.size()==pvLabels.size() and primaryVertexInputTags.size()==selPrimaryVertexInputTags.size()) {
147  for (size_t i=0; i<primaryVertexInputTags.size(); i++) {
148  edm::InputTag iPVinputTag = primaryVertexInputTags[i];
149  edm::InputTag iSelPVinputTag = selPrimaryVertexInputTags[i];
150  std::string iPVlabel = pvLabels[i];
151 
152  theVertexMonitor.push_back(new VertexMonitor(conf_,iPVinputTag,iSelPVinputTag,iPVlabel,c) );
153  }
154  }
155  }
156 
157 }
edm::EDGetTokenT< edm::View< reco::Track > > trackToken_
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken_
MonitorElement * FractionOfGoodTracks
MonitorElement * NumberOfTracksVsBX
TrackAnalyzer * theTrackAnalyzer
MonitorElement * NumberOfRecHitsPerTrackVsBX
MonitorElement * NumberOfRecHitsPerTrackVsLUMI
edm::ParameterSet conf_
MonitorElement * NumberEventsOfVsGoodPVtx
GetLumi * theLumiDetails_
edm::InputTag pvSrc_
#define NULL
Definition: scimark2.h:8
MonitorElement * GoodTracksFractionVsLUMI
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MonitorElement * NumberOfPVtxVsGoodPVtx
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
MonitorElement * NumberOfStripClustersVsLUMI
MonitorElement * GoodTracksFractionVsLS
std::string Quality_
MonitorElement * NumberOfGoodPVtxWO0VsLUMI
edm::InputTag bsSrc_
MonitorElement * NumberOfSeeds
MonitorElement * NumberOfGoodPVtxVsLS
edm::EDGetTokenT< edm::View< reco::Track > > allTrackToken_
MonitorElement * NumberOfGoodPVtxVsLUMI
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
MonitorElement * NumberOfTracksVsLS
MonitorElement * NumberOfGoodPVtxWO0VsLS
MonitorElement * NumberOfTracksVsPUPVtx
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * NumberEventsOfVsBX
MonitorElement * NumberOfStripClustersVsGoodPVtx
MonitorElement * NumberOfPixelClustersVsGoodPVtx
MonitorElement * GoodTracksFractionVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsGoodPVtx
MonitorElement * NumberOfPixelClustersVsLUMI
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTracksVsBXlumi
edm::InputTag stripClusterInputTag_
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
std::string AlgoName_
edm::EDGetTokenT< TrackCandidateCollection > trackCandidateToken_
MonitorElement * NumberOfMeanLayersPerTrack
StringCutObjectSelector< reco::Track, true > denSelection_
StringCutObjectSelector< reco::Track, true > numSelection_
GenericTriggerEventFlag * genTriggerEventFlag_
MonitorElement * GoodTracksFractionVsBX
edm::InputTag pixelClusterInputTag_
std::string const & label() const
Definition: InputTag.h:36
MonitorElement * NumberOfSeeds_lumiFlag
MonitorElement * NumberOfTrackCandidates
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersToken_
MonitorElement * NumberOfGoodPVtxVsBX
MonitorElement * NumberEventsOfVsLUMI
MonitorElement * NumberOfTracks_lumiFlag
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
MonitorElement * NumberOfTracks
edm::EDGetTokenT< reco::VertexCollection > pvSrcToken_
MonitorElement * NumberEventsOfVsLS
MonitorElement * NumberOfTracksVsLUMI
MonitorElement * NumberOfGoodPVtxWO0VsBX
std::string builderName
TrackingMonitor::~TrackingMonitor ( )

Definition at line 160 of file TrackingMonitor.cc.

References doPUmonitoring_, genTriggerEventFlag_, mps_fire::i, theTrackAnalyzer, theTrackBuildingAnalyzer, and theVertexMonitor.

161 {
164  if ( doPUmonitoring_ )
165  for (size_t i=0; i<theVertexMonitor.size(); i++)
166  if (theVertexMonitor[i]) delete theVertexMonitor[i];
168 }
TrackAnalyzer * theTrackAnalyzer
std::vector< VertexMonitor * > theVertexMonitor
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
GenericTriggerEventFlag * genTriggerEventFlag_

Member Function Documentation

void TrackingMonitor::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Definition at line 689 of file TrackingMonitor.cc.

References funct::abs(), GenericTriggerEventFlag::accept(), allTrackToken_, TrackBuildingAnalyzer::analyze(), TrackAnalyzer::analyze(), edm::View< T >::begin(), bsSrcToken_, builderName, edm::EventBase::bunchCrossing(), ClusterLabels, compare(), denSelection_, doAllPlots, doAllSeedPlots, doFractionPlot_, doGeneralPropertiesPlots_, doLumiAnalysis, doPlotsVsBX_, doPlotsVsBXlumi_, doPlotsVsGoodPVtx_, doPlotsVsLUMI_, doProfilesVsLS_, doPUmonitoring_, doSeedLumiAnalysis_, doSeedNumberPlot, doSeedVsClusterPlot, doTkCandPlots, doTrackerSpecific_, edm::View< T >::end(), MonitorElement::Fill(), HcalObjRepresent::Fill(), cropTnPTrees::frac, FractionOfGoodTracks, genTriggerEventFlag_, edm::EventSetup::get(), edm::Event::getByToken(), GetLumi::getValue(), GoodTracksFractionVsBX, GoodTracksFractionVsGoodPVtx, GoodTracksFractionVsLS, GoodTracksFractionVsLUMI, mps_fire::i, edm::EventBase::id(), reco::Vertex::isFake(), edm::HandleBase::isValid(), edm::EventID::luminosityBlock(), lumiscalersToken_, reco::Vertex::ndof(), NumberEventsOfVsBX, NumberEventsOfVsGoodPVtx, NumberEventsOfVsLS, NumberEventsOfVsLUMI, NumberOfGoodPVtxVsBX, NumberOfGoodPVtxVsLS, NumberOfGoodPVtxVsLUMI, NumberOfGoodPVtxWO0VsBX, NumberOfGoodPVtxWO0VsLS, NumberOfGoodPVtxWO0VsLUMI, NumberOfMeanLayersPerTrack, NumberOfMeanRecHitsPerTrack, NumberOfPixelClustersVsGoodPVtx, NumberOfPixelClustersVsLUMI, NumberOfPVtxVsGoodPVtx, NumberOfRecHitsPerTrackVsBX, NumberOfRecHitsPerTrackVsGoodPVtx, NumberOfRecHitsPerTrackVsLS, NumberOfRecHitsPerTrackVsLUMI, NumberOfSeeds, NumberOfSeeds_lumiFlag, NumberOfStripClustersVsGoodPVtx, NumberOfStripClustersVsLUMI, NumberOfTrackCandidates, NumberOfTracks, NumberOfTracks_lumiFlag, NumberOfTracksVsBX, NumberOfTracksVsBXlumi, NumberOfTracksVsGoodPVtx, NumberOfTracksVsLS, NumberOfTracksVsLUMI, NumberOfTracksVsPUPVtx, NumberOfTrkVsClusters, numSelection_, GenericTriggerEventFlag::on(), reco::Vertex::position(), MetAnalyzer::pv(), pvNDOF_, pvSrcToken_, runTrackBuildingAnalyzerForSeed, SurveyInfoScenario_cff::seed, SeedsVsClusters, seedToken_, TrackAnalyzer::setBX(), TrackAnalyzer::setLumi(), setNclus(), TrackAnalyzer::setNumberOfGoodVertices(), edm::View< T >::size(), theLumiDetails_, theTrackAnalyzer, theTrackBuildingAnalyzer, theTTRHBuilder, theVertexMonitor, HiIsolationCommonParameters_cff::track, trackCandidateToken_, findElectronsInSiStrips_cfi::trackCollection, reco::Vertex::tracksSize(), trackToken_, and reco::Vertex::z().

690 {
691 
692  // Filter out events if Trigger Filtering is requested
693  if (genTriggerEventFlag_->on()&& ! genTriggerEventFlag_->accept( iEvent, iSetup) ) return;
694 
695  float lumi = -1.;
697  iEvent.getByToken(lumiscalersToken_, lumiScalers);
698  if ( lumiScalers.isValid() && lumiScalers->size() ) {
699  LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
700  lumi = scalit->instantLumi();
701  } else
702  lumi = -1.;
703 
704  if (doPlotsVsLUMI_ || doAllPlots)
705  NumberEventsOfVsLUMI->Fill(lumi);
706 
707  // Analyse the tracks
708  // if the collection is empty, do not fill anything
709  // ---------------------------------------------------------------------------------//
710 
711  size_t bx = iEvent.bunchCrossing();
712  if ( doPlotsVsBX_ || doAllPlots )
714 
715  // get the track collection
717  iEvent.getByToken(trackToken_, trackHandle);
718 
719  int numberOfTracks_den = 0;
720  edm::Handle<edm::View<reco::Track> > allTrackHandle;
721  iEvent.getByToken(allTrackToken_,allTrackHandle);
722  if (allTrackHandle.isValid()) {
723  for ( edm::View<reco::Track>::const_iterator track = allTrackHandle->begin();
724  track != allTrackHandle->end(); ++track ) {
725 
726  if ( denSelection_(*track) )
727  numberOfTracks_den++;
728  }
729  }
730 
732  iEvent.getByToken(pvSrcToken_, pvHandle );
733  reco::Vertex const * pv0 = nullptr;
734  if (pvHandle.isValid()) {
735  pv0 = &pvHandle->front();
736  //--- pv fake (the pv collection should have size==1 and the pv==beam spot)
737  if ( pv0->isFake() || pv0->tracksSize()==0
738  // definition of goodOfflinePrimaryVertex
739  || pv0->ndof() < pvNDOF_ || pv0->z() > 24.) pv0 = nullptr;
740  }
741 
742 
743  if (trackHandle.isValid()) {
744 
745  int numberOfTracks = trackHandle->size();
746  int numberOfTracks_num = 0;
747  int numberOfTracks_pv0 = 0;
748 
749  const edm::View<reco::Track>& trackCollection = *trackHandle;
750  // calculate the mean # rechits and layers
751  int totalRecHits = 0, totalLayers = 0;
752 
754  theTrackAnalyzer->setBX(iEvent);
755  theTrackAnalyzer->setLumi(iEvent,iSetup);
756  for ( edm::View<reco::Track>::const_iterator track = trackCollection.begin();
757  track != trackCollection.end(); ++track ) {
758 
759  if ( doPlotsVsBX_ || doAllPlots )
760  NumberOfRecHitsPerTrackVsBX->Fill(bx,track->numberOfValidHits());
761  if ( numSelection_(*track) ) {
762  numberOfTracks_num++;
763  if (pv0 && std::abs(track->dz(pv0->position()))<0.15) ++numberOfTracks_pv0;
764  }
765 
766  if ( doProfilesVsLS_ || doAllPlots)
767  NumberOfRecHitsPerTrackVsLS->Fill(static_cast<double>(iEvent.id().luminosityBlock()),track->numberOfValidHits());
768 
769  if (doPlotsVsLUMI_ || doAllPlots)
770  NumberOfRecHitsPerTrackVsLUMI->Fill(lumi,track->numberOfValidHits());
771 
772  totalRecHits += track->numberOfValidHits();
773  totalLayers += track->hitPattern().trackerLayersWithMeasurement();
774 
775  // do analysis per track
776  theTrackAnalyzer->analyze(iEvent, iSetup, *track);
777  }
778 
779  double frac = -1.;
780  // if (numberOfAllTracks > 0) frac = static_cast<double>(numberOfTracks)/static_cast<double>(numberOfAllTracks);
781  if (numberOfTracks_den > 0) frac = static_cast<double>(numberOfTracks_num)/static_cast<double>(numberOfTracks_den);
782 
784  NumberOfTracks -> Fill(numberOfTracks);
785  if ( doPlotsVsBX_ || doAllPlots )
786  NumberOfTracksVsBX -> Fill(bx,numberOfTracks);
787  if (doPlotsVsLUMI_ || doAllPlots)
788  NumberOfTracksVsLUMI -> Fill(lumi,numberOfTracks);
789  if (doFractionPlot_) {
790  FractionOfGoodTracks -> Fill(frac);
791 
792  if (doFractionPlot_) {
793  if ( doPlotsVsBX_ || doAllPlots )
794  GoodTracksFractionVsBX -> Fill(bx, frac);
795  if (doPlotsVsLUMI_ || doAllPlots)
796  GoodTracksFractionVsLUMI -> Fill(lumi,frac);
797  }
798  }
799  if( numberOfTracks > 0 ) {
800  double meanRecHits = static_cast<double>(totalRecHits) / static_cast<double>(numberOfTracks);
801  double meanLayers = static_cast<double>(totalLayers) / static_cast<double>(numberOfTracks);
802  NumberOfMeanRecHitsPerTrack -> Fill(meanRecHits);
803  NumberOfMeanLayersPerTrack -> Fill(meanLayers);
804  }
805  }
806 
807  if ( doProfilesVsLS_ || doAllPlots) {
808  float nLS = static_cast<double>(iEvent.id().luminosityBlock());
809  NumberEventsOfVsLS ->Fill(nLS);
810  NumberOfTracksVsLS ->Fill(nLS,numberOfTracks);
811  if (doFractionPlot_)
812  GoodTracksFractionVsLS->Fill(nLS,frac);
813  }
814 
815  if ( doLumiAnalysis ) {
816  NumberOfTracks_lumiFlag -> Fill(numberOfTracks);
817  }
818 
819 
820  // Analyse the Track Building variables
821  // if the collection is empty, do not fill anything
822  // ---------------------------------------------------------------------------------//
823 
824 
825  // fill the TrackCandidate info
826  if (doTkCandPlots) {
827  // magnetic field
829  iSetup.get<IdealMagneticFieldRecord>().get(theMF);
830 
831  // get the candidate collection
833  iEvent.getByToken( trackCandidateToken_, theTCHandle );
834  const TrackCandidateCollection& theTCCollection = *theTCHandle;
835 
836  if (theTCHandle.isValid()) {
837 
838  // get the beam spot
839  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
840  iEvent.getByToken(bsSrcToken_, recoBeamSpotHandle );
841  const reco::BeamSpot& bs = *recoBeamSpotHandle;
842 
843  NumberOfTrackCandidates->Fill(theTCCollection.size());
845  for( TrackCandidateCollection::const_iterator cand = theTCCollection.begin(); cand != theTCCollection.end(); ++cand) {
846 
847  theTrackBuildingAnalyzer->analyze(iEvent, iSetup, *cand, bs, theMF, theTTRHBuilder);
848  }
849  } else {
850  edm::LogWarning("TrackingMonitor") << "No Track Candidates in the event. Not filling associated histograms";
851  }
852  }
853 
854  //plots for trajectory seeds
855 
857 
858  // get the seed collection
860  iEvent.getByToken(seedToken_, seedHandle );
861  const edm::View<TrajectorySeed>& seedCollection = *seedHandle;
862 
863  // fill the seed info
864  if (seedHandle.isValid()) {
865 
867  NumberOfSeeds->Fill(seedCollection.size());
868  if ( doSeedLumiAnalysis_ )
869  NumberOfSeeds_lumiFlag->Fill(seedCollection.size());
870  }
871 
873 
874  std::vector<int> NClus;
875  setNclus(iEvent,NClus);
876  for (uint i=0; i< ClusterLabels.size(); i++){
877  SeedsVsClusters[i]->Fill(NClus[i],seedCollection.size());
878  }
879  }
880 
882 
883  //here duplication of mag field and be informations is needed to allow seed and track cand histos to be independent
884  // magnetic field
886  iSetup.get<IdealMagneticFieldRecord>().get(theMF);
887 
888  // get the beam spot
889  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
890  iEvent.getByToken(bsSrcToken_, recoBeamSpotHandle );
891  const reco::BeamSpot& bs = *recoBeamSpotHandle;
892 
894  for(size_t i=0; i < seedHandle->size(); ++i) {
895 
897  theTrackBuildingAnalyzer->analyze(iEvent, iSetup, *seed, bs, theMF, theTTRHBuilder);
898  }
899  }
900 
901  } else {
902  edm::LogWarning("TrackingMonitor") << "No Trajectory seeds in the event. Not filling associated histograms";
903  }
904  }
905 
906 
908 
909  std::vector<int> NClus;
910  setNclus(iEvent,NClus);
911  for (uint i=0; i< ClusterLabels.size(); i++) {
912  NumberOfTrkVsClusters[i]->Fill(NClus[i],numberOfTracks);
913  }
914  }
915 
916  if ( doPUmonitoring_ ) {
917 
918  // do vertex monitoring
919  for (size_t i=0; i<theVertexMonitor.size(); i++)
920  theVertexMonitor[i]->analyze(iEvent, iSetup);
921  }
922  if ( doPlotsVsGoodPVtx_ ) {
923 
924  size_t totalNumGoodPV = 0;
925  if (pvHandle.isValid()) {
926 
927  for (reco::VertexCollection::const_iterator pv = pvHandle->begin();
928  pv != pvHandle->end(); ++pv) {
929 
930  //--- pv fake (the pv collection should have size==1 and the pv==beam spot)
931  if (pv->isFake() || pv->tracksSize()==0) continue;
932 
933  // definition of goodOfflinePrimaryVertex
934  if (pv->ndof() < pvNDOF_ || pv->z() > 24.) continue;
935  totalNumGoodPV++;
936  }
937 
938  NumberEventsOfVsGoodPVtx -> Fill( float(totalNumGoodPV) );
939  NumberOfTracksVsGoodPVtx -> Fill( float(totalNumGoodPV), numberOfTracks );
940  if (totalNumGoodPV>1) NumberOfTracksVsPUPVtx-> Fill( totalNumGoodPV-1, double(numberOfTracks-numberOfTracks_pv0)/double(totalNumGoodPV-1) );
941  NumberOfPVtxVsGoodPVtx -> Fill(float(totalNumGoodPV),pvHandle->size());
942 
943  for ( edm::View<reco::Track>::const_iterator track = trackCollection.begin();
944  track != trackCollection.end(); ++track ) {
945 
946  NumberOfRecHitsPerTrackVsGoodPVtx -> Fill(float(totalNumGoodPV), track->numberOfValidHits());
947  }
948 
949  if ( doProfilesVsLS_ || doAllPlots)
950  NumberOfGoodPVtxVsLS->Fill(static_cast<double>(iEvent.id().luminosityBlock()),totalNumGoodPV);
951  if ( doPlotsVsBX_ || doAllPlots )
952  NumberOfGoodPVtxVsBX->Fill(bx, float(totalNumGoodPV));
953 
954  if (doFractionPlot_)
955  GoodTracksFractionVsGoodPVtx->Fill(float(totalNumGoodPV),frac);
956 
957  if ( doPlotsVsLUMI_ || doAllPlots )
958  NumberOfGoodPVtxVsLUMI->Fill(lumi,float(totalNumGoodPV));
959  }
960 
961  std::vector<int> NClus;
962  setNclus(iEvent,NClus);
963  for (uint i=0; i< ClusterLabels.size(); i++){
964  if ( doPlotsVsLUMI_ || doAllPlots ) {
965  if (ClusterLabels[i].compare("Pix") ==0) NumberOfPixelClustersVsLUMI->Fill(lumi,NClus[i]);
966  if (ClusterLabels[i].compare("Strip")==0) NumberOfStripClustersVsLUMI->Fill(lumi,NClus[i]);
967  }
968  if (ClusterLabels[i].compare("Pix") ==0) NumberOfPixelClustersVsGoodPVtx->Fill(float(totalNumGoodPV),NClus[i]);
969  if (ClusterLabels[i].compare("Strip")==0) NumberOfStripClustersVsGoodPVtx->Fill(float(totalNumGoodPV),NClus[i]);
970  }
971 
972  if ( doPlotsVsBXlumi_ ) {
973  double bxlumi = theLumiDetails_->getValue(iEvent);
974  NumberOfTracksVsBXlumi -> Fill( bxlumi, numberOfTracks );
975  }
976 
977  if ( doProfilesVsLS_ || doAllPlots ) if ( totalNumGoodPV != 0 ) NumberOfGoodPVtxWO0VsLS -> Fill(static_cast<double>(iEvent.id().luminosityBlock()),float(totalNumGoodPV));
978  if ( doPlotsVsBX_ || doAllPlots ) if ( totalNumGoodPV != 0 ) NumberOfGoodPVtxWO0VsBX -> Fill(bx, float(totalNumGoodPV));
979  if ( doPlotsVsLUMI_ || doAllPlots ) if ( totalNumGoodPV != 0 ) NumberOfGoodPVtxWO0VsLUMI-> Fill(lumi,float(totalNumGoodPV));
980 
981  } // PU monitoring
982 
983  } // trackHandle is valid
984 
985 }
edm::EDGetTokenT< edm::View< reco::Track > > trackToken_
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken_
bool compare(const P &i, const P &j)
std::vector< MonitorElement * > NumberOfTrkVsClusters
MonitorElement * FractionOfGoodTracks
MonitorElement * NumberOfTracksVsBX
TrackAnalyzer * theTrackAnalyzer
MonitorElement * NumberOfRecHitsPerTrackVsBX
MonitorElement * NumberOfRecHitsPerTrackVsLUMI
virtual void setNclus(const edm::Event &, std::vector< int > &)
MonitorElement * NumberEventsOfVsGoodPVtx
GetLumi * theLumiDetails_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
std::vector< TrackCandidate > TrackCandidateCollection
int bunchCrossing() const
Definition: EventBase.h:66
size_type size() const
MonitorElement * GoodTracksFractionVsLUMI
MonitorElement * NumberOfPVtxVsGoodPVtx
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:40
const Point & position() const
position
Definition: Vertex.h:109
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * NumberOfStripClustersVsLUMI
MonitorElement * GoodTracksFractionVsLS
void setLumi(const edm::Event &, const edm::EventSetup &iSetup)
void Fill(long long x)
double getValue(const edm::Event &)
Definition: GetLumi.cc:64
MonitorElement * NumberOfGoodPVtxWO0VsLUMI
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrajectorySeed &seed, const reco::BeamSpot &bs, const edm::ESHandle< MagneticField > &theMF, const edm::ESHandle< TransientTrackingRecHitBuilder > &theTTRHBuilder)
MonitorElement * NumberOfSeeds
const_iterator begin() const
MonitorElement * NumberOfGoodPVtxVsLS
edm::EDGetTokenT< edm::View< reco::Track > > allTrackToken_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * NumberOfGoodPVtxVsLUMI
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
void setBX(const edm::Event &)
MonitorElement * NumberOfTracksVsLS
def pv(vc)
Definition: MetAnalyzer.py:6
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
MonitorElement * NumberOfGoodPVtxWO0VsLS
double z() const
z coordinate
Definition: Vertex.h:115
MonitorElement * NumberOfTracksVsPUPVtx
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * NumberEventsOfVsBX
bool runTrackBuildingAnalyzerForSeed
MonitorElement * NumberOfStripClustersVsGoodPVtx
bool isValid() const
Definition: HandleBase.h:74
std::vector< MonitorElement * > SeedsVsClusters
MonitorElement * NumberOfPixelClustersVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsLS
MonitorElement * GoodTracksFractionVsGoodPVtx
double ndof() const
Definition: Vertex.h:105
MonitorElement * NumberOfRecHitsPerTrackVsGoodPVtx
MonitorElement * NumberOfPixelClustersVsLUMI
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTracksVsBXlumi
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
bool isFake() const
Definition: Vertex.h:72
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Track &track)
edm::EDGetTokenT< TrackCandidateCollection > trackCandidateToken_
MonitorElement * NumberOfMeanLayersPerTrack
StringCutObjectSelector< reco::Track, true > denSelection_
const T & get() const
Definition: EventSetup.h:56
StringCutObjectSelector< reco::Track, true > numSelection_
GenericTriggerEventFlag * genTriggerEventFlag_
MonitorElement * GoodTracksFractionVsBX
MonitorElement * NumberOfSeeds_lumiFlag
edm::EventID id() const
Definition: EventBase.h:60
edm::ESHandle< TransientTrackingRecHitBuilder > theTTRHBuilder
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
MonitorElement * NumberOfTrackCandidates
const_iterator end() const
MonitorElement * NumberOfGoodPVtxVsBX
MonitorElement * NumberEventsOfVsLUMI
void setNumberOfGoodVertices(const edm::Event &)
MonitorElement * NumberOfTracks_lumiFlag
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
MonitorElement * NumberOfTracks
size_t tracksSize() const
number of tracks
Definition: Vertex.cc:71
edm::EDGetTokenT< reco::VertexCollection > pvSrcToken_
MonitorElement * NumberEventsOfVsLS
MonitorElement * NumberOfTracksVsLUMI
std::vector< std::string > ClusterLabels
MonitorElement * NumberOfGoodPVtxWO0VsBX
std::string builderName
void TrackingMonitor::beginJob ( void  )
virtual

Definition at line 171 of file TrackingMonitor.cc.

172 {
173 
174 
175 }
void TrackingMonitor::beginLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup eSetup 
)
overridevirtual

Definition at line 675 of file TrackingMonitor.cc.

References doAllSeedPlots, doLumiAnalysis, TrackAnalyzer::doReset(), doSeedLumiAnalysis_, doSeedNumberPlot, NumberOfSeeds_lumiFlag, NumberOfTracks_lumiFlag, MonitorElement::Reset(), HcalObjRepresent::Reset(), and theTrackAnalyzer.

675  {
676 
677  if (doLumiAnalysis) {
680  }
682  if ( doSeedLumiAnalysis_ )
684  }
685 }
TrackAnalyzer * theTrackAnalyzer
MonitorElement * NumberOfSeeds_lumiFlag
void Reset(std::vector< TH2F > &depth)
MonitorElement * NumberOfTracks_lumiFlag
void Reset(void)
reset ME (ie. contents, errors, etc)
void TrackingMonitor::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 177 of file TrackingMonitor.cc.

References AlgoName_, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), ClusterLabels, compare(), conf_, doAllPlots, doAllSeedPlots, doFractionPlot_, doGeneralPropertiesPlots_, doLumiAnalysis, doPlotsVsBX_, doPlotsVsBXlumi_, doPlotsVsGoodPVtx_, doPlotsVsLUMI_, doProfilesVsLS_, doPUmonitoring_, doSeedLumiAnalysis_, doSeedNumberPlot, doSeedVsClusterPlot, doTkCandPlots, doTrackerSpecific_, FractionOfGoodTracks, genTriggerEventFlag_, edm::ParameterSet::getParameter(), MonitorElement::getTH1(), GoodTracksFractionVsBX, GoodTracksFractionVsGoodPVtx, GoodTracksFractionVsLS, GoodTracksFractionVsLUMI, histname, mps_fire::i, TrackBuildingAnalyzer::initHisto(), TrackAnalyzer::initHisto(), GenericTriggerEventFlag::initRun(), edm::InputTag::label(), NumberEventsOfVsBX, NumberEventsOfVsGoodPVtx, NumberEventsOfVsLS, NumberEventsOfVsLUMI, NumberOfGoodPVtxVsBX, NumberOfGoodPVtxVsLS, NumberOfGoodPVtxVsLUMI, NumberOfGoodPVtxWO0VsBX, NumberOfGoodPVtxWO0VsLS, NumberOfGoodPVtxWO0VsLUMI, NumberOfMeanLayersPerTrack, NumberOfMeanRecHitsPerTrack, NumberOfPixelClustersVsGoodPVtx, NumberOfPixelClustersVsLUMI, NumberOfPVtxVsGoodPVtx, NumberOfRecHitsPerTrackVsBX, NumberOfRecHitsPerTrackVsGoodPVtx, NumberOfRecHitsPerTrackVsLS, NumberOfRecHitsPerTrackVsLUMI, NumberOfSeeds, NumberOfSeeds_lumiFlag, NumberOfStripClustersVsGoodPVtx, NumberOfStripClustersVsLUMI, NumberOfTrackCandidates, NumberOfTracks, NumberOfTracks_lumiFlag, NumberOfTracksVsBX, NumberOfTracksVsBXlumi, NumberOfTracksVsGoodPVtx, NumberOfTracksVsLS, NumberOfTracksVsLUMI, NumberOfTracksVsPUPVtx, NumberOfTrkVsClusters, GenericTriggerEventFlag::on(), Quality_, runTrackBuildingAnalyzerForSeed, SeedsVsClusters, MonitorElement::setAxisTitle(), DQMStore::IBooker::setCurrentFolder(), TrackAnalyzer::setLumiFlag(), MonitorElement::setLumiFlag(), setMaxMinBin(), AlCaHLTBitMon_QueryRunRegistry::string, theTrackAnalyzer, theTrackBuildingAnalyzer, theVertexMonitor, and fftjetcommon_cfi::title.

180 {
181  // parameters from the configuration
183  std::string AlgoName = conf_.getParameter<std::string>("AlgoName");
184  std::string MEFolderName = conf_.getParameter<std::string>("FolderName");
185 
186  // test for the Quality veriable validity
187  if( Quality_ != "") {
188  if( Quality_ != "highPurity" && Quality_ != "tight" && Quality_ != "loose") {
189  edm::LogWarning("TrackingMonitor") << "Qualty Name is invalid, using no quality criterea by default";
190  Quality_ = "";
191  }
192  }
193 
194  // use the AlgoName and Quality Name
195  std::string CategoryName = Quality_ != "" ? AlgoName_ + "_" + Quality_ : AlgoName_;
196 
197  // get binning from the configuration
198  int TKNoBin = conf_.getParameter<int>( "TkSizeBin");
199  double TKNoMin = conf_.getParameter<double>("TkSizeMin");
200  double TKNoMax = conf_.getParameter<double>("TkSizeMax");
201 
202  int TCNoBin = conf_.getParameter<int>( "TCSizeBin");
203  double TCNoMin = conf_.getParameter<double>("TCSizeMin");
204  double TCNoMax = conf_.getParameter<double>("TCSizeMax");
205 
206  int TKNoSeedBin = conf_.getParameter<int>( "TkSeedSizeBin");
207  double TKNoSeedMin = conf_.getParameter<double>("TkSeedSizeMin");
208  double TKNoSeedMax = conf_.getParameter<double>("TkSeedSizeMax");
209 
210  int MeanHitBin = conf_.getParameter<int>( "MeanHitBin");
211  double MeanHitMin = conf_.getParameter<double>("MeanHitMin");
212  double MeanHitMax = conf_.getParameter<double>("MeanHitMax");
213 
214  int MeanLayBin = conf_.getParameter<int>( "MeanLayBin");
215  double MeanLayMin = conf_.getParameter<double>("MeanLayMin");
216  double MeanLayMax = conf_.getParameter<double>("MeanLayMax");
217 
218  int LSBin = conf_.getParameter<int>( "LSBin");
219  int LSMin = conf_.getParameter<double>("LSMin");
220  int LSMax = conf_.getParameter<double>("LSMax");
221 
222  std::string StateName = conf_.getParameter<std::string>("MeasurementState");
223  if (
224  StateName != "OuterSurface" &&
225  StateName != "InnerSurface" &&
226  StateName != "ImpactPoint" &&
227  StateName != "default" &&
228  StateName != "All"
229  ) {
230  // print warning
231  edm::LogWarning("TrackingMonitor") << "State Name is invalid, using 'ImpactPoint' by default";
232  }
233 
234  ibooker.setCurrentFolder(MEFolderName);
235 
236  // book the General Property histograms
237  // ---------------------------------------------------------------------------------//
238 
240 
241  ibooker.setCurrentFolder(MEFolderName+"/GeneralProperties");
242 
243  histname = "NumberOfTracks_" + CategoryName;
244  // MODIFY by Mia in order to cope w/ high multiplicity
245  NumberOfTracks = ibooker.book1D(histname, histname, 3*TKNoBin, TKNoMin, (TKNoMax+0.5)*3.-0.5);
246  NumberOfTracks->setAxisTitle("Number of Tracks per Event", 1);
247  NumberOfTracks->setAxisTitle("Number of Events", 2);
248 
249  histname = "NumberOfMeanRecHitsPerTrack_" + CategoryName;
250  NumberOfMeanRecHitsPerTrack = ibooker.book1D(histname, histname, MeanHitBin, MeanHitMin, MeanHitMax);
251  NumberOfMeanRecHitsPerTrack->setAxisTitle("Mean number of valid RecHits per Track", 1);
253 
254  histname = "NumberOfMeanLayersPerTrack_" + CategoryName;
255  NumberOfMeanLayersPerTrack = ibooker.book1D(histname, histname, MeanLayBin, MeanLayMin, MeanLayMax);
256  NumberOfMeanLayersPerTrack->setAxisTitle("Mean number of Layers per Track", 1);
258 
259  if (doFractionPlot_) {
260  histname = "FractionOfGoodTracks_" + CategoryName;
261  FractionOfGoodTracks = ibooker.book1D(histname, histname, 101, -0.005, 1.005);
262  FractionOfGoodTracks->setAxisTitle("Fraction of Tracks (w.r.t. generalTracks)", 1);
263  FractionOfGoodTracks->setAxisTitle("Entries", 2);
264  }
265  }
266 
267  if ( doLumiAnalysis ) {
268  // add by Mia in order to deal with LS transitions
269  ibooker.setCurrentFolder(MEFolderName+"/LSanalysis");
270 
271  histname = "NumberOfTracks_lumiFlag_" + CategoryName;
272  NumberOfTracks_lumiFlag = ibooker.book1D(histname, histname, 3*TKNoBin, TKNoMin, (TKNoMax+0.5)*3.-0.5);
273  NumberOfTracks_lumiFlag->setAxisTitle("Number of Tracks per Event", 1);
274  NumberOfTracks_lumiFlag->setAxisTitle("Number of Events", 2);
275 
276  }
277 
278  // book profile plots vs LS :
279  //---------------------------
280 
281 
282  if ( doProfilesVsLS_ || doAllPlots) {
283 
284  ibooker.setCurrentFolder(MEFolderName+"/GeneralProperties");
285 
286  histname = "NumberOfTracksVsLS_"+ CategoryName;
287  NumberOfTracksVsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax, TKNoMin, (TKNoMax+0.5)*3.-0.5,"");
288  NumberOfTracksVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
289  NumberOfTracksVsLS->setAxisTitle("#Lumi section",1);
290  NumberOfTracksVsLS->setAxisTitle("Number of Tracks",2);
291 
292  histname = "NumberOfRecHitsPerTrackVsLS_" + CategoryName;
293  NumberOfRecHitsPerTrackVsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax,0.,40.,"");
294  NumberOfRecHitsPerTrackVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
295  NumberOfRecHitsPerTrackVsLS->setAxisTitle("#Lumi section",1);
296  NumberOfRecHitsPerTrackVsLS->setAxisTitle("Mean number of Valid RecHits per track",2);
297 
298  histname = "NumberEventsVsLS_" + CategoryName;
299  NumberEventsOfVsLS = ibooker.book1D(histname,histname, LSBin,LSMin,LSMax);
300  NumberEventsOfVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
301  NumberEventsOfVsLS->setAxisTitle("#Lumi section",1);
302  NumberEventsOfVsLS->setAxisTitle("Number of events",2);
303 
304  double GoodPVtxMin = conf_.getParameter<double>("GoodPVtxMin");
305  double GoodPVtxMax = conf_.getParameter<double>("GoodPVtxMax");
306 
307  histname = "NumberOfGoodPVtxVsLS_" + CategoryName;
308  NumberOfGoodPVtxVsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax,GoodPVtxMin,GoodPVtxMax,"");
309  NumberOfGoodPVtxVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
310  NumberOfGoodPVtxVsLS->setAxisTitle("#Lumi section",1);
311  NumberOfGoodPVtxVsLS->setAxisTitle("Mean number of good PV",2);
312 
313  histname = "NumberOfGoodPVtxWO0VsLS_" + CategoryName;
314  NumberOfGoodPVtxWO0VsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax,GoodPVtxMin,GoodPVtxMax,"");
315  NumberOfGoodPVtxWO0VsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
316  NumberOfGoodPVtxWO0VsLS->setAxisTitle("#Lumi section",1);
317  NumberOfGoodPVtxWO0VsLS->setAxisTitle("Mean number of good PV",2);
318 
319  if (doFractionPlot_) {
320  histname = "GoodTracksFractionVsLS_"+ CategoryName;
321  GoodTracksFractionVsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax,0,1.1,"");
322  GoodTracksFractionVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
323  GoodTracksFractionVsLS->setAxisTitle("#Lumi section",1);
324  GoodTracksFractionVsLS->setAxisTitle("Fraction of Good Tracks",2);
325  }
326 
327  if ( doPlotsVsBX_ || doAllPlots ) {
328  ibooker.setCurrentFolder(MEFolderName+"/BXanalysis");
329  int BXBin = 3564; double BXMin = 0.5; double BXMax = 3564.5;
330 
331  histname = "NumberEventsVsBX_" + CategoryName;
332  NumberEventsOfVsBX = ibooker.book1D(histname,histname, BXBin,BXMin,BXMax);
333  NumberEventsOfVsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
335  NumberEventsOfVsBX->setAxisTitle("Number of events",2);
336 
337  histname = "NumberOfTracksVsBX_"+ CategoryName;
338  NumberOfTracksVsBX = ibooker.bookProfile(histname,histname, BXBin,BXMin,BXMax, TKNoMin, (TKNoMax+0.5)*3.-0.5,"");
339  NumberOfTracksVsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
341  NumberOfTracksVsBX->setAxisTitle("Number of Tracks",2);
342 
343  histname = "NumberOfRecHitsPerTrackVsBX_" + CategoryName;
344  NumberOfRecHitsPerTrackVsBX = ibooker.bookProfile(histname,histname, BXBin,BXMin,BXMax,0.,40.,"");
345  NumberOfRecHitsPerTrackVsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
347  NumberOfRecHitsPerTrackVsBX->setAxisTitle("Mean number of Valid RecHits per track",2);
348 
349  histname = "NumberOfGoodPVtxVsBX_" + CategoryName;
350  NumberOfGoodPVtxVsBX = ibooker.bookProfile(histname,histname, BXBin,BXMin,BXMax,GoodPVtxMin,GoodPVtxMax,"");
351  NumberOfGoodPVtxVsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
353  NumberOfGoodPVtxVsBX->setAxisTitle("Mean number of good PV",2);
354 
355  histname = "NumberOfGoodPVtxWO0VsBX_" + CategoryName;
356  NumberOfGoodPVtxWO0VsBX = ibooker.bookProfile(histname,histname, BXBin,BXMin,BXMax,GoodPVtxMin,GoodPVtxMax,"");
357  NumberOfGoodPVtxWO0VsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
359  NumberOfGoodPVtxWO0VsBX->setAxisTitle("Mean number of good PV",2);
360 
361  if (doFractionPlot_) {
362  histname = "GoodTracksFractionVsBX_"+ CategoryName;
363  GoodTracksFractionVsBX = ibooker.bookProfile(histname,histname, BXBin,BXMin,BXMax,0,1.1,"");
364  GoodTracksFractionVsBX->getTH1()->SetCanExtend(TH1::kAllAxes);
366  GoodTracksFractionVsBX->setAxisTitle("Fraction of Good Tracks",2);
367  }
368  }
369 
370  }
371 
372  // book PU monitoring plots :
373  //---------------------------
374 
375  if ( doPUmonitoring_ ) {
376 
377  for (size_t i=0; i<theVertexMonitor.size(); i++)
378  theVertexMonitor[i]->initHisto(ibooker);
379  }
380 
381  if ( doPlotsVsGoodPVtx_ ) {
382  ibooker.setCurrentFolder(MEFolderName+"/PUmonitoring");
383  // get binning from the configuration
384  int GoodPVtxBin = conf_.getParameter<int>("GoodPVtxBin");
385  double GoodPVtxMin = conf_.getParameter<double>("GoodPVtxMin");
386  double GoodPVtxMax = conf_.getParameter<double>("GoodPVtxMax");
387 
388  histname = "NumberOfTracksVsGoodPVtx";
389  NumberOfTracksVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,TKNoMin, (TKNoMax+0.5)*3.-0.5,"");
390  NumberOfTracksVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
391  NumberOfTracksVsGoodPVtx->setAxisTitle("Number of PV",1);
392  NumberOfTracksVsGoodPVtx->setAxisTitle("Mean number of Tracks per Event",2);
393 
394  histname = "NumberOfTracksVsPUPVtx";
395  NumberOfTracksVsPUPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,0., 100.,"");
396  NumberOfTracksVsPUPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
397  NumberOfTracksVsPUPVtx->setAxisTitle("Number of PU",1);
398  NumberOfTracksVsPUPVtx->setAxisTitle("Mean number of Tracks per PUvtx",2);
399 
400  histname = "NumberEventsVsGoodPVtx";
401  NumberEventsOfVsGoodPVtx = ibooker.book1D(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax);
402  NumberEventsOfVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
403  NumberEventsOfVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
404  NumberEventsOfVsGoodPVtx->setAxisTitle("Number of events",2);
405 
406  if (doFractionPlot_) {
407  histname = "GoodTracksFractionVsGoodPVtx";
408  GoodTracksFractionVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,0., 400.,"");
409  GoodTracksFractionVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
410  GoodTracksFractionVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
411  GoodTracksFractionVsGoodPVtx->setAxisTitle("Mean fraction of good tracks",2);
412  }
413 
414  histname = "NumberOfRecHitsPerTrackVsGoodPVtx";
415  NumberOfRecHitsPerTrackVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,0., 100.,"");
416  NumberOfRecHitsPerTrackVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
417  NumberOfRecHitsPerTrackVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
418  NumberOfRecHitsPerTrackVsGoodPVtx->setAxisTitle("Mean number of valid rechits per Tracks",2);
419 
420  histname = "NumberOfPVtxVsGoodPVtx";
421  NumberOfPVtxVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,0., 100.,"");
422  NumberOfPVtxVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
423  NumberOfPVtxVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
424  NumberOfPVtxVsGoodPVtx->setAxisTitle("Mean number of vertices",2);
425 
426  double NClusPxMin = conf_.getParameter<double>("NClusPxMin");
427  double NClusPxMax = conf_.getParameter<double>("NClusPxMax");
428  histname = "NumberOfPixelClustersVsGoodPVtx";
429  NumberOfPixelClustersVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,NClusPxMin,NClusPxMax,"");
430  NumberOfPixelClustersVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
431  NumberOfPixelClustersVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
432  NumberOfPixelClustersVsGoodPVtx->setAxisTitle("Mean number of pixel clusters",2);
433 
434  double NClusStrMin = conf_.getParameter<double>("NClusStrMin");
435  double NClusStrMax = conf_.getParameter<double>("NClusStrMax");
436  histname = "NumberOfStripClustersVsGoodPVtx";
437  NumberOfStripClustersVsGoodPVtx = ibooker.bookProfile(histname,histname,GoodPVtxBin,GoodPVtxMin,GoodPVtxMax,NClusStrMin,NClusStrMax,"");
438  NumberOfStripClustersVsGoodPVtx->getTH1()->SetCanExtend(TH1::kAllAxes);
439  NumberOfStripClustersVsGoodPVtx->setAxisTitle("Number of good PV (PU)",1);
440  NumberOfStripClustersVsGoodPVtx->setAxisTitle("Mean number of strip clusters",2);
441 
442  }
443 
444 
445  if ( doPlotsVsLUMI_ || doAllPlots ) {
446  ibooker.setCurrentFolder(MEFolderName+"/LUMIanalysis");
447  int LUMIBin = conf_.getParameter<int>("LUMIBin");
448  float LUMIMin = conf_.getParameter<double>("LUMIMin");
449  float LUMIMax = conf_.getParameter<double>("LUMIMax");
450 
451  histname = "NumberEventsVsLUMI";
452  NumberEventsOfVsLUMI = ibooker.book1D(histname,histname,LUMIBin,LUMIMin,LUMIMax);
453  NumberEventsOfVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
454  NumberEventsOfVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
455  NumberEventsOfVsLUMI->setAxisTitle("Number of events",2);
456 
457  histname = "NumberOfTracksVsLUMI";
458  NumberOfTracksVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,0., 400.,"");
459  NumberOfTracksVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
460  NumberOfTracksVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
461  NumberOfTracksVsLUMI->setAxisTitle("Mean number of vertices",2);
462 
463  if (doFractionPlot_) {
464  histname = "GoodTracksFractionVsLUMI";
465  GoodTracksFractionVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,0., 100.,"");
466  GoodTracksFractionVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
467  GoodTracksFractionVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
468  GoodTracksFractionVsLUMI->setAxisTitle("Mean number of vertices",2);
469  }
470 
471  histname = "NumberOfRecHitsPerTrackVsLUMI";
472  NumberOfRecHitsPerTrackVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,0., 20.,"");
473  NumberOfRecHitsPerTrackVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
474  NumberOfRecHitsPerTrackVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
475  NumberOfRecHitsPerTrackVsLUMI->setAxisTitle("Mean number of vertices",2);
476 
477  double GoodPVtxMin = conf_.getParameter<double>("GoodPVtxMin");
478  double GoodPVtxMax = conf_.getParameter<double>("GoodPVtxMax");
479 
480  histname = "NumberOfGoodPVtxVsLUMI";
481  NumberOfGoodPVtxVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,GoodPVtxMin,GoodPVtxMax,"");
482  NumberOfGoodPVtxVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
483  NumberOfGoodPVtxVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
484  NumberOfGoodPVtxVsLUMI->setAxisTitle("Mean number of vertices",2);
485 
486  histname = "NumberOfGoodPVtxWO0VsLUMI";
487  NumberOfGoodPVtxWO0VsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,GoodPVtxMin,GoodPVtxMax,"");
488  NumberOfGoodPVtxWO0VsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
489  NumberOfGoodPVtxWO0VsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
490  NumberOfGoodPVtxWO0VsLUMI->setAxisTitle("Mean number of vertices",2);
491 
492  double NClusPxMin = conf_.getParameter<double>("NClusPxMin");
493  double NClusPxMax = conf_.getParameter<double>("NClusPxMax");
494  histname = "NumberOfPixelClustersVsGoodPVtx";
495  NumberOfPixelClustersVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,NClusPxMin,NClusPxMax,"");
496  NumberOfPixelClustersVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
497  NumberOfPixelClustersVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
498  NumberOfPixelClustersVsLUMI->setAxisTitle("Mean number of pixel clusters",2);
499 
500  double NClusStrMin = conf_.getParameter<double>("NClusStrMin");
501  double NClusStrMax = conf_.getParameter<double>("NClusStrMax");
502  histname = "NumberOfStripClustersVsLUMI";
503  NumberOfStripClustersVsLUMI = ibooker.bookProfile(histname,histname,LUMIBin,LUMIMin,LUMIMax,NClusStrMin,NClusStrMax,"");
504  NumberOfStripClustersVsLUMI->getTH1()->SetCanExtend(TH1::kAllAxes);
505  NumberOfStripClustersVsLUMI->setAxisTitle("scal lumi [10e30 Hz cm^{-2}]",1);
506  NumberOfStripClustersVsLUMI->setAxisTitle("Mean number of strip clusters",2);
507 
508  }
509 
510 
511  if ( doPlotsVsBXlumi_ ) {
512  ibooker.setCurrentFolder(MEFolderName+"/PUmonitoring");
513  // get binning from the configuration
514  edm::ParameterSet BXlumiParameters = conf_.getParameter<edm::ParameterSet>("BXlumiSetup");
515  int BXlumiBin = BXlumiParameters.getParameter<int>("BXlumiBin");
516  double BXlumiMin = BXlumiParameters.getParameter<double>("BXlumiMin");
517  double BXlumiMax = BXlumiParameters.getParameter<double>("BXlumiMax");
518 
519  histname = "NumberOfTracksVsBXlumi_"+ CategoryName;
520  NumberOfTracksVsBXlumi = ibooker.bookProfile(histname,histname, BXlumiBin,BXlumiMin,BXlumiMax, TKNoMin, TKNoMax,"");
521  NumberOfTracksVsBXlumi->getTH1()->SetCanExtend(TH1::kAllAxes);
522  NumberOfTracksVsBXlumi->setAxisTitle("lumi BX [10^{30}Hzcm^{-2}]",1);
523  NumberOfTracksVsBXlumi->setAxisTitle("Mean number of Tracks",2);
524 
525  }
526 
527 
528  theTrackAnalyzer->initHisto(ibooker, iSetup);
529 
530  // book the Seed Property histograms
531  // ---------------------------------------------------------------------------------//
532 
533  ibooker.setCurrentFolder(MEFolderName+"/TrackBuilding");
534 
535  doAllSeedPlots = conf_.getParameter<bool>("doSeedParameterHistos");
536  doSeedNumberPlot = conf_.getParameter<bool>("doSeedNumberHisto");
537  doSeedLumiAnalysis_ = conf_.getParameter<bool>("doSeedLumiAnalysis");
538  doSeedVsClusterPlot = conf_.getParameter<bool>("doSeedVsClusterHisto");
539  // if (doAllPlots) doAllSeedPlots=true;
540 
541  runTrackBuildingAnalyzerForSeed=(doAllSeedPlots || conf_.getParameter<bool>("doSeedPTHisto") ||conf_.getParameter<bool>("doSeedETAHisto") || conf_.getParameter<bool>("doSeedPHIHisto") || conf_.getParameter<bool>("doSeedPHIVsETAHisto") || conf_.getParameter<bool>("doSeedThetaHisto") || conf_.getParameter<bool>("doSeedQHisto") || conf_.getParameter<bool>("doSeedDxyHisto") || conf_.getParameter<bool>("doSeedDzHisto") || conf_.getParameter<bool>("doSeedNRecHitsHisto") || conf_.getParameter<bool>("doSeedNVsPhiProf")|| conf_.getParameter<bool>("doSeedNVsEtaProf"));
542 
543  edm::InputTag seedProducer = conf_.getParameter<edm::InputTag>("SeedProducer");
544 
545  if (doAllSeedPlots || doSeedNumberPlot){
546  ibooker.setCurrentFolder(MEFolderName+"/TrackBuilding");
547  histname = "NumberOfSeeds_"+ seedProducer.label() + "_"+ CategoryName;
548  NumberOfSeeds = ibooker.book1D(histname, histname, TKNoSeedBin, TKNoSeedMin, TKNoSeedMax);
549  NumberOfSeeds->setAxisTitle("Number of Seeds per Event", 1);
550  NumberOfSeeds->setAxisTitle("Number of Events", 2);
551 
552  if ( doSeedLumiAnalysis_ ) {
553  ibooker.setCurrentFolder(MEFolderName+"/LSanalysis");
554  histname = "NumberOfSeeds_lumiFlag_"+ seedProducer.label() + "_"+ CategoryName;
555  NumberOfSeeds_lumiFlag = ibooker.book1D(histname, histname, TKNoSeedBin, TKNoSeedMin, TKNoSeedMax);
556  NumberOfSeeds_lumiFlag->setAxisTitle("Number of Seeds per Event", 1);
557  NumberOfSeeds_lumiFlag->setAxisTitle("Number of Events", 2);
558  }
559 
560  }
561 
562  if (doAllSeedPlots || doSeedVsClusterPlot){
563  ibooker.setCurrentFolder(MEFolderName+"/TrackBuilding");
564 
565  ClusterLabels= conf_.getParameter<std::vector<std::string> >("ClusterLabels");
566 
567  std::vector<double> histoMin,histoMax;
568  std::vector<int> histoBin; //these vectors are for max min and nbins in histograms
569 
570  int NClusPxBin = conf_.getParameter<int>( "NClusPxBin");
571  double NClusPxMin = conf_.getParameter<double>("NClusPxMin");
572  double NClusPxMax = conf_.getParameter<double>("NClusPxMax");
573 
574  int NClusStrBin = conf_.getParameter<int>( "NClusStrBin");
575  double NClusStrMin = conf_.getParameter<double>("NClusStrMin");
576  double NClusStrMax = conf_.getParameter<double>("NClusStrMax");
577 
578  setMaxMinBin(histoMin,histoMax,histoBin,NClusStrMin,NClusStrMax,NClusStrBin,NClusPxMin,NClusPxMax,NClusPxBin);
579 
580  for (uint i=0; i<ClusterLabels.size(); i++){
581  histname = "SeedsVsClusters_" + seedProducer.label() + "_Vs_" + ClusterLabels[i] + "_" + CategoryName;
582  SeedsVsClusters.push_back(dynamic_cast<MonitorElement*>(ibooker.book2D(histname, histname, histoBin[i], histoMin[i], histoMax[i],
583  TKNoSeedBin, TKNoSeedMin, TKNoSeedMax)));
584  SeedsVsClusters[i]->setAxisTitle("Number of Clusters", 1);
585  SeedsVsClusters[i]->setAxisTitle("Number of Seeds", 2);
586  SeedsVsClusters[i]->getTH2F()->SetCanExtend(TH1::kAllAxes);
587  }
588  }
589 
590  doTkCandPlots=conf_.getParameter<bool>("doTrackCandHistos");
591  // if (doAllPlots) doTkCandPlots=true;
592 
593  if (doTkCandPlots){
594  ibooker.setCurrentFolder(MEFolderName+"/TrackBuilding");
595 
596  edm::InputTag tcProducer = conf_.getParameter<edm::InputTag>("TCProducer");
597 
598  histname = "NumberOfTrackCandidates_"+ tcProducer.label() + "_"+ CategoryName;
599  NumberOfTrackCandidates = ibooker.book1D(histname, histname, TCNoBin, TCNoMin, TCNoMax);
600  NumberOfTrackCandidates->setAxisTitle("Number of Track Candidates per Event", 1);
601  NumberOfTrackCandidates->setAxisTitle("Number of Event", 2);
602  }
603 
605 
606 
607  if (doLumiAnalysis) {
608  if ( NumberOfTracks_lumiFlag ) NumberOfTracks_lumiFlag -> setLumiFlag();
610  }
611 
612  if(doAllSeedPlots || doSeedNumberPlot){
613  if ( doSeedLumiAnalysis_ )
615  }
616 
618 
619  ClusterLabels= conf_.getParameter<std::vector<std::string> >("ClusterLabels");
620 
621  std::vector<double> histoMin,histoMax;
622  std::vector<int> histoBin; //these vectors are for max min and nbins in histograms
623 
624  int NClusStrBin = conf_.getParameter<int>( "NClusStrBin");
625  double NClusStrMin = conf_.getParameter<double>("NClusStrMin");
626  double NClusStrMax = conf_.getParameter<double>("NClusStrMax");
627 
628  int NClusPxBin = conf_.getParameter<int>( "NClusPxBin");
629  double NClusPxMin = conf_.getParameter<double>("NClusPxMin");
630  double NClusPxMax = conf_.getParameter<double>("NClusPxMax");
631 
632  int NTrk2DBin = conf_.getParameter<int>( "NTrk2DBin");
633  double NTrk2DMin = conf_.getParameter<double>("NTrk2DMin");
634  double NTrk2DMax = conf_.getParameter<double>("NTrk2DMax");
635 
636  setMaxMinBin(histoMin,histoMax,histoBin,
637  NClusStrMin,NClusStrMax,NClusStrBin,
638  NClusPxMin, NClusPxMax, NClusPxBin);
639 
640  ibooker.setCurrentFolder(MEFolderName+"/HitProperties");
641 
642  for (uint i=0; i<ClusterLabels.size(); i++){
643 
644  ibooker.setCurrentFolder(MEFolderName+"/HitProperties");
645  histname = "TracksVs" + ClusterLabels[i] + "Cluster_" + CategoryName;
646  NumberOfTrkVsClusters.push_back(dynamic_cast<MonitorElement*>(ibooker.book2D(histname, histname,
647  histoBin[i], histoMin[i], histoMax[i],
648  NTrk2DBin,NTrk2DMin,NTrk2DMax
649  )));
650  std::string title = "Number of " + ClusterLabels[i] + " Clusters";
651  if(ClusterLabels[i].compare("Tot")==0)
652  title = "# of Clusters in (Pixel+Strip) Detectors";
653  NumberOfTrkVsClusters[i]->setAxisTitle(title, 1);
654  NumberOfTrkVsClusters[i]->setAxisTitle("Number of Tracks", 2);
655  NumberOfTrkVsClusters[i]->getTH1()->SetCanExtend(TH1::kXaxis);
656  }
657  }
658 
659  // Initialize the GenericTriggerEventFlag
660  if ( genTriggerEventFlag_->on() ) genTriggerEventFlag_->initRun( iRun, iSetup );
661 
662 }
T getParameter(std::string const &) const
bool compare(const P &i, const P &j)
std::vector< MonitorElement * > NumberOfTrkVsClusters
MonitorElement * FractionOfGoodTracks
virtual void setMaxMinBin(std::vector< double > &, std::vector< double > &, std::vector< int > &, double, double, int, double, double, int)
MonitorElement * NumberOfTracksVsBX
TrackAnalyzer * theTrackAnalyzer
MonitorElement * NumberOfRecHitsPerTrackVsBX
MonitorElement * NumberOfRecHitsPerTrackVsLUMI
edm::ParameterSet conf_
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
MonitorElement * NumberEventsOfVsGoodPVtx
MonitorElement * GoodTracksFractionVsLUMI
MonitorElement * NumberOfPVtxVsGoodPVtx
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
MonitorElement * NumberOfStripClustersVsLUMI
MonitorElement * GoodTracksFractionVsLS
std::string Quality_
MonitorElement * NumberOfGoodPVtxWO0VsLUMI
MonitorElement * NumberOfSeeds
MonitorElement * NumberOfGoodPVtxVsLS
MonitorElement * NumberOfGoodPVtxVsLUMI
virtual void initHisto(DQMStore::IBooker &ibooker)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * NumberOfTracksVsLS
MonitorElement * NumberOfGoodPVtxWO0VsLS
TH1 * getTH1(void) const
MonitorElement * NumberOfTracksVsPUPVtx
MonitorElement * NumberEventsOfVsBX
bool runTrackBuildingAnalyzerForSeed
MonitorElement * NumberOfStripClustersVsGoodPVtx
std::vector< MonitorElement * > SeedsVsClusters
MonitorElement * NumberOfPixelClustersVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsLS
MonitorElement * GoodTracksFractionVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsGoodPVtx
std::string histname
MonitorElement * NumberOfPixelClustersVsLUMI
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTracksVsBXlumi
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
std::string AlgoName_
MonitorElement * NumberOfMeanLayersPerTrack
GenericTriggerEventFlag * genTriggerEventFlag_
MonitorElement * GoodTracksFractionVsBX
std::string const & label() const
Definition: InputTag.h:36
MonitorElement * NumberOfSeeds_lumiFlag
MonitorElement * NumberOfTrackCandidates
virtual void initHisto(DQMStore::IBooker &ibooker, const edm::EventSetup &)
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * NumberOfGoodPVtxVsBX
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
MonitorElement * NumberEventsOfVsLUMI
MonitorElement * NumberOfTracks_lumiFlag
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfTracks
MonitorElement * NumberEventsOfVsLS
MonitorElement * NumberOfTracksVsLUMI
std::vector< std::string > ClusterLabels
MonitorElement * NumberOfGoodPVtxWO0VsBX
void TrackingMonitor::doProfileX ( TH2 *  th2,
MonitorElement me 
)
private
void TrackingMonitor::doProfileX ( MonitorElement th2m,
MonitorElement me 
)
private
void TrackingMonitor::endRun ( const edm::Run ,
const edm::EventSetup  
)
overridevirtual

Definition at line 988 of file TrackingMonitor.cc.

989 {
990 }
void TrackingMonitor::setMaxMinBin ( std::vector< double > &  arrayMin,
std::vector< double > &  arrayMax,
std::vector< int > &  arrayBin,
double  smin,
double  smax,
int  sbin,
double  pmin,
double  pmax,
int  pbin 
)
virtual

Definition at line 992 of file TrackingMonitor.cc.

References ClusterLabels, compare(), and mps_fire::i.

Referenced by bookHistograms().

993 {
994  arrayMin.resize(ClusterLabels.size());
995  arrayMax.resize(ClusterLabels.size());
996  arrayBin.resize(ClusterLabels.size());
997 
998  for (uint i=0; i<ClusterLabels.size(); ++i) {
999 
1000  if (ClusterLabels[i].compare("Pix")==0 ) {arrayMin[i]=pmin; arrayMax[i]=pmax; arrayBin[i]=pbin;}
1001  else if(ClusterLabels[i].compare("Strip")==0) {arrayMin[i]=smin; arrayMax[i]=smax; arrayBin[i]=sbin;}
1002  else if(ClusterLabels[i].compare("Tot")==0 ) {arrayMin[i]=smin; arrayMax[i]=smax+pmax; arrayBin[i]=sbin;}
1003  else {edm::LogWarning("TrackingMonitor") << "Cluster Label " << ClusterLabels[i] << " not defined, using strip parameters ";
1004  arrayMin[i]=smin; arrayMax[i]=smax; arrayBin[i]=sbin;}
1005 
1006  }
1007 
1008 }
bool compare(const P &i, const P &j)
std::vector< std::string > ClusterLabels
void TrackingMonitor::setNclus ( const edm::Event iEvent,
std::vector< int > &  arrayNclus 
)
virtual

Definition at line 1010 of file TrackingMonitor.cc.

References ClusterLabels, compare(), DEFINE_FWK_MODULE, edm::Event::getByToken(), mps_fire::i, edm::HandleBase::isValid(), pixelClustersToken_, and stripClustersToken_.

Referenced by analyze().

1011 {
1012 
1013  int ncluster_pix=-1;
1014  int ncluster_strip=-1;
1015 
1017  iEvent.getByToken(stripClustersToken_, strip_clusters );
1019  iEvent.getByToken(pixelClustersToken_, pixel_clusters );
1020 
1021  if (strip_clusters.isValid() && pixel_clusters.isValid()) {
1022  ncluster_pix = (*pixel_clusters).dataSize();
1023  ncluster_strip = (*strip_clusters).dataSize();
1024  }
1025 
1026  arrayNclus.resize(ClusterLabels.size());
1027  for (uint i=0; i<ClusterLabels.size(); ++i){
1028 
1029  if (ClusterLabels[i].compare("Pix")==0 ) arrayNclus[i]=ncluster_pix ;
1030  else if(ClusterLabels[i].compare("Strip")==0) arrayNclus[i]=ncluster_strip;
1031  else if(ClusterLabels[i].compare("Tot")==0 ) arrayNclus[i]=ncluster_pix+ncluster_strip;
1032  else {edm::LogWarning("TrackingMonitor") << "Cluster Label " << ClusterLabels[i] << " not defined using stri parametrs ";
1033  arrayNclus[i]=ncluster_strip ;}
1034  }
1035 
1036 }
bool compare(const P &i, const P &j)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
bool isValid() const
Definition: HandleBase.h:74
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersToken_
std::vector< std::string > ClusterLabels

Member Data Documentation

std::string TrackingMonitor::AlgoName_
private

Definition at line 97 of file TrackingMonitor.h.

Referenced by bookHistograms(), and TrackingMonitor().

edm::EDGetTokenT<edm::View<reco::Track> > TrackingMonitor::allTrackToken_
private

Definition at line 84 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

edm::InputTag TrackingMonitor::bsSrc_
private

Definition at line 79 of file TrackingMonitor.h.

Referenced by TrackingMonitor().

edm::EDGetTokenT<reco::BeamSpot> TrackingMonitor::bsSrcToken_
private

Definition at line 81 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

std::string TrackingMonitor::builderName
private

Definition at line 170 of file TrackingMonitor.h.

Referenced by analyze().

std::vector<std::string> TrackingMonitor::ClusterLabels
private

Definition at line 117 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), setMaxMinBin(), and setNclus().

edm::ParameterSet TrackingMonitor::conf_
private

Definition at line 76 of file TrackingMonitor.h.

Referenced by bookHistograms(), and TrackingMonitor().

StringCutObjectSelector<reco::Track,true> TrackingMonitor::denSelection_
private

Definition at line 197 of file TrackingMonitor.h.

Referenced by analyze().

bool TrackingMonitor::doAllPlots
private

Definition at line 177 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

bool TrackingMonitor::doAllSeedPlots
private

Definition at line 176 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

bool TrackingMonitor::doDCAPlots_
private

Definition at line 178 of file TrackingMonitor.h.

bool TrackingMonitor::doFractionPlot_
private

Definition at line 192 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::doGeneralPropertiesPlots_
private

Definition at line 179 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

bool TrackingMonitor::doHitPropertiesPlots_
private

Definition at line 180 of file TrackingMonitor.h.

bool TrackingMonitor::doLumiAnalysis
private

Definition at line 174 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

bool TrackingMonitor::doPlotsVsBX_
private

Definition at line 191 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::doPlotsVsBXlumi_
private

Definition at line 188 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::doPlotsVsGoodPVtx_
private

Definition at line 189 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::doPlotsVsLUMI_
private

Definition at line 190 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::doProfilesVsLS_
private

Definition at line 175 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

bool TrackingMonitor::doPUmonitoring_
private

Definition at line 187 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), TrackingMonitor(), and ~TrackingMonitor().

bool TrackingMonitor::doSeedLumiAnalysis_
private

Definition at line 183 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

bool TrackingMonitor::doSeedNumberPlot
private

Definition at line 182 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

bool TrackingMonitor::doSeedVsClusterPlot
private

Definition at line 184 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

bool TrackingMonitor::doTkCandPlots
private

Definition at line 181 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

bool TrackingMonitor::doTrackerSpecific_
private

Definition at line 173 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::FractionOfGoodTracks
private

Definition at line 111 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

GenericTriggerEventFlag* TrackingMonitor::genTriggerEventFlag_
private

Definition at line 194 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and ~TrackingMonitor().

MonitorElement* TrackingMonitor::GoodTracksFractionVsBX
private

Definition at line 140 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::GoodTracksFractionVsGoodPVtx
private

Definition at line 151 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::GoodTracksFractionVsLS
private

Definition at line 132 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::GoodTracksFractionVsLUMI
private

Definition at line 160 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

std::string TrackingMonitor::histname
private

Definition at line 72 of file TrackingMonitor.h.

Referenced by bookHistograms().

edm::EDGetTokenT<LumiScalersCollection> TrackingMonitor::lumiscalersToken_
private

Definition at line 89 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

MonitorElement* TrackingMonitor::NumberEventsOfVsBX
private

Definition at line 138 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberEventsOfVsGoodPVtx
private

Definition at line 150 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberEventsOfVsLS
private

Definition at line 130 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberEventsOfVsLUMI
private

Definition at line 158 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxVsBX
private

Definition at line 142 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxVsLS
private

Definition at line 134 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxVsLUMI
private

Definition at line 162 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxWO0VsBX
private

Definition at line 143 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxWO0VsLS
private

Definition at line 135 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfGoodPVtxWO0VsLUMI
private

Definition at line 163 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfMeanLayersPerTrack
private

Definition at line 108 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfMeanRecHitsPerTrack
private

Definition at line 107 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfPixelClustersVsGoodPVtx
private

Definition at line 154 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfPixelClustersVsLUMI
private

Definition at line 164 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfPVtxVsGoodPVtx
private

Definition at line 153 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfRecHitsPerTrackVsBX
private

Definition at line 141 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfRecHitsPerTrackVsGoodPVtx
private

Definition at line 152 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfRecHitsPerTrackVsLS
private

Definition at line 133 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfRecHitsPerTrackVsLUMI
private

Definition at line 161 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfSeeds
private

Definition at line 114 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfSeeds_lumiFlag
private

Definition at line 115 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfStripClustersVsGoodPVtx
private

Definition at line 155 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfStripClustersVsLUMI
private

Definition at line 165 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTrackCandidates
private

Definition at line 121 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracks
private

Definition at line 106 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracks_lumiFlag
private

Definition at line 168 of file TrackingMonitor.h.

Referenced by analyze(), beginLuminosityBlock(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsBX
private

Definition at line 139 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsBXlumi
private

Definition at line 145 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsGoodPVtx
private

Definition at line 148 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsLS
private

Definition at line 131 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsLUMI
private

Definition at line 159 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTracksVsPUPVtx
private

Definition at line 149 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTrkVsClus
private

Definition at line 125 of file TrackingMonitor.h.

std::vector<MonitorElement*> TrackingMonitor::NumberOfTrkVsClusters
private

Definition at line 124 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingMonitor::NumberOfTrkVsPixelClus
private

Definition at line 127 of file TrackingMonitor.h.

MonitorElement* TrackingMonitor::NumberOfTrkVsStripClus
private

Definition at line 126 of file TrackingMonitor.h.

StringCutObjectSelector<reco::Track,true> TrackingMonitor::numSelection_
private

Definition at line 196 of file TrackingMonitor.h.

Referenced by analyze().

edm::InputTag TrackingMonitor::pixelClusterInputTag_
private

Definition at line 92 of file TrackingMonitor.h.

Referenced by TrackingMonitor().

edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > TrackingMonitor::pixelClustersToken_
private

Definition at line 94 of file TrackingMonitor.h.

Referenced by setNclus(), and TrackingMonitor().

int TrackingMonitor::pvNDOF_
private

Definition at line 198 of file TrackingMonitor.h.

Referenced by analyze().

edm::InputTag TrackingMonitor::pvSrc_
private

Definition at line 80 of file TrackingMonitor.h.

Referenced by TrackingMonitor().

edm::EDGetTokenT<reco::VertexCollection> TrackingMonitor::pvSrcToken_
private

Definition at line 82 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

std::string TrackingMonitor::Quality_
private

Definition at line 96 of file TrackingMonitor.h.

Referenced by bookHistograms(), and TrackingMonitor().

bool TrackingMonitor::runTrackBuildingAnalyzerForSeed
private

Definition at line 185 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

std::vector<MonitorElement *> TrackingMonitor::SeedsVsClusters
private

Definition at line 116 of file TrackingMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<edm::View<TrajectorySeed> > TrackingMonitor::seedToken_
private

Definition at line 87 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

edm::InputTag TrackingMonitor::stripClusterInputTag_
private

Definition at line 91 of file TrackingMonitor.h.

Referenced by TrackingMonitor().

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > TrackingMonitor::stripClustersToken_
private

Definition at line 93 of file TrackingMonitor.h.

Referenced by setNclus(), and TrackingMonitor().

GetLumi* TrackingMonitor::theLumiDetails_
private

Definition at line 103 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

TrackAnalyzer* TrackingMonitor::theTrackAnalyzer
private
TrackBuildingAnalyzer* TrackingMonitor::theTrackBuildingAnalyzer
private

Definition at line 101 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), and ~TrackingMonitor().

edm::ESHandle<TransientTrackingRecHitBuilder> TrackingMonitor::theTTRHBuilder
private

Definition at line 171 of file TrackingMonitor.h.

Referenced by analyze().

std::vector<VertexMonitor*> TrackingMonitor::theVertexMonitor
private

Definition at line 102 of file TrackingMonitor.h.

Referenced by analyze(), bookHistograms(), TrackingMonitor(), and ~TrackingMonitor().

edm::EDGetTokenT<TrackCandidateCollection> TrackingMonitor::trackCandidateToken_
private

Definition at line 86 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().

edm::EDGetTokenT<edm::View<reco::Track> > TrackingMonitor::trackToken_
private

Definition at line 85 of file TrackingMonitor.h.

Referenced by analyze(), and TrackingMonitor().