CMS 3D CMS Logo

StringBasedNTupler.cc
Go to the documentation of this file.
2 
11 
18 
21 
26 
28 
31 
32 //--------------------------------------------------------------------------------
33 //just define here a list of objects you would like to be able to have a branch of
34 //--------------------------------------------------------------------------------
35 #define ANOTHER_VECTOR_CLASS(C) \
36  if (class_ == #C) \
37  return StringBranchHelper<C>(*this, iEvent)()
38 #define ANOTHER_CLASS(C) \
39  if (class_ == #C) \
40  return StringLeaveHelper<C>(*this, iEvent)()
41 
70  else {
71  edm::LogError("TreeBranch") << branchName() << " failed to recognized class type: " << class_;
72  return TreeBranch::value(new std::vector<float>());
73  }
74 }
75 #undef ANOTHER_CLASS
Analysis-level MET class.
Definition: MET.h:40
Analysis-level Photon class.
Definition: Photon.h:46
Jets made from CaloTowers.
Definition: CaloJet.h:27
const std::string branchName() const
#define ANOTHER_CLASS(C)
value branch(const edm::Event &iEvent)
Jets made from CaloTowers.
Definition: BasicJet.h:19
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed) ...
int iEvent
Definition: GenABIO.cc:224
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:36
Definition: MET.h:41
Jets made from MC generator particles.
Definition: GenJet.h:23
std::unique_ptr< std::vector< float > > value
Analysis-level tau class.
Definition: Tau.h:53
Analysis-level electron class.
Definition: Electron.h:51
Analysis-level calorimeter jet class.
Definition: Jet.h:77
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:40
#define ANOTHER_VECTOR_CLASS(C)
std::string class_
Analysis-level muon class.
Definition: Muon.h:51