CMS 3D CMS Logo

AbstractHistogram.h
Go to the documentation of this file.
1 #ifndef SiPixel_AbstractHistogram_h
2 #define SiPixel_AbstractHistogram_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelPhase1Common
6 // Class: AbstractHistogram
7 //
8 // This is a spaceholder for a histogram in 0, 1, or 2 Dimensions. May or may
9 // not be backed by a TH1 or similar. May not be there at all and created on
10 // demand. Mainly designed as a value in std::map.
11 //
12 // Original Author: Marcel Schneider
13 //
14 
17 #include <vector>
18 #include <utility>
19 #include <cassert>
20 
22  int count = 0; // how many things where inserted already. For concat.
24  TH1* th1 = nullptr;
25  // This is needed for re-grouping, which happens for counters and harvesting
26  // This is always an iq out of GeometryInterface::allModules
28 
30  // if both are set the ME should own the TH1
31  if (th1 && !me) {
32  //std::cout << "+++ Deleting " << th1->GetTitle() << "\n";
33  delete th1;
34  }
35  };
36 };
37 
38 #endif
AbstractHistogram::iq_sample
GeometryInterface::InterestingQuantities iq_sample
Definition: AbstractHistogram.h:27
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
AbstractHistogram::count
int count
Definition: AbstractHistogram.h:22
GeometryInterface.h
AbstractHistogram
Definition: AbstractHistogram.h:21
AbstractHistogram::~AbstractHistogram
~AbstractHistogram()
Definition: AbstractHistogram.h:29
AbstractHistogram::me
dqm::legacy::MonitorElement * me
Definition: AbstractHistogram.h:23
AbstractHistogram::th1
TH1 * th1
Definition: AbstractHistogram.h:24
GeometryInterface::InterestingQuantities
Definition: GeometryInterface.h:57