test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StringBasedNTupler.cc
Go to the documentation of this file.
2 
11 
18 
21 
26 
28 
31 
32 
33 //--------------------------------------------------------------------------------
34 //just define here a list of objects you would like to be able to have a branch of
35 //--------------------------------------------------------------------------------
36 #define ANOTHER_VECTOR_CLASS(C) if (class_==#C) return StringBranchHelper<C>(*this, iEvent)()
37 #define ANOTHER_CLASS(C) if (class_==#C) return StringLeaveHelper<C>(*this, iEvent)()
38 
67  else {
68  edm::LogError("TreeBranch")<<branchName()<<" failed to recognized class type: "<<class_;
69  return TreeBranch::value(new std::vector<float>());
70  }
71 }
72 #undef ANOTHER_CLASS
Analysis-level MET class.
Definition: MET.h:43
Analysis-level Photon class.
Definition: Photon.h:47
Jets made from CaloTowers.
Definition: CaloJet.h:29
const std::string branchName() const
std::auto_ptr< std::vector< float > > value
#define ANOTHER_CLASS(C)
value branch(const edm::Event &iEvent)
Jets made from CaloTowers.
Definition: BasicJet.h:20
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed) ...
int iEvent
Definition: GenABIO.cc:230
Analysis-level HLTrigger path class.
Definition: TriggerPath.h:39
Definition: MET.h:42
Jets made from MC generator particles.
Definition: GenJet.h:24
Analysis-level tau class.
Definition: Tau.h:56
Analysis-level electron class.
Definition: Electron.h:52
Analysis-level calorimeter jet class.
Definition: Jet.h:77
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
#define ANOTHER_VECTOR_CLASS(C)
std::string class_
Analysis-level muon class.
Definition: Muon.h:49