CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ZMuMuMassConstraintParameterFinder::DiMuonInfo Class Reference

helper class containing information about a di-muon system More...

Public Member Functions

 DiMuonInfo (double, double)
 
void fill ()
 
std::vector< reco::GenParticle > & muons ()
 
void setupTree (const std::string &, edm::Service< TFileService > &)
 

Private Attributes

double diMuonMass_ {-1.0}
 
const double maxMassPair_
 
const double minMassPair_
 
std::vector< reco::GenParticlemuons_
 
bool passed_ {false}
 
int pdgMother_ {0}
 
TTree * tree_ {nullptr}
 

Detailed Description

helper class containing information about a di-muon system

Definition at line 56 of file ZMuMuMassConstraintParameterFinder.cc.

Constructor & Destructor Documentation

ZMuMuMassConstraintParameterFinder::DiMuonInfo::DiMuonInfo ( double  minMass,
double  maxMass 
)

Member Function Documentation

void ZMuMuMassConstraintParameterFinder::DiMuonInfo::fill ( )

Definition at line 181 of file ZMuMuMassConstraintParameterFinder.cc.

References ZMuMuMassConstraintParameterFinder::maxMassPair_, and ZMuMuMassConstraintParameterFinder::minMassPair_.

Referenced by ZMuMuMassConstraintParameterFinder::analyze().

std::vector<reco::GenParticle>& ZMuMuMassConstraintParameterFinder::DiMuonInfo::muons ( )
inline

Definition at line 61 of file ZMuMuMassConstraintParameterFinder.cc.

References muons_.

Referenced by ZMuMuMassConstraintParameterFinder::analyze().

61 { return muons_; }
void ZMuMuMassConstraintParameterFinder::DiMuonInfo::setupTree ( const std::string &  name,
edm::Service< TFileService > &  fs 
)

Definition at line 172 of file ZMuMuMassConstraintParameterFinder.cc.

References TFileService::make().

173  {
174  tree_ = fs->make<TTree>(name.c_str(), name.c_str());
175  tree_->Branch("muons", &muons_);
176  tree_->Branch("di_muon_mass", &diMuonMass_);
177  tree_->Branch("pdg_mother", &pdgMother_);
178  tree_->Branch("in_mass_window", &passed_);
179 }
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64

Member Data Documentation

double ZMuMuMassConstraintParameterFinder::DiMuonInfo::diMuonMass_ {-1.0}
private

Definition at line 66 of file ZMuMuMassConstraintParameterFinder.cc.

const double ZMuMuMassConstraintParameterFinder::DiMuonInfo::maxMassPair_
private

Definition at line 71 of file ZMuMuMassConstraintParameterFinder.cc.

const double ZMuMuMassConstraintParameterFinder::DiMuonInfo::minMassPair_
private

Definition at line 70 of file ZMuMuMassConstraintParameterFinder.cc.

std::vector<reco::GenParticle> ZMuMuMassConstraintParameterFinder::DiMuonInfo::muons_
private

Definition at line 65 of file ZMuMuMassConstraintParameterFinder.cc.

Referenced by muons().

bool ZMuMuMassConstraintParameterFinder::DiMuonInfo::passed_ {false}
private

Definition at line 68 of file ZMuMuMassConstraintParameterFinder.cc.

int ZMuMuMassConstraintParameterFinder::DiMuonInfo::pdgMother_ {0}
private

Definition at line 67 of file ZMuMuMassConstraintParameterFinder.cc.

TTree* ZMuMuMassConstraintParameterFinder::DiMuonInfo::tree_ {nullptr}
private

Definition at line 64 of file ZMuMuMassConstraintParameterFinder.cc.