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

#include <CompleteNTupler.h>

Inheritance diagram for CompleteNTupler:
NTupler

Public Member Functions

 CompleteNTupler (const edm::ParameterSet &iConfig)
 
void fill (edm::Event &iEvent)
 
uint registerleaves (edm::ProducerBase *producer)
 
- Public Member Functions inherited from NTupler
 NTupler ()
 
virtual ~NTupler ()
 

Private Attributes

StringBasedNTuplersN
 
VariableNTuplervN
 

Additional Inherited Members

- Protected Attributes inherited from NTupler
TTree * tree_
 
bool useTFileService_
 

Detailed Description

Definition at line 7 of file CompleteNTupler.h.

Constructor & Destructor Documentation

CompleteNTupler::CompleteNTupler ( const edm::ParameterSet iConfig)
inline

Definition at line 9 of file CompleteNTupler.h.

References edm::ParameterSet::empty(), edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), sN, and vN.

9  {
10  sN = new StringBasedNTupler(iConfig);
11  if (iConfig.exists("variablesPSet"))
12  if (!iConfig.getParameter<edm::ParameterSet>("variablesPSet").empty())
13  vN = new VariableNTupler(iConfig);
14  else vN=0;
15  else
16  vN=0;
17 
18  /* if (iConfig.exists("AdHocNPSet"))
19  if (!iConfig.getParameter<edm::ParameterSet>("AdHocNPSet").empty())
20  aN = new AdHocNTupler(iConfig);
21  else aN=0;
22  else
23  aN=0;
24  */
25  }
T getParameter(std::string const &) const
bool empty() const
Definition: ParameterSet.h:217
StringBasedNTupler * sN
bool exists(std::string const &parameterName) const
checks if a parameter exists
VariableNTupler * vN

Member Function Documentation

void CompleteNTupler::fill ( edm::Event iEvent)
inlinevirtual

Implements NTupler.

Definition at line 36 of file CompleteNTupler.h.

References VariableNTupler::callBack(), StringBasedNTupler::callBack(), VariableNTupler::fill(), StringBasedNTupler::fill(), sN, and vN.

36  {
37  sN->fill(iEvent);
38  if (vN)
39  vN->fill(iEvent);
40  // if (aN)
41  // aN->fill(iEvent);
42 
43  sN->callBack();
44  if (vN)
45  vN->callBack();
46  // if (aN)
47  // aN->callBack();
48  }
void fill(edm::Event &iEvent)
StringBasedNTupler * sN
void fill(edm::Event &iEvent)
VariableNTupler * vN
uint CompleteNTupler::registerleaves ( edm::ProducerBase producer)
inlinevirtual

Implements NTupler.

Definition at line 27 of file CompleteNTupler.h.

References VariableNTupler::registerleaves(), StringBasedNTupler::registerleaves(), sN, and vN.

27  {
28  uint nLeaves=0;
29  nLeaves+=sN->registerleaves(producer);
30  if (vN)
31  nLeaves+=vN->registerleaves(producer);
32  // if (aN)
33  // nLeaves+=aN->registerleaves(producer);
34  return nLeaves;
35  }
StringBasedNTupler * sN
uint registerleaves(edm::ProducerBase *producer)
uint registerleaves(edm::ProducerBase *producer)
VariableNTupler * vN

Member Data Documentation

StringBasedNTupler* CompleteNTupler::sN
private

Definition at line 51 of file CompleteNTupler.h.

Referenced by CompleteNTupler(), fill(), and registerleaves().

VariableNTupler* CompleteNTupler::vN
private

Definition at line 52 of file CompleteNTupler.h.

Referenced by CompleteNTupler(), fill(), and registerleaves().