CMS 3D CMS Logo

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

#include <DTTTrigCalibration.h>

Inheritance diagram for DTTTrigCalibration:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &event, const edm::EventSetup &eventSetup) override
 Fill the time boxes. More...
 
 DTTTrigCalibration (const edm::ParameterSet &pset)
 Constructor. More...
 
void endJob () override
 Fit the time box rising edge and write the resulting ttrig to the DB. More...
 
 ~DTTTrigCalibration () override
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void dumpTTrigMap (const DTTtrig *tTrig) const
 
std::string getOccupancyName (const DTLayerId &slId) const
 
std::string getTBoxName (const DTSuperLayerId &slId) const
 
void plotTTrig (const DTTtrig *tTrig) const
 

Private Attributes

bool checkNoisyChannels
 
bool debug
 
std::string digiLabel
 
bool doSubtractT0
 
bool findTMeanAndSigma
 
double kFactor
 
int maxDigiPerLayer
 
int maxTDCCounts
 
TFile * theFile
 
std::unique_ptr< DTTimeBoxFittertheFitter
 
std::map< DTSuperLayerId, TH1F * > theHistoMap
 
std::map< DTLayerId, TH1F * > theOccupancyMap
 
std::unique_ptr< DTTTrigBaseSynctheSync
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Analyzer class which fills time box plots with SL granularity for t_trig computation, fits the rising edge and write results to DB. The time boxes are written to file.

Author
G. Cerminara - INFN Torino

Definition at line 31 of file DTTTrigCalibration.h.

Constructor & Destructor Documentation

◆ DTTTrigCalibration()

DTTTrigCalibration::DTTTrigCalibration ( const edm::ParameterSet pset)

Constructor.

Definition at line 39 of file DTTTrigCalibration.cc.

39  {
40  // Get the debug parameter for verbose output
41  debug = pset.getUntrackedParameter<bool>("debug");
42 
43  // Get the label to retrieve digis from the event
44  digiLabel = pset.getUntrackedParameter<string>("digiLabel");
45  consumes<DTDigiCollection>(edm::InputTag(digiLabel));
46 
47  // Switch on/off the DB writing
48  findTMeanAndSigma = pset.getUntrackedParameter<bool>("fitAndWrite", false);
49 
50  // The TDC time-window (ns)
51  maxTDCCounts = 5000 * pset.getUntrackedParameter<int>("tdcRescale", 1);
52  //The maximum number of digis per layer
53  maxDigiPerLayer = pset.getUntrackedParameter<int>("maxDigiPerLayer", 10);
54 
55  // The root file which will contain the histos
56  string rootFileName = pset.getUntrackedParameter<string>("rootFileName");
57  theFile = new TFile(rootFileName.c_str(), "RECREATE");
58  theFile->cd();
59  theFitter = std::make_unique<DTTimeBoxFitter>();
60  if (debug)
61  theFitter->setVerbosity(1);
62 
63  double sigmaFit = pset.getUntrackedParameter<double>("sigmaTTrigFit", 10.);
64  theFitter->setFitSigma(sigmaFit);
65 
66  doSubtractT0 = pset.getUntrackedParameter<bool>("doSubtractT0", "false");
67  // Get the synchronizer
68  if (doSubtractT0) {
69  theSync = DTTTrigSyncFactory::get()->create(pset.getUntrackedParameter<string>("tTrigMode"),
70  pset.getUntrackedParameter<ParameterSet>("tTrigModeConfig"));
71  }
72 
73  checkNoisyChannels = pset.getUntrackedParameter<bool>("checkNoisyChannels", "false");
74 
75  // the kfactor to be uploaded in the ttrig DB
76  kFactor = pset.getUntrackedParameter<double>("kFactor", -0.7);
77 
78  if (debug)
79  cout << "[DTTTrigCalibration]Constructor called!" << endl;
80 }

References dtDigiTask_cfi::checkNoisyChannels, gather_cfg::cout, debug, DataMixerDataOnData_cff::digiLabel, get, dttriganalyzer_cfi::kFactor, muonDTDigis_cfi::pset, CSCSkim_cfi::rootFileName, and interactiveExample::theFile.

