- Timestamp:
- May 6, 2009, 8:57:21 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/HEPEVTConverter.cc
r295 r350 176 176 177 177 ExRootTreeWriter *treeWriter = new ExRootTreeWriter(outputFileName, "GEN"); 178 ExRootTreeBranch *branchGen = treeWriter->NewBranch("Particle", GenParticle::Class());178 ExRootTreeBranch *branchGen = treeWriter->NewBranch("Particle", TRootC::GenParticle::Class()); 179 179 180 180 ifstream infile(inputFileList.c_str()); … … 211 211 Float_t signEta; 212 212 213 GenParticle *element;213 TRootC::GenParticle *element; 214 214 215 215 // Loop over all events … … 222 222 for(particle = 0; particle < event.Nhep; ++particle) 223 223 { 224 element = ( GenParticle*) branchGen->NewEntry();224 element = (TRootC::GenParticle*) branchGen->NewEntry(); 225 225 226 226 element->PID = event.Idhep[particle]; -
trunk/src/HEPMCConverter.cc
r347 r350 55 55 ExRootTreeWriter *treeWriter = new ExRootTreeWriter(outputFileName, "GEN"); 56 56 ExRootTreeBranch *branchGenEvent = treeWriter->NewBranch("Event", TRootGenEvent::Class()); 57 ExRootTreeBranch *branchGenParticle = treeWriter->NewBranch("Particle", GenParticle::Class());57 ExRootTreeBranch *branchGenParticle = treeWriter->NewBranch("Particle", TRootC::GenParticle::Class()); 58 58 59 59 // Open the datafile list -
trunk/src/JetsUtil.cc
r315 r350 190 190 191 191 192 void JetsUtil::RunJetBtagging(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchJet,const vector<fastjet::PseudoJet> & sorted_jets,const TSimpleArray< GenParticle>& NFCentralQ, const vector<int> &NTrackJet, const vector<float> &EHADEEM)192 void JetsUtil::RunJetBtagging(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchJet,const vector<fastjet::PseudoJet> & sorted_jets,const TSimpleArray<TRootC::GenParticle>& NFCentralQ, const vector<int> &NTrackJet, const vector<float> &EHADEEM) 193 193 { 194 194 TRootJet *elementJet; -
trunk/src/STDHEPConverter.cc
r295 r350 62 62 else Nmax = myhepevt.nhep; 63 63 64 GenParticle *element;64 TRootC::GenParticle *element; 65 65 66 66 Double_t signPz; … … 70 70 for(number = 0; number < Nmax; ++number) 71 71 { 72 element = static_cast< GenParticle*>(branch->NewEntry());72 element = static_cast<TRootC::GenParticle*>(branch->NewEntry()); 73 73 74 74 element->PID = myhepevt.idhep[number]; … … 119 119 ExRootTreeBranch *branchGenEvent = treeWriter->NewBranch("Event", TRootGenEvent::Class()); 120 120 // generated particles from HEPEVT 121 ExRootTreeBranch *branchGenParticle = treeWriter->NewBranch("Particle", GenParticle::Class());121 ExRootTreeBranch *branchGenParticle = treeWriter->NewBranch("Particle", TRootC::GenParticle::Class()); 122 122 123 123 // Open a stream connected to an event file: -
trunk/src/SmearUtil.cc
r333 r350 1064 1064 //used by Btaggedjet 1065 1065 ///// Attention : bug removed => CONERADIUS/2 -> CONERADIUS !! 1066 int RESOLution::Bjets(const TSimpleArray< GenParticle> &subarray, const float& eta, const float& phi) {1066 int RESOLution::Bjets(const TSimpleArray<TRootC::GenParticle> &subarray, const float& eta, const float& phi) { 1067 1067 float emax=0; 1068 1068 int Ppid=0; … … 1081 1081 1082 1082 //******************** Simulates the b-tagging efficiency for real bjet, or the misendentification for other jets**************** 1083 bool RESOLution::Btaggedjet(const TLorentzVector &JET, const TSimpleArray< GenParticle> &subarray) {1083 bool RESOLution::Btaggedjet(const TLorentzVector &JET, const TSimpleArray<TRootC::GenParticle> &subarray) { 1084 1084 if( rand()%100 < (BTAG_b+1) && Bjets(subarray,JET.Eta(),JET.Phi())==pB ) return true; // b-tag of b-jets is 40% 1085 1085 else if( rand()%100 < (BTAG_mistag_c+1) && Bjets(subarray,JET.Eta(),JET.Phi())==pC ) return true; // b-tag of c-jets is 10%
Note:
See TracChangeset
for help on using the changeset viewer.