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
CSCDigiValidation Class Reference

#include <CSCDigiValidation.h>

Inheritance diagram for CSCDigiValidation:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
 CSCDigiValidation (const edm::ParameterSet &)
 
virtual void endJob ()
 
 ~CSCDigiValidation ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
std::string outputFile_
 
CSCALCTDigiValidationtheALCTDigiValidation
 
CSCCLCTDigiValidationtheCLCTDigiValidation
 
CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
CSCStripDigiValidationtheStripDigiValidation
 
CSCWireDigiValidationtheWireDigiValidation
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- 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::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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 20 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file CSCDigiValidation.cc.

References dbe_, edm::ParameterSet::getParameter(), DQMStore::setCurrentFolder(), CSCBaseValidation::setSimHitMap(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

16  outputFile_( ps.getParameter<std::string>("outputFile") ),
17  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")),
18  theCSCGeometry(0),
24 {
25  dbe_->setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
26  bool doSim = ps.getParameter<bool>("doSim");
27 
31  ps.getParameter<edm::InputTag>("comparatorDigiTag"),
32  ps.getParameter<edm::InputTag>("stripDigiTag"));
35 
36  if(doSim)
37  {
38  theStripDigiValidation->setSimHitMap(&theSimHitMap);
41  }
42 
43 }
CSCStripDigiValidation * theStripDigiValidation
T getParameter(std::string const &) const
CSCALCTDigiValidation * theALCTDigiValidation
std::string outputFile_
CSCGeometry * theCSCGeometry
void setSimHitMap(const PSimHitMap *simHitMap)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
CSCDigiValidation::~CSCDigiValidation ( )

Definition at line 46 of file CSCDigiValidation.cc.

References dbe_, outputFile_, DQMStore::save(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

47 {
48  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
50  delete theWireDigiValidation;
52  delete theALCTDigiValidation;
53  delete theCLCTDigiValidation;
54 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2118
std::string outputFile_
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 62 of file CSCDigiValidation.cc.

References CSCComparatorDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCStripDigiValidation::setGeometry(), CSCBaseValidation::setGeometry(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

63 {
64  theSimHitMap.fill(e);
65 
66  // find the geometry & conditions for this event
68  eventSetup.get<MuonGeometryRecord>().get( hGeom );
69  const CSCGeometry *pGeom = &*hGeom;
70 
76 
77 
78  theStripDigiValidation->analyze(e,eventSetup);
79  theWireDigiValidation->analyze(e,eventSetup);
80  theComparatorDigiValidation->analyze(e,eventSetup);
81  theALCTDigiValidation->analyze(e,eventSetup);
82  theCLCTDigiValidation->analyze(e,eventSetup);
83 
84 }
CSCStripDigiValidation * theStripDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:13
void analyze(const edm::Event &, const edm::EventSetup &)
void analyze(const edm::Event &e, const edm::EventSetup &)
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
const T & get() const
Definition: EventSetup.h:55
CSCComparatorDigiValidation * theComparatorDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCCLCTDigiValidation * theCLCTDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCWireDigiValidation * theWireDigiValidation
void CSCDigiValidation::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 57 of file CSCDigiValidation.cc.

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

57  {
58  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
59 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2118
std::string outputFile_

Member Data Documentation

DQMStore* CSCDigiValidation::dbe_
private

Definition at line 29 of file CSCDigiValidation.h.

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

std::string CSCDigiValidation::outputFile_
private

Definition at line 30 of file CSCDigiValidation.h.

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

CSCALCTDigiValidation* CSCDigiValidation::theALCTDigiValidation
private

Definition at line 37 of file CSCDigiValidation.h.

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

CSCCLCTDigiValidation* CSCDigiValidation::theCLCTDigiValidation
private

Definition at line 38 of file CSCDigiValidation.h.

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

CSCComparatorDigiValidation* CSCDigiValidation::theComparatorDigiValidation
private

Definition at line 36 of file CSCDigiValidation.h.

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

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 32 of file CSCDigiValidation.h.

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 31 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

CSCStripDigiValidation* CSCDigiValidation::theStripDigiValidation
private

Definition at line 34 of file CSCDigiValidation.h.

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

CSCWireDigiValidation* CSCDigiValidation::theWireDigiValidation
private

Definition at line 35 of file CSCDigiValidation.h.

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