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 Attributes
CSCRecHitValidation Class Reference

#include <CSCRecHitValidation.h>

Inheritance diagram for CSCRecHitValidation:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
 CSCRecHitValidation (const edm::ParameterSet &)
 
virtual void endJob ()
 
 ~CSCRecHitValidation ()
 
- 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
 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 (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
CSCRecHit2DValidationthe2DValidation
 
const CSCGeometrytheCSCGeometry
 
std::string theOutputFile
 
CSCSegmentValidationtheSegmentValidation
 
PSimHitMap theSimHitMap
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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 18 of file CSCRecHitValidation.h.

Constructor & Destructor Documentation

CSCRecHitValidation::CSCRecHitValidation ( const edm::ParameterSet ps)
explicit

Definition at line 11 of file CSCRecHitValidation.cc.

References edm::EDConsumerBase::consumesCollector(), dbe_, edm::ParameterSet::getParameter(), the2DValidation, and theSegmentValidation.

13  theOutputFile( ps.getParameter<std::string>("outputFile") ),
15  theCSCGeometry(0),
16  the2DValidation(0),
18 {
21 }
T getParameter(std::string const &) const
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const CSCGeometry * theCSCGeometry
CSCRecHitValidation::~CSCRecHitValidation ( )

Definition at line 24 of file CSCRecHitValidation.cc.

References dbe_, DQMStore::save(), the2DValidation, theOutputFile, and theSegmentValidation.

25 {
26  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
27  delete the2DValidation;
28  delete theSegmentValidation;
29 }
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
Definition: DQMStore.cc:2540

Member Function Documentation

void CSCRecHitValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 37 of file CSCRecHitValidation.cc.

References CSCRecHit2DValidation::analyze(), CSCSegmentValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCBaseValidation::setSimHitMap(), the2DValidation, theCSCGeometry, theSegmentValidation, and theSimHitMap.

38 {
39  theSimHitMap.fill(e);
40 
41  // find the geometry & conditions for this event
43  eventSetup.get<MuonGeometryRecord>().get( hGeom );
44  theCSCGeometry = &*hGeom;
45 
48 
51 
52  the2DValidation->analyze(e, eventSetup);
53  theSegmentValidation->analyze(e, eventSetup);
54 
55 }
CSCRecHit2DValidation * the2DValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCSegmentValidation * theSegmentValidation
void setGeometry(const CSCGeometry *geom)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setSimHitMap(const PSimHitMap *simHitMap)
const T & get() const
Definition: EventSetup.h:55
const CSCGeometry * theCSCGeometry
virtual void CSCRecHitValidation::beginJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 23 of file CSCRecHitValidation.h.

23 {}
void CSCRecHitValidation::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 32 of file CSCRecHitValidation.cc.

References dbe_, DQMStore::save(), and theOutputFile.

32  {
33  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
34 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
Definition: DQMStore.cc:2540

Member Data Documentation

DQMStore* CSCRecHitValidation::dbe_
private

Definition at line 29 of file CSCRecHitValidation.h.

Referenced by CSCRecHitValidation(), endJob(), and ~CSCRecHitValidation().

CSCRecHit2DValidation* CSCRecHitValidation::the2DValidation
private

Definition at line 34 of file CSCRecHitValidation.h.

Referenced by analyze(), CSCRecHitValidation(), and ~CSCRecHitValidation().

const CSCGeometry* CSCRecHitValidation::theCSCGeometry
private

Definition at line 32 of file CSCRecHitValidation.h.

Referenced by analyze().

std::string CSCRecHitValidation::theOutputFile
private

Definition at line 30 of file CSCRecHitValidation.h.

Referenced by endJob(), and ~CSCRecHitValidation().

CSCSegmentValidation* CSCRecHitValidation::theSegmentValidation
private

Definition at line 35 of file CSCRecHitValidation.h.

Referenced by analyze(), CSCRecHitValidation(), and ~CSCRecHitValidation().

PSimHitMap CSCRecHitValidation::theSimHitMap
private

Definition at line 31 of file CSCRecHitValidation.h.

Referenced by analyze().