CMS 3D CMS Logo

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

#include <DiMuonHistograms.h>

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

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 DiMuonHistograms (const edm::ParameterSet &pset)
 
virtual ~DiMuonHistograms ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

int etaBBin
 
int etaBin
 
double etaBMax
 
double etaBMin
 
double EtaCutMax
 
double EtaCutMin
 
int etaEBin
 
double etaECMax
 
double etaECMin
 
std::string EtaName [3]
 
int etaOvlpBin
 
std::vector< MonitorElement * > GlbGlbMuon_HM
 
std::vector< MonitorElement * > GlbGlbMuon_LM
 
double HighMassMax
 
double HighMassMin
 
double LowMassMax
 
double LowMassMin
 
std::string metname
 
int nGlbGlb
 
int nTightTight
 
edm::ParameterSet parameters
 
std::vector< MonitorElement * > SoftSoftMuon
 
std::vector< MonitorElement * > StaTrkMuon_HM
 
std::vector< MonitorElement * > StaTrkMuon_LM
 
MonitorElementtest
 
edm::EDGetTokenT< reco::BeamSpottheBeamSpotLabel_
 
std::string theFolder
 
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
 
MuonServiceProxytheService
 
edm::EDGetTokenT< reco::VertexCollectiontheVertexLabel_
 
std::vector< MonitorElement * > TightTightMuon
 
std::vector< MonitorElement * > TrkTrkMuon_HM
 
std::vector< MonitorElement * > TrkTrkMuon_LM
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr< dqmDetails::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Class DiMuonHistograms

DQM monitoring for dimuon mass

Author: S.Folgueras, U. Oviedo

Definition at line 33 of file DiMuonHistograms.h.

Constructor & Destructor Documentation

DiMuonHistograms::DiMuonHistograms ( const edm::ParameterSet pset)

Definition at line 32 of file DiMuonHistograms.cc.

References conversionPostprocessing_cfi::etaBin, and metProducer_cfi::parameters.

32  {
33 
34  // initialise parameters:
35  parameters = pSet;
36 
37  // counter
38  nTightTight = 0;
39  nGlbGlb = 0;
40 
41  // declare consumes:
42  theMuonCollectionLabel_ = consumes<edm::View<reco::Muon> > (parameters.getParameter<edm::InputTag>("MuonCollection"));
43  theVertexLabel_ = consumes<reco::VertexCollection>(parameters.getParameter<edm::InputTag>("VertexLabel"));
44 
45  theBeamSpotLabel_ = mayConsume<reco::BeamSpot> (parameters.getParameter<edm::InputTag>("BeamSpotLabel"));
46 
47  etaBin = parameters.getParameter<int>("etaBin");
48  etaBBin = parameters.getParameter<int>("etaBBin");
49  etaEBin = parameters.getParameter<int>("etaEBin");
50 
51  etaBMin = parameters.getParameter<double>("etaBMin");
52  etaBMax = parameters.getParameter<double>("etaBMax");
53  etaECMin = parameters.getParameter<double>("etaECMin");
54  etaECMax = parameters.getParameter<double>("etaECMax");
55 
56  LowMassMin = parameters.getParameter<double>("LowMassMin");
57  LowMassMax = parameters.getParameter<double>("LowMassMax");
58  HighMassMin = parameters.getParameter<double>("HighMassMin");
59  HighMassMax = parameters.getParameter<double>("HighMassMax");
60 
61  theFolder = parameters.getParameter<string>("folder");
62 }
T getParameter(std::string const &) const
edm::ParameterSet parameters
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
std::string theFolder
DiMuonHistograms::~DiMuonHistograms ( )
virtual

Definition at line 64 of file DiMuonHistograms.cc.

64 { }

Member Function Documentation

void DiMuonHistograms::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 94 of file DiMuonHistograms.cc.

References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), ALCARECOTkAlJpsiMuMu_cff::charge, relativeConstraints::error, edm::Event::getByToken(), muon::isSoftMuon(), muon::isTightMuon(), edm::HandleBase::isValid(), LogTrace, metname, electronCleaner_cfi::muons, reco::BeamSpot::position(), position, reco::BeamSpot::sigmaZ(), and badGlobalMuonTaggersAOD_cff::vtx.

94  {
95 
96  LogTrace(metname)<<"[DiMuonHistograms] Analyze the mu in different eta regions";
98  iEvent.getByToken(theMuonCollectionLabel_, muons);
99 
100  // =================================================================================
101  // Look for the Primary Vertex (and use the BeamSpot instead, if you can't find it):
102  reco::Vertex::Point posVtx;
103  reco::Vertex::Error errVtx;
104  unsigned int theIndexOfThePrimaryVertex = 999.;
105 
107  iEvent.getByToken(theVertexLabel_, vertex);
108  if (vertex.isValid()){
109  for (unsigned int ind=0; ind<vertex->size(); ++ind) {
110  if ( (*vertex)[ind].isValid() && !((*vertex)[ind].isFake()) ) {
111  theIndexOfThePrimaryVertex = ind;
112  break;
113  }
114  }
115  }
116 
117  if (theIndexOfThePrimaryVertex<100) {
118  posVtx = ((*vertex)[theIndexOfThePrimaryVertex]).position();
119  errVtx = ((*vertex)[theIndexOfThePrimaryVertex]).error();
120  }
121  else {
122  LogInfo("RecoMuonValidator") << "reco::PrimaryVertex not found, use BeamSpot position instead\n";
123 
124  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
125  iEvent.getByToken(theBeamSpotLabel_,recoBeamSpotHandle);
126  reco::BeamSpot bs = *recoBeamSpotHandle;
127 
128  posVtx = bs.position();
129  errVtx(0,0) = bs.BeamWidthX();
130  errVtx(1,1) = bs.BeamWidthY();
131  errVtx(2,2) = bs.sigmaZ();
132  }
133 
134  const reco::Vertex vtx(posVtx,errVtx);
135 
136  if(!muons.isValid()) return;
137 
138  // Loop on muon collection
139  TLorentzVector Mu1, Mu2;
140  float charge = 99.;
141  float InvMass = -99.;
142 
143 
144  for (edm::View<reco::Muon>::const_iterator muon1 = muons->begin(); muon1 != muons->end(); ++muon1){
145  LogTrace(metname)<<"[DiMuonHistograms] loop over 1st muon"<<endl;
146 
147  // Loop on second muons to fill invariant mass plots
148  for (edm::View<reco::Muon>::const_iterator muon2 = muon1; muon2 != muons->end(); ++muon2){
149  LogTrace(metname)<<"[DiMuonHistograms] loop over 2nd muon"<<endl;
150  if (muon1==muon2) continue;
151 
152  // Global-Global Muon
153  if (muon1->isGlobalMuon() && muon2->isGlobalMuon()) {
154  LogTrace(metname)<<"[DiMuonHistograms] Glb-Glb pair"<<endl;
155  reco::TrackRef recoCombinedGlbTrack1 = muon1->combinedMuon();
156  reco::TrackRef recoCombinedGlbTrack2 = muon2->combinedMuon();
157  Mu1.SetPxPyPzE(recoCombinedGlbTrack1->px(), recoCombinedGlbTrack1->py(),recoCombinedGlbTrack1->pz(), recoCombinedGlbTrack1->p());
158  Mu2.SetPxPyPzE(recoCombinedGlbTrack2->px(), recoCombinedGlbTrack2->py(),recoCombinedGlbTrack2->pz(), recoCombinedGlbTrack2->p());
159 
160  charge = recoCombinedGlbTrack1->charge()*recoCombinedGlbTrack2->charge();
161  if (charge < 0) {
162  InvMass = (Mu1+Mu2).M();
163  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
164  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
165  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
166  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
167 
168  if(fabs(recoCombinedGlbTrack1->eta())>EtaCutMin && fabs(recoCombinedGlbTrack1->eta())<EtaCutMax &&
169  fabs(recoCombinedGlbTrack2->eta())>EtaCutMin && fabs(recoCombinedGlbTrack2->eta())<EtaCutMax){
170  if (InvMass < LowMassMax) GlbGlbMuon_LM[iEtaRegion]->Fill(InvMass);
171  if (InvMass > HighMassMin) GlbGlbMuon_HM[iEtaRegion]->Fill(InvMass);
172  }
173  }
174  }
175  // Also Tight-Tight Muon Selection
176  if ( muon::isTightMuon(*muon1, vtx) &&
177  muon::isTightMuon(*muon2, vtx) ) {
178  test->Fill(InvMass);
179  LogTrace(metname)<<"[DiMuonHistograms] Tight-Tight pair"<<endl;
180  if (charge < 0){
181  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
182  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
183  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
184  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
185 
186  if(fabs(recoCombinedGlbTrack1->eta())>EtaCutMin && fabs(recoCombinedGlbTrack1->eta())<EtaCutMax &&
187  fabs(recoCombinedGlbTrack2->eta())>EtaCutMin && fabs(recoCombinedGlbTrack2->eta())<EtaCutMax){
188  if (InvMass > 55. && InvMass < 125.) TightTightMuon[iEtaRegion]->Fill(InvMass);
189  }
190  }
191  }
192  }
193  }
194 
195  // Now check for STA-TRK
196  if (muon2->isStandAloneMuon() && muon1->isTrackerMuon()) {
197  LogTrace(metname)<<"[DiMuonHistograms] STA-Trk pair"<<endl;
198  reco::TrackRef recoStaTrack = muon2->standAloneMuon();
199  reco::TrackRef recoTrack = muon1->track();
200  Mu2.SetPxPyPzE(recoStaTrack->px(), recoStaTrack->py(),recoStaTrack->pz(), recoStaTrack->p());
201  Mu1.SetPxPyPzE(recoTrack->px(), recoTrack->py(),recoTrack->pz(), recoTrack->p());
202 
203  charge = recoStaTrack->charge()*recoTrack->charge();
204  if (charge < 0) {
205  InvMass = (Mu1+Mu2).M();
206  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
207  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
208  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
209  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
210 
211  if(fabs(recoStaTrack->eta())>EtaCutMin && fabs(recoStaTrack->eta())<EtaCutMax &&
212  fabs(recoTrack->eta())>EtaCutMin && fabs(recoTrack->eta())<EtaCutMax){
213  if (InvMass < LowMassMax) StaTrkMuon_LM[iEtaRegion]->Fill(InvMass);
214  if (InvMass > HighMassMin) StaTrkMuon_HM[iEtaRegion]->Fill(InvMass);
215  }
216  }
217  }
218  }
219  if (muon1->isStandAloneMuon() && muon2->isTrackerMuon()) {
220  LogTrace(metname)<<"[DiMuonHistograms] STA-Trk pair"<<endl;
221  reco::TrackRef recoStaTrack = muon1->standAloneMuon();
222  reco::TrackRef recoTrack = muon2->track();
223  Mu1.SetPxPyPzE(recoStaTrack->px(), recoStaTrack->py(),recoStaTrack->pz(), recoStaTrack->p());
224  Mu2.SetPxPyPzE(recoTrack->px(), recoTrack->py(),recoTrack->pz(), recoTrack->p());
225 
226  charge = recoStaTrack->charge()*recoTrack->charge();
227  if (charge < 0) {
228  InvMass = (Mu1+Mu2).M();
229  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
230  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
231  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
232  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
233 
234  if(fabs(recoStaTrack->eta())>EtaCutMin && fabs(recoStaTrack->eta())<EtaCutMax &&
235  fabs(recoTrack->eta())>EtaCutMin && fabs(recoTrack->eta())<EtaCutMax){
236  if (InvMass < LowMassMax) StaTrkMuon_LM[iEtaRegion]->Fill(InvMass);
237  if (InvMass > HighMassMin) StaTrkMuon_HM[iEtaRegion]->Fill(InvMass);
238  }
239  }
240  }
241  }
242 
243  // TRK-TRK dimuon
244  if (muon1->isTrackerMuon() && muon2->isTrackerMuon()) {
245  LogTrace(metname)<<"[DiMuonHistograms] Trk-Trk dimuon pair"<<endl;
246  reco::TrackRef recoTrack2 = muon2->track();
247  reco::TrackRef recoTrack1 = muon1->track();
248  Mu2.SetPxPyPzE(recoTrack2->px(), recoTrack2->py(),recoTrack2->pz(), recoTrack2->p());
249  Mu1.SetPxPyPzE(recoTrack1->px(), recoTrack1->py(),recoTrack1->pz(), recoTrack1->p());
250 
251  charge = recoTrack1->charge()*recoTrack2->charge();
252  if (charge < 0) {
253  InvMass = (Mu1+Mu2).M();
254  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
255  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
256  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
257  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
258 
259  if(fabs(recoTrack1->eta())>EtaCutMin && fabs(recoTrack1->eta())<EtaCutMax &&
260  fabs(recoTrack2->eta())>EtaCutMin && fabs(recoTrack2->eta())<EtaCutMax){
261  if (InvMass < LowMassMax) TrkTrkMuon_LM[iEtaRegion]->Fill(InvMass);
262  if (InvMass > HighMassMin) TrkTrkMuon_HM[iEtaRegion]->Fill(InvMass);
263  }
264  }
265  }
266 
267 
268  LogTrace(metname)<<"[DiMuonHistograms] Soft-Soft pair"<<endl;
269 
270  if (muon::isSoftMuon(*muon1, vtx) &&
271  muon::isSoftMuon(*muon2, vtx) ) {
272 
273  if (charge < 0) {
274  InvMass = (Mu1+Mu2).M();
275  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
276  if (iEtaRegion==0) {EtaCutMin= 0.; EtaCutMax=2.4; }
277  if (iEtaRegion==1) {EtaCutMin= etaBMin; EtaCutMax=etaBMax; }
278  if (iEtaRegion==2) {EtaCutMin= etaECMin; EtaCutMax=etaECMax; }
279 
280  if(fabs(recoTrack1->eta())>EtaCutMin && fabs(recoTrack1->eta())<EtaCutMax &&
281  fabs(recoTrack2->eta())>EtaCutMin && fabs(recoTrack2->eta())<EtaCutMax){
282  SoftSoftMuon[iEtaRegion]->Fill(InvMass);
283  }
284  }
285  }
286  }
287  }
288  } //muon2
289  } //Muon1
290 
291 
292 }
std::string metname
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
std::vector< MonitorElement * > GlbGlbMuon_LM
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:43
bool isSoftMuon(const reco::Muon &, const reco::Vertex &)
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
std::vector< MonitorElement * > SoftSoftMuon
math::XYZPoint Point
point in the space
Definition: Vertex.h:39
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:86
std::vector< MonitorElement * > TrkTrkMuon_LM
std::vector< MonitorElement * > StaTrkMuon_LM
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
bool isValid() const
Definition: HandleBase.h:74
#define LogTrace(id)
std::vector< MonitorElement * > TrkTrkMuon_HM
double sigmaZ() const
sigma z
Definition: BeamSpot.h:80
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:88
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
static int position[264][3]
Definition: ReadPGInfo.cc:509
std::vector< MonitorElement * > StaTrkMuon_HM
std::vector< MonitorElement * > GlbGlbMuon_HM
const Point & position() const
position
Definition: BeamSpot.h:62
std::vector< MonitorElement * > TightTightMuon
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
void DiMuonHistograms::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 66 of file DiMuonHistograms.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), conversionPostprocessing_cfi::etaBin, and DQMStore::IBooker::setCurrentFolder().

