Changeset 223 in svn
- Timestamp:
- Feb 2, 2009, 12:39:42 PM (16 years ago)
- Location:
- trunk/interface
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/BFieldProp.h
r199 r223 13 13 14 14 #include "TLorentzVector.h" 15 #include " interface/SmearUtil.h"16 #include " Utilities/ExRootAnalysis/interface/BlockClasses.h"17 #include " Utilities/ExRootAnalysis/interface/TSimpleArray.h"15 #include "SmearUtil.h" 16 #include "BlockClasses.h" 17 #include "TSimpleArray.h" 18 18 19 19 using namespace std; … … 23 23 public: 24 24 // Constructor 25 TrackPropagation(const string DetDatacard); 25 TrackPropagation(); 26 TrackPropagation(const string& DetDatacard); 27 TrackPropagation(const RESOLution * DetDatacard); 28 TrackPropagation(const TrackPropagation & tp); 29 TrackPropagation& operator=(const TrackPropagation & tp); 30 ~TrackPropagation() {delete DET;}; 31 void init(); // for constructors 26 32 27 33 void Propagation(const TRootGenParticle *Part,TLorentzVector &genMomentum); -
trunk/interface/FrogUtil.h
r97 r223 15 15 /// \brief RESOLution class, and some generic definitions 16 16 17 #include <iostream> 18 #include <fstream> 19 #include <utility> 20 #include <vector> 21 #include <math.h> 22 23 #include "TStyle.h" 24 #include "TPad.h" 25 #include "TCanvas.h" 26 #include "TSystem.h" 27 #include "TArrow.h" 28 #include "TROOT.h" 29 #include "TApplication.h" 30 #include "THStack.h" 31 #include "stdio.h" 32 #include "TChain.h" 33 #include "TString.h" 34 #include "TGraphErrors.h" 35 #include "TClonesArray.h" 36 #include "TFile.h" 37 #include "TH2.h" 38 #include "THStack.h" 39 #include "TLegend.h" 40 #include "TPaveText.h" 41 #include "TLorentzVector.h" 42 #include "TTree.h" 43 #include "TBranch.h" 44 #include "TRandom.h" 45 46 #include "interface/SmearUtil.h" 47 #include "Utilities/ExRootAnalysis/interface/BlockClasses.h" 48 49 #include "Utilities/ExRootAnalysis/interface/ExRootTreeReader.h" 50 #include "Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h" 51 #include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h" 52 53 #include "Utilities/FROG/Includes/FROG/FROG_Events.h" 17 #include "SmearUtil.h" 18 #include "FROG_Events.h" 54 19 55 20 56 21 using namespace std; 57 class FrogDisplay 58 { 22 class FrogDisplay { 23 59 24 public: 60 /// Constructor 61 FrogDisplay(); 25 /// Constructor 26 FrogDisplay(); 27 FrogDisplay(const string& DetDatacard); 28 FrogDisplay(const RESOLution* DetDatacard); 29 FrogDisplay(const FrogDisplay& frog); 30 FrogDisplay& operator=(const FrogDisplay& frog); 31 ~FrogDisplay() {delete DET;} 62 32 63 void Build_1Event(FROG_Element_Event* event1); 64 void BuidEvents(string outputfilename,int nEntryFrog); 65 void BuildGeom(string DetDatacard); 33 void BuildEvents(const string& outputfilename); 34 void BuildGeom(); 35 36 private: 37 RESOLution *DET; 38 unsigned int nEntryFrog; 66 39 67 40 }; -
trunk/interface/SmearUtil.h
r198 r223 19 19 #include "TLorentzVector.h" 20 20 21 #include "Utilities/ExRootAnalysis/interface/BlockClasses.h" 22 #include "Utilities/ExRootAnalysis/interface/TSimpleArray.h" 23 24 #include "Utilities/Fastjet/plugins/CDFCones/interface/PhysicsTower.hh" 25 26 #include <iostream> 27 #include <sstream> 28 #include <fstream> 29 #include <iomanip> 21 #include "BlockClasses.h" 22 #include "TSimpleArray.h" 23 #include "PhysicsTower.hh" 30 24 31 25 using namespace std; … … 34 28 35 29 public: 36 ParticleUtil(const TLorentzVector &genMomentum,const int &pid) : TLVector(genMomentum) , Pid(pid) {} 37 38 float E() {return TLVector.E();} // particle energy [GeV] 39 float Px() {return TLVector.Px();} // horizontal coordinate of momentum [GeV] 40 float Py() {return TLVector.Py();} // vertical coordinate of momentum [GeV] 41 float Pz() {return TLVector.Pz();} // longitudinal coordinate of momentum [GeV] 42 float Pt() {return TLVector.Pt();} // transverse momentum [GeV] 43 float Eta() {return TLVector.Eta();} // pseudorapidity [GeV] 44 float Phi() {return TLVector.Phi();} // azimuthal angle [GeV] 45 float PID() {return Pid;} // particle energy in [GeV] 30 ParticleUtil(const TLorentzVector &genMomentum, int pid); 31 32 float E() {return _e;} // particle energy [GeV] 33 float Px() {return _px;} // horizontal coordinate of momentum [GeV] 34 float Py() {return _py;} // vertical coordinate of momentum [GeV] 35 float Pz() {return _pz;} // longitudinal coordinate of momentum [GeV] 36 float Pt() {return _pt;} // transverse momentum [GeV] 37 float EtaCalo() {return _etaCalo;} // pseudorapidity 38 float Eta() {return _eta;} // pseudorapidity 39 float PhiCalo() {return _phiCalo;} // azimuthal angle 40 float Phi() {return _phi;} // azimuthal angle 41 int PID() {return _pid;} // particle energy in [GeV] 46 42 47 43 private: 48 TLorentzVector TLVector; 49 int Pid; 44 float _e, _px, _py, _pz, _pt; 45 float _eta, _etaCalo, _phi, _phiCalo; 46 int _pid; 50 47 }; 51 48 … … 56 53 /// Constructor 57 54 RESOLution(); 58 55 RESOLution(const RESOLution & DET); 56 RESOLution& operator=(const RESOLution& DET); 57 ~RESOLution() { delete [] TOWER_eta_edges; delete [] TOWER_dphi;}; 58 59 59 // Detector coverage 60 60 float CEN_max_tracker; // tracker pseudorapidity coverage … … 155 155 156 156 int NEvents_Frog; 157 158 159 160 161 162 157 float PT_QUARKS_MIN; // minimal pt needed for quarks to reach the tracker, in GeV 163 158 … … 169 164 170 165 /// Create the output log file 171 void Logfile( stringLogName);166 void Logfile(const string& LogName); 172 167 173 168 /// Provides the smeared TLorentzVector for the electrons … … 180 175 void SmearHadron(TLorentzVector &hadron, const float frac); 181 176 182 // *****************************fonction pour avoir les taus************************************177 /// For electromagnetic collimation in tau jets 183 178 double EnergySmallCone(const vector<PhysicsTower> &towers, const float eta, const float phi); 184 179 185 // ***************** Fonction pour avoir le nombre de traces pour les taus****************************180 /// Number of tracks in tau jet algo 186 181 unsigned int NumTracks(const vector<TLorentzVector> &tracks, const float pt_track, const float eta, const float phi); 187 182 188 // **********************fonction pour avoir les b-jets******************************183 /// b-jets 189 184 int Bjets(const TSimpleArray<TRootGenParticle> &subarray, const float eta, const float phi); 190 185 191 // ******************** retourne l'efficacite de b-tagging ******************************186 /// b-tag efficiency and misidentification 192 187 bool Btaggedjet(const TLorentzVector &JET, const TSimpleArray<TRootGenParticle> &subarray); 193 188 194 // ******************************isolation criteria**************************************195 bool Isolation( Float_t phi,Float_t eta,const vector<TLorentzVector> &tracks,float PT_TRACK2);189 /// Lepton isolation 190 bool Isolation(const float phi, const float eta,const vector<TLorentzVector> &tracks,float PT_TRACK2); 196 191 197 192 //********************* returns a segmented value for eta and phi, for calo towers ***** … … 226 221 227 222 const double speed_of_light = 299792458; // m/s 223 const float UNDEFINED=-9999.; 224 228 225 229 226 #ifndef __PI__ -
trunk/interface/VeryForward.h
r100 r223 17 17 18 18 #include <vector> 19 #include "TLorentzVector.h"20 19 21 #include "interface/SmearUtil.h" 22 23 #include "Utilities/ExRootAnalysis/interface/BlockClasses.h" 24 #include "Utilities/ExRootAnalysis/interface/TSimpleArray.h" 25 #include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h" 26 #include "Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h" 27 20 #include "SmearUtil.h" 21 #include "BlockClasses.h" 22 #include "ExRootTreeBranch.h" 23 #include "ExRootTreeWriter.h" 28 24 #include "H_BeamParticle.h" 29 25 #include "H_BeamLine.h" 30 #include "H_RomanPot.h" 31 32 33 #include "Utilities/Fastjet/plugins/CDFCones/interface/PhysicsTower.hh" 26 #include "PhysicsTower.hh" 34 27 35 28 using namespace std; … … 39 32 public: 40 33 /// Constructor 41 VeryForward(string DetDatacard); 34 VeryForward(); 35 VeryForward(const string& DetDatacard); 36 VeryForward(const RESOLution * DetDatacard); 37 VeryForward(const VeryForward& vf); 38 VeryForward& operator=(const VeryForward& vf); 39 void init(); 40 ~VeryForward() {delete DET; /*delete beamline1; delete beamline2;*/}; //known memory leak in Hector. Should first be fixed in Hector 42 41 43 void ZDC(ExRootTreeWriter *treeWriter,ExRootTreeBranch *branchZDC,TRootGenParticle *particle);44 void RomanPots(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchRP220,ExRootTreeBranch *branchFP420,TRootGenParticle *particle) ;42 void ZDC(ExRootTreeWriter *treeWriter,ExRootTreeBranch *branchZDC,TRootGenParticle *particle); 43 void RomanPots(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchRP220,ExRootTreeBranch *branchFP420,TRootGenParticle *particle) ; 45 44 46 bool relative_energy; 47 int kickers_on; 48 49 H_BeamLine* beamline1; 50 H_BeamLine* beamline2; 45 bool relative_energy; 46 int kickers_on; 51 47 52 48 private: 53 54 RESOLution *DET; 49 H_BeamLine* beamline1; 50 H_BeamLine* beamline2; 51 RESOLution *DET; 55 52 56 53 };
Note:
See TracChangeset
for help on using the changeset viewer.