◆ ~DTTTrigCalibration()

DTTTrigCalibration::~DTTTrigCalibration ( )
override

Destructor.

Definition at line 83 of file DTTTrigCalibration.cc.

83  {
84  if (debug)
85  cout << "[DTTTrigCalibration]Destructor called!" << endl;
86 
87  // // Delete all histos
88  // for(map<DTSuperLayerId, TH1F*>::const_iterator slHisto = theHistoMap.begin();
89  // slHisto != theHistoMap.end();
90  // slHisto++) {
91  // delete (*slHisto).second;
92  // }
93 
94  theFile->Close();
95 }

References gather_cfg::cout, debug, and interactiveExample::theFile.

Member Function Documentation

◆ analyze()

void DTTTrigCalibration::analyze ( const edm::Event event,
const edm::EventSetup eventSetup 
)
overridevirtual

Fill the time boxes.

Perform the real analysis.

Implements edm::EDAnalyzer.

Definition at line 98 of file DTTTrigCalibration.cc.

98  {
99  if (debug)
100  cout << "[DTTTrigCalibration] #Event: " << event.id().event() << endl;
101 
102  // Get the digis from the event
104  event.getByLabel(digiLabel, digis);
105 
106  ESHandle<DTStatusFlag> statusMap;
107  if (checkNoisyChannels) {
108  // Get the map of noisy channels
109  eventSetup.get<DTStatusFlagRcd>().get(statusMap);
110  }
111 
112  if (doSubtractT0)
113  theSync->setES(eventSetup);
114 
115  //The chambers too noisy in this event
116  vector<DTChamberId> badChambers;
117 
118  // Iterate through all digi collections ordered by LayerId
120  for (dtLayerIt = digis->begin(); dtLayerIt != digis->end(); ++dtLayerIt) {
121  // Get the iterators over the digis associated with this LayerId
122  const DTDigiCollection::Range& digiRange = (*dtLayerIt).second;
123 
124  const DTLayerId layerId = (*dtLayerIt).first;
125  const DTSuperLayerId slId = layerId.superlayerId();
126  const DTChamberId chId = slId.chamberId();
127  bool badChamber = false;
128 
129  if (debug)
130  cout << "----------- Layer " << layerId << " -------------" << endl;
131 
132  //Check if the layer is inside a noisy chamber
133  for (vector<DTChamberId>::const_iterator chamber = badChambers.begin(); chamber != badChambers.end(); ++chamber) {
134  if ((*chamber) == chId) {
135  badChamber = true;
136  break;
137  }
138  }
139  if (badChamber)
140  continue;
141 
142  //Check if the layer has too many digis
143  if ((digiRange.second - digiRange.first) > maxDigiPerLayer) {
144  if (debug)
145  cout << "Layer " << layerId << "has too many digis (" << (digiRange.second - digiRange.first) << ")" << endl;
146  badChambers.push_back(chId);
147  continue;
148  }
149 
150  // Get the histo from the map
151  TH1F* hTBox = theHistoMap[slId];
152  if (hTBox == nullptr) {
153  // Book the histogram
154  theFile->cd();
155  hTBox =
156  new TH1F(getTBoxName(slId).c_str(), "Time box (ns)", int(0.25 * 32.0 * maxTDCCounts / 25.0), 0, maxTDCCounts);
157  if (debug)
158  cout << " New Time Box: " << hTBox->GetName() << endl;
159  theHistoMap[slId] = hTBox;
160  }
161  TH1F* hO = theOccupancyMap[layerId];
162  if (hO == nullptr) {
163  // Book the histogram
164  theFile->cd();
165  hO = new TH1F(getOccupancyName(layerId).c_str(), "Occupancy", 100, 0, 100);
166  if (debug)
167  cout << " New Time Box: " << hO->GetName() << endl;
168  theOccupancyMap[layerId] = hO;
169  }
170 
171  // Loop over all digis in the given range
172  for (DTDigiCollection::const_iterator digi = digiRange.first; digi != digiRange.second; ++digi) {
173  const DTWireId wireId(layerId, (*digi).wire());
174 
175  // Check for noisy channels and skip them
176  if (checkNoisyChannels) {
177  bool isNoisy = false;
178  bool isFEMasked = false;
179  bool isTDCMasked = false;
180  bool isTrigMask = false;
181  bool isDead = false;
182  bool isNohv = false;
183  statusMap->cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
184  if (isNoisy) {
185  if (debug)
186  cout << "Wire: " << wireId << " is noisy, skipping!" << endl;
187  continue;
188  }
189  }
190  theFile->cd();
191  double offset = 0;
192  if (doSubtractT0) {
193  const DTLayer* layer = nullptr; //fake
194  const GlobalPoint glPt; //fake
195  offset = theSync->offset(layer, wireId, glPt);
196  }
197  hTBox->Fill((*digi).time() - offset);
198  if (debug) {
199  cout << " Filling Time Box: " << hTBox->GetName() << endl;
200  cout << " offset (ns): " << offset << endl;
201  cout << " time(ns): " << (*digi).time() - offset << endl;
202  }
203  hO->Fill((*digi).wire());
204  }
205  }
206 }

