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
CollectionDumper< T > Class Template Reference
Inheritance diagram for CollectionDumper< T >:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &evt, const edm::EventSetup &es)
 
 CollectionDumper (const edm::ParameterSet &pset)
 
virtual ~CollectionDumper ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

std::string moduleName_
 
edm::InputTag src_
 

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
CurrentProcessingContext const * currentContext () const
 

Detailed Description

template<typename T>
class CollectionDumper< T >

Definition at line 68 of file RecoTauDumper.cc.

Constructor & Destructor Documentation

template<typename T >
CollectionDumper< T >::CollectionDumper ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 70 of file RecoTauDumper.cc.

70  :
71  src_(pset.getParameter<edm::InputTag>("src")),
72  moduleName_(pset.getParameter<std::string>("@module_label")){}
T getParameter(std::string const &) const
std::string moduleName_
edm::InputTag src_
template<typename T >
virtual CollectionDumper< T >::~CollectionDumper ( )
inlinevirtual

Definition at line 73 of file RecoTauDumper.cc.

73 {}

Member Function Documentation

template<typename T >
void CollectionDumper< T >::analyze ( const edm::Event evt,
const edm::EventSetup es 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 81 of file RecoTauDumper.cc.

References gather_cfg::cout, edm::Event::getByLabel(), getGTfromDQMFile::obj, convertSQLitetoXML_cfg::output, and TablePrint::write.

81  {
82  typedef edm::View<T> TView;
83  edm::Handle<TView> view;
84  evt.getByLabel(src_, view);
85 
86  std::ostringstream output;
87  output << " * * * <" << moduleName_
88  << "> Dump - source: [" << src_ << "]" << std::endl;
89 
90  BOOST_FOREACH(const T& obj, *view) {
91  write(output, obj);
92  }
93  std::cout << output.str();
94 }
std::string moduleName_
edm::InputTag src_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
tuple cout
Definition: gather_cfg.py:121
long double T

Member Data Documentation

template<typename T >
std::string CollectionDumper< T >::moduleName_
private

Definition at line 77 of file RecoTauDumper.cc.

template<typename T >
edm::InputTag CollectionDumper< T >::src_
private

Definition at line 76 of file RecoTauDumper.cc.