CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
EcalPedHists Class Reference

#include <EcalPedHists.h>

Inheritance diagram for EcalPedHists:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EcalPedHists (const edm::ParameterSet &ps)
 
 ~EcalPedHists ()
 
- 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
std::vector< ConsumesInfoconsumesInfo () const
 
 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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginRun (edm::Run const &, edm::EventSetup const &c)
 
void endJob (void)
 
- 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)
 

Private Member Functions

void initHists (int FED)
 
std::string intToString (int num)
 
void readEBdigis (edm::Handle< EBDigiCollection > digis)
 
void readEEdigis (edm::Handle< EEDigiCollection > digis)
 

Private Attributes

bool allFEDsSelected_
 
edm::InputTag barrelDigiCollection_
 
const EcalElectronicsMappingecalElectronicsMap_
 
edm::InputTag endcapDigiCollection_
 
EcalFedMapfedMap_
 
std::map< int, stringHistMapFEDsAndHistMaps_
 
std::string fileName_
 
edm::InputTag headerProducer_
 
bool histsFilled_
 
bool inputIsOk_
 
std::vector< int > listChannels_
 
std::vector< std::string > listEBs_
 
std::vector< int > listFEDs_
 
std::vector< int > listSamples_
 
TFile * root_file_
 
int runNum_
 
std::set< int > theRealFedSet_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 34 of file EcalPedHists.h.

Constructor & Destructor Documentation

EcalPedHists::EcalPedHists ( const edm::ParameterSet ps)

Module which outputs a root file of ADC counts (all three gains) of user-selected channels (defaults to channel 1) for user-selected samples (defaults to samples 1,2,3) for user-selected supermodules.

Author
S. Cooper

Definition at line 13 of file EcalPedHists.cc.

EcalPedHists::~EcalPedHists ( )

Definition at line 120 of file EcalPedHists.cc.

Member Function Documentation

void EcalPedHists::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::EDAnalyzer.

Definition at line 197 of file EcalPedHists.cc.

void EcalPedHists::beginRun ( edm::Run const &  ,
edm::EventSetup const &  c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 124 of file EcalPedHists.cc.

void EcalPedHists::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 131 of file EcalPedHists.cc.

void EcalPedHists::initHists ( int  FED)
private

Definition at line 275 of file EcalPedHists.cc.

std::string EcalPedHists::intToString ( int  num)
private

Definition at line 424 of file EcalPedHists.cc.

void EcalPedHists::readEBdigis ( edm::Handle< EBDigiCollection digis)
private

Definition at line 311 of file EcalPedHists.cc.

void EcalPedHists::readEEdigis ( edm::Handle< EEDigiCollection digis)
private

Definition at line 369 of file EcalPedHists.cc.

Member Data Documentation

bool EcalPedHists::allFEDsSelected_
private

Definition at line 53 of file EcalPedHists.h.

edm::InputTag EcalPedHists::barrelDigiCollection_
private

Definition at line 56 of file EcalPedHists.h.

const EcalElectronicsMapping* EcalPedHists::ecalElectronicsMap_
private

Definition at line 67 of file EcalPedHists.h.

edm::InputTag EcalPedHists::endcapDigiCollection_
private

Definition at line 57 of file EcalPedHists.h.

EcalFedMap* EcalPedHists::fedMap_
private

Definition at line 65 of file EcalPedHists.h.

std::map<int,stringHistMap> EcalPedHists::FEDsAndHistMaps_
private

Definition at line 63 of file EcalPedHists.h.

std::string EcalPedHists::fileName_
private

Definition at line 55 of file EcalPedHists.h.

edm::InputTag EcalPedHists::headerProducer_
private

Definition at line 58 of file EcalPedHists.h.

bool EcalPedHists::histsFilled_
private

Definition at line 54 of file EcalPedHists.h.

bool EcalPedHists::inputIsOk_
private

Definition at line 52 of file EcalPedHists.h.

std::vector<int> EcalPedHists::listChannels_
private

Definition at line 59 of file EcalPedHists.h.

std::vector<std::string> EcalPedHists::listEBs_
private

Definition at line 62 of file EcalPedHists.h.

std::vector<int> EcalPedHists::listFEDs_
private

Definition at line 61 of file EcalPedHists.h.

std::vector<int> EcalPedHists::listSamples_
private

Definition at line 60 of file EcalPedHists.h.

TFile* EcalPedHists::root_file_
private

Definition at line 66 of file EcalPedHists.h.

int EcalPedHists::runNum_
private

Definition at line 51 of file EcalPedHists.h.

std::set<int> EcalPedHists::theRealFedSet_
private

Definition at line 64 of file EcalPedHists.h.