CMS 3D CMS Logo

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

#include <DT4DSegmentClients.h>

Inheritance diagram for DT4DSegmentClients:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 DT4DSegmentClients (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~DT4DSegmentClients () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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)
 

Protected Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 End Job. More...
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Attributes

bool doall_
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 15 of file DT4DSegmentClients.h.

Constructor & Destructor Documentation

◆ DT4DSegmentClients()

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

Constructor.

Definition at line 14 of file DT4DSegmentClients.cc.

References muonDTDigis_cfi::pset.

14  {
15  doall_ = pset.getUntrackedParameter<bool>("doall", false);
16 }

◆ ~DT4DSegmentClients()

DT4DSegmentClients::~DT4DSegmentClients ( )
override

Destructor.

Definition at line 18 of file DT4DSegmentClients.cc.

18 {}

Member Function Documentation

◆ dqmEndJob()

void DT4DSegmentClients::dqmEndJob ( DQMStore::IBooker booker,
DQMStore::IGetter getter 
)
overrideprotectedvirtual

End Job.

Implements DQMEDHarvester.

Definition at line 20 of file DT4DSegmentClients.cc.

References dqm::implementation::IGetter::get(), and dqm::legacy::MonitorElement::getTH1().

20  {
21  MonitorElement *hResAlpha = getter.get("DT/4DSegments/Res/4D_All_hResAlpha");
22  MonitorElement *hResBeta = getter.get("DT/4DSegments/Res/4D_All_hResBeta");
23  MonitorElement *hResX = getter.get("DT/4DSegments/Res/4D_All_hResX");
24  MonitorElement *hResY = getter.get("DT/4DSegments/Res/4D_All_hResY");
25  MonitorElement *hResBetaRZ = getter.get("DT/4DSegments/Res/4D_All_hResBetaRZ");
26  MonitorElement *hResYRZ = getter.get("DT/4DSegments/Res/4D_All_hResYRZ");
27 
28  MonitorElement *hResAlpha_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResAlpha");
29  MonitorElement *hResBeta_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResBeta");
30  MonitorElement *hResX_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResX");
31  MonitorElement *hResY_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResY");
32  MonitorElement *hResBetaRZ_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResBetaRZ");
33  MonitorElement *hResYRZ_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResYRZ");
34 
35  MonitorElement *hResAlpha_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResAlpha");
36  MonitorElement *hResBeta_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResBeta");
37  MonitorElement *hResX_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResX");
38  MonitorElement *hResY_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResY");
39  MonitorElement *hResBetaRZ_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResBetaRZ");
40  MonitorElement *hResYRZ_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResYRZ");
41 
42  MonitorElement *hResAlpha_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResAlpha");
43  MonitorElement *hResBeta_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResBeta");
44  MonitorElement *hResX_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResX");
45  MonitorElement *hResY_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResY");
46  MonitorElement *hResBetaRZ_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResBetaRZ");
47  MonitorElement *hResYRZ_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResYRZ");
48 
49  MonitorElement *hPullAlpha = getter.get("DT/4DSegments/Pull/4D_All_hPullAlpha");
50  MonitorElement *hPullBeta = getter.get("DT/4DSegments/Pull/4D_All_hPullBeta");
51  MonitorElement *hPullX = getter.get("DT/4DSegments/Pull/4D_All_hPullX");
52  MonitorElement *hPullY = getter.get("DT/4DSegments/Pull/4D_All_hPullY");
53  MonitorElement *hPullBetaRZ = getter.get("DT/4DSegments/Pull/4D_All_hPullBetaRZ");
54  MonitorElement *hPullYRZ = getter.get("DT/4DSegments/Pull/4D_All_hPullYRZ");
55 
56  MonitorElement *hPullAlpha_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullAlpha");
57  MonitorElement *hPullBeta_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullBeta");
58  MonitorElement *hPullX_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullX");
59  MonitorElement *hPullY_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullY");
60  MonitorElement *hPullBetaRZ_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullBetaRZ");
61  MonitorElement *hPullYRZ_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullYRZ");
62 
63  MonitorElement *hPullAlpha_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullAlpha");
64  MonitorElement *hPullBeta_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullBeta");
65  MonitorElement *hPullX_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullX");
66  MonitorElement *hPullY_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullY");
67  MonitorElement *hPullBetaRZ_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullBetaRZ");
68  MonitorElement *hPullYRZ_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullYRZ");
69 
70  MonitorElement *hPullAlpha_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullAlpha");
71  MonitorElement *hPullBeta_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullBeta");
72  MonitorElement *hPullX_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullX");
73  MonitorElement *hPullY_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullY");
74  MonitorElement *hPullBetaRZ_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullBetaRZ");
75  MonitorElement *hPullYRZ_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullYRZ");
76 
77  Tutils util;
78  util.drawGFit(hResAlpha->getTH1(), -0.2, 0.2, -0.1, 0.1);
79  util.drawGFit(hResBeta->getTH1(), -0.2, 0.2, -0.1, 0.1);
80  util.drawGFit(hResX->getTH1(), -0.2, 0.2, -0.1, 0.1);
81  util.drawGFit(hResY->getTH1(), -0.2, 0.2, -0.1, 0.1);
82  util.drawGFit(hResBetaRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
83  util.drawGFit(hResYRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
84 
85  util.drawGFit(hResAlpha_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
86  util.drawGFit(hResBeta_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
87  util.drawGFit(hResX_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
88  util.drawGFit(hResY_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
89  util.drawGFit(hResBetaRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
90  util.drawGFit(hResYRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
91 
92  util.drawGFit(hResAlpha_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
93  util.drawGFit(hResBeta_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
94  util.drawGFit(hResX_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
95  util.drawGFit(hResY_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
96  util.drawGFit(hResBetaRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
97  util.drawGFit(hResYRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
98 
99  util.drawGFit(hResAlpha_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
100  util.drawGFit(hResBeta_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
101  util.drawGFit(hResX_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
102  util.drawGFit(hResY_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
103  util.drawGFit(hResBetaRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
104  util.drawGFit(hResYRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
105 
106  util.drawGFit(hPullAlpha->getTH1(), -0.2, 0.2, -0.1, 0.1);
107  util.drawGFit(hPullBeta->getTH1(), -0.2, 0.2, -0.1, 0.1);
108  util.drawGFit(hPullX->getTH1(), -0.2, 0.2, -0.1, 0.1);
109  util.drawGFit(hPullY->getTH1(), -0.2, 0.2, -0.1, 0.1);
110  util.drawGFit(hPullBetaRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
111  util.drawGFit(hPullYRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
112 
113  util.drawGFit(hPullAlpha_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
114  util.drawGFit(hPullBeta_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
115  util.drawGFit(hPullX_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
116  util.drawGFit(hPullY_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
117  util.drawGFit(hPullBetaRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
118  util.drawGFit(hPullYRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
119 
120  util.drawGFit(hPullAlpha_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
121  util.drawGFit(hPullBeta_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
122  util.drawGFit(hPullX_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
123  util.drawGFit(hPullY_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
124  util.drawGFit(hPullBetaRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
125  util.drawGFit(hPullYRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
126 
127  util.drawGFit(hPullAlpha_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
128  util.drawGFit(hPullBeta_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
129  util.drawGFit(hPullX_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
130  util.drawGFit(hPullY_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
131  util.drawGFit(hPullBetaRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
132  util.drawGFit(hPullYRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
133 
134  if (doall_) {
135  HEff4DHitHarvest hEff_S3RPhi("All", booker, getter);
136  HEff4DHitHarvest hEff_S3RZ_W0("W0", booker, getter);
137  HEff4DHitHarvest hEff_S3RZ_W1("W1", booker, getter);
138  HEff4DHitHarvest hEff_S3RZ_W2("W2", booker, getter);
139  }
140 }
Definition: __init__.py:1
A set of histograms for efficiency 4D RecHits (harvesting)
Definition: Histograms.h:1022
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:690
virtual TH1 * getTH1() const
Definition: utils.h:9

Member Data Documentation

◆ doall_

bool DT4DSegmentClients::doall_
private

Definition at line 27 of file DT4DSegmentClients.h.