CMS 3D CMS Logo

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

#include <QcdUeDQM.h>

Inheritance diagram for QcdUeDQM:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
void beginJob (void)
 
void beginLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &iSetup)
 
void beginRun (const edm::Run &r, const edm::EventSetup &iSetup)
 
void endJob (void)
 
void endLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &iSetup)
 
void endRun (const edm::Run &r, const edm::EventSetup &iSetup)
 
 QcdUeDQM (const edm::ParameterSet &parameters)
 
virtual ~QcdUeDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Types

typedef std::vector< const
reco::Track * > 
container
 

Private Member Functions

void book1D (std::vector< MonitorElement * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, bool sumw2=1, bool sbox=1)
 
void book2D (std::vector< MonitorElement * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, int ny, double y1, double y2, bool sumw2=1, bool sbox=1)
 
void bookProfile (std::vector< MonitorElement * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, double y1, double y2, bool sumw2=1, bool sbox=1)
 
void create1D (std::vector< TH1F * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, bool sumw2=1, bool sbox=1)
 
void create2D (std::vector< TH2F * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, int ny, double y1, double y2, bool sumw2=1, bool sbox=1)
 
void createHistos ()
 
void createProfile (std::vector< TProfile * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, double y1, double y2, bool sumw2=1, bool sbox=1)
 
void fill1D (std::vector< TH1F * > &hs, double val, double w=1.)
 
void fill1D (std::vector< MonitorElement * > &mes, double val, double w=1.)
 
void fill2D (std::vector< TH2F * > &hs, double valx, double valy, double w=1.)
 
void fill2D (std::vector< MonitorElement * > &mes, double valx, double valy, double w=1.)
 
void fill3D (std::vector< TH3F * > &hs, int gbin, double w=1.)
 
void fillChargedJetSpectra (const edm::Handle< reco::TrackJetCollection > trackJets)
 
