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
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_
 
std::string outputFile_
 
CSCALCTDigiValidationtheALCTDigiValidation
 
CSCCLCTDigiValidationtheCLCTDigiValidation
 
CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
CSCStripDigiValidationtheStripDigiValidation
 
CSCWireDigiValidationtheWireDigiValidation
 

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 20 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file CSCDigiValidation.cc.

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

16  outputFile_( ps.getParameter<std::string>("outputFile") ),
18  theCSCGeometry(0),
24 {
25  dbe_->setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
26  bool doSim = ps.getParameter<bool>("doSim");
27 
29  ps.getParameter<edm::InputTag>("stripDigiTag"),
31  doSim);
33  ps.getParameter<edm::InputTag>("wireDigiTag"),
35  doSim);
37  ps.getParameter<edm::InputTag>("comparatorDigiTag"),
38  ps.getParameter<edm::InputTag>("stripDigiTag"),
41  ps.getParameter<edm::InputTag>("alctDigiTag"),
44  ps.getParameter<edm::InputTag>("clctDigiTag"),
46 
47  if(doSim)
48  {
49  theStripDigiValidation->setSimHitMap(&theSimHitMap);
52  }
53 }
CSCStripDigiValidation * theStripDigiValidation
T getParameter(std::string const &) const
CSCALCTDigiValidation * theALCTDigiValidation
std::string outputFile_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
CSCGeometry * theCSCGeometry
void setSimHitMap(const PSimHitMap *simHitMap)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:655
CSCDigiValidation::~CSCDigiValidation ( )

Definition at line 56 of file CSCDigiValidation.cc.

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

57 {
58  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
60  delete theWireDigiValidation;
62  delete theALCTDigiValidation;
63  delete theCLCTDigiValidation;
64 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
std::string outputFile_
CSCComparatorDigiValidation * theComparatorDigiValidation
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:2490
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 72 of file CSCDigiValidation.cc.

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

73 {
74  theSimHitMap.fill(e);
75 
76  // find the geometry & conditions for this event
78  eventSetup.get<MuonGeometryRecord>().get( hGeom );
79  const CSCGeometry *pGeom = &*hGeom;
80 
86 
87 
88  theStripDigiValidation->analyze(e,eventSetup);
89  theWireDigiValidation->analyze(e,eventSetup);
90  theComparatorDigiValidation->analyze(e,eventSetup);
91  theALCTDigiValidation->analyze(e,eventSetup);
92  theCLCTDigiValidation->analyze(e,eventSetup);
93 
94 }
CSCStripDigiValidation * theStripDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
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 67 of file CSCDigiValidation.cc.

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

67  {
68  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
69 }
std::string outputFile_
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:2490

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().