PandaTree
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
panda::PFCand Class Reference
Inheritance diagram for panda::PFCand:
panda::PFCandBase panda::PackedMomentumMixin panda::Particle panda::Element panda::Object

Classes

struct  datastore
 

Public Types

typedef Array< PFCandarray_type
 
typedef Collection< PFCandcollection_type
 
typedef PFCandBase base_type
 
- Public Types inherited from panda::PFCandBase
enum  PType {
  hp, hm, ep, em,
  mup, mum, gamma, h0,
  h_HF, egamma_HF, Xp, Xm,
  X, nPTypes
}
 
typedef Array< PFCandBasearray_type
 
typedef Collection< PFCandBasecollection_type
 
typedef Particle base_type
 
- Public Types inherited from panda::Particle
typedef Array< Particlearray_type
 
typedef Collection< Particlecollection_type
 
typedef Element base_type
 
- Public Types inherited from panda::Element
typedef ArrayBase array_type
 
typedef CollectionBase collection_type
 

Public Member Functions

 PFCand (char const *name="")
 
 PFCand (PFCand const &)
 
 PFCand (datastore &, UInt_t idx)
 
PFCandoperator= (PFCand const &)
 
void print (std::ostream &=std::cout, UInt_t level=1) const override
 Print the object content.
 
void dump (std::ostream &=std::cout) const override
 Dump the object content.
 
double pt () const override
 
double eta () const override
 
double phi () const override
 
double m () const override
 
void setPtEtaPhiM (double pt, double eta, double phi, double m) override
 
void setXYZE (double px, double py, double pz, double e) override
 
double puppiW () const override
 
double puppiWNoLep () const override
 
void setPuppiW (double w, double wnl) override
 
PFCandoperator= (UnpackedPFCand const &)
 
void destructor (Bool_t recursive=kFALSE)
 
- Public Member Functions inherited from panda::PFCandBase
 PFCandBase (datastore &, UInt_t idx)
 
PFCandBaseoperator= (PFCandBase const &)
 
void print (std::ostream &=std::cout, UInt_t level=1) const override
 Print the object content.
 
void dump (std::ostream &=std::cout) const override
 Dump the object content.
 
TLorentzVector puppiP4 () const
 
TLorentzVector puppiNoLepP4 () const
 
int q () const
 
int pdgId () const
 
TVector3 pca () const
 
double dxy (TVector3 const &) const
 
double dz (TVector3 const &) const
 
void destructor (Bool_t recursive=kFALSE)
 
- Public Member Functions inherited from panda::Particle
 Particle (datastore &, UInt_t idx)
 
Particleoperator= (Particle const &)
 
TLorentzVector p4 () const
 
double e () const
 
double p () const
 
double px () const
 
double py () const
 
double pz () const
 
double dEta (Particle const &p) const
 
double dPhi (Particle const &p) const
 
double dR2 (Particle const &p) const
 
double dR (Particle const &p) const
 
void destructor (Bool_t recursive=kFALSE)
 
- Public Member Functions inherited from panda::Element
 Element ()=delete
 Disabled default constructor.
 
 Element (datastore &, UInt_t)
 Standard constructor.
 
 Element (Element const &src)
 Copy constructor. More...
 
Elementoperator= (Element const &)
 
void setStatus (TTree &, utils::BranchList const &blist) final
 Set status of branches to true (matching branch) or false (vetoed branch) More...
 
utils::BranchList getStatus (TTree &) const final
 Get status of branches in the tree.
 
utils::BranchList getBranchNames (Bool_t fullName=kTRUE, Bool_t=kFALSE) const final
 Get the full list of branch names. More...
 
UInt_t setAddress (TTree &, utils::BranchList const &blist={"*"}, Bool_t setStatus=kTRUE) final
 Bind the tree branches to the elements of this object. More...
 
void book (TTree &, utils::BranchList const &blist={"*"}) final
 Book new branches bound to this object on the tree. More...
 
Int_t getEntry (TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE) final
 Read an entry from an input tree. More...
 
Int_t getEntry (UInt_t treeId, Long64_t entry, Bool_t localEntry=kFALSE) final
 Read an entry from an input tree. More...
 
void init () final
 Reset the object state.
 
char const * getName () const final
 Name of this object.
 
void setName (char const *) final
 Set object name.
 
- Public Member Functions inherited from panda::Object
 Object (Object const &)
 
Objectoperator= (Object const &)
 
virtual Int_t fill (TTree &tree)
 Fill a tree. More...
 
- Public Member Functions inherited from panda::PackedMomentumMixin
 PackedMomentumMixin (datastore &, UInt_t idx)
 

Static Public Member Functions

static char const * typeName ()
 
static utils::BranchList getListOfBranches ()
 
- Static Public Member Functions inherited from panda::PFCandBase
static char const * typeName ()
 
static utils::BranchList getListOfBranches ()
 
- Static Public Member Functions inherited from panda::Particle
static char const * typeName ()
 
static Bool_t PtGreater (Element const &p1, Element const &p2)
 sort comparison by pt More...
 
static utils::BranchList getListOfBranches ()
 
- Static Public Member Functions inherited from panda::Element
static char const * typeName ()
 

Public Attributes

Char_t & packedPuppiW
 
Char_t & packedPuppiWNoLepDiff
 
- Public Attributes inherited from panda::PFCandBase
UChar_t & ptype
 
Ref< RecoVertexvertex
 
Ref< PackedTracktrack
 
Float_t & hCalFrac
 
- Public Attributes inherited from panda::PackedMomentumMixin
UShort_t & packedPt
 
Short_t & packedEta
 
Short_t & packedPhi
 
UShort_t & packedM
 

Protected Member Functions

void packWeights_ ()
 
void unpackWeights_ () const
 
 PFCand (ArrayBase *)
 
void doBook_ (TTree &, TString const &, utils::BranchList const &={"*"}) override
 
void doInit_ () override
 
- Protected Member Functions inherited from panda::PFCandBase
 PFCandBase (ArrayBase *)
 
void doBook_ (TTree &, TString const &, utils::BranchList const &={"*"}) override
 
void doInit_ () override
 
- Protected Member Functions inherited from panda::Particle
 Particle (ArrayBase *)
 
- Protected Member Functions inherited from panda::Element
 Element (ArrayBase *)
 Ctor for singlet instantiation. More...
 
- Protected Member Functions inherited from panda::PackedMomentumMixin
void pack_ ()
 
void unpack_ () const
 
void setPtEtaPhiMPacked_ (double pt, double eta, double phi, double m)
 
void setXYZEPacked_ (double px, double py, double pz, double e)
 

Protected Attributes

double puppiW_ {0.}
 
double puppiWNoLep_ {0.}
 
- Protected Attributes inherited from panda::PackedMomentumMixin
Double_t pt_ {0.}
 
Double_t eta_ {0.}
 
Double_t phi_ {0.}
 
Double_t mass_ {0.}
 
Bool_t unpacked_ {kFALSE}
 

Additional Inherited Members

- Static Public Attributes inherited from panda::PFCandBase
static TString PTypeName [nPTypes]
 
static int const q_ [nPTypes] = {1, -1, 1, -1, 1, -1, 0, 0, 0, 0, 1, -1, 0}
 
static int const pdgId_ [nPTypes] = {211, -211, -11, 11, -13, 13, 22, 130, 1, 2, 0, 0, 0}
 
- Static Protected Member Functions inherited from panda::PackedMomentumMixin
static utils::BranchList getListOfBranches ()
 
- Static Protected Attributes inherited from panda::Element
static StoreManager gStore
 

The documentation for this class was generated from the following files: