HeavyIonsAnalysis/TrackAnalysis/src/METAnalyzer.cc
void
METAnalyzer::beginJob()
{

  metTree_ = fs->make<TTree>("metTree","v1");

  // event
  metTree_->Branch("nEv",&pev_.nEv,"nEv/I");
  metTree_->Branch("nLumi",&pev_.nLumi,"nLumi/I");
  metTree_->Branch("nBX",&pev_.nBX,"nBX/I");
  metTree_->Branch("nRun",&pev_.nRun,"nRun/I");

  metTree_->Branch("nMET",&pev_.nMET,"nMET/I");
  metTree_->Branch("MET",pev_.METEt,"MET[nMET]/F");
  metTree_->Branch("METPhi",pev_.METPhi,"METPhi[nMET]/F");
  metTree_->Branch("SumEt",pev_.METSumEt,"SumEt[nMET]/F");
  //
}
// ------------ method called once each job just before starting event loop  ------------
method called once each job just before starting event loop
method called once each job just before starting event loop
void
METAnalyzer::beginJob()
{
  metTree_ = fs->make<TTree>("metTree","v1");
  metTree_->Branch("nEv",&pev_.nEv,"nEv/I");
  metTree_->Branch("nLumi",&pev_.nLumi,"nLumi/I");
  metTree_->Branch("nBX",&pev_.nBX,"nBX/I");
  metTree_->Branch("nRun",&pev_.nRun,"nRun/I");
  metTree_->Branch("nMET",&pev_.nMET,"nMET/I");
  metTree_->Branch("MET",pev_.METEt,"MET[nMET]/F");
  metTree_->Branch("METPhi",pev_.METPhi,"METPhi[nMET]/F");
  metTree_->Branch("SumEt",pev_.METSumEt,"SumEt[nMET]/F");
}
void METAnalyzer :: beginJob ( ) { metTree_ = fs -> make < TTree > ( " " , " " ) ; metTree_ -> Branch ( " " , & pev_ . nEv , " " ) ; metTree_ -> Branch ( " " , & pev_ . nLumi , " " ) ; metTree_ -> Branch ( " " , & pev_ . nBX , " " ) ; metTree_ -> Branch ( " " , & pev_ . nRun , " " ) ; metTree_ -> Branch ( " " , & pev_ . nMET , " " ) ; metTree_ -> Branch ( " " , pev_ . METEt , " " ) ; metTree_ -> Branch ( " " , pev_ . METPhi , " " ) ; metTree_ -> Branch ( " " , pev_ . METSumEt , " " ) ; }
method called once each job just before starting event loop
method called once each job just before starting event loop
// event //