CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
APVShotsAnalyzer.cc File Reference
#include <memory>
#include "TH1F.h"
#include "TProfile.h"
#include <vector>
#include <string>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESWatcher.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/SiStripDigi/interface/SiStripDigi.h"
#include "DQM/SiStripCommon/interface/APVShotFinder.h"
#include "DQM/SiStripCommon/interface/APVShot.h"
#include "DPGAnalysis/SiStripTools/interface/EventWithHistory.h"
#include "DPGAnalysis/SiStripTools/interface/APVCyclePhaseCollection.h"
#include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h"
#include "DQM/SiStripCommon/interface/TkHistoMap.h"
#include "CalibFormats/SiStripObjects/interface/SiStripDetCabling.h"
#include "CalibTracker/Records/interface/SiStripDetCablingRcd.h"
#include "CondFormats/SiStripObjects/interface/FedChannelConnection.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include "CommonTools/TrackerMap/interface/TrackerMap.h"

Go to the source code of this file.

Classes

class  APVShotsAnalyzer
 

Functions

 _detCablingToken (_useCabling?decltype(_detCablingToken){esConsumes()}:decltype(_detCablingToken){})
 
 _nevents (0)
 
 _phasepart (iConfig.getUntrackedParameter< std::string >("phasePartition","None"))
 
 _rhm (consumesCollector())
 
 _suffix (iConfig.getParameter< std::string >("mapSuffix"))
 
 _zs (iConfig.getUntrackedParameter< bool >("zeroSuppressed", true))
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< APVShotsAnalyzer > > 
s_filler__LINE__ ("APVShotsAnalyzer")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< APVShotsAnalyzer > > 
s_maker__LINE__ ("APVShotsAnalyzer")
 

Variables

 __pad0__
 

Function Documentation

_detCablingToken ( _useCabling?decltype(_detCablingToken){esConsumes()}:decltype(_detCablingToken){}  )
_nevents ( )
_phasepart ( iConfig.getUntrackedParameter< std::string >  "phasePartition","None")
_rhm ( consumesCollector()  )

Definition at line 154 of file APVShotsAnalyzer.cc.

References _suffix(), _zs(), and TFileService::make().

