Fork me on GitHub

Changeset 3c59f98 in git for modules


Ignore:
Timestamp:
Jan 11, 2022, 9:17:09 PM (3 years ago)
Author:
christinaw97 <christina.wang@…>
Children:
c6bce62
Parents:
c61b5ce
Message:

add example/ExampleCscCluster.py and remove decayPosition from GenParticle class

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/LLPFilter.cc

    rc61b5ce r3c59f98  
    170170      if (abs(daughterPdg)==12 || abs(daughterPdg)==14 || abs(daughterPdg)==16 || abs(daughterPdg)==13)continue; // ignore neutrinos and muons
    171171      if (abs(daughterPdg) > 1000000) continue;//ignore BSM particles
    172      
    173       const TLorentzVector &daughterProdPosition = daughter->Position;
     172
    174173      const TLorentzVector &daughterMomentum = daughter->Momentum;
    175       const TLorentzVector distance = daughterProdPosition - candidateDecayPosition;
    176174
    177175      // look for mother until find LLP or reach the top of the tree
     
    187185    }
    188186
    189 
    190 
    191187    // used detector geometry in Figure 4.1.1, page141 from CERN-LHCC-97-032: https://cds.cern.ch/record/343814?ln=en
    192188    // decayRegion = 0: no cuts on decay region
  • modules/TreeWriter.cc

    rc61b5ce r3c59f98  
    198198    const TLorentzVector &momentum = candidate->Momentum;
    199199    const TLorentzVector &position = candidate->Position;
    200     const TLorentzVector &DecayPosition = candidate->DecayPosition;
    201200
    202201    entry = static_cast<GenParticle *>(branch->NewEntry());
     
    241240    entry->T = position.T() * 1.0E-3 / c_light;
    242241
    243     entry->decayX = DecayPosition.X();
    244     entry->decayY = DecayPosition.Y();
    245     entry->decayZ = DecayPosition.Z();
    246     entry->decayT = DecayPosition.T()* 1.0E-3 / c_light;
    247242  }
    248243}
Note: See TracChangeset for help on using the changeset viewer.