68  {
69 
70  ibooker.cd();
71  ibooker.setCurrentFolder(theFolder);
72 
73  int nBin[3] = {etaBin,etaBBin,etaEBin};
74  EtaName[0] = ""; EtaName[1] = "_Barrel"; EtaName[2] = "_EndCap";
75  test = ibooker.book1D("test","InvMass_{Tight,Tight}",100, 0., 200.);
76  for (unsigned int iEtaRegion=0; iEtaRegion<3; iEtaRegion++){
77 
78  GlbGlbMuon_LM.push_back(ibooker.book1D("GlbGlbMuon_LM"+EtaName[iEtaRegion],"InvMass_{GLB,GLB}"+EtaName[iEtaRegion],nBin[iEtaRegion], LowMassMin, LowMassMax));
79  TrkTrkMuon_LM.push_back(ibooker.book1D("TrkTrkMuon_LM"+EtaName[iEtaRegion],"InvMass_{TRK,TRK}"+EtaName[iEtaRegion],nBin[iEtaRegion], LowMassMin, LowMassMax));
80  StaTrkMuon_LM.push_back(ibooker.book1D("StaTrkMuon_LM"+EtaName[iEtaRegion],"InvMass_{STA,TRK}"+EtaName[iEtaRegion],nBin[iEtaRegion], LowMassMin, LowMassMax));
81 
82  GlbGlbMuon_HM.push_back(ibooker.book1D("GlbGlbMuon_HM"+EtaName[iEtaRegion],"InvMass_{GLB,GLB}"+EtaName[iEtaRegion],nBin[iEtaRegion], HighMassMin, HighMassMax));
83  TrkTrkMuon_HM.push_back(ibooker.book1D("TrkTrkMuon_HM"+EtaName[iEtaRegion],"InvMass_{TRK,TRK}"+EtaName[iEtaRegion],nBin[iEtaRegion], HighMassMin, HighMassMax));
84  StaTrkMuon_HM.push_back(ibooker.book1D("StaTrkMuon_HM"+EtaName[iEtaRegion],"InvMass_{STA,TRK}"+EtaName[iEtaRegion],nBin[iEtaRegion], HighMassMin, HighMassMax));
85 
86  // arround the Z peak
87  TightTightMuon.push_back(ibooker.book1D("TightTightMuon"+EtaName[iEtaRegion],"InvMass_{Tight,Tight}"+EtaName[iEtaRegion],nBin[iEtaRegion], 55.0, 125.0));
88 
89  // low-mass resonances
90  SoftSoftMuon.push_back(ibooker.book1D("SoftSoftMuon"+EtaName[iEtaRegion],"InvMass_{Soft,Soft}"+EtaName[iEtaRegion],nBin[iEtaRegion], 0.0, 55.0));
91  }
92 }
void cd(void)
Definition: DQMStore.cc:269
std::vector< MonitorElement * > GlbGlbMuon_LM
std::string EtaName[3]
std::vector< MonitorElement * > SoftSoftMuon
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
std::vector< MonitorElement * > TrkTrkMuon_LM
std::vector< MonitorElement * > StaTrkMuon_LM
std::vector< MonitorElement * > TrkTrkMuon_HM
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
std::string theFolder
std::vector< MonitorElement * > StaTrkMuon_HM
std::vector< MonitorElement * > GlbGlbMuon_HM
std::vector< MonitorElement * > TightTightMuon