154  {
155  //now do what ever initialization is needed
156 
157  if (!_zs)
158  _suffix += "_notZS";
159 
161 
162  _nShots = tfserv->make<TH1F>("nShots", "Number of Shots per event", 200, -0.5, 199.5);
163  _nShots->GetXaxis()->SetTitle("Shots");
164  _nShots->GetYaxis()->SetTitle("Events");
165  _nShots->StatOverflows(kTRUE);
166 
167  _whichAPV = tfserv->make<TH1F>("whichAPV", "APV with shots", 6, -0.5, 5.5);
168  _whichAPV->GetXaxis()->SetTitle("APV");
169  _whichAPV->GetYaxis()->SetTitle("Shots");
170 
171  _stripMult = tfserv->make<TH1F>("stripMultiplicity", "Shot Strip Multiplicity", 129, -0.5, 128.5);
172  _stripMult->GetXaxis()->SetTitle("Number of Strips");
173  _stripMult->GetYaxis()->SetTitle("Shots");
174 
175  _median = tfserv->make<TH1F>("median", "APV Shot charge median", 256, -0.5, 255.5);
176  _median->GetXaxis()->SetTitle("Charge [ADC]");
177  _median->GetYaxis()->SetTitle("Shots");
178 
179  _subDetector = tfserv->make<TH1F>("subDets", "SubDetector Shot distribution", 10, -0.5, 9.5);
180  _subDetector->GetYaxis()->SetTitle("Shots");
181 
182  _nShotsbxcycle = tfserv->make<TProfile>("nShotsBXcycle", "Number of shots vs APV cycle bin", 70, -0.5, 69.5);
183  _nShotsbxcycle->GetXaxis()->SetTitle("Event BX mod(70)");
184  _nShotsbxcycle->GetYaxis()->SetTitle("APV shots");
185 
186  _nShotsdbx = tfserv->make<TProfile>("nShotsDBX", "Number of shots vs #Delta(BX)", 1000, -0.5, 999.5);
187  _nShotsdbx->GetXaxis()->SetTitle("Event #Delta(BX)");
188  _nShotsdbx->GetYaxis()->SetTitle("APV shots");
189 
190  _nShotsdbxincycle =
191  tfserv->make<TProfile>("nShotsDBXincycle", "Number of shots vs #Delta(BX) w.r.t. APV cycle", 1000, -0.5, 999.5);
192  _nShotsdbxincycle->GetXaxis()->SetTitle("Event #Delta(BX) w.r.t. APV cycle");
193  _nShotsdbxincycle->GetYaxis()->SetTitle("APV shots");
194 
195  _nShotsbxcycleprev =
196  tfserv->make<TProfile>("nShotsBXcycleprev", "Number of shots vs APV cycle bin of previous L1A", 70, -0.5, 69.5);
197  _nShotsbxcycleprev->GetXaxis()->SetTitle("Previous L1A BX mod(70)");
198  _nShotsbxcycleprev->GetYaxis()->SetTitle("APV shots");
199 
200  _nShotsdbxprev =
201  tfserv->make<TProfile>("nShotsDBXprev", "Number of shots vs #Delta(BX) of previous L1A", 1000, -0.5, 999.5);
202  _nShotsdbxprev->GetXaxis()->SetTitle("Previous L1A #Delta(BX)");
203  _nShotsdbxprev->GetYaxis()->SetTitle("APV shots");
204 
205  _nShotsdbxincycleprev = tfserv->make<TProfile>(
206  "nShotsDBXincycleprev", "Number of shots vs #Delta(BX) w.r.t. APV cycle of previous L1A", 1000, -0.5, 999.5);
207  _nShotsdbxincycleprev->GetXaxis()->SetTitle("Previous L1A #Delta(BX) w.r.t. APV cycle");
208  _nShotsdbxincycleprev->GetYaxis()->SetTitle("APV shots");
209 
210  _nShotsrun = _rhm.makeTH1F("nShotsrun", "Number of Shots per event", 200, -0.5, 199.5);
211  _nShotsVsTimerun =
212  _rhm.makeTProfile("nShotsVsTimerun", "Mean number of shots vs orbit number", 4 * 500, 0, 500 * 262144);
213  _whichAPVrun = _rhm.makeTH1F("whichAPVrun", "APV with shots", 6, -0.5, 5.5);
214  _stripMultrun = _rhm.makeTH1F("stripMultiplicityrun", "Shot Strip Multiplicity", 129, -0.5, 128.5);
215  _medianrun = _rhm.makeTH1F("medianrun", "APV Shot charge median", 256, -0.5, 255.5);
216  _subDetectorrun = _rhm.makeTH1F("subDetsrun", "SubDetector Shot distribution", 10, -0.5, 9.5);
217 
218  if (_useCabling) {
219  _fed = tfserv->make<TH1F>("fed", "FED Shot distribution", 440, 50, 490);
220  _fed->GetYaxis()->SetTitle("Shots");
221  _fedrun = _rhm.makeTH1F("fedrun", "FED Shot distribution", 440, 50, 490);
222 
223  _channelvsfed =
224  tfserv->make<TH2F>("channelvsfed", "Channel vs FED Shot distribution", 440, 50, 490, 97, -0.5, 96.5);
225  _channelvsfed->GetXaxis()->SetTitle("FED");
226  _channelvsfed->GetYaxis()->SetTitle("Channel");
227 
228  _nShotsVsFED =
229  tfserv->make<TH2F>("nShotsVsFED", "Number of Shots per event vs fedid", 440, 50, 490, 200, -0.5, 199.5);
230  _nShotsVsFED->GetXaxis()->SetTitle("fedId");
231  _nShots->GetYaxis()->SetTitle("Shots");
232  _nShots->GetZaxis()->SetTitle("Events");
233  _nShotsVsFED->StatOverflows(kTRUE);
234 
235  _medianVsFED = tfserv->make<TH2F>("medianVsFED", "APV Shot charge median vs fedid", 440, 50, 490, 256, -0.5, 255.5);
236  _medianVsFED->GetXaxis()->SetTitle("fedId");
237  _medianVsFED->GetYaxis()->SetTitle("Charge [ADC]");
238  _median->GetZaxis()->SetTitle("Shots");
239  }
240 
241  tkhisto = nullptr;
242  tkhisto2 = nullptr;
243 }
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
_rhm(consumesCollector())
_suffix(iConfig.getParameter< std::string >("mapSuffix"))
_zs(iConfig.getUntrackedParameter< bool >("zeroSuppressed", true))
_suffix ( iConfig.getParameter< std::string >  "mapSuffix")

Referenced by _rhm(), and HistSpec::HistSpec().

_zs ( iConfig.getUntrackedParameter< bool >  "zeroSuppressed", true)

Referenced by _rhm().

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< APVShotsAnalyzer > > s_filler__LINE__ ( "APVShotsAnalyzer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< APVShotsAnalyzer > > s_maker__LINE__ ( "APVShotsAnalyzer"  )
static

Variable Documentation

__pad0__

Definition at line 148 of file APVShotsAnalyzer.cc.