References DTStatusFlag::cellStatus(), relativeConstraints::chamber, DTSuperLayerId::chamberId(), dtDigiTask_cfi::checkNoisyChannels, gather_cfg::cout, debug, DataMixerDataOnData_cff::digiLabel, edm::EventSetup::get(), get, phase1PixelTopology::layer, hltrates_dqm_sourceclient-live_cfg::offset, DTLayerId::superlayerId(), and interactiveExample::theFile.

◆ dumpTTrigMap()

void DTTTrigCalibration::dumpTTrigMap ( const DTTtrig tTrig) const
private

Definition at line 274 of file DTTTrigCalibration.cc.

274  {
275  static const double convToNs = 25. / 32.;
276  for (DTTtrig::const_iterator ttrig = tTrig->begin(); ttrig != tTrig->end(); ++ttrig) {
277  cout << "Wh: " << (*ttrig).first.wheelId << " St: " << (*ttrig).first.stationId
278  << " Sc: " << (*ttrig).first.sectorId << " Sl: " << (*ttrig).first.slId
279  << " TTrig mean (ns): " << (*ttrig).second.tTrig * convToNs
280  << " TTrig sigma (ns): " << (*ttrig).second.tTrms * convToNs << endl;
281  }
282 }

References gather_cfg::cout, and dttriganalyzer_cfi::tTrig.

◆ endJob()

void DTTTrigCalibration::endJob ( void  )
overridevirtual

Fit the time box rising edge and write the resulting ttrig to the DB.

Reimplemented from edm::EDAnalyzer.

Definition at line 208 of file DTTTrigCalibration.cc.

208  {
209  if (debug)
210  cout << "[DTTTrigCalibration]Writing histos to file!" << endl;
211 
212  // Write all time boxes to file
213  theFile->cd();
214  for (map<DTSuperLayerId, TH1F*>::const_iterator slHisto = theHistoMap.begin(); slHisto != theHistoMap.end();
215  ++slHisto) {
216  (*slHisto).second->Write();
217  }
218  for (map<DTLayerId, TH1F*>::const_iterator slHisto = theOccupancyMap.begin(); slHisto != theOccupancyMap.end();
219  ++slHisto) {
220  (*slHisto).second->Write();
221  }
222 
223  if (findTMeanAndSigma) {
224  // Create the object to be written to DB
225  DTTtrig* tTrig = new DTTtrig();
226 
227  // Loop over the map, fit the histos and write the resulting values to the DB
228  for (map<DTSuperLayerId, TH1F*>::const_iterator slHisto = theHistoMap.begin(); slHisto != theHistoMap.end();
229  ++slHisto) {
230  pair<double, double> meanAndSigma = theFitter->fitTimeBox((*slHisto).second);
231  tTrig->set((*slHisto).first, meanAndSigma.first, meanAndSigma.second, kFactor, DTTimeUnits::ns);
232 
233  if (debug) {
234  cout << " SL: " << (*slHisto).first << " mean = " << meanAndSigma.first << " sigma = " << meanAndSigma.second
235  << endl;
236  }
237  }
238 
239  // Print the ttrig map
241 
242  // Plot the tTrig
243  plotTTrig(tTrig);
244 
245  if (debug)
246  cout << "[DTTTrigCalibration]Writing ttrig object to DB!" << endl;
247 
248  // FIXME: to be read from cfg?
249  string tTrigRecord = "DTTtrigRcd";
250 
251  // Write the object to DB
252  DTCalibDBUtils::writeToDB(tTrigRecord, tTrig);
253  }
254 }