Member Data Documentation

int DiMuonHistograms::etaBBin
private

Definition at line 54 of file DiMuonHistograms.h.

int DiMuonHistograms::etaBin
private

Definition at line 53 of file DiMuonHistograms.h.

double DiMuonHistograms::etaBMax
private

Definition at line 64 of file DiMuonHistograms.h.

double DiMuonHistograms::etaBMin
private

Definition at line 63 of file DiMuonHistograms.h.

double DiMuonHistograms::EtaCutMax
private

Definition at line 62 of file DiMuonHistograms.h.

double DiMuonHistograms::EtaCutMin
private

Definition at line 61 of file DiMuonHistograms.h.

int DiMuonHistograms::etaEBin
private

Definition at line 55 of file DiMuonHistograms.h.

double DiMuonHistograms::etaECMax
private

Definition at line 66 of file DiMuonHistograms.h.

double DiMuonHistograms::etaECMin
private

Definition at line 65 of file DiMuonHistograms.h.

std::string DiMuonHistograms::EtaName[3]
private

Definition at line 59 of file DiMuonHistograms.h.

int DiMuonHistograms::etaOvlpBin
private

Definition at line 56 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::GlbGlbMuon_HM
private

Definition at line 75 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::GlbGlbMuon_LM
private

Definition at line 74 of file DiMuonHistograms.h.

