CMS 3D CMS Logo

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

#include <MillePedeDQMModule.h>

Inheritance diagram for MillePedeDQMModule:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

virtual void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
 MillePedeDQMModule (const edm::ParameterSet &)
 
virtual ~MillePedeDQMModule ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- 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 ()
 

Private Member Functions

void bookHistograms (DQMStore::IBooker &)
 
void fillExpertHisto (MonitorElement *histo, const double cut, const double sigCut, const double maxMoveCut, const double maxErrorCut, std::array< double, 6 > obs, std::array< double, 6 > obsErr)
 
void fillExpertHistos ()
 

Private Attributes

MonitorElementh_xPos
 
MonitorElementh_xRot
 
MonitorElementh_yPos
 
MonitorElementh_yRot
 
MonitorElementh_zPos
 
MonitorElementh_zRot
 
double maxErrorCut_
 
double maxMoveCut_
 
MillePedeFileReader mpReader
 
const edm::ParameterSet mpReaderConfig_
 
double sigCut_
 
double tXcut_
 
double tYcut_
 
double tZcut_
 
double Xcut_
 
double Ycut_
 
double Zcut_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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)
 

Detailed Description

Definition at line 38 of file MillePedeDQMModule.h.

Constructor & Destructor Documentation

MillePedeDQMModule::MillePedeDQMModule ( const edm::ParameterSet config)

Definition at line 19 of file MillePedeDQMModule.cc.

19  :
21  config.getParameter<edm::ParameterSet>("MillePedeFileReader")
22  ),
24 
25  sigCut_ (mpReaderConfig_.getParameter<double>("sigCut")),
26  Xcut_ (mpReaderConfig_.getParameter<double>("Xcut")),
27  tXcut_ (mpReaderConfig_.getParameter<double>("tXcut")),
28  Ycut_ (mpReaderConfig_.getParameter<double>("Ycut")),
29  tYcut_ (mpReaderConfig_.getParameter<double>("tYcut")),
30  Zcut_ (mpReaderConfig_.getParameter<double>("Zcut")),
31  tZcut_ (mpReaderConfig_.getParameter<double>("tZcut")),
32  maxMoveCut_ (mpReaderConfig_.getParameter<double>("maxMoveCut")),
33  maxErrorCut_ (mpReaderConfig_.getParameter<double>("maxErrorCut"))
34 {
35 }
const edm::ParameterSet mpReaderConfig_
T getParameter(std::string const &) const
MillePedeFileReader mpReader
MillePedeDQMModule::~MillePedeDQMModule ( )
virtual

Definition at line 38 of file MillePedeDQMModule.cc.

39 {
40 }

Member Function Documentation

void MillePedeDQMModule::bookHistograms ( DQMStore::IBooker booker)
private

Definition at line 47 of file MillePedeDQMModule.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), and DQMStore::IBooker::setCurrentFolder().

