CMS 3D CMS Logo

CompleteNTupler.h
Go to the documentation of this file.
2 
5 //#include "PhysicsTools/UtilAlgos/interface/AdHocNTupler.h"
6 
7 class CompleteNTupler : public NTupler {
8  public:
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  }
26 
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  }
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  }
49 
50  private:
53  // AdHocNTupler * aN;
54 
55 };
56 
T getParameter(std::string const &) const
bool empty() const
Definition: ParameterSet.h:218
void fill(edm::Event &iEvent)
CompleteNTupler(const edm::ParameterSet &iConfig)
StringBasedNTupler * sN
bool exists(std::string const &parameterName) const
checks if a parameter exists
uint registerleaves(edm::ProducerBase *producer)
uint registerleaves(edm::ProducerBase *producer)
int iEvent
Definition: GenABIO.cc:230
void fill(edm::Event &iEvent)
uint registerleaves(edm::ProducerBase *producer)
void fill(edm::Event &iEvent)
VariableNTupler * vN