References gather_cfg::cout, debug, dttriganalyzer_cfi::kFactor, DTTimeUnits::ns, interactiveExample::theFile, dttriganalyzer_cfi::tTrig, and DTCalibDBUtils::writeToDB().

Referenced by o2olib.O2ORunMgr::executeJob().

◆ getOccupancyName()

string DTTTrigCalibration::getOccupancyName ( const DTLayerId slId) const
private

Definition at line 265 of file DTTTrigCalibration.cc.

265  {
266  string histoName;
267  stringstream theStream;
268  theStream << "Ch_" << slId.wheel() << "_" << slId.station() << "_" << slId.sector() << "_SL" << slId.superlayer()
269  << "_L" << slId.layer() << "_Occupancy";
270  theStream >> histoName;
271  return histoName;
272 }

References HltBtagPostValidation_cff::histoName, DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superlayer(), and DTChamberId::wheel().

◆ getTBoxName()

string DTTTrigCalibration::getTBoxName ( const DTSuperLayerId slId) const
private

Definition at line 256 of file DTTTrigCalibration.cc.

256  {
257  string histoName;
258  stringstream theStream;
259  theStream << "Ch_" << slId.wheel() << "_" << slId.station() << "_" << slId.sector() << "_SL" << slId.superlayer()
260  << "_hTimeBox";
261  theStream >> histoName;
262  return histoName;
263 }

References HltBtagPostValidation_cff::histoName, DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superlayer(), and DTChamberId::wheel().

◆ plotTTrig()

void DTTTrigCalibration::plotTTrig ( const DTTtrig tTrig) const
private

Definition at line 284 of file DTTTrigCalibration.cc.

284  {
285  TH1F* tTrig_YB1_Se10 = new TH1F("tTrig_YB1_Se10", "tTrig YB1_Se10", 15, 1, 16);
286  TH1F* tTrig_YB2_Se10 = new TH1F("tTrig_YB2_Se10", "tTrig YB2_Se10", 15, 1, 16);
287  TH1F* tTrig_YB2_Se11 = new TH1F("tTrig_YB2_Se11", "tTrig YB2_Se11", 12, 1, 13);
288 
289  static const double convToNs = 25. / 32.;
290  for (DTTtrig::const_iterator ttrig = tTrig->begin(); ttrig != tTrig->end(); ++ttrig) {
291  // avoid to have wired numbers in the plot
292  float tTrigValue = 0;
293  float tTrmsValue = 0;
294  if ((*ttrig).second.tTrig * convToNs > 0 && (*ttrig).second.tTrig * convToNs < 32000) {
295  tTrigValue = (*ttrig).second.tTrig * convToNs;
296  tTrmsValue = (*ttrig).second.tTrms * convToNs;
297  }
298 
299  int binx;
300  string binLabel;
301  stringstream binLabelStream;
302  if ((*ttrig).first.sectorId != 14) {
303  binx = ((*ttrig).first.stationId - 1) * 3 + (*ttrig).first.slId;
304  binLabelStream << "MB" << (*ttrig).first.stationId << "_SL" << (*ttrig).first.slId;
305  } else {
306  binx = 12 + (*ttrig).first.slId;
307  binLabelStream << "MB14_SL" << (*ttrig).first.slId;
308  }
309  binLabelStream >> binLabel;
310 
311  if ((*ttrig).first.wheelId == 2) {
312  if ((*ttrig).first.sectorId == 10 || (*ttrig).first.sectorId == 14) {
313  tTrig_YB2_Se10->Fill(binx, tTrigValue);
314  tTrig_YB2_Se10->SetBinError(binx, tTrmsValue);
315  tTrig_YB2_Se10->GetXaxis()->SetBinLabel(binx, binLabel.c_str());
316  tTrig_YB2_Se10->GetYaxis()->SetTitle("ns");
317  } else {
318  tTrig_YB2_Se11->Fill(binx, tTrigValue);
319  tTrig_YB2_Se11->SetBinError(binx, tTrmsValue);
320  tTrig_YB2_Se11->GetXaxis()->SetBinLabel(binx, binLabel.c_str());
321  tTrig_YB2_Se11->GetYaxis()->SetTitle("ns");
322  }
323  } else {
324  tTrig_YB1_Se10->Fill(binx, tTrigValue);
325  tTrig_YB1_Se10->SetBinError(binx, tTrmsValue);
326  tTrig_YB1_Se10->GetXaxis()->SetBinLabel(binx, binLabel.c_str());
327  tTrig_YB1_Se10->GetYaxis()->SetTitle("ns");
328  }
329  }
330 
331  tTrig_YB1_Se10->Write();
332  tTrig_YB2_Se10->Write();
333  tTrig_YB2_Se11->Write();
334 }