48 {
49  edm::LogInfo("MillePedeDQMModule") << "Booking histograms";
50 
51  booker.cd();
52  booker.setCurrentFolder("AlCaReco/SiPixelAli/");
53 
54  h_xPos = booker.book1D("Xpos", "#Delta X;;#mu m", 10, 0, 10.);
55  h_xRot = booker.book1D("Xrot", "#Delta #theta_{X};;#mu rad", 10, 0, 10.);
56  h_yPos = booker.book1D("Ypos", "#Delta Y;;#mu m", 10, 0., 10.);
57  h_yRot = booker.book1D("Yrot", "#Delta #theta_{Y};;#mu rad", 10, 0, 10.);
58  h_zPos = booker.book1D("Zpos", "#Delta Z;;#mu m", 10, 0., 10.);
59  h_zRot = booker.book1D("Zrot", "#Delta #theta_{Z};;#mu rad", 10, 0, 10.);
60 
61  booker.cd();
62 }
void cd(void)
Definition: DQMStore.cc:268
MonitorElement * h_zPos
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * h_xPos
MonitorElement * h_yPos
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
MonitorElement * h_xRot
MonitorElement * h_zRot
MonitorElement * h_yRot
void MillePedeDQMModule::dqmEndJob ( DQMStore::IBooker booker,
DQMStore::IGetter  
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 66 of file MillePedeDQMModule.cc.

References bookHistograms().

67 {
68 
69  bookHistograms(booker);
70  mpReader.read();
72 }
void bookHistograms(DQMStore::IBooker &)
MillePedeFileReader mpReader
void MillePedeDQMModule::fillExpertHisto ( MonitorElement histo,
const double  cut,
const double  sigCut,
const double  maxMoveCut,
const double  maxErrorCut,
std::array< double, 6 >  obs,
std::array< double, 6 >  obsErr 
)
private

Definition at line 96 of file MillePedeDQMModule.cc.

References MonitorElement::getTH1F(), and i.

98 {
99  TH1F* histo_0 = histo->getTH1F();
100 
101  histo_0->SetMinimum(-(maxMoveCut_));
102  histo_0->SetMaximum( maxMoveCut_);
103 
104  for (size_t i = 0; i < obs.size(); ++i) {
105  histo_0->SetBinContent(i+1, obs[i]);
106  histo_0->SetBinError(i+1, obsErr[i]);
107  }
108  histo_0->SetBinContent(8,cut);
109  histo_0->SetBinContent(9,sigCut);
110  histo_0->SetBinContent(10,maxMoveCut);
111  histo_0->SetBinContent(11,maxErrorCut);
112 
113 }
int i
Definition: DBlmapReader.cc:9
TH1F * getTH1F(void) const
void MillePedeDQMModule::fillExpertHistos ( )
private

Definition at line 81 of file MillePedeDQMModule.cc.

82 {
83 
86 
89 
92 
93 }
std::array< double, 6 > const & getTYobs() const
std::array< double, 6 > const & getYobsErr() const
MonitorElement * h_zPos
std::array< double, 6 > const & getYobs() const
std::array< double, 6 > const & getTXobs() const
std::array< double, 6 > const & getXobsErr() const
std::array< double, 6 > const & getTZobs() const
void fillExpertHisto(MonitorElement *histo, const double cut, const double sigCut, const double maxMoveCut, const double maxErrorCut, std::array< double, 6 > obs, std::array< double, 6 > obsErr)
MonitorElement * h_xPos
std::array< double, 6 > const & getTXobsErr() const
std::array< double, 6 > const & getZobs() const
MonitorElement * h_yPos
std::array< double, 6 > const & getZobsErr() const
MonitorElement * h_xRot
MillePedeFileReader mpReader
std::array< double, 6 > const & getTZobsErr() const
MonitorElement * h_zRot
std::array< double, 6 > const & getTYobsErr() const
std::array< double, 6 > const & getXobs() const
MonitorElement * h_yRot

Member Data Documentation

MonitorElement* MillePedeDQMModule::h_xPos
private

Definition at line 85 of file MillePedeDQMModule.h.

MonitorElement* MillePedeDQMModule::h_xRot
private

Definition at line 86 of file MillePedeDQMModule.h.

MonitorElement* MillePedeDQMModule::h_yPos
private

Definition at line 87 of file MillePedeDQMModule.h.

MonitorElement* MillePedeDQMModule::h_yRot
private

Definition at line 88 of file MillePedeDQMModule.h.

MonitorElement* MillePedeDQMModule::h_zPos
private

Definition at line 89 of file MillePedeDQMModule.h.

MonitorElement* MillePedeDQMModule::h_zRot
private

Definition at line 90 of file MillePedeDQMModule.h.

double MillePedeDQMModule::maxErrorCut_
private

Definition at line 82 of file MillePedeDQMModule.h.

double MillePedeDQMModule::maxMoveCut_
private

Definition at line 81 of file MillePedeDQMModule.h.

MillePedeFileReader MillePedeDQMModule::mpReader
private

Definition at line 72 of file MillePedeDQMModule.h.

const edm::ParameterSet MillePedeDQMModule::mpReaderConfig_
private

Definition at line 71 of file MillePedeDQMModule.h.

double MillePedeDQMModule::sigCut_
private

Definition at line 75 of file MillePedeDQMModule.h.

double MillePedeDQMModule::tXcut_
private

Definition at line 77 of file MillePedeDQMModule.h.

double MillePedeDQMModule::tYcut_
private

Definition at line 78 of file MillePedeDQMModule.h.

double MillePedeDQMModule::tZcut_
private

Definition at line 79 of file MillePedeDQMModule.h.

double MillePedeDQMModule::Xcut_
private

Definition at line 77 of file MillePedeDQMModule.h.

double MillePedeDQMModule::Ycut_
private

Definition at line 78 of file MillePedeDQMModule.h.

double MillePedeDQMModule::Zcut_
private

Definition at line 79 of file MillePedeDQMModule.h.