CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
GeometryInterface::InterestingQuantities iq_sample
dqm::legacy::MonitorElement * me