References dttriganalyzer_cfi::tTrig.

Member Data Documentation

◆ checkNoisyChannels

bool DTTTrigCalibration::checkNoisyChannels
private

Definition at line 81 of file DTTTrigCalibration.h.

◆ debug

bool DTTTrigCalibration::debug
private

◆ digiLabel

std::string DTTTrigCalibration::digiLabel
private

Definition at line 64 of file DTTTrigCalibration.h.

◆ doSubtractT0

bool DTTTrigCalibration::doSubtractT0
private

Definition at line 79 of file DTTTrigCalibration.h.

◆ findTMeanAndSigma

bool DTTTrigCalibration::findTMeanAndSigma
private

Definition at line 83 of file DTTTrigCalibration.h.

◆ kFactor

double DTTTrigCalibration::kFactor
private

Definition at line 85 of file DTTTrigCalibration.h.

◆ maxDigiPerLayer

int DTTTrigCalibration::maxDigiPerLayer
private

Definition at line 69 of file DTTTrigCalibration.h.

◆ maxTDCCounts

int DTTTrigCalibration::maxTDCCounts
private

Definition at line 67 of file DTTTrigCalibration.h.

◆ theFile

TFile* DTTTrigCalibration::theFile
private

Definition at line 72 of file DTTTrigCalibration.h.

◆ theFitter

std::unique_ptr<DTTimeBoxFitter> DTTTrigCalibration::theFitter
private

Definition at line 88 of file DTTTrigCalibration.h.

◆ theHistoMap

std::map<DTSuperLayerId, TH1F*> DTTTrigCalibration::theHistoMap
private

Definition at line 75 of file DTTTrigCalibration.h.

◆ theOccupancyMap

std::map<DTLayerId, TH1F*> DTTTrigCalibration::theOccupancyMap
private

Definition at line 76 of file DTTTrigCalibration.h.

◆ theSync

std::unique_ptr<DTTTrigBaseSync> DTTTrigCalibration::theSync
private

Definition at line 90 of file DTTTrigCalibration.h.

DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTTtrig
Definition: DTTtrig.h:68
DTStatusFlag::cellStatus
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
get content
Definition: DTStatusFlag.h:88
DTTTrigCalibration::digiLabel
std::string digiLabel
Definition: DTTTrigCalibration.h:64
dttriganalyzer_cfi.tTrig
tTrig
Definition: dttriganalyzer_cfi.py:11
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTSuperLayerId::superlayer
int superlayer() const
Return the superlayer number (deprecated method name)
Definition: DTSuperLayerId.h:42
edm::Handle< DTDigiCollection >
DTTtrig::const_iterator
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
Definition: DTTtrig.h:139
MuonDigiCollection::const_iterator
std::vector< DigiType >::const_iterator const_iterator
Definition: MuonDigiCollection.h:94
DTTTrigCalibration::theFitter
std::unique_ptr< DTTimeBoxFitter > theFitter
Definition: DTTTrigCalibration.h:88
DTTTrigCalibration::getTBoxName
std::string getTBoxName(const DTSuperLayerId &slId) const
Definition: DTTTrigCalibration.cc:256
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DTWireId
Definition: DTWireId.h:12
DTTTrigCalibration::debug
bool debug
Definition: DTTTrigCalibration.h:61
DTTTrigCalibration::kFactor
double kFactor
Definition: DTTTrigCalibration.h:85
DTTTrigCalibration::checkNoisyChannels
bool checkNoisyChannels
Definition: DTTTrigCalibration.h:81
DTTTrigCalibration::theOccupancyMap
std::map< DTLayerId, TH1F * > theOccupancyMap
Definition: DTTTrigCalibration.h:76
DTTimeUnits::ns
Definition: DTTimeUnits.h:32
DTTTrigCalibration::maxTDCCounts
int maxTDCCounts
Definition: DTTTrigCalibration.h:67
edm::ESHandle
Definition: DTSurvey.h:22
Point3DBase< float, GlobalTag >
DTLayerId
Definition: DTLayerId.h:12
DTTTrigCalibration::getOccupancyName
std::string getOccupancyName(const DTLayerId &slId) const
Definition: DTTTrigCalibration.cc:265
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
DTStatusFlagRcd
Definition: DTStatusFlagRcd.h:5
edm::ParameterSet
Definition: ParameterSet.h:47
DTTTrigCalibration::dumpTTrigMap
void dumpTTrigMap(const DTTtrig *tTrig) const
Definition: DTTTrigCalibration.cc:274
DTTTrigCalibration::theHistoMap
std::map< DTSuperLayerId, TH1F * > theHistoMap
Definition: DTTTrigCalibration.h:75
DTSuperLayerId::chamberId
DTChamberId chamberId() const
Return the corresponding ChamberId.
Definition: DTSuperLayerId.h:45
DTTTrigCalibration::plotTTrig
void plotTTrig(const DTTtrig *tTrig) const
Definition: DTTTrigCalibration.cc:284
get
#define get
DTLayer
Definition: DTLayer.h:25
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTTTrigCalibration::doSubtractT0
bool doSubtractT0
Definition: DTTTrigCalibration.h:79
DTLayerId::superlayerId
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:45
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
HltBtagPostValidation_cff.histoName
histoName
Definition: HltBtagPostValidation_cff.py:17
MuonDigiCollection::Range
std::pair< const_iterator, const_iterator > Range
Definition: MuonDigiCollection.h:95
CSCSkim_cfi.rootFileName
rootFileName
Definition: CSCSkim_cfi.py:9
DTChamberId
Definition: DTChamberId.h:14
DTTTrigCalibration::theSync
std::unique_ptr< DTTTrigBaseSync > theSync
Definition: DTTTrigCalibration.h:90
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
DigiContainerIterator
Definition: MuonDigiCollection.h:30
DTLayerId::layer
int layer() const
Return the layer number.
Definition: DTLayerId.h:42
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
edm::InputTag
Definition: InputTag.h:15
DTCalibDBUtils::writeToDB
static void writeToDB(std::string record, T *payload)
Definition: DTCalibDBUtils.h:28
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTTTrigCalibration::maxDigiPerLayer
int maxDigiPerLayer
Definition: DTTTrigCalibration.h:69
DTTTrigCalibration::theFile
TFile * theFile
Definition: DTTTrigCalibration.h:72
DTTTrigCalibration::findTMeanAndSigma
bool findTMeanAndSigma
Definition: DTTTrigCalibration.h:83