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 Attributes
MuonRecoOneHLT Class Reference

#include <MuonRecoOneHLT.h>

Inheritance diagram for MuonRecoOneHLT:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 Get the analysis. More...
 
void beginJob ()
 Inizialize parameters for histo binning. More...
 
void beginRun (const edm::Run &iRun, const edm::EventSetup &iSetup)
 
 MuonRecoOneHLT (const edm::ParameterSet &)
 Constructor. More...
 
 ~MuonRecoOneHLT ()
 Destructor. More...
 
- 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

GenericTriggerEventFlag_DoubleMuonEventFlag
 
GenericTriggerEventFlag_SingleMuonEventFlag
 
int chi2Bin
 
float chi2Max
 
float chi2Min
 
std::vector< MonitorElement * > chi2OvDFGlbTrack
 
MonitorElementchi2OvDFStaTrack
 
MonitorElementchi2OvDFTight
 
MonitorElementchi2OvDFTrack
 
DQMStoredbe
 
std::vector< std::string > doublemuonExpr_
 
int etaBin
 
std::vector< MonitorElement * > etaGlbTrack
 
float etaMax
 
float etaMin
 
MonitorElementetaStaTrack
 
MonitorElementetaTight
 
MonitorElementetaTrack
 
std::string metname
 
MonitorElementmuReco
 
edm::ParameterSet parameters
 
int phiBin
 
std::vector< MonitorElement * > phiGlbTrack
 
float phiMax
 
float phiMin
 
MonitorElementphiStaTrack
 
MonitorElementphiTight
 
MonitorElementphiTrack
 
int ptBin
 
std::vector< MonitorElement * > ptGlbTrack
 
float ptMax
 
float ptMin
 
MonitorElementptStaTrack
 
MonitorElementptTight
 
MonitorElementptTrack
 
std::vector< std::string > singlemuonExpr_
 
edm::EDGetTokenT< reco::BeamSpottheBeamSpotLabel_
 
edm::EDGetTokenT
< reco::MuonCollection
theMuonCollectionLabel_
 
MuonServiceProxytheService
 
edm::EDGetTokenT
< edm::TriggerResults
theTriggerResultsLabel_
 
edm::EDGetTokenT
< reco::VertexCollection
theVertexLabel_
 

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 47 of file MuonRecoOneHLT.h.

Constructor & Destructor Documentation

MuonRecoOneHLT::MuonRecoOneHLT ( const edm::ParameterSet pSet)

Constructor.

Definition at line 13 of file MuonRecoOneHLT.cc.

References edm::ParameterSet::getParameter(), MuonServiceProxy_cff::MuonServiceProxy, cppFunctionSkipper::operator, and Parameters::parameters.

13  { //, MuonServiceProxy *theService) :MuonAnalyzerBase(theService) {
14  parameters = pSet;
15 
16  // the services
17  theService = new MuonServiceProxy(parameters.getParameter<ParameterSet>("ServiceParameters"));
18 
20 
21  ParameterSet muonparms = parameters.getParameter<edm::ParameterSet>("SingleMuonTrigger");
22  ParameterSet dimuonparms = parameters.getParameter<edm::ParameterSet>("DoubleMuonTrigger");
25 
26  // Trigger Expresions in case de connection to the DB fails
27  singlemuonExpr_ = muonparms.getParameter<std::vector<std::string> >("hltPaths");
28  doublemuonExpr_ = dimuonparms.getParameter<std::vector<std::string> >("hltPaths");
29 
30  theMuonCollectionLabel_ = consumes<reco::MuonCollection>(parameters.getParameter<edm::InputTag>("MuonCollection"));
31  theVertexLabel_ = consumes<reco::VertexCollection>(parameters.getParameter<edm::InputTag>("VertexLabel"));
32  theBeamSpotLabel_ = mayConsume<reco::BeamSpot>(parameters.getParameter<edm::InputTag>("BeamSpotLabel"));
33  theTriggerResultsLabel_ = consumes<TriggerResults>(parameters.getParameter<InputTag>("TriggerResultsLabel"));
34 }
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::TriggerResults > theTriggerResultsLabel_
edm::ParameterSet parameters
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
GenericTriggerEventFlag * _DoubleMuonEventFlag
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
GenericTriggerEventFlag * _SingleMuonEventFlag
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
DQMStore * dbe
std::vector< std::string > doublemuonExpr_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< std::string > singlemuonExpr_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
MuonServiceProxy * theService
MuonRecoOneHLT::~MuonRecoOneHLT ( )

