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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
CSCRecHit2DValidation the2DValidation
 
const CSCGeometrytheCSCGeometry
 
std::string theOutputFile
 
CSCSegmentValidation theSegmentValidation
 
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 19 of file CSCRecHitValidation.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file CSCRecHitValidation.cc.

13  theOutputFile( ps.getParameter<std::string>("outputFile") ),
14  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")),
15  theCSCGeometry(0),
16  the2DValidation(dbe_, ps.getParameter<edm::InputTag>("recHitLabel") ),
18 {
19 }
T getParameter(std::string const &) const
CSCRecHit2DValidation the2DValidation
const CSCGeometry * theCSCGeometry
CSCSegmentValidation theSegmentValidation
CSCRecHitValidation::~CSCRecHitValidation ( )

Definition at line 22 of file CSCRecHitValidation.cc.

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

23 {
24  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
25 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2296

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 33 of file CSCRecHitValidation.cc.

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

34 {
35  theSimHitMap.fill(e);
36 
37  // find the geometry & conditions for this event
39  eventSetup.get<MuonGeometryRecord>().get( hGeom );
40  theCSCGeometry = &*hGeom;
41 
46 
47  the2DValidation.analyze(e, eventSetup);
48  theSegmentValidation.analyze(e, eventSetup);
49 
50 }
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:13
CSCRecHit2DValidation the2DValidation
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
CSCSegmentValidation theSegmentValidation
virtual void CSCRecHitValidation::beginJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 24 of file CSCRecHitValidation.h.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file CSCRecHitValidation.cc.

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

28  {
29  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
30 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2296

Member Data Documentation

DQMStore* CSCRecHitValidation::dbe_
private

Definition at line 30 of file CSCRecHitValidation.h.

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

CSCRecHit2DValidation CSCRecHitValidation::the2DValidation
private

Definition at line 35 of file CSCRecHitValidation.h.

Referenced by analyze().

const CSCGeometry* CSCRecHitValidation::theCSCGeometry
private

Definition at line 33 of file CSCRecHitValidation.h.

Referenced by analyze().

std::string CSCRecHitValidation::theOutputFile
private

Definition at line 31 of file CSCRecHitValidation.h.

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

CSCSegmentValidation CSCRecHitValidation::theSegmentValidation
private

Definition at line 36 of file CSCRecHitValidation.h.

Referenced by analyze().

PSimHitMap CSCRecHitValidation::theSimHitMap
private

Definition at line 32 of file CSCRecHitValidation.h.

Referenced by analyze().