double DiMuonHistograms::HighMassMax
private

Definition at line 72 of file DiMuonHistograms.h.

double DiMuonHistograms::HighMassMin
private

Definition at line 71 of file DiMuonHistograms.h.

double DiMuonHistograms::LowMassMax
private

Definition at line 70 of file DiMuonHistograms.h.

double DiMuonHistograms::LowMassMin
private

Definition at line 69 of file DiMuonHistograms.h.

std::string DiMuonHistograms::metname
private

Definition at line 50 of file DiMuonHistograms.h.

int DiMuonHistograms::nGlbGlb
private

Definition at line 94 of file DiMuonHistograms.h.

int DiMuonHistograms::nTightTight
private

Definition at line 93 of file DiMuonHistograms.h.

edm::ParameterSet DiMuonHistograms::parameters
private
std::vector<MonitorElement*> DiMuonHistograms::SoftSoftMuon
private

Definition at line 82 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::StaTrkMuon_HM
private

Definition at line 77 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::StaTrkMuon_LM
private

Definition at line 76 of file DiMuonHistograms.h.

MonitorElement* DiMuonHistograms::test
private
edm::EDGetTokenT<reco::BeamSpot> DiMuonHistograms::theBeamSpotLabel_
private

Definition at line 89 of file DiMuonHistograms.h.

std::string DiMuonHistograms::theFolder
private

Definition at line 91 of file DiMuonHistograms.h.

edm::EDGetTokenT<edm::View<reco::Muon> > DiMuonHistograms::theMuonCollectionLabel_
private

Definition at line 87 of file DiMuonHistograms.h.

MuonServiceProxy* DiMuonHistograms::theService
private

Definition at line 46 of file DiMuonHistograms.h.

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

Definition at line 88 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::TightTightMuon
private

Definition at line 81 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::TrkTrkMuon_HM
private

Definition at line 79 of file DiMuonHistograms.h.

std::vector<MonitorElement*> DiMuonHistograms::TrkTrkMuon_LM
private

Definition at line 78 of file DiMuonHistograms.h.