CMS 3D CMS Logo

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

#include <TrackingDQMClientHeavyIons.h>

Inheritance diagram for TrackingDQMClientHeavyIons:
DQMEDHarvester edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
 TrackingDQMClientHeavyIons (const edm::ParameterSet &pset)
 
 ~TrackingDQMClientHeavyIons ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQMEDHarvester (void)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endJob () override final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &) override
 
virtual void produce (edm::Event &, edm::EventSetup const &) override final
 
virtual ~DQMEDHarvester ()=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- 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 ()
 
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- 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
 
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::vector< ModuleDescription const * > &modules, 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 updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

MonitorElementDCAStats
 
std::string histName
 
bool isWildcardUsed_
 
std::string outputFileName_
 
bool resLimitedFit_
 
std::string TopFolder_
 
unsigned int verbose_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
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 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 16 of file TrackingDQMClientHeavyIons.h.

Constructor & Destructor Documentation

TrackingDQMClientHeavyIons::TrackingDQMClientHeavyIons ( const edm::ParameterSet pset)
TrackingDQMClientHeavyIons::~TrackingDQMClientHeavyIons ( )
inline

Definition at line 20 of file TrackingDQMClientHeavyIons.h.

References dqmEndJob().

20 {};

Member Function Documentation

void TrackingDQMClientHeavyIons::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 29 of file TrackingDQMClientHeavyIons.cc.

References DQMStore::IBooker::book2D(), DQMStore::IBooker::cd(), DQMStore::IGetter::get(), MonitorElement::getTH2F(), and DQMStore::IBooker::setCurrentFolder().

Referenced by ~TrackingDQMClientHeavyIons().

29  {
30 
31  typedef vector<string> vstring;
32 
33  // Update 2014-04-02
34  // Migrated back to the endJob. the DQMFileSaver logic has
35  // to be reviewed to guarantee that the endJob is properly
36  // considered. The splitting per run is done centrally when
37  // running the harvesting in production
38 
39  // Update 2009-09-23
40  // Migrated all code from endJob to this function
41  // endJob is not necessarily called in the proper sequence
42  // and does not necessarily book histograms produced in
43  // that step.
44  // It more robust to do the histogram manipulation in
45  // this endRun function
46  // needed to access the DQMStore::save method
47 
48  ibooker.cd();
50 
51  histName = "DCAStats_";
52  DCAStats = ibooker.book2D(histName,histName,2,0,2,4,0,4);
53  DCAStats->getTH2F()->GetYaxis()->SetBinLabel(1,"Mean");
54  DCAStats->getTH2F()->GetYaxis()->SetBinLabel(2,"RMS, #sigma");
55  DCAStats->getTH2F()->GetYaxis()->SetBinLabel(3,"Skewness ,#gamma_{1}");
56  DCAStats->getTH2F()->GetYaxis()->SetBinLabel(4,"Kurtosis, #gamma_{2}");
57  DCAStats->getTH2F()->GetXaxis()->SetBinLabel(1,"Longitudinal");
58  DCAStats->getTH2F()->GetXaxis()->SetBinLabel(2,"Transverse");
59  DCAStats->getTH2F()->SetOption("text");
60 
61 
62  histName="LongDCASig_HeavyIonTk";
63  ME* element = igetter.get(TopFolder_+"/"+histName);
64  //Longitudinal First
65  DCAStats->getTH2F()->SetBinContent(1,1,element->getTH1F()->GetMean());//mean
66  DCAStats->getTH2F()->SetBinContent(1,2,element->getTH1F()->GetRMS());//rms
67  DCAStats->getTH2F()->SetBinContent(1,3,element->getTH1F()->GetSkewness());//skewness
68  DCAStats->getTH2F()->SetBinContent(1,4,element->getTH1F()->GetKurtosis());//kurtosis
69  //Transverse
70  histName="TransDCASig_HeavyIonTk";
71  ME* element1 = igetter.get(TopFolder_+"/"+histName);
72  //Longitudinal First
73  DCAStats->getTH2F()->SetBinContent(2,1,element1->getTH1F()->GetMean());//mean
74  DCAStats->getTH2F()->SetBinContent(2,2,element1->getTH1F()->GetRMS());//rms
75  DCAStats->getTH2F()->SetBinContent(2,3,element1->getTH1F()->GetSkewness());//skewness
76  DCAStats->getTH2F()->SetBinContent(2,4,element1->getTH1F()->GetKurtosis());//kurtosis
77 
78 }
vector< string > vstring
Definition: ExoticaDQM.cc:8
void cd(void)
Definition: DQMStore.cc:269
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:305
Definition: ME.h:11
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
TH2F * getTH2F(void) const

Member Data Documentation

MonitorElement* TrackingDQMClientHeavyIons::DCAStats
private

Definition at line 31 of file TrackingDQMClientHeavyIons.h.

std::string TrackingDQMClientHeavyIons::histName
private

Definition at line 29 of file TrackingDQMClientHeavyIons.h.

bool TrackingDQMClientHeavyIons::isWildcardUsed_
private

Definition at line 26 of file TrackingDQMClientHeavyIons.h.

std::string TrackingDQMClientHeavyIons::outputFileName_
private

Definition at line 32 of file TrackingDQMClientHeavyIons.h.

bool TrackingDQMClientHeavyIons::resLimitedFit_
private

Definition at line 27 of file TrackingDQMClientHeavyIons.h.

std::string TrackingDQMClientHeavyIons::TopFolder_
private

Definition at line 30 of file TrackingDQMClientHeavyIons.h.

unsigned int TrackingDQMClientHeavyIons::verbose_
private

Definition at line 25 of file TrackingDQMClientHeavyIons.h.