Destructor.

Definition at line 37 of file MuonRecoOneHLT.cc.

37  {
38  delete _SingleMuonEventFlag;
39  delete _DoubleMuonEventFlag;
40 }
GenericTriggerEventFlag * _DoubleMuonEventFlag
GenericTriggerEventFlag * _SingleMuonEventFlag

Member Function Documentation

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

Get the analysis.

Implements edm::EDAnalyzer.

Definition at line 130 of file MuonRecoOneHLT.cc.

References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), gather_cfg::cout, relativeConstraints::error, edm::Event::getByToken(), i, muon::isTightMuon(), edm::HandleBase::isValid(), LogTrace, metname, patZpeak::muons, reco::BeamSpot::position(), position, reco::BeamSpot::sigmaZ(), edm::TriggerNames::size(), edm::TriggerNames::triggerName(), edm::Event::triggerNames(), and triggerResults.

130  {
131  theService->update(iSetup);
132 
133  // =================================================================================
134  // Look for the Primary Vertex (and use the BeamSpot instead, if you can't find it):
135  reco::Vertex::Point posVtx;
136  reco::Vertex::Error errVtx;
137  unsigned int theIndexOfThePrimaryVertex = 999.;
138 
140  iEvent.getByToken(theVertexLabel_, vertex);
141  if (vertex.isValid()){
142  for (unsigned int ind=0; ind<vertex->size(); ++ind) {
143  if ( (*vertex)[ind].isValid() && !((*vertex)[ind].isFake()) ) {
144  theIndexOfThePrimaryVertex = ind;
145  break;
146  }
147  }
148  }
149 
150  if (theIndexOfThePrimaryVertex<100) {
151  posVtx = ((*vertex)[theIndexOfThePrimaryVertex]).position();
152  errVtx = ((*vertex)[theIndexOfThePrimaryVertex]).error();
153  }
154  else {
155  LogInfo("RecoMuonValidator") << "reco::PrimaryVertex not found, use BeamSpot position instead\n";
156 
157  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
158  iEvent.getByToken(theBeamSpotLabel_,recoBeamSpotHandle);
159  reco::BeamSpot bs = *recoBeamSpotHandle;
160 
161  posVtx = bs.position();
162  errVtx(0,0) = bs.BeamWidthX();
163  errVtx(1,1) = bs.BeamWidthY();
164  errVtx(2,2) = bs.sigmaZ();
165  }
166 
167  const reco::Vertex vtx(posVtx,errVtx);
168 
169 
170  // ==========================================================
171  // READ DATA:
173  iEvent.getByToken(theMuonCollectionLabel_,muons);
174 
176  iEvent.getByToken(theTriggerResultsLabel_, triggerResults);
177 
178  // check if muon collection is valid
179  if(!muons.isValid()) return;
180 
181  // Pick the leading lepton.
182  std::map<float,reco::Muon> muonMap;
183  for (reco::MuonCollection::const_iterator recoMu = muons->begin(); recoMu!=muons->end(); ++recoMu){
184  muonMap[recoMu->pt()] = *recoMu;
185  }
186  std::vector<reco::Muon> LeadingMuon;
187  for( std::map<float,reco::Muon>::reverse_iterator rit=muonMap.rbegin(); rit!=muonMap.rend(); ++rit){
188  LeadingMuon.push_back( (*rit).second );
189  }
190 
191  // Pick Trigger information.
192  const edm::TriggerNames& triggerNames = iEvent.triggerNames(*triggerResults);
193  const unsigned int nTrig(triggerNames.size());
194  bool _trig_SingleMu = false;
195  bool _trig_DoubleMu = false;
196  for (unsigned int i=0;i<nTrig;++i){
197  if (triggerNames.triggerName(i).find(singlemuonExpr_[0].substr(0,singlemuonExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
198  _trig_SingleMu = true;
199  if (triggerNames.triggerName(i).find(doublemuonExpr_[0].substr(0,doublemuonExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
200  _trig_DoubleMu = true;
201  }
202 #ifdef DEBUG
203  cout << "[MuonRecoOneHLT] Trigger Fired ? "<< (_trig_SingleMu || _trig_DoubleMu) << endl;
204 #endif
205 
206  if (!_trig_SingleMu && !_trig_DoubleMu) return;
207  if (LeadingMuon.size() == 0) return;
208  // if (_MuonEventFlag->on() && !(_MuonEventFlag->accept(iEvent,iSetup))) return;
209 
210  // Check if Muon is Global
211  if(LeadingMuon[0].isGlobalMuon()) {
212  LogTrace(metname)<<"[MuonRecoOneHLT] The mu is global - filling the histos";
213  if(LeadingMuon[0].isTrackerMuon() && LeadingMuon[0].isStandAloneMuon()) muReco->Fill(1);
214  if(!(LeadingMuon[0].isTrackerMuon()) && LeadingMuon[0].isStandAloneMuon()) muReco->Fill(2);
215  if(!LeadingMuon[0].isStandAloneMuon())
216  LogTrace(metname)<<"[MuonRecoOneHLT] ERROR: the mu is global but not standalone!";
217 
218  // get the track combinig the information from both the Tracker and the Spectrometer
219  reco::TrackRef recoCombinedGlbTrack = LeadingMuon[0].combinedMuon();
220  // get the track using only the tracker data
221  reco::TrackRef recoTkGlbTrack = LeadingMuon[0].track();
222  // get the track using only the mu spectrometer data
223  reco::TrackRef recoStaGlbTrack = LeadingMuon[0].standAloneMuon();
224 
225  etaGlbTrack[0]->Fill(recoCombinedGlbTrack->eta());
226  etaGlbTrack[1]->Fill(recoTkGlbTrack->eta());
227  etaGlbTrack[2]->Fill(recoStaGlbTrack->eta());
228 
229  phiGlbTrack[0]->Fill(recoCombinedGlbTrack->phi());
230  phiGlbTrack[1]->Fill(recoTkGlbTrack->phi());
231  phiGlbTrack[2]->Fill(recoStaGlbTrack->phi());
232 
233  chi2OvDFGlbTrack[0]->Fill(recoCombinedGlbTrack->normalizedChi2());
234  chi2OvDFGlbTrack[1]->Fill(recoTkGlbTrack->normalizedChi2());
235  chi2OvDFGlbTrack[2]->Fill(recoStaGlbTrack->normalizedChi2());
236 
237  ptGlbTrack[0]->Fill(recoCombinedGlbTrack->pt());
238  ptGlbTrack[1]->Fill(recoTkGlbTrack->pt());
239  ptGlbTrack[2]->Fill(recoStaGlbTrack->pt());
240  }
241  // Check if Muon is Tight
242  if (muon::isTightMuon(LeadingMuon[0], vtx) ) {
243 
244  LogTrace(metname)<<"[MuonRecoOneHLT] The mu is tracker only - filling the histos";
245 
246  reco::TrackRef recoCombinedGlbTrack = LeadingMuon[0].combinedMuon();
247 
248  etaTight->Fill(recoCombinedGlbTrack->eta());
249  phiTight->Fill(recoCombinedGlbTrack->phi());
250  chi2OvDFTight->Fill(recoCombinedGlbTrack->normalizedChi2());
251  ptTight->Fill(recoCombinedGlbTrack->pt());
252  }
253 
254  // Check if Muon is Tracker but NOT Global
255  if(LeadingMuon[0].isTrackerMuon() && !(LeadingMuon[0].isGlobalMuon())) {
256  LogTrace(metname)<<"[MuonRecoOneHLT] The mu is tracker only - filling the histos";
257  if(LeadingMuon[0].isStandAloneMuon()) muReco->Fill(3);
258  if(!(LeadingMuon[0].isStandAloneMuon())) muReco->Fill(4);
259 
260  // get the track using only the tracker data
261  reco::TrackRef recoTrack = LeadingMuon[0].track();
262 
263  etaTrack->Fill(recoTrack->eta());
264  phiTrack->Fill(recoTrack->phi());
265  chi2OvDFTrack->Fill(recoTrack->normalizedChi2());
266  ptTrack->Fill(recoTrack->pt());
267  }
268 
269  // Check if Muon is STA but NOT Global
270  if(LeadingMuon[0].isStandAloneMuon() && !(LeadingMuon[0].isGlobalMuon())) {
271  LogTrace(metname)<<"[MuonRecoOneHLT] The mu is STA only - filling the histos";
272  if(!(LeadingMuon[0].isTrackerMuon())) muReco->Fill(5);
273 
274  // get the track using only the mu spectrometer data
275  reco::TrackRef recoStaTrack = LeadingMuon[0].standAloneMuon();
276 
277  etaStaTrack->Fill(recoStaTrack->eta());
278  phiStaTrack->Fill(recoStaTrack->phi());
279  chi2OvDFStaTrack->Fill(recoStaTrack->normalizedChi2());
280  ptStaTrack->Fill(recoStaTrack->pt());
281  }
282  // Check if Muon is Only CaloMuon
283  if(LeadingMuon[0].isCaloMuon() && !(LeadingMuon[0].isGlobalMuon()) && !(LeadingMuon[0].isTrackerMuon()) && !(LeadingMuon[0].isStandAloneMuon()))
284  muReco->Fill(6);
285 }
edm::EDGetTokenT< edm::TriggerResults > theTriggerResultsLabel_
int i
Definition: DBlmapReader.cc:9
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:204
MonitorElement * phiTight
MonitorElement * ptTrack
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
MonitorElement * chi2OvDFTrack
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:43
Strings::size_type size() const
Definition: TriggerNames.cc:39
MonitorElement * etaTight
MonitorElement * etaStaTrack
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
std::string metname
std::vector< std::string > doublemuonExpr_
void Fill(long long x)
MonitorElement * chi2OvDFStaTrack
math::XYZPoint Point
point in the space
Definition: Vertex.h:39
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:86
std::vector< MonitorElement * > phiGlbTrack
static std::string const triggerResults
Definition: EdmProvDump.cc:41
MonitorElement * ptStaTrack
std::vector< std::string > singlemuonExpr_
std::vector< MonitorElement * > ptGlbTrack
bool isValid() const
Definition: HandleBase.h:76
MonitorElement * etaTrack
#define LogTrace(id)
std::vector< MonitorElement * > etaGlbTrack
MonitorElement * phiTrack
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
MonitorElement * ptTight
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
double sigmaZ() const
sigma z
Definition: BeamSpot.h:80
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:88
MuonServiceProxy * theService
tuple muons
Definition: patZpeak.py:38
MonitorElement * phiStaTrack
tuple cout
Definition: gather_cfg.py:121
const Point & position() const
position
Definition: BeamSpot.h:62
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
MonitorElement * muReco
MonitorElement * chi2OvDFTight
std::vector< MonitorElement * > chi2OvDFGlbTrack
void MuonRecoOneHLT::beginJob ( void  )
virtual

Inizialize parameters for histo binning.

Reimplemented from edm::EDAnalyzer.

Definition at line 41 of file MuonRecoOneHLT.cc.

References gather_cfg::cout.

41  {
42 #ifdef DEBUG
43  cout << "[MuonRecoOneHLT] beginJob " << endl;
44 #endif
45 
46  }
tuple cout
Definition: gather_cfg.py:121
void MuonRecoOneHLT::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file MuonRecoOneHLT.cc.

References gather_cfg::cout, jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, Parameters::parameters, jptDQMConfig_cff::phiMax, jptDQMConfig_cff::phiMin, jptDQMConfig_cff::ptMax, PtMinSelector_cfg::ptMin, and AlCaHLTBitMon_QueryRunRegistry::string.

48  {
49 #ifdef DEBUG
50  cout << "[MuonRecoOneHLT] beginRun " << endl;
51  cout << "[MuonRecoOneHLT] Is MuonEventFlag On? "<< _SingleMuonEventFlag->on() << endl;
52 #endif
53 
54  dbe->cd();
55  dbe->setCurrentFolder("Muons/MuonRecoOneHLT");
56 
57  muReco = dbe->book1D("Muon_Reco", "Muon Reconstructed Tracks", 6, 1, 7);
58  muReco->setBinLabel(1,"glb+tk+sta");
59  muReco->setBinLabel(2,"glb+sta");
60  muReco->setBinLabel(3,"tk+sta");
61  muReco->setBinLabel(4,"tk");
62  muReco->setBinLabel(5,"sta");
63  muReco->setBinLabel(6,"calo");
64 
65  // monitoring of eta parameter
66  etaBin = parameters.getParameter<int>("etaBin");
67  etaMin = parameters.getParameter<double>("etaMin");
68  etaMax = parameters.getParameter<double>("etaMax");
69 
70  std::string histname = "GlbMuon_";
71  etaGlbTrack.push_back(dbe->book1D(histname+"Glb_eta", "#eta_{GLB}", etaBin, etaMin, etaMax));
72  etaGlbTrack.push_back(dbe->book1D(histname+"Tk_eta", "#eta_{TKfromGLB}", etaBin, etaMin, etaMax));
73  etaGlbTrack.push_back(dbe->book1D(histname+"Sta_eta", "#eta_{STAfromGLB}", etaBin, etaMin, etaMax));
74  etaTight = dbe->book1D("TightMuon_eta", "#eta_{GLB}", etaBin, etaMin, etaMax);
75  etaTrack = dbe->book1D("TkMuon_eta", "#eta_{TK}", etaBin, etaMin, etaMax);
76  etaStaTrack = dbe->book1D("StaMuon_eta", "#eta_{STA}", etaBin, etaMin, etaMax);
77 
78  // monitoring of phi paramater
79  phiBin = parameters.getParameter<int>("phiBin");
80  phiMin = parameters.getParameter<double>("phiMin");
81  phiMax = parameters.getParameter<double>("phiMax");
82  phiGlbTrack.push_back(dbe->book1D(histname+"Glb_phi", "#phi_{GLB}", phiBin, phiMin, phiMax));
83  phiGlbTrack[0]->setAxisTitle("rad");
84  phiGlbTrack.push_back(dbe->book1D(histname+"Tk_phi", "#phi_{TKfromGLB}", phiBin, phiMin, phiMax));
85  phiGlbTrack[1]->setAxisTitle("rad");
86  phiGlbTrack.push_back(dbe->book1D(histname+"Sta_phi", "#phi_{STAfromGLB}", phiBin, phiMin, phiMax));
87  phiGlbTrack[2]->setAxisTitle("rad");
88  phiTight = dbe->book1D("TightMuon_phi", "#phi_{GLB}", phiBin, phiMin, phiMax);
89  phiTrack = dbe->book1D("TkMuon_phi", "#phi_{TK}", phiBin, phiMin, phiMax);
90  phiTrack->setAxisTitle("rad");
91  phiStaTrack = dbe->book1D("StaMuon_phi", "#phi_{STA}", phiBin, phiMin, phiMax);
92  phiStaTrack->setAxisTitle("rad");
93 
94  // monitoring of the chi2 parameter
95  chi2Bin = parameters.getParameter<int>("chi2Bin");
96  chi2Min = parameters.getParameter<double>("chi2Min");
97  chi2Max = parameters.getParameter<double>("chi2Max");
98  chi2OvDFGlbTrack.push_back(dbe->book1D(histname+"Glb_chi2OverDf", "#chi_{2}OverDF_{GLB}", chi2Bin, chi2Min, chi2Max));
99  chi2OvDFGlbTrack.push_back(dbe->book1D(histname+"Tk_chi2OverDf", "#chi_{2}OverDF_{TKfromGLB}", phiBin, chi2Min, chi2Max));
100  chi2OvDFGlbTrack.push_back(dbe->book1D(histname+"Sta_chi2OverDf", "#chi_{2}OverDF_{STAfromGLB}", chi2Bin, chi2Min, chi2Max));
101  chi2OvDFTight = dbe->book1D("TightMuon_chi2OverDf", "#chi_{2}OverDF_{GLB}", chi2Bin, chi2Min, chi2Max);
102  chi2OvDFTrack = dbe->book1D("TkMuon_chi2OverDf", "#chi_{2}OverDF_{TK}", chi2Bin, chi2Min, chi2Max);
103  chi2OvDFStaTrack = dbe->book1D("StaMuon_chi2OverDf", "#chi_{2}OverDF_{STA}", chi2Bin, chi2Min, chi2Max);
104 
105  // monitoring of the transverse momentum
106  ptBin = parameters.getParameter<int>("ptBin");
107  ptMin = parameters.getParameter<double>("ptMin");
108  ptMax = parameters.getParameter<double>("ptMax");
109  ptGlbTrack.push_back(dbe->book1D(histname+"Glb_pt", "pt_{GLB}", ptBin, ptMin, ptMax));
110  ptGlbTrack[0]->setAxisTitle("GeV");
111  ptGlbTrack.push_back(dbe->book1D(histname+"Tk_pt", "pt_{TKfromGLB}", ptBin, ptMin, ptMax));
112  ptGlbTrack[1]->setAxisTitle("GeV");
113  ptGlbTrack.push_back(dbe->book1D(histname+"Sta_pt", "pt_{STAfromGLB}", ptBin, ptMin, ptMax));
114  ptGlbTrack[2]->setAxisTitle("GeV");
115  ptTight = dbe->book1D("TightMuon_pt", "pt_{GLB}", ptBin, ptMin, ptMax);
116  ptTight->setAxisTitle("GeV");
117  ptTrack = dbe->book1D("TkMuon_pt", "pt_{TK}", ptBin, ptMin, ptMax);
118  ptTrack->setAxisTitle("GeV");
119  ptStaTrack = dbe->book1D("StaMuon_pt", "pt_{STA}", ptBin, ptMin, ptMax);
120  ptStaTrack->setAxisTitle("GeV");
121 
122  if ( _SingleMuonEventFlag->on() ) _SingleMuonEventFlag->initRun( iRun, iSetup );
123  if ( _DoubleMuonEventFlag->on() ) _DoubleMuonEventFlag->initRun( iRun, iSetup );
124 
129 }
T getParameter(std::string const &) const
edm::ParameterSet parameters
MonitorElement * phiTight
MonitorElement * ptTrack
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:873
void cd(void)
go to top directory (ie. root)
Definition: DQMStore.cc:562
GenericTriggerEventFlag * _DoubleMuonEventFlag
MonitorElement * chi2OvDFTrack
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)
GenericTriggerEventFlag * _SingleMuonEventFlag
MonitorElement * etaTight
MonitorElement * etaStaTrack
DQMStore * dbe
std::vector< std::string > expressionsFromDB(const std::string &key, const edm::EventSetup &setup)
Reads and returns logical expressions from DB.
MonitorElement * chi2OvDFStaTrack
std::vector< MonitorElement * > phiGlbTrack
MonitorElement * ptStaTrack
std::vector< std::string > singlemuonExpr_
std::vector< MonitorElement * > ptGlbTrack
MonitorElement * etaTrack
std::vector< MonitorElement * > etaGlbTrack
MonitorElement * phiTrack
MonitorElement * ptTight
MonitorElement * phiStaTrack
tuple cout
Definition: gather_cfg.py:121
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * muReco
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:585
MonitorElement * chi2OvDFTight
std::vector< MonitorElement * > chi2OvDFGlbTrack

Member Data Documentation

GenericTriggerEventFlag* MuonRecoOneHLT::_DoubleMuonEventFlag
private

Definition at line 83 of file MuonRecoOneHLT.h.

GenericTriggerEventFlag* MuonRecoOneHLT::_SingleMuonEventFlag
private

Definition at line 82 of file MuonRecoOneHLT.h.

int MuonRecoOneHLT::chi2Bin
private

Definition at line 98 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::chi2Max
private

Definition at line 100 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::chi2Min
private

Definition at line 99 of file MuonRecoOneHLT.h.

std::vector<MonitorElement*> MuonRecoOneHLT::chi2OvDFGlbTrack
private

Definition at line 108 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::chi2OvDFStaTrack
private

Definition at line 125 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::chi2OvDFTight
private

Definition at line 114 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::chi2OvDFTrack
private

Definition at line 120 of file MuonRecoOneHLT.h.

DQMStore* MuonRecoOneHLT::dbe
private

Definition at line 67 of file MuonRecoOneHLT.h.

std::vector<std::string> MuonRecoOneHLT::doublemuonExpr_
private

Definition at line 81 of file MuonRecoOneHLT.h.

int MuonRecoOneHLT::etaBin
private

Definition at line 90 of file MuonRecoOneHLT.h.

std::vector<MonitorElement*> MuonRecoOneHLT::etaGlbTrack
private

Definition at line 106 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::etaMax
private

Definition at line 92 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::etaMin
private

Definition at line 91 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::etaStaTrack
private

Definition at line 123 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::etaTight
private

Definition at line 112 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::etaTrack
private

Definition at line 118 of file MuonRecoOneHLT.h.

std::string MuonRecoOneHLT::metname
private

Definition at line 72 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::muReco
private

Definition at line 103 of file MuonRecoOneHLT.h.

edm::ParameterSet MuonRecoOneHLT::parameters
private
int MuonRecoOneHLT::phiBin
private

Definition at line 94 of file MuonRecoOneHLT.h.

std::vector<MonitorElement*> MuonRecoOneHLT::phiGlbTrack
private

Definition at line 107 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::phiMax
private

Definition at line 96 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::phiMin
private

Definition at line 95 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::phiStaTrack
private

Definition at line 124 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::phiTight
private

Definition at line 113 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::phiTrack
private

Definition at line 119 of file MuonRecoOneHLT.h.

int MuonRecoOneHLT::ptBin
private

Definition at line 86 of file MuonRecoOneHLT.h.

std::vector<MonitorElement*> MuonRecoOneHLT::ptGlbTrack
private

Definition at line 109 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::ptMax
private

Definition at line 88 of file MuonRecoOneHLT.h.

float MuonRecoOneHLT::ptMin
private

Definition at line 87 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::ptStaTrack
private

Definition at line 126 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::ptTight
private

Definition at line 115 of file MuonRecoOneHLT.h.

MonitorElement* MuonRecoOneHLT::ptTrack
private

Definition at line 121 of file MuonRecoOneHLT.h.

std::vector<std::string> MuonRecoOneHLT::singlemuonExpr_
private

Definition at line 80 of file MuonRecoOneHLT.h.

edm::EDGetTokenT<reco::BeamSpot> MuonRecoOneHLT::theBeamSpotLabel_
private

Definition at line 77 of file MuonRecoOneHLT.h.

edm::EDGetTokenT<reco::MuonCollection> MuonRecoOneHLT::theMuonCollectionLabel_
private

Definition at line 75 of file MuonRecoOneHLT.h.

MuonServiceProxy* MuonRecoOneHLT::theService
private

Definition at line 69 of file MuonRecoOneHLT.h.

edm::EDGetTokenT<edm::TriggerResults> MuonRecoOneHLT::theTriggerResultsLabel_
private

Definition at line 78 of file MuonRecoOneHLT.h.

edm::EDGetTokenT<reco::VertexCollection> MuonRecoOneHLT::theVertexLabel_
private

Definition at line 76 of file MuonRecoOneHLT.h.