test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
DT4DSegmentClients Class Reference

#include <DT4DSegmentClients.h>

Inheritance diagram for DT4DSegmentClients:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 DT4DSegmentClients (const edm::ParameterSet &ps)
 Constructor. More...
 
void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
 
 ~DT4DSegmentClients ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze. More...
 
- 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)
 

Private Attributes

DQMStoredbe
 

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 &)
 

Detailed Description

Definition at line 23 of file DT4DSegmentClients.h.

Constructor & Destructor Documentation

DT4DSegmentClients::DT4DSegmentClients ( const edm::ParameterSet ps)

Constructor.

Definition at line 23 of file DT4DSegmentClients.cc.

23  {
24 }
DT4DSegmentClients::~DT4DSegmentClients ( )

Destructor.

Definition at line 25 of file DT4DSegmentClients.cc.

25  {
26 }

Member Function Documentation

void DT4DSegmentClients::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 146 of file DT4DSegmentClients.cc.

146  {
147 
148 }
void DT4DSegmentClients::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 27 of file DT4DSegmentClients.cc.

References printConversionInfo::aux, Tutils::drawGFit(), MonitorElement::getTH1(), and cppFunctionSkipper::operator.

28  {
30  //dbe->setCurrentFolder("DQMData/Run 1/DT/Run summary/4DSegments/");
31 
32  MonitorElement * hResAlpha = dbe->get("DT/4DSegments/Res/4D_All_hResAlpha");
33  MonitorElement * hResBeta = dbe->get("DT/4DSegments/Res/4D_All_hResBeta");
34  MonitorElement * hResX = dbe->get("DT/4DSegments/Res/4D_All_hResX");
35  MonitorElement * hResY = dbe->get("DT/4DSegments/Res/4D_All_hResY");
36  MonitorElement * hResBetaRZ = dbe->get("DT/4DSegments/Res/4D_All_hResBetaRZ");
37  MonitorElement * hResYRZ = dbe->get("DT/4DSegments/Res/4D_All_hResYRZ");
38 
39  MonitorElement * hResAlpha_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResAlpha");
40  MonitorElement * hResBeta_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBeta");
41  MonitorElement * hResX_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResX");
42  MonitorElement * hResY_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResY");
43  MonitorElement * hResBetaRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBetaRZ");
44  MonitorElement * hResYRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResYRZ");
45 
46  MonitorElement * hResAlpha_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResAlpha");
47  MonitorElement * hResBeta_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBeta");
48  MonitorElement * hResX_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResX");
49  MonitorElement * hResY_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResY");
50  MonitorElement * hResBetaRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBetaRZ");
51  MonitorElement * hResYRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResYRZ");
52 
53  MonitorElement * hResAlpha_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResAlpha");
54  MonitorElement * hResBeta_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBeta");
55  MonitorElement * hResX_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResX");
56  MonitorElement * hResY_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResY");
57  MonitorElement * hResBetaRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBetaRZ");
58  MonitorElement * hResYRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResYRZ");
59 
60  MonitorElement * hPullAlpha = dbe->get("DT/4DSegments/Pull/4D_All_hPullAlpha");
61  MonitorElement * hPullBeta = dbe->get("DT/4DSegments/Pull/4D_All_hPullBeta");
62  MonitorElement * hPullX = dbe->get("DT/4DSegments/Pull/4D_All_hPullX");
63  MonitorElement * hPullY = dbe->get("DT/4DSegments/Pull/4D_All_hPullY");
64  MonitorElement * hPullBetaRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullBetaRZ");
65  MonitorElement * hPullYRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullYRZ");
66 
67  MonitorElement * hPullAlpha_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullAlpha");
68  MonitorElement * hPullBeta_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBeta");
69  MonitorElement * hPullX_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullX");
70  MonitorElement * hPullY_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullY");
71  MonitorElement * hPullBetaRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBetaRZ");
72  MonitorElement * hPullYRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullYRZ");
73 
74  MonitorElement * hPullAlpha_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullAlpha");
75  MonitorElement * hPullBeta_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBeta");
76  MonitorElement * hPullX_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullX");
77  MonitorElement * hPullY_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullY");
78  MonitorElement * hPullBetaRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBetaRZ");
79  MonitorElement * hPullYRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullYRZ");
80 
81  MonitorElement * hPullAlpha_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullAlpha");
82  MonitorElement * hPullBeta_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBeta");
83  MonitorElement * hPullX_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullX");
84  MonitorElement * hPullY_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullY");
85  MonitorElement * hPullBetaRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBetaRZ");
86  MonitorElement * hPullYRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullYRZ");
87 
88  Tutils * aux = new Tutils;
89  aux->drawGFit(hResAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
90  aux->drawGFit(hResBeta->getTH1(),-0.2,0.2,-0.1,0.1);
91  aux->drawGFit(hResX->getTH1(),-0.2,0.2,-0.1,0.1);
92  aux->drawGFit(hResY->getTH1(),-0.2,0.2,-0.1,0.1);
93  aux->drawGFit(hResBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
94  aux->drawGFit(hResYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
95 
96  aux->drawGFit(hResAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
97  aux->drawGFit(hResBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
98  aux->drawGFit(hResX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
99  aux->drawGFit(hResY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
100  aux->drawGFit(hResBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
101  aux->drawGFit(hResYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
102 
103  aux->drawGFit(hResAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
104  aux->drawGFit(hResBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
105  aux->drawGFit(hResX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
106  aux->drawGFit(hResY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
107  aux->drawGFit(hResBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
108  aux->drawGFit(hResYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
109 
110  aux->drawGFit(hResAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
111  aux->drawGFit(hResBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
112  aux->drawGFit(hResX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
113  aux->drawGFit(hResY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
114  aux->drawGFit(hResBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
115  aux->drawGFit(hResYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
116 
117  aux->drawGFit(hPullAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
118  aux->drawGFit(hPullBeta->getTH1(),-0.2,0.2,-0.1,0.1);
119  aux->drawGFit(hPullX->getTH1(),-0.2,0.2,-0.1,0.1);
120  aux->drawGFit(hPullY->getTH1(),-0.2,0.2,-0.1,0.1);
121  aux->drawGFit(hPullBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
122  aux->drawGFit(hPullYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
123 
124  aux->drawGFit(hPullAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
125  aux->drawGFit(hPullBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
126  aux->drawGFit(hPullX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
127  aux->drawGFit(hPullY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
128  aux->drawGFit(hPullBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
129  aux->drawGFit(hPullYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
130 
131  aux->drawGFit(hPullAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
132  aux->drawGFit(hPullBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
133  aux->drawGFit(hPullX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
134  aux->drawGFit(hPullY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
135  aux->drawGFit(hPullBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
136  aux->drawGFit(hPullYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
137 
138  aux->drawGFit(hPullAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
139  aux->drawGFit(hPullBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
140  aux->drawGFit(hPullX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
141  aux->drawGFit(hPullY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
142  aux->drawGFit(hPullBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
143  aux->drawGFit(hPullYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
144 }
TH1 * getTH1(void) const
void drawGFit(TH1 *h1, float nsigmas, float min, float max)
Definition: utils.h:9

Member Data Documentation

DQMStore* DT4DSegmentClients::dbe
private

Definition at line 41 of file DT4DSegmentClients.h.