void fillHltBits (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
void fillProfile (std::vector< TProfile * > &hs, double valx, double valy, double w=1.)
 
void fillProfile (std::vector< MonitorElement * > &mes, double valx, double valy, double w=1.)
 
void fillpTMaxRelated (const std::vector< const reco::Track * > &track)
 
void fillUE_with_ChargedJets (const std::vector< const reco::Track * > &track, const edm::Handle< reco::TrackJetCollection > &trackJets)
 
void fillUE_with_MaxpTtrack (const std::vector< const reco::Track * > &track)
 
bool fillVtxPlots (const reco::BeamSpot *bs, const edm::Handle< reco::VertexCollection > vtxColl)
 
template<typename TYPE >
void getProduct (const std::string name, edm::Handle< TYPE > &prod, const edm::Event &event) const
 
template<typename TYPE >
bool getProductSafe (const std::string name, edm::Handle< TYPE > &prod, const edm::Event &event) const
 
void setLabel1D (std::vector< MonitorElement * > &mes)
 
bool trackSelection (const reco::Track &trk, const reco::BeamSpot *bs, const reco::Vertex &vtx, int sizevtx)
 

Private Attributes

std::vector
< reco::TrackBase::TrackAlgorithm
algorithm_
 
bool allowTriplets_
 
edm::EDGetTokenT< reco::BeamSpotbsLabel_
 
double bsPos_
 
bool bsuse_
 
edm::EDGetTokenT
< reco::CaloJetCollection
caloJetLabel_
 
edm::EDGetTokenT
< reco::TrackJetCollection
chargedJetLabel_
 
double diffvtxbs_
 
MonitorElementh2TrigCorr_
 
std::vector< MonitorElement * > hBeamSpot_x_
 
std::vector< MonitorElement * > hBeamSpot_y_
 
std::vector< MonitorElement * > hBeamSpot_z_
 
std::vector< MonitorElement * > hChargedJetConstituent_
 
std::vector< MonitorElement * > hChargedJetMulti_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away500_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away900_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward500_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward900_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse500_
 
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse900_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away500_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away900_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward500_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward900_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse500_
 
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse900_
 
std::vector< MonitorElement * > hdPhi_chargedJet_tracks_
 
std::vector< MonitorElement * > hdPhi_maxpTTrack_tracks_
 
std::vector< MonitorElement * > hGoodTrkEta500_
 
std::vector< MonitorElement * > hGoodTrkEta900_
 
std::vector< MonitorElement * > hGoodTrkPhi500_
 
std::vector< MonitorElement * > hGoodTrkPhi900_
 
std::vector< MonitorElement * > hGoodTrkPt500_
 
std::vector< MonitorElement * > hGoodTrkPt900_
 
std::vector< MonitorElement * > hLeadingChargedJet_etaSpectrum_
 
std::vector< MonitorElement * > hLeadingChargedJet_phiSpectrum_
 
std::vector< MonitorElement * > hLeadingChargedJet_pTSpectrum_
 
std::vector< MonitorElement * > hLeadingTrack_etaSpectrum_
 
std::vector< MonitorElement * > hLeadingTrack_phiSpectrum_
 
std::vector< MonitorElement * > hLeadingTrack_pTSpectrum_
 
HLTConfigProvider hltConfig
 
std::vector< std::string > hltProcNames_
 
std::string hltResName_
 
std::vector< int > hltTrgBits_
 
std::vector< bool > hltTrgDeci_
 
std::vector< std::string > hltTrgNames_
 
std::vector< std::string > hltTrgUsedNames_
 
std::string hltUsedResName_
 
std::vector< MonitorElement * > hNevts_
 
std::vector< MonitorElement * > hNgoodTrk_
 
std::vector< MonitorElement * > hNtrackerLayer_
 
std::vector< MonitorElement * > hNtrackerPixelLayer_
 
std::vector< MonitorElement * > hNtrackerStripPixelLayer_
 
std::vector< MonitorElement * > hNvertices_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away900_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward900_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse900_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away900_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward900_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse500_
 
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse900_
 
std::vector< MonitorElement * > hRatioDxySigmaDxyBS_
 
std::vector< MonitorElement * > hRatioDxySigmaDxyPV_
 
std::vector< MonitorElement * > hRatioDzSigmaDzBS_
 
std::vector< MonitorElement * > hRatioDzSigmaDzPV_
 
std::vector< MonitorElement * > hRatioPtErrorPt_
 
std::vector< MonitorElement * > hTrkChi2_
 
std::vector< MonitorElement * > hTrkEta_
 
std::vector< MonitorElement * > hTrkNdof_
 
std::vector< MonitorElement * > hTrkPhi_
 
std::vector< MonitorElement * > hTrkPt_
 
std::vector< MonitorElement * > hVertex_ndof_
 
std::vector< MonitorElement * > hVertex_rho_
 
std::vector< MonitorElement * > hVertex_x_
 
std::vector< MonitorElement * > hVertex_y_
 
std::vector< MonitorElement * > hVertex_z_
 
std::vector< MonitorElement * > hVertex_z_bs_
 
bool isHltConfigSuccessful_
 
double lip_
 
double maxChi2_
 
double maxRapidity_
 
int min3DHit_
 
int minHit_
 
double minRapidity_
 
double ptErr_pt_
 
double ptMin_
 
double pxlLayerMinCut_
 
std::vector
< reco::TrackBase::TrackQuality
quality_
 
MonitorElementrepSumMap_
 
MonitorElementrepSummary_
 
bool requirePIX1_
 
container selected_
 
const TrackerGeometrytgeo_
 
DQMStoretheDbe_
 
double tip_
 
edm::EDGetTokenT
< reco::TrackCollection
trackLabel_
 
int verbose_
 
reco::Vertex vtx1
 
edm::EDGetTokenT
< reco::VertexCollection
vtxLabel_
 
double vtxntk_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::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

Definition at line 51 of file QcdUeDQM.h.

Member Typedef Documentation

typedef std::vector<const reco::Track *> QcdUeDQM::container
private

Definition at line 287 of file QcdUeDQM.h.

Constructor & Destructor Documentation

QcdUeDQM::QcdUeDQM ( const edm::ParameterSet parameters)

Definition at line 54 of file QcdUeDQM.cc.

References reco::TrackBase::algoByName(), algorithm(), algorithm_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hltProcNames_, hltTrgNames_, isHltConfigSuccessful_, j, quality_, and reco::TrackBase::qualityByName().

54  :
55  hltResName_(parameters.getUntrackedParameter<string>("hltTrgResults")),
56  verbose_(parameters.getUntrackedParameter<int>("verbose",3)),
57  tgeo_(0),
58  theDbe_(0),
59  repSumMap_(0),
60  repSummary_(0),
61  h2TrigCorr_(0),
62  ptMin_(parameters.getParameter<double>("ptMin")),
63  minRapidity_(parameters.getParameter<double>("minRapidity")),
64  maxRapidity_(parameters.getParameter<double>("maxRapidity")),
65  tip_(parameters.getParameter<double>("tip")),
66  lip_(parameters.getParameter<double>("lip")),
67  diffvtxbs_(parameters.getParameter<double>("diffvtxbs")),
68  ptErr_pt_(parameters.getParameter<double>("ptErr_pt")),
69  vtxntk_(parameters.getParameter<double>("vtxntk")),
70  minHit_(parameters.getParameter<int>("minHit")),
71  pxlLayerMinCut_(parameters.getParameter<double>("pxlLayerMinCut")),
72  requirePIX1_(parameters.getParameter<bool>("requirePIX1")),
73  min3DHit_(parameters.getParameter<int>("min3DHit")),
74  maxChi2_(parameters.getParameter<double>("maxChi2")),
75  bsuse_(parameters.getParameter<bool>("bsuse")),
76  allowTriplets_(parameters.getParameter<bool>("allowTriplets")),
77  bsPos_(parameters.getParameter<double>("bsPos")),
78  caloJetLabel_(consumes<reco::CaloJetCollection>(
79  parameters.getUntrackedParameter<edm::InputTag>("caloJetTag"))),
80  chargedJetLabel_(consumes<reco::TrackJetCollection>(
81  parameters.getUntrackedParameter<edm::InputTag>("chargedJetTag"))),
82  trackLabel_(consumes<reco::TrackCollection>(
83  parameters.getUntrackedParameter<edm::InputTag>("trackTag"))),
84  vtxLabel_(consumes<reco::VertexCollection>(
85  parameters.getUntrackedParameter<edm::InputTag>("vtxTag"))),
86  bsLabel_(consumes<reco::BeamSpot>(
87  parameters.getParameter<edm::InputTag>("beamSpotTag")))
88 {
89  // Constructor.
90  std::vector<std::string> quality = parameters.getParameter<std::vector<std::string> >("quality");
91  for (unsigned int j=0;j<quality.size();j++) quality_.push_back(reco::TrackBase::qualityByName(quality[j]));
92  std::vector<std::string> algorithm = parameters.getParameter<std::vector<std::string> >("algorithm");
93  for (unsigned int j=0;j<algorithm.size();j++) algorithm_.push_back(reco::TrackBase::algoByName(algorithm[j]));
94 
95  if (parameters.exists("hltTrgNames"))
96  hltTrgNames_ = parameters.getUntrackedParameter<vector<string> >("hltTrgNames");
97 
98  if (parameters.exists("hltProcNames"))
99  hltProcNames_ = parameters.getUntrackedParameter<vector<string> >("hltProcNames");
100  else {
101  // hltProcNames_.push_back("FU");
102  hltProcNames_.push_back("HLT");
103  }
104 
105  isHltConfigSuccessful_ = false; // init
106 
107 }
bool bsuse_
Definition: QcdUeDQM.h:277
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
< trclass="colgroup">< tdclass="colgroup"colspan=5 > Ecal cluster collections</td ></tr >< tr >< td >< ahref="classreco_1_1BasicCluster.html"> reco::BasicCluster</a ></td >< td >< ahref="DataFormats_EgammaReco.html"> reco::BasicClusterCollection</a ></td >< td >< ahref="#"> hybridSuperClusters</a ></td >< tdclass="description"> Basic clusters reconstructed with hybrid algorithm(barrel only)</td >< td >S.Rahatlou</td ></tr >< tr >< td >< a href
int verbose_
Definition: QcdUeDQM.h:141
bool exists(std::string const &parameterName) const
checks if a parameter exists
edm::EDGetTokenT< reco::TrackCollection > trackLabel_
Definition: QcdUeDQM.h:282
edm::EDGetTokenT< reco::CaloJetCollection > caloJetLabel_
Definition: QcdUeDQM.h:280
double ptErr_pt_
Definition: QcdUeDQM.h:270
bool requirePIX1_
Definition: QcdUeDQM.h:274
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
std::vector< std::string > hltTrgNames_
Definition: QcdUeDQM.h:134
edm::EDGetTokenT< reco::TrackJetCollection > chargedJetLabel_
Definition: QcdUeDQM.h:281
MonitorElement * repSumMap_
Definition: QcdUeDQM.h:144
std::vector< std::string > hltProcNames_
Definition: QcdUeDQM.h:133
std::string hltResName_
Definition: QcdUeDQM.h:132
MonitorElement * h2TrigCorr_
Definition: QcdUeDQM.h:146
double bsPos_
Definition: QcdUeDQM.h:279
double maxChi2_
Definition: QcdUeDQM.h:276
int j
Definition: DBlmapReader.cc:9
double lip_
Definition: QcdUeDQM.h:268
std::vector< reco::TrackBase::TrackAlgorithm > algorithm_
Definition: QcdUeDQM.h:286
edm::EDGetTokenT< reco::BeamSpot > bsLabel_
Definition: QcdUeDQM.h:284
edm::EDGetTokenT< reco::VertexCollection > vtxLabel_
Definition: QcdUeDQM.h:283
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:46
bool allowTriplets_
Definition: QcdUeDQM.h:278
double ptMin_
Definition: QcdUeDQM.h:264
MonitorElement * repSummary_
Definition: QcdUeDQM.h:145
double diffvtxbs_
Definition: QcdUeDQM.h:269
double minRapidity_
Definition: QcdUeDQM.h:265
int min3DHit_
Definition: QcdUeDQM.h:275
double pxlLayerMinCut_
Definition: QcdUeDQM.h:273
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:55
std::vector< reco::TrackBase::TrackQuality > quality_
Definition: QcdUeDQM.h:285
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
double maxRapidity_
Definition: QcdUeDQM.h:266
const TrackerGeometry * tgeo_
Definition: QcdUeDQM.h:142
double vtxntk_
Definition: QcdUeDQM.h:271
int minHit_
Definition: QcdUeDQM.h:272
double tip_
Definition: QcdUeDQM.h:267
QcdUeDQM::~QcdUeDQM ( )
virtual

Definition at line 110 of file QcdUeDQM.cc.

111 {
112  // Destructor.
113 
114 
115 }

Member Function Documentation

void QcdUeDQM::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 118 of file QcdUeDQM.cc.

References SiPixelRawToDigiRegional_cfi::beamSpot, bsLabel_, caloJetLabel_, chargedJetLabel_, fill1D(), fillChargedJetSpectra(), fillHltBits(), fillpTMaxRelated(), fillUE_with_ChargedJets(), fillUE_with_MaxpTtrack(), fillVtxPlots(), edm::Event::getByToken(), hNevts_, isHltConfigSuccessful_, edm::Handle< T >::product(), selected_, python.multivaluedict::sort(), trackLabel_, testEve_cfg::tracks, trackSelection(), vtx1, and vtxLabel_.

119 {
120  if( ! isHltConfigSuccessful_ ) return;
121 
122  // Analyze the given event.
123 
125  bool ValidBS_ = iEvent.getByToken(bsLabel_,beamSpot);
126  if(!ValidBS_)return;
127 
129  bool ValidTrack_ = iEvent.getByToken(trackLabel_,tracks);
130  if(!ValidTrack_)return;
131 
133  bool ValidTrackJet_ = iEvent.getByToken(chargedJetLabel_,trkJets );
134  if(!ValidTrackJet_)return;
135 
136 
138  bool ValidCaloJet_ = iEvent.getByToken(caloJetLabel_,calJets);
139  if(!ValidCaloJet_)return;
140 
142  bool ValidVtxColl_ = iEvent.getByToken(vtxLabel_, vertexColl);
143  if(!ValidVtxColl_)return;
144 
145  reco::TrackCollection tracks_sort = *tracks;
146  std::sort(tracks_sort.begin(), tracks_sort.end(), PtSorter());
147 
148  // get tracker geometry
149 /* ESHandle<TrackerGeometry> trackerHandle;
150  iSetup.get<TrackerDigiGeometryRecord>().get(trackerHandle);
151  tgeo_ = trackerHandle.product();
152  if (!tgeo_)return;
153 */
154  selected_.clear();
155  fillHltBits(iEvent,iSetup);
156  // select good tracks
157  if(fillVtxPlots(beamSpot.product(),vertexColl))
158  {
159  fill1D(hNevts_,1);
160  for(reco::TrackCollection::const_iterator Trk = tracks_sort.begin(); Trk != tracks_sort.end(); ++Trk)
161  {
162 
163  if ( trackSelection(*Trk,beamSpot.product(),vtx1,vertexColl->size()) ) selected_.push_back( & * Trk );
164  }
165 
166 
168  fillChargedJetSpectra(trkJets);
169 // fillCaloJetSpectra(calJets);
171  if(trkJets->size() > 0)fillUE_with_ChargedJets(selected_,trkJets);
172  // if(calJets->size()>0)fillUE_with_CaloJets(selected_,calJets);
173 
174  }
175 
176 }
void fillHltBits(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: QcdUeDQM.cc:1083
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
bool trackSelection(const reco::Track &trk, const reco::BeamSpot *bs, const reco::Vertex &vtx, int sizevtx)
Definition: QcdUeDQM.cc:664
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
edm::EDGetTokenT< reco::TrackCollection > trackLabel_
Definition: QcdUeDQM.h:282
bool fillVtxPlots(const reco::BeamSpot *bs, const edm::Handle< reco::VertexCollection > vtxColl)
Definition: QcdUeDQM.cc:755
edm::EDGetTokenT< reco::CaloJetCollection > caloJetLabel_
Definition: QcdUeDQM.h:280
void fillUE_with_ChargedJets(const std::vector< const reco::Track * > &track, const edm::Handle< reco::TrackJetCollection > &trackJets)
Definition: QcdUeDQM.cc:925
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
void fillUE_with_MaxpTtrack(const std::vector< const reco::Track * > &track)
Definition: QcdUeDQM.cc:842
edm::EDGetTokenT< reco::TrackJetCollection > chargedJetLabel_
Definition: QcdUeDQM.h:281
reco::Vertex vtx1
Definition: QcdUeDQM.h:289
edm::EDGetTokenT< reco::BeamSpot > bsLabel_
Definition: QcdUeDQM.h:284
edm::EDGetTokenT< reco::VertexCollection > vtxLabel_
Definition: QcdUeDQM.h:283
tuple tracks
Definition: testEve_cfg.py:39
T const * product() const
Definition: Handle.h:81
container selected_
Definition: QcdUeDQM.h:288
void fillChargedJetSpectra(const edm::Handle< reco::TrackJetCollection > trackJets)
Definition: QcdUeDQM.cc:805
std::vector< MonitorElement * > hNevts_
Definition: QcdUeDQM.h:148
void fillpTMaxRelated(const std::vector< const reco::Track * > &track)
Definition: QcdUeDQM.cc:780
void QcdUeDQM::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 179 of file QcdUeDQM.cc.

References cppFunctionSkipper::operator, and theDbe_.

180 {
181  // Begin job and setup the DQM store.
182 
184  if (!theDbe_)return;
185 
186  // theDbe_->setCurrentFolder("Physics/QcdUe");
187 
188 }
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
void QcdUeDQM::beginLuminosityBlock ( const edm::LuminosityBlock l,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 191 of file QcdUeDQM.cc.

References isHltConfigSuccessful_.

193 {
194  if( ! isHltConfigSuccessful_ ) return;
195 
196  // At the moment, nothing needed to be done.
197 }
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
void QcdUeDQM::beginRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 200 of file QcdUeDQM.cc.

References gather_cfg::cout, CP, createHistos(), newFWLiteAna::found, hltConfig, hltProcNames_, hltResName_, hltTrgBits_, hltTrgDeci_, hltTrgNames_, hltTrgUsedNames_, hltUsedResName_, i, HLTConfigProvider::init(), isHltConfigSuccessful_, j, HLTConfigProvider::size(), and HLTConfigProvider::triggerName().

201 {
202 
203  // indicating change of HLT cfg at run boundries
204  // for HLTConfigProvider::init()
205  bool isHltCfgChange = false;
206  isHltConfigSuccessful_ = false; // init
207 
208  string teststr;
209  for(size_t i=0; i<hltProcNames_.size(); ++i) {
210  if (i>0)
211  teststr += ", ";
212  teststr += hltProcNames_.at(i);
213  if ( hltConfig.init( run, iSetup, hltProcNames_.at(i), isHltCfgChange ) ) {
214  isHltConfigSuccessful_ = true;
216  if (hltResName_.find(':')==string::npos)
217  hltUsedResName_ += "::";
218  else
219  hltUsedResName_ += ":";
221  break;
222  }
223  }
224 
225  if ( ! isHltConfigSuccessful_ )return;
226 
227  // setup "Any" bit
228  hltTrgBits_.clear();
229  hltTrgBits_.push_back(-1);
230  hltTrgDeci_.clear();
231  hltTrgDeci_.push_back(true);
232  hltTrgUsedNames_.clear();
233  hltTrgUsedNames_.push_back("Any");
234 
235  // figure out relation of trigger name to trigger bit and store used trigger names/bits
236  for(size_t i=0;i<hltTrgNames_.size();++i) {
237  const string &n1(hltTrgNames_.at(i));
238  //unsigned int hlt_prescale = hltConfig.prescaleValue(iSetup, n1);
239  //cout<<"trigger=="<<n1<<"presc=="<<hlt_prescale<<endl;
240  bool found = 0;
241  for(size_t j=0;j<hltConfig.size();++j) {
242  const string &n2(hltConfig.triggerName(j));
243  if (n2==n1) {
244  hltTrgBits_.push_back(j);
245  hltTrgUsedNames_.push_back(n1);
246  hltTrgDeci_.push_back(false);
247  found = 1;
248  break;
249  }
250  }
251  if (!found) {
252  CP(2) cout<<"Could not find trigger bit"<<endl ;
253  }
254  }
255 
256  // book monitoring histograms
257  createHistos();
259 
260 }
unsigned int size() const
number of trigger paths in trigger table
int i
Definition: DBlmapReader.cc:9
const std::string & triggerName(unsigned int triggerIndex) const
void createHistos()
Definition: QcdUeDQM.cc:329
std::string hltUsedResName_
Definition: QcdUeDQM.h:140
std::vector< std::string > hltTrgUsedNames_
Definition: QcdUeDQM.h:139
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
std::vector< std::string > hltTrgNames_
Definition: QcdUeDQM.h:134
std::vector< std::string > hltProcNames_
Definition: QcdUeDQM.h:133
std::string hltResName_
Definition: QcdUeDQM.h:132
std::vector< int > hltTrgBits_
Definition: QcdUeDQM.h:137
HLTConfigProvider hltConfig
Definition: QcdUeDQM.h:130
int j
Definition: DBlmapReader.cc:9
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
tuple cout
Definition: gather_cfg.py:121
#define CP(level)
Definition: QcdUeDQM.cc:45
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::book1D ( std::vector< MonitorElement * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private

Definition at line 263 of file QcdUeDQM.cc.

References DQMStore::book1D(), alignCSCRings::e, MonitorElement::getTH1(), hltTrgUsedNames_, i, DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and theDbe_.

Referenced by createHistos().

266 {
267  // Book 1D histos.
268 
269  for(size_t i=0;i<hltTrgUsedNames_.size();++i) {
270  std::string folderName = "Physics/QcdUe/" + hltTrgUsedNames_.at(i);
271  theDbe_->setCurrentFolder(folderName);
272  MonitorElement *e = theDbe_->book1D(Form("%s_%s",name.c_str(),hltTrgUsedNames_.at(i).c_str()),
273  Form("%s: %s",hltTrgUsedNames_.at(i).c_str(), title.c_str()),
274  nx, x1, x2);
275  TH1 *h1 = e->getTH1();
276  if (sumw2) {
277  if( 0 == h1->GetSumw2N() ) { // protect against re-summing (would cause exception)
278  h1->Sumw2();
279  }
280  }
281  h1->SetStats(sbox);
282  mes.push_back(e);
283  }
284 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:954
std::vector< std::string > hltTrgUsedNames_
Definition: QcdUeDQM.h:139
TH1 * getTH1(void) const
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void QcdUeDQM::book2D ( std::vector< MonitorElement * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
int  ny,
double  y1,
double  y2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private

Definition at line 287 of file QcdUeDQM.cc.

References DQMStore::book2D(), alignCSCRings::e, MonitorElement::getTH1(), hltTrgUsedNames_, i, DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and theDbe_.

291 {
292  // Book 2D histos.
293 
294  for(size_t i=0;i<hltTrgUsedNames_.size();++i) {
295  std::string folderName = "Physics/QcdUe/" + hltTrgUsedNames_.at(i);
296  theDbe_->setCurrentFolder(folderName);
297  MonitorElement *e = theDbe_->book2D(Form("%s_%s",name.c_str(),hltTrgUsedNames_.at(i).c_str()),
298  Form("%s: %s",hltTrgUsedNames_.at(i).c_str(), title.c_str()),
299  nx, x1, x2, ny, y1, y2);
300  TH1 *h1 = e->getTH1();
301  if (sumw2) {
302  if( 0 == h1->GetSumw2N() ) { // protect against re-summing (would cause exception)
303  h1->Sumw2();
304  }
305  }
306  h1->SetStats(sbox);
307  mes.push_back(e);
308  }
309 }
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > hltTrgUsedNames_
Definition: QcdUeDQM.h:139
TH1 * getTH1(void) const
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1082
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void QcdUeDQM::bookProfile ( std::vector< MonitorElement * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
double  y1,
double  y2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private

Definition at line 312 of file QcdUeDQM.cc.

References DQMStore::bookProfile(), alignCSCRings::e, hltTrgUsedNames_, i, DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and theDbe_.

Referenced by createHistos().

316 {
317  // Book Profile histos.
318 
319  for(size_t i=0;i<hltTrgUsedNames_.size();++i) {
320  std::string folderName = "Physics/QcdUe/" + hltTrgUsedNames_.at(i);
321  theDbe_->setCurrentFolder(folderName);
322  MonitorElement *e = theDbe_->bookProfile(Form("%s_%s",name.c_str(),hltTrgUsedNames_.at(i).c_str()),
323  Form("%s: %s",hltTrgUsedNames_.at(i).c_str(), title.c_str()),
324  nx, x1, x2, y1, y2," ");
325  mes.push_back(e);
326  }
327 }
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > hltTrgUsedNames_
Definition: QcdUeDQM.h:139
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1268
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void QcdUeDQM::create1D ( std::vector< TH1F * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private
void QcdUeDQM::create2D ( std::vector< TH2F * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
int  ny,
double  y1,
double  y2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private
void QcdUeDQM::createHistos ( )
private

Definition at line 329 of file QcdUeDQM.cc.

References book1D(), DQMStore::book2D(), bookProfile(), MonitorElement::getTH1(), h, h2TrigCorr_, hBeamSpot_x_, hBeamSpot_y_, hBeamSpot_z_, hChargedJetMulti_, hdNdEtadPhi_pTMax_Away500_, hdNdEtadPhi_pTMax_Away900_, hdNdEtadPhi_pTMax_Toward500_, hdNdEtadPhi_pTMax_Toward900_, hdNdEtadPhi_pTMax_Transverse500_, hdNdEtadPhi_pTMax_Transverse900_, hdNdEtadPhi_trackJet_Away500_, hdNdEtadPhi_trackJet_Away900_, hdNdEtadPhi_trackJet_Toward500_, hdNdEtadPhi_trackJet_Toward900_, hdNdEtadPhi_trackJet_Transverse500_, hdNdEtadPhi_trackJet_Transverse900_, hdPhi_chargedJet_tracks_, hdPhi_maxpTTrack_tracks_, hGoodTrkEta500_, hGoodTrkEta900_, hGoodTrkPhi500_, hGoodTrkPhi900_, hGoodTrkPt500_, hGoodTrkPt900_, hLeadingChargedJet_etaSpectrum_, hLeadingChargedJet_phiSpectrum_, hLeadingChargedJet_pTSpectrum_, hLeadingTrack_etaSpectrum_, hLeadingTrack_phiSpectrum_, hLeadingTrack_pTSpectrum_, hltTrgUsedNames_, hNevts_, hNgoodTrk_, hNtrackerLayer_, hNtrackerPixelLayer_, hNtrackerStripPixelLayer_, hNvertices_, hpTSumdEtadPhi_pTMax_Away500_, hpTSumdEtadPhi_pTMax_Away900_, hpTSumdEtadPhi_pTMax_Toward500_, hpTSumdEtadPhi_pTMax_Toward900_, hpTSumdEtadPhi_pTMax_Transverse500_, hpTSumdEtadPhi_pTMax_Transverse900_, hpTSumdEtadPhi_trackJet_Away500_, hpTSumdEtadPhi_trackJet_Away900_, hpTSumdEtadPhi_trackJet_Toward500_, hpTSumdEtadPhi_trackJet_Toward900_, hpTSumdEtadPhi_trackJet_Transverse500_, hpTSumdEtadPhi_trackJet_Transverse900_, hRatioDxySigmaDxyBS_, hRatioDxySigmaDxyPV_, hRatioDzSigmaDzBS_, hRatioDzSigmaDzPV_, hRatioPtErrorPt_, hTrkChi2_, hTrkEta_, hTrkNdof_, hTrkPhi_, hTrkPt_, hVertex_ndof_, hVertex_rho_, hVertex_x_, hVertex_y_, hVertex_z_, hVertex_z_bs_, i, MonitorElement::setBinLabel(), DQMStore::setCurrentFolder(), and theDbe_.

Referenced by beginRun().

330 {
331  // Book histograms if needed.
332 
333 
334 /* if (1) {
335  theDbe_->setCurrentFolder("Physics/EventInfo/");
336  repSumMap_ = theDbe_->book2D("reportSummaryMap","reportSummaryMap",1,0,1,1,0,1);
337  repSummary_ = theDbe_->bookFloat("reportSummary");
338  }
339  */
340  theDbe_->setCurrentFolder("Physics/QcdUe");
341 
342  if (1) {
343  const int Nx = hltTrgUsedNames_.size();
344  const double x1 = -0.5;
345  const double x2 = Nx-0.5;
346  h2TrigCorr_ = theDbe_->book2D("h2TriCorr","Trigger bit x vs y;y&&!x;x&&y",Nx,x1,x2,Nx,x1,x2);
347  for(size_t i=1;i<=hltTrgUsedNames_.size();++i) {
350  }
351  TH1 *h = h2TrigCorr_->getTH1();
352  if (h)
353  h->SetStats(0);
354  }
355  book1D(hNevts_,"hNevts","number of events",2,0,2);
356  book1D(hNtrackerLayer_,"hNtrackerLayer","number of tracker layers;multiplicity",20,-0.5,19.5 );
357  book1D(hNtrackerPixelLayer_,"hNtrackerPixelLayer","number of pixel layers;multiplicity",10,-0.5,9.5 );
358  book1D(hNtrackerStripPixelLayer_,"hNtrackerStripPixelLayer","number of strip + pixel layers;multiplicity",30,-0.5,39.5 );
359  book1D(hRatioPtErrorPt_,"hRatioPtErrorPt","ratio of pT error and track pT",25,0.,5.);
360  book1D(hTrkPt_,"hTrkPt","pT of all tracks",50,0.,50.);
361  book1D(hTrkEta_,"hTrkEta","eta of all tracks",40,-4.,4.);
362  book1D(hTrkPhi_,"hTrkPhi","phi of all tracks",40,-4.,4.);
363  book1D(hRatioDxySigmaDxyBS_,"hRatioDxySigmaDxyBS","ratio of transverse impact parameter and its significance wrt beam spot",60,-10.,10);
364  book1D(hRatioDxySigmaDxyPV_,"hRatioDxySigmaDxyPV","ratio of transverse impact parameter and its significance wrt PV",60,-10.,10);
365  book1D(hRatioDzSigmaDzBS_,"hRatioDzSigmaDzBS","ratio of longitudinal impact parameter and its significance wrt beam spot",80,-20.,20);
366  book1D(hRatioDzSigmaDzPV_,"hRatioDzSigmaDzPV","ratio of longitudinal impact parameter and its significance wrt PV",80,-20.,20);
367  book1D(hTrkChi2_,"hTrkChi2","track chi2",30,0.,30);
368  book1D(hTrkNdof_,"hTrkNdof","track NDOF",100,0,100);
369 
370  book1D(hNgoodTrk_,"hNgoodTrk","number of good tracks",50,-0.5,49.5);
371 
372  book1D(hGoodTrkPt500_,"hGoodTrkPt500","pT of all good tracks with pT > 500 MeV",50,0.,50.);
373  book1D(hGoodTrkEta500_,"hGoodTrkEta500","eta of all good tracks pT > 500 MeV",40,-4.,4.);
374  book1D(hGoodTrkPhi500_,"hGoodTrkPhi500","phi of all good tracks pT > 500 MeV",40,-4.,4.);
375 
376  book1D(hGoodTrkPt900_,"hGoodTrkPt900","pT of all good tracks with pT > 900 MeV",50,0.,50.);
377  book1D(hGoodTrkEta900_,"hGoodTrkEta900","eta of all good tracks pT > 900 MeV",40,-4.,4.);
378  book1D(hGoodTrkPhi900_,"hGoodTrkPhi900","phi of all good tracks pT > 900 MeV",40,-4.,4.);
379 
380  book1D(hNvertices_,"hNvertices","number of vertices",5,-0.5,4.5);
381  book1D(hVertex_z_,"hVertex_z","z position of vertex; z[cm]",200,-50,50);
382  book1D(hVertex_y_,"hVertex_y","y position of vertex; y[cm]",100,-5,5);
383  book1D(hVertex_x_,"hVertex_x","x position of vertex; x[cm]",100,-5,5);
384  book1D(hVertex_ndof_,"hVertex_ndof","ndof of vertex",100,0,100);
385  book1D(hVertex_rho_,"hVertex_rho","rho of vertex",100,0,5);
386  book1D(hVertex_z_bs_,"hVertex_z_bs","z position of vertex from beamspot; z[cm]",200,-50,50);
387 
388  book1D(hBeamSpot_z_,"hBeamSpot_z","z position of beamspot; z[cm]",100,-20,20);
389  book1D(hBeamSpot_y_,"hBeamSpot_y","y position of beamspot; y[cm]",50,-10,10);
390  book1D(hBeamSpot_x_,"hBeamSpot_x","x position of beamspot; x[cm]",50,-10,10);
391 
392 
393  if (1) {
394  const int Nx = 25;
395  const double x1 = 0.0;
396  const double x2 = 50.0;
397  book1D(hLeadingTrack_pTSpectrum_,"hLeadingTrack_pTSpectrum","pT spectrum of leading track;pT(GeV/c)",Nx,x1,x2);
398 // book1D(hLeadingCaloJet_pTSpectrum_,"hLeadingCalo_pTSpectrum","pT spectrum of leading calo jet;pT(GeV/c)",Nx,x1,x2);
399  book1D(hLeadingChargedJet_pTSpectrum_,"hLeadingChargedJet_pTSpectrum","pT spectrum of leading track jet;pT(GeV/c)",Nx,x1,x2);
400 
401  }
402 
403  if (1) {
404  const int Nx = 24;
405  const double x1 = -4.;
406  const double x2 = 4.;
407  book1D(hLeadingTrack_phiSpectrum_,"hLeadingTrack_phiSpectrum","#phi spectrum of leading track;#phi",Nx,x1,x2);
408  // book1D(hLeadingCaloJet_phiSpectrum_,"hLeadingCaloJet_phiSpectrum","#phi spectrum of leading calo jet;#phi",Nx,x1,x2);
409  book1D(hLeadingChargedJet_phiSpectrum_,"hLeadingChargedJet_phiSpectrum","#phi spectrum of leading track jet;#phi",Nx,x1,x2);
410 
411  }
412 
413  if (1) {
414  const int Nx = 24;
415  const double x1 = -4.;
416  const double x2 = 4.;
417  book1D(hLeadingTrack_etaSpectrum_,"hLeadingTrack_etaSpectrum","#eta spectrum of leading track;#eta",Nx,x1,x2);
418  //book1D(hLeadingCaloJet_etaSpectrum_,"hLeadingCaloJet_etaSpectrum","#eta spectrum of leading calo jet;#eta",Nx,x1,x2);
419  book1D(hLeadingChargedJet_etaSpectrum_,"hLeadingChargedJet_etaSpectrum","#eta spectrum of leading track jet;#eta",Nx,x1,x2);
420 
421  }
422 
423 
424 if (1) {
425  const int Nx = 75;
426  const double x1 = 0.0;
427  const double x2 = 75.0;
428  const double y1 = 0.;
429  const double y2 = 10.;
430  bookProfile(hdNdEtadPhi_pTMax_Toward500_,"hdNdEtadPhi_pTMax_Toward500",
431  "Average number of tracks (pT > 500 MeV) in toward region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
432  bookProfile(hdNdEtadPhi_pTMax_Transverse500_,"hdNdEtadPhi_pTMax_Transverse500",
433  "Average number of tracks (pT > 500 MeV) in transverse region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
434  bookProfile(hdNdEtadPhi_pTMax_Away500_,"hdNdEtadPhi_pTMax_Away500",
435  "Average number of tracks (pT > 500 MeV) in away region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
436  /*
437  bookProfile(hdNdEtadPhi_caloJet_Toward500_,"hdNdEtadPhi_caloJet_Toward500",
438  "Average number of tracks (pT > 500 MeV) in toward region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
439  bookProfile(hdNdEtadPhi_caloJet_Transverse500_,"hdNdEtadPhi_caloJet_Transverse500",
440  "Average number of tracks (pT > 500 MeV) in transverse region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
441  bookProfile(hdNdEtadPhi_caloJet_Away500_,"hdNdEtadPhi_caloJet_Away500",
442  "Average number of tracks (pT > 500 MeV) in away region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
443  */
444 
445  bookProfile(hdNdEtadPhi_trackJet_Toward500_,"hdNdEtadPhi_trackJet_Toward500",
446  "Average number of tracks (pT > 500 MeV) in toward region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2);
447  bookProfile(hdNdEtadPhi_trackJet_Transverse500_,"hdNdEtadPhi_trackJet_Transverse500",
448  "Average number of tracks (pT > 500 MeV) in transverse region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
449  bookProfile(hdNdEtadPhi_trackJet_Away500_,"hdNdEtadPhi_trackJet_Away500",
450  "Average number of tracks (pT > 500 MeV) in away region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
451 
452 
453 
454  bookProfile(hpTSumdEtadPhi_pTMax_Toward500_,"hpTSumdEtadPhi_pTMax_Toward500",
455  "Average number of tracks (pT > 500 MeV) in toward region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
456  bookProfile(hpTSumdEtadPhi_pTMax_Transverse500_,"hpTSumdEtadPhi_pTMax_Transverse500",
457  "Average number of tracks (pT > 500 MeV) in transverse region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
458  bookProfile(hpTSumdEtadPhi_pTMax_Away500_,"hpTSumdEtadPhi_pTMax_Away500",
459  "Average number of tracks (pT > 500 MeV) in away region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
460 /*
461  bookProfile(hpTSumdEtadPhi_caloJet_Toward500_,"hpTSumdEtadPhi_caloJet_Toward500",
462  "Average number of tracks (pT > 500 MeV) in toward region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
463  bookProfile(hpTSumdEtadPhi_caloJet_Transverse500_,"hpTSumdEtadPhi_caloJet_Transverse500",
464  "Average number of tracks (pT > 500 MeV) in transverse region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
465  bookProfile(hpTSumdEtadPhi_caloJet_Away500_,"hpTSumdEtadPhi_caloJet_Away500",
466  "Average number of tracks (pT > 500 MeV) in away region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
467 */
468 
469  bookProfile(hpTSumdEtadPhi_trackJet_Toward500_,"hpTSumdEtadPhi_trackJet_Toward500",
470  "Average number of tracks (pT > 500 MeV) in toward region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
471  bookProfile(hpTSumdEtadPhi_trackJet_Transverse500_,"hpTSumdEtadPhi_trackJet_Transverse500",
472  "Average number of tracks (pT > 500 MeV) in transverse region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
473  bookProfile(hpTSumdEtadPhi_trackJet_Away500_,"hpTSumdEtadPhi_trackJet_Away500",
474  "Average number of tracks (pT > 500 MeV) in away region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
475 
476 
477  bookProfile(hdNdEtadPhi_pTMax_Toward900_,"hdNdEtadPhi_pTMax_Toward900",
478  "Average number of tracks (pT > 900 MeV) in toward region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
479  bookProfile(hdNdEtadPhi_pTMax_Transverse900_,"hdNdEtadPhi_pTMax_Transverse900",
480  "Average number of tracks (pT > 900 MeV) in transverse region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
481  bookProfile(hdNdEtadPhi_pTMax_Away900_,"hdNdEtadPhi_pTMax_Away900",
482  "Average number of tracks (pT > 900 MeV) in away region vs leading track pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
483 /*
484  bookProfile(hdNdEtadPhi_caloJet_Toward900_,"hdNdEtadPhi_caloJet_Toward900",
485  "Average number of tracks (pT > 900 MeV) in toward region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
486  bookProfile(hdNdEtadPhi_caloJet_Transverse900_,"hdNdEtadPhi_caloJet_Transverse900",
487  "Average number of tracks (pT > 900 MeV) in transverse region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
488  bookProfile(hdNdEtadPhi_caloJet_Away900_,"hdNdEtadPhi_caloJet_Away900",
489  "Average number of tracks (pT > 900 MeV) in away region vs leading calo jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
490 */
491 
492  bookProfile(hdNdEtadPhi_trackJet_Toward900_,"hdNdEtadPhi_trackJet_Toward900",
493  "Average number of tracks (pT > 900 MeV) in toward region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2);
494  bookProfile(hdNdEtadPhi_trackJet_Transverse900_,"hdNdEtadPhi_trackJet_Transverse900",
495  "Average number of tracks (pT > 900 MeV) in transverse region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
496  bookProfile(hdNdEtadPhi_trackJet_Away900_,"hdNdEtadPhi_trackJet_Away900",
497  "Average number of tracks (pT > 900 MeV) in away region vs leading track jet pT;pT(GeV/c);dN/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
498 
499 
500 
501  bookProfile(hpTSumdEtadPhi_pTMax_Toward900_,"hpTSumdEtadPhi_pTMax_Toward900",
502  "Average number of tracks (pT > 900 MeV) in toward region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
503  bookProfile(hpTSumdEtadPhi_pTMax_Transverse900_,"hpTSumdEtadPhi_pTMax_Transverse900",
504  "Average number of tracks (pT > 900 MeV) in transverse region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
505  bookProfile(hpTSumdEtadPhi_pTMax_Away900_,"hpTSumdEtadPhi_pTMax_Away900",
506  "Average number of tracks (pT > 900 MeV) in away region vs leading track pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
507 /*
508  bookProfile(hpTSumdEtadPhi_caloJet_Toward900_,"hpTSumdEtadPhi_caloJet_Toward900",
509  "Average number of tracks (pT > 900 MeV) in toward region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
510  bookProfile(hpTSumdEtadPhi_caloJet_Transverse900_,"hpTSumdEtadPhi_caloJet_Transverse900",
511  "Average number of tracks (pT > 900 MeV) in transverse region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
512  bookProfile(hpTSumdEtadPhi_caloJet_Away900_,"hpTSumdEtadPhi_caloJet_Away900",
513  "Average number of tracks (pT > 900 MeV) in away region vs leading calo jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
514 */
515  bookProfile(hpTSumdEtadPhi_trackJet_Toward900_,"hpTSumdEtadPhi_trackJet_Toward900",
516  "Average number of tracks (pT > 900 MeV) in toward region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
517  bookProfile(hpTSumdEtadPhi_trackJet_Transverse900_,"hpTSumdEtadPhi_trackJet_Transverse900",
518  "Average number of tracks (pT > 900 MeV) in transverse region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
519  bookProfile(hpTSumdEtadPhi_trackJet_Away900_,"hpTSumdEtadPhi_trackJet_Away900",
520  "Average number of tracks (pT > 900 MeV) in away region vs leading track jet pT;pT(GeV/c);dpTSum/d#eta d#phi",Nx,x1,x2,y1,y2,0,0);
521 
522 
523  }
524 
525 if (1) {
526  const int Nx = 20;
527  const double x1 = 0.0;
528  const double x2 = 20.0;
529 
530  book1D(hChargedJetMulti_,"hChargedJetMulti","Charged jet multiplicity;multiplicities",Nx,x1,x2);
531  //book1D(hCaloJetMulti_,"hCaloJetMulti","Calo jet multiplicity;multiplicities",Nx,x1,x2);
532 
533  }
534 
535 
536 if (1) {
537  const int Nx = 60;
538  const double x1 = -180.0;
539  const double x2 = 180.0;
540 
541  book1D(hdPhi_maxpTTrack_tracks_,"hdPhi_maxpTTrack_tracks","delta phi between leading tracks and other tracks;#Delta#phi(leading track-track)",Nx,x1,x2);
542 // book1D(hdPhi_caloJet_tracks_,"hdPhi_caloJet_tracks","delta phi between leading calo jet and tracks;#Delta#phi(leading calo jet-track)",Nx,x1,x2);
543  book1D(hdPhi_chargedJet_tracks_,"hdPhi_chargedJet_tracks","delta phi between leading charged jet and tracks;#Delta#phi(leading charged jet-track)",Nx,x1,x2);
544 
545 }
546 
547 
548 }
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away500_
Definition: QcdUeDQM.h:234
int i
Definition: DBlmapReader.cc:9
std::vector< MonitorElement * > hGoodTrkEta500_
Definition: QcdUeDQM.h:158
std::vector< MonitorElement * > hRatioPtErrorPt_
Definition: QcdUeDQM.h:152
std::vector< MonitorElement * > hTrkPt_
Definition: QcdUeDQM.h:153
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward900_
Definition: QcdUeDQM.h:245
std::vector< MonitorElement * > hVertex_ndof_
Definition: QcdUeDQM.h:176
std::vector< MonitorElement * > hNtrackerStripPixelLayer_
Definition: QcdUeDQM.h:151
std::vector< MonitorElement * > hGoodTrkPhi500_
Definition: QcdUeDQM.h:159
std::vector< MonitorElement * > hBeamSpot_x_
Definition: QcdUeDQM.h:183
std::vector< MonitorElement * > hNvertices_
Definition: QcdUeDQM.h:172
std::vector< MonitorElement * > hGoodTrkPt900_
Definition: QcdUeDQM.h:160
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse500_
Definition: QcdUeDQM.h:233
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse900_
Definition: QcdUeDQM.h:246
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward900_
Definition: QcdUeDQM.h:258
std::vector< MonitorElement * > hdPhi_chargedJet_tracks_
Definition: QcdUeDQM.h:206
std::vector< MonitorElement * > hLeadingTrack_pTSpectrum_
Definition: QcdUeDQM.h:186
std::vector< std::string > hltTrgUsedNames_
Definition: QcdUeDQM.h:139
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse900_
Definition: QcdUeDQM.h:252
std::vector< MonitorElement * > hBeamSpot_y_
Definition: QcdUeDQM.h:182
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward500_
Definition: QcdUeDQM.h:212
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse500_
Definition: QcdUeDQM.h:220
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse500_
Definition: QcdUeDQM.h:226
std::vector< MonitorElement * > hVertex_z_bs_
Definition: QcdUeDQM.h:178
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse500_
Definition: QcdUeDQM.h:213
std::vector< MonitorElement * > hLeadingChargedJet_etaSpectrum_
Definition: QcdUeDQM.h:209
std::vector< MonitorElement * > hTrkChi2_
Definition: QcdUeDQM.h:167
std::vector< MonitorElement * > hVertex_rho_
Definition: QcdUeDQM.h:177
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward500_
Definition: QcdUeDQM.h:219
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away500_
Definition: QcdUeDQM.h:227
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward500_
Definition: QcdUeDQM.h:232
std::vector< MonitorElement * > hdPhi_maxpTTrack_tracks_
Definition: QcdUeDQM.h:204
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away900_
Definition: QcdUeDQM.h:240
MonitorElement * h2TrigCorr_
Definition: QcdUeDQM.h:146
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away500_
Definition: QcdUeDQM.h:221
std::vector< MonitorElement * > hTrkPhi_
Definition: QcdUeDQM.h:155
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse900_
Definition: QcdUeDQM.h:259
std::vector< MonitorElement * > hLeadingTrack_phiSpectrum_
Definition: QcdUeDQM.h:188
std::vector< MonitorElement * > hRatioDxySigmaDxyBS_
Definition: QcdUeDQM.h:163
std::vector< MonitorElement * > hRatioDzSigmaDzBS_
Definition: QcdUeDQM.h:165
TH1 * getTH1(void) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward900_
Definition: QcdUeDQM.h:238
std::vector< MonitorElement * > hRatioDxySigmaDxyPV_
Definition: QcdUeDQM.h:164
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse900_
Definition: QcdUeDQM.h:239
std::vector< MonitorElement * > hNtrackerPixelLayer_
Definition: QcdUeDQM.h:150
std::vector< MonitorElement * > hChargedJetMulti_
Definition: QcdUeDQM.h:194
std::vector< MonitorElement * > hTrkEta_
Definition: QcdUeDQM.h:154
std::vector< MonitorElement * > hNtrackerLayer_
Definition: QcdUeDQM.h:149
std::vector< MonitorElement * > hGoodTrkPt500_
Definition: QcdUeDQM.h:157
std::vector< MonitorElement * > hVertex_z_
Definition: QcdUeDQM.h:173
std::vector< MonitorElement * > hVertex_y_
Definition: QcdUeDQM.h:174
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away900_
Definition: QcdUeDQM.h:247
std::vector< MonitorElement * > hLeadingChargedJet_pTSpectrum_
Definition: QcdUeDQM.h:196
std::vector< MonitorElement * > hNgoodTrk_
Definition: QcdUeDQM.h:156
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away900_
Definition: QcdUeDQM.h:253
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward500_
Definition: QcdUeDQM.h:225
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away500_
Definition: QcdUeDQM.h:214
std::vector< MonitorElement * > hBeamSpot_z_
Definition: QcdUeDQM.h:181
void bookProfile(std::vector< MonitorElement * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, double y1, double y2, bool sumw2=1, bool sbox=1)
Definition: QcdUeDQM.cc:312
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward900_
Definition: QcdUeDQM.h:251
std::vector< MonitorElement * > hRatioDzSigmaDzPV_
Definition: QcdUeDQM.h:166
std::vector< MonitorElement * > hTrkNdof_
Definition: QcdUeDQM.h:168
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away900_
Definition: QcdUeDQM.h:260
std::vector< MonitorElement * > hVertex_x_
Definition: QcdUeDQM.h:175
std::vector< MonitorElement * > hNevts_
Definition: QcdUeDQM.h:148
DQMStore * theDbe_
Definition: QcdUeDQM.h:143
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1082
std::vector< MonitorElement * > hGoodTrkEta900_
Definition: QcdUeDQM.h:161
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
std::vector< MonitorElement * > hLeadingTrack_etaSpectrum_
Definition: QcdUeDQM.h:187
std::vector< MonitorElement * > hLeadingChargedJet_phiSpectrum_
Definition: QcdUeDQM.h:210
void book1D(std::vector< MonitorElement * > &mes, const std::string &name, const std::string &title, int nx, double x1, double x2, bool sumw2=1, bool sbox=1)
Definition: QcdUeDQM.cc:263
std::vector< MonitorElement * > hGoodTrkPhi900_
Definition: QcdUeDQM.h:162
void QcdUeDQM::createProfile ( std::vector< TProfile * > &  mes,
const std::string &  name,
const std::string &  title,
int  nx,
double  x1,
double  x2,
double  y1,
double  y2,
bool  sumw2 = 1,
bool  sbox = 1 
)
private
void QcdUeDQM::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 551 of file QcdUeDQM.cc.

552 {
553 }
void QcdUeDQM::endLuminosityBlock ( const edm::LuminosityBlock l,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 557 of file QcdUeDQM.cc.

References isHltConfigSuccessful_.

559 {
560  if( ! isHltConfigSuccessful_ ) return;
561 
562  // Update various histograms.
563 
564  //repSummary_->Fill(1.);
565  // repSumMap_->Fill(0.5,0.5,1.);
566 
567 }
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
void QcdUeDQM::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 571 of file QcdUeDQM.cc.

References isHltConfigSuccessful_.

572 {
573  if( ! isHltConfigSuccessful_ ) return;
574 
575  // End run, cleanup. TODO: can this be called several times in DQM???
576 
577 }
bool isHltConfigSuccessful_
Definition: QcdUeDQM.h:69
void QcdUeDQM::fill1D ( std::vector< TH1F * > &  hs,
double  val,
double  w = 1. 
)
private

Definition at line 580 of file QcdUeDQM.cc.

References hltTrgDeci_, and i.

Referenced by analyze(), fillChargedJetSpectra(), fillpTMaxRelated(), fillUE_with_ChargedJets(), fillUE_with_MaxpTtrack(), fillVtxPlots(), and trackSelection().

581 {
582  // Loop over histograms and fill if trigger has fired.
583 
584  for(size_t i=0;i<hs.size();++i) {
585  if (!hltTrgDeci_.at(i))
586  continue;
587  hs.at(i)->Fill(val,w);
588  }
589 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fill1D ( std::vector< MonitorElement * > &  mes,
double  val,
double  w = 1. 
)
private

Definition at line 592 of file QcdUeDQM.cc.

References hltTrgDeci_, and i.

593 {
594  // Loop over histograms and fill if trigger has fired.
595 
596  for(size_t i=0;i<mes.size();++i) {
597  if (!hltTrgDeci_.at(i))
598  continue;
599  mes.at(i)->Fill(val,w);
600  }
601 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fill2D ( std::vector< TH2F * > &  hs,
double  valx,
double  valy,
double  w = 1. 
)
private

Definition at line 616 of file QcdUeDQM.cc.

References hltTrgDeci_, and i.

617 {
618  // Loop over histograms and fill if trigger has fired.
619 
620  for(size_t i=0;i<hs.size();++i) {
621  if (!hltTrgDeci_.at(i))
622  continue;
623  hs.at(i)->Fill(valx, valy ,w);
624  }
625 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fill2D ( std::vector< MonitorElement * > &  mes,
double  valx,
double  valy,
double  w = 1. 
)
private

Definition at line 628 of file QcdUeDQM.cc.

References hltTrgDeci_, and i.

629 {
630  // Loop over histograms and fill if trigger has fired.
631 
632  for(size_t i=0;i<mes.size();++i) {
633  if (!hltTrgDeci_.at(i))
634  continue;
635  mes.at(i)->Fill(valx, valy ,w);
636  }
637 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fill3D ( std::vector< TH3F * > &  hs,
int  gbin,
double  w = 1. 
)
private
void QcdUeDQM::fillChargedJetSpectra ( const edm::Handle< reco::TrackJetCollection trackJets)
private

Definition at line 805 of file QcdUeDQM.cc.

References f, fill1D(), hChargedJetMulti_, hLeadingChargedJet_etaSpectrum_, hLeadingChargedJet_phiSpectrum_, and hLeadingChargedJet_pTSpectrum_.

Referenced by analyze().

806 {
807  fill1D(hChargedJetMulti_,trackJets->size());
808  for( reco::TrackJetCollection::const_iterator f = trackJets->begin(); f != trackJets->end(); f++)
809  {
810  if(f != trackJets->begin())continue;
814  }
815 
816 }
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
std::vector< MonitorElement * > hLeadingChargedJet_etaSpectrum_
Definition: QcdUeDQM.h:209
double f[11][100]
std::vector< MonitorElement * > hChargedJetMulti_
Definition: QcdUeDQM.h:194
std::vector< MonitorElement * > hLeadingChargedJet_pTSpectrum_
Definition: QcdUeDQM.h:196
std::vector< MonitorElement * > hLeadingChargedJet_phiSpectrum_
Definition: QcdUeDQM.h:210
void QcdUeDQM::fillHltBits ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
private

Definition at line 1083 of file QcdUeDQM.cc.

References MonitorElement::Fill(), getProduct(), h2TrigCorr_, hltTrgBits_, hltTrgDeci_, hltUsedResName_, i, j, and findQualityFiles::size.

Referenced by analyze().

1084 {
1085  // Fill HLT trigger bits.
1086 
1087  Handle<TriggerResults> triggerResultsHLT;
1088  getProduct(hltUsedResName_, triggerResultsHLT, iEvent);
1089 
1090 /* const unsigned int ntrigs(triggerResultsHLT.product()->size());
1091  if( ntrigs != 0 ) {
1092  const edm::TriggerNames & triggerNames = iEvent.triggerNames(*triggerResultsHLT);
1093  for (unsigned int j=0; j!=ntrigs; j++) {
1094 // if(triggerResultsHLT->accept(j)){
1095 // unsigned int hlt_prescale = hltConfig_.prescaleValue(iEvent, iSetup, triggerName);
1096  cout<<"trigger fired"<<triggerNames.triggerName(j)<<endl;
1097  for(unsigned int itrigName = 0; itrigName < hltTrgNames_.size(); itrigName++ ) {
1098  unsigned int hlt_prescale = hltConfig.prescaleValue(iEvent, iSetup, hltTrgNames_[itrigName]);
1099 
1100  if(triggerNames.triggerIndex(hltTrgNames_[itrigName]) >= (unsigned int)ntrigs ) continue;
1101 // if( triggerResultsHLT->accept(triggerNames.triggerIndex(hltTrgNames_[itrigName])) )cout<<hltTrgNames_[itrigName]<<endl;
1102 
1103  }
1104  }
1105  }
1106  // }
1107 */
1108  for(size_t i=0;i<hltTrgBits_.size();++i) {
1109  if (hltTrgBits_.at(i)<0)
1110  continue; //ignore unknown trigger
1111  size_t tbit = hltTrgBits_.at(i);
1112  if (tbit<triggerResultsHLT->size()) {
1113  hltTrgDeci_[i] = triggerResultsHLT->accept(tbit);
1114  }
1115  }
1116  // fill correlation histogram
1117  for(size_t i=0;i<hltTrgBits_.size();++i) {
1118  if (hltTrgDeci_.at(i))
1119  h2TrigCorr_->Fill(i,i);
1120  for(size_t j=i+1;j<hltTrgBits_.size();++j) {
1121  if (hltTrgDeci_.at(i) && hltTrgDeci_.at(j))
1122  h2TrigCorr_->Fill(i,j);
1123  if (hltTrgDeci_.at(i) && !hltTrgDeci_.at(j))
1124  h2TrigCorr_->Fill(j,i);
1125  }
1126  }
1127 }
int i
Definition: DBlmapReader.cc:9
void getProduct(const std::string name, edm::Handle< TYPE > &prod, const edm::Event &event) const
Definition: QcdUeDQM.h:295
std::string hltUsedResName_
Definition: QcdUeDQM.h:140
void Fill(long long x)
MonitorElement * h2TrigCorr_
Definition: QcdUeDQM.h:146
std::vector< int > hltTrgBits_
Definition: QcdUeDQM.h:137
int j
Definition: DBlmapReader.cc:9
tuple size
Write out results.
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fillProfile ( std::vector< TProfile * > &  hs,
double  valx,
double  valy,
double  w = 1. 
)
private

Definition at line 639 of file QcdUeDQM.cc.

References hltTrgDeci_, and i.

Referenced by fillUE_with_ChargedJets(), and fillUE_with_MaxpTtrack().

640 {
641  // Loop over histograms and fill if trigger has fired.
642 
643  for(size_t i=0;i<hs.size();++i) {
644  if (!hltTrgDeci_.at(i))
645  continue;
646  hs.at(i)->Fill(valx, valy ,w);
647  }
648 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fillProfile ( std::vector< MonitorElement * > &  mes,
double  valx,
double  valy,
double  w = 1. 
)
private

Definition at line 651 of file QcdUeDQM.cc.

References hltTrgDeci_, i, w, and detailsBasic3DVector::y.

652 {
653  // Loop over histograms and fill if trigger has fired.
654 
655  for(size_t i=0;i<mes.size();++i) {
656  if (!hltTrgDeci_.at(i))
657  continue;
658  const double y = valy*w;
659  mes.at(i)->Fill(valx, y);
660  }
661 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
void QcdUeDQM::fillpTMaxRelated ( const std::vector< const reco::Track * > &  track)
private

Definition at line 780 of file QcdUeDQM.cc.

References eta(), fill1D(), hGoodTrkEta500_, hGoodTrkEta900_, hGoodTrkPhi500_, hGoodTrkPhi900_, hGoodTrkPt500_, hGoodTrkPt900_, hLeadingTrack_etaSpectrum_, hLeadingTrack_phiSpectrum_, hLeadingTrack_pTSpectrum_, hNgoodTrk_, i, phi, and RecoTauCleanerPlugins::pt.

Referenced by analyze().

781  {
782  fill1D(hNgoodTrk_,track.size());
783  if(track.size()>0)
784  {
785  fill1D(hLeadingTrack_pTSpectrum_,track[0]->pt());
788  }
789  for(size_t i = 0; i < track.size(); i++)
790  {
791  fill1D(hGoodTrkPt500_,track[i]->pt());
792  fill1D(hGoodTrkEta500_,track[i]->eta());
793  fill1D(hGoodTrkPhi500_,track[i]->phi());
794  if(track[i]->pt() > 0.9)
795  {
796  fill1D(hGoodTrkPt900_,track[i]->pt());
797  fill1D(hGoodTrkEta900_,track[i]->eta());
798  fill1D(hGoodTrkPhi900_,track[i]->phi());
799  }
800  }
801 
802  }
int i
Definition: DBlmapReader.cc:9
std::vector< MonitorElement * > hGoodTrkEta500_
Definition: QcdUeDQM.h:158
std::vector< MonitorElement * > hGoodTrkPhi500_
Definition: QcdUeDQM.h:159
std::vector< MonitorElement * > hGoodTrkPt900_
Definition: QcdUeDQM.h:160
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
std::vector< MonitorElement * > hLeadingTrack_pTSpectrum_
Definition: QcdUeDQM.h:186
T eta() const
std::vector< MonitorElement * > hLeadingTrack_phiSpectrum_
Definition: QcdUeDQM.h:188
std::vector< MonitorElement * > hGoodTrkPt500_
Definition: QcdUeDQM.h:157
std::vector< MonitorElement * > hNgoodTrk_
Definition: QcdUeDQM.h:156
std::vector< MonitorElement * > hGoodTrkEta900_
Definition: QcdUeDQM.h:161
std::vector< MonitorElement * > hLeadingTrack_etaSpectrum_
Definition: QcdUeDQM.h:187
Definition: DDAxes.h:10
std::vector< MonitorElement * > hGoodTrkPhi900_
Definition: QcdUeDQM.h:162
void QcdUeDQM::fillUE_with_ChargedJets ( const std::vector< const reco::Track * > &  track,
const edm::Handle< reco::TrackJetCollection > &  trackJets 
)
private

Definition at line 925 of file QcdUeDQM.cc.

References SiPixelRawToDigiRegional_cfi::deltaPhi, fill1D(), fillProfile(), hdNdEtadPhi_trackJet_Away500_, hdNdEtadPhi_trackJet_Away900_, hdNdEtadPhi_trackJet_Toward500_, hdNdEtadPhi_trackJet_Toward900_, hdNdEtadPhi_trackJet_Transverse500_, hdNdEtadPhi_trackJet_Transverse900_, hdPhi_chargedJet_tracks_, hpTSumdEtadPhi_trackJet_Away500_, hpTSumdEtadPhi_trackJet_Away900_, hpTSumdEtadPhi_trackJet_Toward500_, hpTSumdEtadPhi_trackJet_Toward900_, hpTSumdEtadPhi_trackJet_Transverse500_, hpTSumdEtadPhi_trackJet_Transverse900_, i, reco::btau::jetPhi, phi, PI, RecoTauCleanerPlugins::pt, and w.

Referenced by analyze().

926 {
927 double w = 0.119;
928 double nTrk500_TransReg = 0;
929 double nTrk500_AwayReg = 0;
930 double nTrk500_TowardReg = 0;
931 
932 double pTSum500_TransReg = 0;
933 double pTSum500_AwayReg = 0;
934 double pTSum500_TowardReg = 0;
935 
936 
937 double nTrk900_TransReg = 0;
938 double nTrk900_AwayReg = 0;
939 double nTrk900_TowardReg = 0;
940 
941 double pTSum900_TransReg = 0;
942 double pTSum900_AwayReg = 0;
943 double pTSum900_TowardReg = 0;
944 
945  if(!(trackJets->empty()) && (trackJets->begin())->pt() > 1.)
946  {
947  double jetPhi = (trackJets->begin())->phi();
948  for(size_t i = 0; i < track.size();i++)
949  {
950  double dphi = (180./PI)*(deltaPhi(jetPhi,track[i]->phi()));
952  if(fabs(dphi)>60. && fabs(dphi)<120.)
953  {
954  pTSum500_TransReg = pTSum500_TransReg + track[i]->pt();
955  nTrk500_TransReg++;
956  if(track[i]->pt() > 0.9)
957  {
958  pTSum900_TransReg = pTSum900_TransReg + track[i]->pt();
959  nTrk900_TransReg++;
960  }
961  }
962 
963  if(fabs(dphi)>120. && fabs(dphi)<180.)
964  {
965  pTSum500_AwayReg = pTSum500_AwayReg + track[i]->pt();
966  nTrk500_AwayReg++;
967  if(track[i]->pt() > 0.9)
968  {
969  pTSum900_AwayReg = pTSum900_AwayReg + track[i]->pt();
970  nTrk900_AwayReg++;
971  }
972  }
973  if(fabs(dphi)<60.)
974  {
975  pTSum500_TowardReg = pTSum500_TowardReg + track[i]->pt();
976  nTrk500_TowardReg++;
977  if(track[i]->pt() > 0.9)
978  {
979  pTSum900_TowardReg = pTSum900_TowardReg + track[i]->pt();
980  nTrk900_TowardReg++;
981  }
982  }
983  }// tracks loop
984 
985  }// leading track jet
986 
987  fillProfile(hdNdEtadPhi_trackJet_Toward500_, (trackJets->begin())->pt(),nTrk500_TowardReg,w);
988  fillProfile(hdNdEtadPhi_trackJet_Transverse500_, (trackJets->begin())->pt(),nTrk500_TransReg,w);
989  fillProfile(hdNdEtadPhi_trackJet_Away500_, (trackJets->begin())->pt(),nTrk500_AwayReg,w);
990 
991  fillProfile(hpTSumdEtadPhi_trackJet_Toward500_, (trackJets->begin())->pt(),pTSum500_TowardReg,w);
992  fillProfile(hpTSumdEtadPhi_trackJet_Transverse500_, (trackJets->begin())->pt(),pTSum500_TransReg,w);
993  fillProfile(hpTSumdEtadPhi_trackJet_Away500_, (trackJets->begin())->pt(),pTSum500_AwayReg,w);
994 
995  fillProfile(hdNdEtadPhi_trackJet_Toward900_, (trackJets->begin())->pt(),nTrk900_TowardReg,w);
996  fillProfile(hdNdEtadPhi_trackJet_Transverse900_, (trackJets->begin())->pt(),nTrk900_TransReg,w);
997  fillProfile(hdNdEtadPhi_trackJet_Away900_, (trackJets->begin())->pt(),nTrk900_AwayReg,w);
998 
999  fillProfile(hpTSumdEtadPhi_trackJet_Toward900_, (trackJets->begin())->pt(),pTSum900_TowardReg,w);
1000  fillProfile(hpTSumdEtadPhi_trackJet_Transverse900_, (trackJets->begin())->pt(),pTSum900_TransReg,w);
1001  fillProfile(hpTSumdEtadPhi_trackJet_Away900_, (trackJets->begin())->pt(),pTSum900_AwayReg,w);
1002 }
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away500_
Definition: QcdUeDQM.h:234
int i
Definition: DBlmapReader.cc:9
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward900_
Definition: QcdUeDQM.h:245
const double w
Definition: UKUtility.cc:23
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse500_
Definition: QcdUeDQM.h:233
#define PI
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse900_
Definition: QcdUeDQM.h:246
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward900_
Definition: QcdUeDQM.h:258
std::vector< MonitorElement * > hdPhi_chargedJet_tracks_
Definition: QcdUeDQM.h:206
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Transverse500_
Definition: QcdUeDQM.h:220
void fillProfile(std::vector< TProfile * > &hs, double valx, double valy, double w=1.)
Definition: QcdUeDQM.cc:639
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Toward500_
Definition: QcdUeDQM.h:219
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Toward500_
Definition: QcdUeDQM.h:232
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away500_
Definition: QcdUeDQM.h:221
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Transverse900_
Definition: QcdUeDQM.h:259
std::vector< MonitorElement * > hdNdEtadPhi_trackJet_Away900_
Definition: QcdUeDQM.h:247
std::vector< MonitorElement * > hpTSumdEtadPhi_trackJet_Away900_
Definition: QcdUeDQM.h:260
Definition: DDAxes.h:10
void QcdUeDQM::fillUE_with_MaxpTtrack ( const std::vector< const reco::Track * > &  track)
private

Definition at line 842 of file QcdUeDQM.cc.

References SiPixelRawToDigiRegional_cfi::deltaPhi, fill1D(), fillProfile(), hdNdEtadPhi_pTMax_Away500_, hdNdEtadPhi_pTMax_Away900_, hdNdEtadPhi_pTMax_Toward500_, hdNdEtadPhi_pTMax_Toward900_, hdNdEtadPhi_pTMax_Transverse500_, hdNdEtadPhi_pTMax_Transverse900_, hdPhi_maxpTTrack_tracks_, hpTSumdEtadPhi_pTMax_Away500_, hpTSumdEtadPhi_pTMax_Away900_, hpTSumdEtadPhi_pTMax_Toward500_, hpTSumdEtadPhi_pTMax_Toward900_, hpTSumdEtadPhi_pTMax_Transverse500_, hpTSumdEtadPhi_pTMax_Transverse900_, i, phi, PI, RecoTauCleanerPlugins::pt, and w.

Referenced by analyze().

843 {
844 double w = 0.119;
845 //double w = 1.;
846 double nTrk500_TransReg = 0;
847 double nTrk500_AwayReg = 0;
848 double nTrk500_TowardReg = 0;
849 
850 double pTSum500_TransReg = 0;
851 double pTSum500_AwayReg = 0;
852 double pTSum500_TowardReg = 0;
853 
854 
855 double nTrk900_TransReg = 0;
856 double nTrk900_AwayReg = 0;
857 double nTrk900_TowardReg = 0;
858 
859 double pTSum900_TransReg = 0;
860 double pTSum900_AwayReg = 0;
861 double pTSum900_TowardReg = 0;
862  if(track.size() > 0)
863  {
864  if(track[0]->pt() > 1.)
865  {
866  for(size_t i = 1; i < track.size();i++)
867  {
868 
869  double dphi = (180./PI)*(deltaPhi(track[0]->phi(),track[i]->phi()));
871  if(fabs(dphi)>60. && fabs(dphi)<120.)
872  {
873  pTSum500_TransReg = pTSum500_TransReg + track[i]->pt();
874  nTrk500_TransReg++;
875  if(track[i]->pt() > 0.9)
876  {
877  pTSum900_TransReg = pTSum900_TransReg + track[i]->pt();
878  nTrk900_TransReg++;
879  }
880  }
881 
882  if(fabs(dphi)>120. && fabs(dphi)<180.)
883  {
884  pTSum500_AwayReg = pTSum500_AwayReg + track[i]->pt();
885  nTrk500_AwayReg++;
886  if(track[i]->pt() > 0.9)
887  {
888  pTSum900_AwayReg = pTSum900_AwayReg + track[i]->pt();
889  nTrk900_AwayReg++;
890 
891  }
892  }
893 
894  if(fabs(dphi)<60.)
895  {
896  pTSum500_TowardReg = pTSum500_TowardReg + track[i]->pt();
897  nTrk500_TowardReg++;
898  if(track[i]->pt() > 0.9)
899  {
900  pTSum900_TowardReg = pTSum900_TowardReg + track[i]->pt();
901  nTrk900_TowardReg++;
902  }
903  }
904  } // track loop
905  }// leading track
906  // non empty collection
907  fillProfile(hdNdEtadPhi_pTMax_Toward500_, track[0]->pt(),nTrk500_TowardReg,w);
908  fillProfile(hdNdEtadPhi_pTMax_Transverse500_, track[0]->pt(),nTrk500_TransReg,w);
909  fillProfile(hdNdEtadPhi_pTMax_Away500_, track[0]->pt(),nTrk500_AwayReg,w);
910 
911  fillProfile(hpTSumdEtadPhi_pTMax_Toward500_,track[0]->pt() ,pTSum500_TowardReg,w);
912  fillProfile(hpTSumdEtadPhi_pTMax_Transverse500_,track[0]->pt(),pTSum500_TransReg,w);
913  fillProfile(hpTSumdEtadPhi_pTMax_Away500_, track[0]->pt(),pTSum500_AwayReg,w);
914 
915  fillProfile(hdNdEtadPhi_pTMax_Toward900_, track[0]->pt(),nTrk900_TowardReg,w);
916  fillProfile(hdNdEtadPhi_pTMax_Transverse900_, track[0]->pt(),nTrk900_TransReg,w);
917  fillProfile(hdNdEtadPhi_pTMax_Away900_, track[0]->pt(),nTrk900_AwayReg,w);
918 
919  fillProfile(hpTSumdEtadPhi_pTMax_Toward900_,track[0]->pt() ,pTSum900_TowardReg,w);
920  fillProfile(hpTSumdEtadPhi_pTMax_Transverse900_,track[0]->pt(),pTSum900_TransReg,w);
921  fillProfile(hpTSumdEtadPhi_pTMax_Away900_, track[0]->pt(),pTSum900_AwayReg,w);
922  }
923 }
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
#define PI
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse900_
Definition: QcdUeDQM.h:252
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward500_
Definition: QcdUeDQM.h:212
void fillProfile(std::vector< TProfile * > &hs, double valx, double valy, double w=1.)
Definition: QcdUeDQM.cc:639
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Transverse500_
Definition: QcdUeDQM.h:226
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse500_
Definition: QcdUeDQM.h:213
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away500_
Definition: QcdUeDQM.h:227
std::vector< MonitorElement * > hdPhi_maxpTTrack_tracks_
Definition: QcdUeDQM.h:204
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away900_
Definition: QcdUeDQM.h:240
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Toward900_
Definition: QcdUeDQM.h:238
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Transverse900_
Definition: QcdUeDQM.h:239
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Away900_
Definition: QcdUeDQM.h:253
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward500_
Definition: QcdUeDQM.h:225
std::vector< MonitorElement * > hdNdEtadPhi_pTMax_Away500_
Definition: QcdUeDQM.h:214
std::vector< MonitorElement * > hpTSumdEtadPhi_pTMax_Toward900_
Definition: QcdUeDQM.h:251
Definition: DDAxes.h:10
bool QcdUeDQM::fillVtxPlots ( const reco::BeamSpot bs,
const edm::Handle< reco::VertexCollection vtxColl 
)
private

Definition at line 755 of file QcdUeDQM.cc.

References diffvtxbs_, fill1D(), hNvertices_, hVertex_ndof_, hVertex_rho_, hVertex_x_, hVertex_y_, hVertex_z_, hVertex_z_bs_, edm::Handle< T >::product(), vtx1, and reco::BeamSpot::z0().

Referenced by analyze().

756 {
757  const reco::VertexCollection theVertices = *(vtxColl.product());
758  bool goodVtx = false;
759  fill1D(hNvertices_,theVertices.size());
760  for (reco::VertexCollection::const_iterator vertexIt = theVertices.begin(); vertexIt != theVertices.end(); ++vertexIt)
761  {
762  fill1D(hVertex_z_,vertexIt->z());
763  fill1D(hVertex_y_,vertexIt->y());
764  fill1D(hVertex_x_,vertexIt->x());
765  fill1D(hVertex_ndof_,vertexIt->ndof());
766  fill1D(hVertex_rho_,vertexIt->position().rho());
767  fill1D(hVertex_z_bs_,(vertexIt->z() -bs->z0()));
768 
769  if(fabs(vertexIt->z() -bs->z0()) < diffvtxbs_ && vertexIt->ndof() >= 4 && vertexIt->position().rho()<= 2.0)
770  {
771  goodVtx = true;
772  vtx1=(*vertexIt);
773 
774  break;
775  }
776  } // Loop over vertcies
777  return goodVtx;
778 }
double z0() const
z coordinate
Definition: BeamSpot.h:68
std::vector< MonitorElement * > hVertex_ndof_
Definition: QcdUeDQM.h:176
std::vector< MonitorElement * > hNvertices_
Definition: QcdUeDQM.h:172
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
std::vector< MonitorElement * > hVertex_z_bs_
Definition: QcdUeDQM.h:178
std::vector< MonitorElement * > hVertex_rho_
Definition: QcdUeDQM.h:177
reco::Vertex vtx1
Definition: QcdUeDQM.h:289
std::vector< MonitorElement * > hVertex_z_
Definition: QcdUeDQM.h:173
std::vector< MonitorElement * > hVertex_y_
Definition: QcdUeDQM.h:174
double diffvtxbs_
Definition: QcdUeDQM.h:269
T const * product() const
Definition: Handle.h:81
std::vector< MonitorElement * > hVertex_x_
Definition: QcdUeDQM.h:175
template<typename TYPE >
void QcdUeDQM::getProduct ( const std::string  name,
edm::Handle< TYPE > &  prod,
const edm::Event event 
) const
inlineprivate

Definition at line 295 of file QcdUeDQM.h.

References edm::errors::Configuration, and edm::HandleBase::isValid().

Referenced by fillHltBits().

297 {
298  // Try to access data collection from EDM file. We check if we really get just one
299  // product with the given name. If not we throw an exception.
300 
301  event.getByLabel(edm::InputTag(name),prod);
302  if (!prod.isValid())
303  throw edm::Exception(edm::errors::Configuration, "QcdUeDQM::GetProduct()\n")
304  << "Collection with label " << name << " is not valid" << std::endl;
305 }
bool isValid() const
Definition: HandleBase.h:76
template<typename TYPE >
bool QcdUeDQM::getProductSafe ( const std::string  name,
edm::Handle< TYPE > &  prod,
const edm::Event event 
) const
inlineprivate

Definition at line 309 of file QcdUeDQM.h.

References edm::HandleBase::isValid().

311 {
312  // Try to safely access data collection from EDM file. We check if we really get just one
313  // product with the given name. If not, we return false.
314 
315  if (name.size()==0)
316  return false;
317 
318  try {
319  event.getByLabel(edm::InputTag(name),prod);
320  if (!prod.isValid())
321  return false;
322  } catch (...) {
323  return false;
324  }
325  return true;
326 }
bool isValid() const
Definition: HandleBase.h:76
void QcdUeDQM::setLabel1D ( std::vector< MonitorElement * > &  mes)
private

Definition at line 604 of file QcdUeDQM.cc.

References GOODCOLL_filter_cfg::cut, hltTrgDeci_, i, and j.

605 {
606  // Loop over histograms and fill if trigger has fired.
607  string cut[5] = {"Nevt","vtx!=bmspt","Zvtx<10cm","pT>1GeV","trackFromVtx"};
608  for(size_t i=0;i<mes.size();++i) {
609  if (!hltTrgDeci_.at(i))
610  continue;
611  for(size_t j = 1;j < 6;j++)mes.at(i)->setBinLabel(j,cut[j-1],1);
612  }
613 }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
std::vector< bool > hltTrgDeci_
Definition: QcdUeDQM.h:138
bool QcdUeDQM::trackSelection ( const reco::Track trk,
const reco::BeamSpot bs,
const reco::Vertex vtx,
int  sizevtx 
)
private

Definition at line 664 of file QcdUeDQM.cc.

References reco::TrackBase::algo(), algorithm_, allowTriplets_, bsuse_, reco::TrackBase::dxy(), reco::TrackBase::dxyError(), reco::TrackBase::dz(), reco::TrackBase::dzError(), reco::TrackBase::eta(), fill1D(), spr::find(), reco::HitPattern::getHitPattern(), reco::HitPattern::getLayer(), hBeamSpot_x_, hBeamSpot_y_, hBeamSpot_z_, reco::TrackBase::hitPattern(), hNtrackerLayer_, hNtrackerPixelLayer_, hNtrackerStripPixelLayer_, hRatioDxySigmaDxyBS_, hRatioDxySigmaDxyPV_, hRatioDzSigmaDzBS_, hRatioDzSigmaDzPV_, hRatioPtErrorPt_, hTrkChi2_, hTrkEta_, hTrkNdof_, hTrkPhi_, hTrkPt_, i, lip_, maxChi2_, maxRapidity_, min3DHit_, minHit_, minRapidity_, reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), AlCaHLTBitMon_ParallelJobs::p, reco::TrackBase::phi(), reco::HitPattern::pixelHitFilter(), reco::HitPattern::pixelLayersWithMeasurement(), reco::BeamSpot::position(), reco::Vertex::position(), reco::TrackBase::pt(), ptErr_pt_, reco::TrackBase::ptError(), ptMin_, pxlLayerMinCut_, reco::TrackBase::quality(), quality_, requirePIX1_, tip_, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::validHitFilter(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().

Referenced by analyze().

665 {
666 //-------------Fill basic histograms---------
667 
668 
669 //-------------------------------------------
670 
671  bool goodTrk = false;
672 
673  if(sizevtx!=1) return 0; //selection events with only a vertex
674 
675  //Fill basic information of all the tracks
679  fill1D(hRatioPtErrorPt_,(trk.ptError()/trk.pt()));
680  fill1D(hTrkPt_,trk.pt());
681  fill1D(hTrkEta_,trk.eta());
682  fill1D(hTrkPhi_,trk.phi());
683  fill1D(hRatioDxySigmaDxyBS_,(trk.dxy(bs->position())/trk.dxyError()));
684  fill1D(hRatioDxySigmaDxyPV_,(trk.dxy(vtx.position())/trk.dxyError()));
685  fill1D(hRatioDzSigmaDzBS_,(trk.dz(bs->position())/trk.dzError()));
686  fill1D(hRatioDzSigmaDzPV_,(trk.dz(vtx.position())/trk.dzError()));
688  fill1D(hTrkNdof_,trk.ndof());
689 
690  fill1D(hBeamSpot_x_,bs->x0());
691  fill1D(hBeamSpot_y_,bs->y0());
692  fill1D(hBeamSpot_z_,bs->z0());
693 
694  //number of layers
695  bool layerMinCutbool=false;
698  layerMinCutbool=true;
699 
700 
701  //number of pixel layers
702  bool pxlLayerMinCutbool=false;
703  if (trk.hitPattern().pixelLayersWithMeasurement() >=pxlLayerMinCut_) pxlLayerMinCutbool=true;
704 
705 
706  // cut on the hits in pixel layers
707  bool hasPIX1 = false;
708  if (requirePIX1_) {
709  const reco::HitPattern& p = trk.hitPattern();
710  for (int i=0; i<p.numberOfHits(); i++) {
711  uint32_t hit = p.getHitPattern(i);
712  if (p.validHitFilter(hit) && p.pixelHitFilter(hit) && p.getLayer(hit)==1) hasPIX1 = true;
713  }
714  }else hasPIX1 = true;
715 
716  // cut on the pT error
717  bool ptErrorbool=false;
718  if (trk.ptError()/trk.pt() < ptErr_pt_ ||
719  (trk.hitPattern().trackerLayersWithMeasurement()==3 && trk.hitPattern().pixelLayersWithMeasurement()==3 && allowTriplets_)) ptErrorbool=true;
720  // quality cut
721  bool quality_ok = true;
722  if (quality_.size()!=0) {
723  quality_ok = false;
724  for (unsigned int i = 0; i<quality_.size();++i) {
725  if (trk.quality(quality_[i])){
726  quality_ok = true;
727  break;
728  }
729  }
730  }
731  //-----
732  bool algo_ok = true;
733  if (algorithm_.size()!=0) {
734  if (std::find(algorithm_.begin(),algorithm_.end(),trk.algo())==algorithm_.end()) algo_ok = false;
735  }
736 
737 
738  if(bsuse_==1)
739  {
740  if(hasPIX1 && pxlLayerMinCutbool && layerMinCutbool && (trk.hitPattern().pixelLayersWithMeasurement() + trk.hitPattern().numberOfValidStripLayersWithMonoAndStereo()) >= min3DHit_ && ptErrorbool && fabs(trk.pt()) >= ptMin_ && trk.eta() >= minRapidity_ && trk.eta() <= maxRapidity_ && fabs(trk.dxy(bs->position())/trk.dxyError()) < tip_ && fabs(trk.dz(bs->position())/trk.dzError()) < lip_ && trk.normalizedChi2()<=maxChi2_ && quality_ok && algo_ok)goodTrk=true ;
741  }
742 
743  if(bsuse_==0)
744  {
745  if(hasPIX1 && pxlLayerMinCutbool && layerMinCutbool && (trk.hitPattern().pixelLayersWithMeasurement() + trk.hitPattern().numberOfValidStripLayersWithMonoAndStereo()) >= min3DHit_ && ptErrorbool && fabs(trk.pt()) >= ptMin_ && trk.eta() >= minRapidity_ && trk.eta() <= maxRapidity_ && fabs(trk.dxy(vtx.position())/trk.dxyError()) < tip_ && fabs(trk.dz(vtx.position())/trk.dzError()) < lip_ && trk.normalizedChi2()<=maxChi2_ && quality_ok && algo_ok)goodTrk=true;
746 
747  }
748 
749  return goodTrk;
750 
751  }
bool bsuse_
Definition: QcdUeDQM.h:277
double z0() const
z coordinate
Definition: BeamSpot.h:68
int i
Definition: DBlmapReader.cc:9
std::vector< MonitorElement * > hRatioPtErrorPt_
Definition: QcdUeDQM.h:152
std::vector< MonitorElement * > hTrkPt_
Definition: QcdUeDQM.h:153
std::vector< MonitorElement * > hNtrackerStripPixelLayer_
Definition: QcdUeDQM.h:151
std::vector< MonitorElement * > hBeamSpot_x_
Definition: QcdUeDQM.h:183
static uint32_t getLayer(uint32_t pattern)
Definition: HitPattern.h:520
void fill1D(std::vector< TH1F * > &hs, double val, double w=1.)
Definition: QcdUeDQM.cc:580
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:109
double dxyError() const
error on dxy
Definition: TrackBase.h:207
int pixelLayersWithMeasurement() const
Definition: HitPattern.h:745
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:137
std::vector< MonitorElement * > hBeamSpot_y_
Definition: QcdUeDQM.h:182
double ptErr_pt_
Definition: QcdUeDQM.h:270
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
bool requirePIX1_
Definition: QcdUeDQM.h:274
const Point & position() const
position
Definition: Vertex.h:106
std::vector< MonitorElement * > hTrkChi2_
Definition: QcdUeDQM.h:167
TrackAlgorithm algo() const
Definition: TrackBase.h:330
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:139
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:107
int trackerLayersWithMeasurement() const
Definition: HitPattern.h:740
std::vector< MonitorElement * > hTrkPhi_
Definition: QcdUeDQM.h:155
double pt() const
track transverse momentum
Definition: TrackBase.h:129
double maxChi2_
Definition: QcdUeDQM.h:276
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
Definition: TrackBase.h:192
static bool pixelHitFilter(uint32_t pattern)
Definition: HitPattern.h:419
int numberOfHits() const
Definition: HitPattern.cc:211
std::vector< MonitorElement * > hRatioDxySigmaDxyBS_
Definition: QcdUeDQM.h:163
std::vector< MonitorElement * > hRatioDzSigmaDzBS_
Definition: QcdUeDQM.h:165
double lip_
Definition: QcdUeDQM.h:268
static bool validHitFilter(uint32_t pattern)
Definition: HitPattern.h:564
std::vector< MonitorElement * > hRatioDxySigmaDxyPV_
Definition: QcdUeDQM.h:164
std::vector< reco::TrackBase::TrackAlgorithm > algorithm_
Definition: QcdUeDQM.h:286
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:221
std::vector< MonitorElement * > hNtrackerPixelLayer_
Definition: QcdUeDQM.h:150
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:125
double dzError() const
error on dz
Definition: TrackBase.h:213
std::vector< MonitorElement * > hTrkEta_
Definition: QcdUeDQM.h:154
std::vector< MonitorElement * > hNtrackerLayer_
Definition: QcdUeDQM.h:149
bool allowTriplets_
Definition: QcdUeDQM.h:278
double ptMin_
Definition: QcdUeDQM.h:264
double minRapidity_
Definition: QcdUeDQM.h:265
int min3DHit_
Definition: QcdUeDQM.h:275
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:375
std::vector< MonitorElement * > hBeamSpot_z_
Definition: QcdUeDQM.h:181
double pxlLayerMinCut_
Definition: QcdUeDQM.h:273
double y0() const
y coordinate
Definition: BeamSpot.h:66
std::vector< MonitorElement * > hRatioDzSigmaDzPV_
Definition: QcdUeDQM.h:166
std::vector< MonitorElement * > hTrkNdof_
Definition: QcdUeDQM.h:168
const Point & position() const
position
Definition: BeamSpot.h:62
std::vector< reco::TrackBase::TrackQuality > quality_
Definition: QcdUeDQM.h:285
double maxRapidity_
Definition: QcdUeDQM.h:266
uint32_t getHitPattern(int position) const
Definition: HitPattern.cc:142
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:119
int minHit_
Definition: QcdUeDQM.h:272
int numberOfValidStripLayersWithMonoAndStereo(uint32_t stripdet, uint32_t layer) const
Definition: HitPattern.cc:221
double tip_
Definition: QcdUeDQM.h:267
double x0() const
x coordinate
Definition: BeamSpot.h:64

Member Data Documentation

std::vector<reco::TrackBase::TrackAlgorithm> QcdUeDQM::algorithm_
private

Definition at line 286 of file QcdUeDQM.h.

Referenced by QcdUeDQM(), and trackSelection().

bool QcdUeDQM::allowTriplets_
private

Definition at line 278 of file QcdUeDQM.h.

Referenced by trackSelection().

edm::EDGetTokenT<reco::BeamSpot> QcdUeDQM::bsLabel_
private

Definition at line 284 of file QcdUeDQM.h.

Referenced by analyze().

double QcdUeDQM::bsPos_
private

Definition at line 279 of file QcdUeDQM.h.

bool QcdUeDQM::bsuse_
private

Definition at line 277 of file QcdUeDQM.h.

Referenced by trackSelection().

edm::EDGetTokenT<reco::CaloJetCollection> QcdUeDQM::caloJetLabel_
private

Definition at line 280 of file QcdUeDQM.h.

Referenced by analyze().

edm::EDGetTokenT<reco::TrackJetCollection> QcdUeDQM::chargedJetLabel_
private

Definition at line 281 of file QcdUeDQM.h.

Referenced by analyze().

double QcdUeDQM::diffvtxbs_
private

Definition at line 269 of file QcdUeDQM.h.

Referenced by fillVtxPlots().

MonitorElement* QcdUeDQM::h2TrigCorr_
private

Definition at line 146 of file QcdUeDQM.h.

Referenced by createHistos(), and fillHltBits().

std::vector<MonitorElement*> QcdUeDQM::hBeamSpot_x_
private

Definition at line 183 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hBeamSpot_y_
private

Definition at line 182 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hBeamSpot_z_
private

Definition at line 181 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hChargedJetConstituent_
private

Definition at line 195 of file QcdUeDQM.h.

std::vector<MonitorElement*> QcdUeDQM::hChargedJetMulti_
private

Definition at line 194 of file QcdUeDQM.h.

Referenced by createHistos(), and fillChargedJetSpectra().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Away500_
private

Definition at line 214 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Away900_
private

Definition at line 240 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Toward500_
private

Definition at line 212 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Toward900_
private

Definition at line 238 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Transverse500_
private

Definition at line 213 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_pTMax_Transverse900_
private

Definition at line 239 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Away500_
private

Definition at line 221 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Away900_
private

Definition at line 247 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Toward500_
private

Definition at line 219 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Toward900_
private

Definition at line 245 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Transverse500_
private

Definition at line 220 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdNdEtadPhi_trackJet_Transverse900_
private

Definition at line 246 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdPhi_chargedJet_tracks_
private

Definition at line 206 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hdPhi_maxpTTrack_tracks_
private

Definition at line 204 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkEta500_
private

Definition at line 158 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkEta900_
private

Definition at line 161 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkPhi500_
private

Definition at line 159 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkPhi900_
private

Definition at line 162 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkPt500_
private

Definition at line 157 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hGoodTrkPt900_
private

Definition at line 160 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hLeadingChargedJet_etaSpectrum_
private

Definition at line 209 of file QcdUeDQM.h.

Referenced by createHistos(), and fillChargedJetSpectra().

std::vector<MonitorElement*> QcdUeDQM::hLeadingChargedJet_phiSpectrum_
private

Definition at line 210 of file QcdUeDQM.h.

Referenced by createHistos(), and fillChargedJetSpectra().

std::vector<MonitorElement*> QcdUeDQM::hLeadingChargedJet_pTSpectrum_
private

Definition at line 196 of file QcdUeDQM.h.

Referenced by createHistos(), and fillChargedJetSpectra().

std::vector<MonitorElement*> QcdUeDQM::hLeadingTrack_etaSpectrum_
private

Definition at line 187 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hLeadingTrack_phiSpectrum_
private

Definition at line 188 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hLeadingTrack_pTSpectrum_
private

Definition at line 186 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

HLTConfigProvider QcdUeDQM::hltConfig
private

Definition at line 130 of file QcdUeDQM.h.

Referenced by beginRun().

std::vector<std::string> QcdUeDQM::hltProcNames_
private

Definition at line 133 of file QcdUeDQM.h.

Referenced by beginRun(), and QcdUeDQM().

std::string QcdUeDQM::hltResName_
private

Definition at line 132 of file QcdUeDQM.h.

Referenced by beginRun().

std::vector<int> QcdUeDQM::hltTrgBits_
private

Definition at line 137 of file QcdUeDQM.h.

Referenced by beginRun(), and fillHltBits().

std::vector<bool> QcdUeDQM::hltTrgDeci_
private

Definition at line 138 of file QcdUeDQM.h.

Referenced by beginRun(), fill1D(), fill2D(), fillHltBits(), fillProfile(), and setLabel1D().

std::vector<std::string> QcdUeDQM::hltTrgNames_
private

Definition at line 134 of file QcdUeDQM.h.

Referenced by beginRun(), and QcdUeDQM().

std::vector<std::string> QcdUeDQM::hltTrgUsedNames_
private

Definition at line 139 of file QcdUeDQM.h.

Referenced by beginRun(), book1D(), book2D(), bookProfile(), and createHistos().

std::string QcdUeDQM::hltUsedResName_
private

Definition at line 140 of file QcdUeDQM.h.

Referenced by beginRun(), and fillHltBits().

std::vector<MonitorElement*> QcdUeDQM::hNevts_
private

Definition at line 148 of file QcdUeDQM.h.

Referenced by analyze(), and createHistos().

std::vector<MonitorElement*> QcdUeDQM::hNgoodTrk_
private

Definition at line 156 of file QcdUeDQM.h.

Referenced by createHistos(), and fillpTMaxRelated().

std::vector<MonitorElement*> QcdUeDQM::hNtrackerLayer_
private

Definition at line 149 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hNtrackerPixelLayer_
private

Definition at line 150 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hNtrackerStripPixelLayer_
private

Definition at line 151 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hNvertices_
private

Definition at line 172 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Away500_
private

Definition at line 227 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Away900_
private

Definition at line 253 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Toward500_
private

Definition at line 225 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Toward900_
private

Definition at line 251 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Transverse500_
private

Definition at line 226 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_pTMax_Transverse900_
private

Definition at line 252 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_MaxpTtrack().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Away500_
private

Definition at line 234 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Away900_
private

Definition at line 260 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Toward500_
private

Definition at line 232 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Toward900_
private

Definition at line 258 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Transverse500_
private

Definition at line 233 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hpTSumdEtadPhi_trackJet_Transverse900_
private

Definition at line 259 of file QcdUeDQM.h.

Referenced by createHistos(), and fillUE_with_ChargedJets().

std::vector<MonitorElement*> QcdUeDQM::hRatioDxySigmaDxyBS_
private

Definition at line 163 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hRatioDxySigmaDxyPV_
private

Definition at line 164 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hRatioDzSigmaDzBS_
private

Definition at line 165 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hRatioDzSigmaDzPV_
private

Definition at line 166 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hRatioPtErrorPt_
private

Definition at line 152 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hTrkChi2_
private

Definition at line 167 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hTrkEta_
private

Definition at line 154 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hTrkNdof_
private

Definition at line 168 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hTrkPhi_
private

Definition at line 155 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hTrkPt_
private

Definition at line 153 of file QcdUeDQM.h.

Referenced by createHistos(), and trackSelection().

std::vector<MonitorElement*> QcdUeDQM::hVertex_ndof_
private

Definition at line 176 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hVertex_rho_
private

Definition at line 177 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hVertex_x_
private

Definition at line 175 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hVertex_y_
private

Definition at line 174 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hVertex_z_
private

Definition at line 173 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

std::vector<MonitorElement*> QcdUeDQM::hVertex_z_bs_
private

Definition at line 178 of file QcdUeDQM.h.

Referenced by createHistos(), and fillVtxPlots().

bool QcdUeDQM::isHltConfigSuccessful_
private

Definition at line 69 of file QcdUeDQM.h.

Referenced by analyze(), beginLuminosityBlock(), beginRun(), endLuminosityBlock(), endRun(), and QcdUeDQM().

double QcdUeDQM::lip_
private

Definition at line 268 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::maxChi2_
private

Definition at line 276 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::maxRapidity_
private

Definition at line 266 of file QcdUeDQM.h.

Referenced by trackSelection().

int QcdUeDQM::min3DHit_
private

Definition at line 275 of file QcdUeDQM.h.

Referenced by trackSelection().

int QcdUeDQM::minHit_
private

Definition at line 272 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::minRapidity_
private

Definition at line 265 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::ptErr_pt_
private

Definition at line 270 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::ptMin_
private

Definition at line 264 of file QcdUeDQM.h.

Referenced by trackSelection().

double QcdUeDQM::pxlLayerMinCut_
private

Definition at line 273 of file QcdUeDQM.h.

Referenced by trackSelection().

std::vector<reco::TrackBase::TrackQuality> QcdUeDQM::quality_
private

Definition at line 285 of file QcdUeDQM.h.

Referenced by QcdUeDQM(), and trackSelection().

MonitorElement* QcdUeDQM::repSumMap_
private

Definition at line 144 of file QcdUeDQM.h.

MonitorElement* QcdUeDQM::repSummary_
private

Definition at line 145 of file QcdUeDQM.h.

bool QcdUeDQM::requirePIX1_
private

Definition at line 274 of file QcdUeDQM.h.

Referenced by trackSelection().

container QcdUeDQM::selected_
private

Definition at line 288 of file QcdUeDQM.h.

Referenced by analyze().

const TrackerGeometry* QcdUeDQM::tgeo_
private

Definition at line 142 of file QcdUeDQM.h.

DQMStore* QcdUeDQM::theDbe_
private

Definition at line 143 of file QcdUeDQM.h.

Referenced by beginJob(), book1D(), book2D(), bookProfile(), and createHistos().

double QcdUeDQM::tip_
private

Definition at line 267 of file QcdUeDQM.h.

Referenced by trackSelection().

edm::EDGetTokenT<reco::TrackCollection> QcdUeDQM::trackLabel_
private

Definition at line 282 of file QcdUeDQM.h.

Referenced by analyze().

int QcdUeDQM::verbose_
private

Definition at line 141 of file QcdUeDQM.h.

reco::Vertex QcdUeDQM::vtx1
private

Definition at line 289 of file QcdUeDQM.h.

Referenced by analyze(), and fillVtxPlots().

edm::EDGetTokenT<reco::VertexCollection> QcdUeDQM::vtxLabel_
private

Definition at line 283 of file QcdUeDQM.h.

Referenced by analyze().

double QcdUeDQM::vtxntk_
private

Definition at line 271 of file QcdUeDQM.h.