Fork me on GitHub

Ignore:
Timestamp:
Oct 22, 2014, 10:30:47 PM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
3f51314
Parents:
8b04b31
Message:

Started to work on the summary plots

Investigated the way to add a tab with summary plots. A new class is in
place (dummy for now) to manage these plots.
Other small changes: use the status bar, clean the maxPt for MET (easier
to change later on), filter GenParticles on status==1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesBranchElement.cc

    r8b04b31 r2ca23b5  
    2727
    2828// special case for calo towers
    29 template<> DelphesBranchElement<DelphesCaloData>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color):DelphesBranchBase(name, branch, color) {
     29template<> DelphesBranchElement<DelphesCaloData>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color, Float_t maxPt):DelphesBranchBase(name, branch, color, maxPt) {
    3030    data_ = new DelphesCaloData(2);
    3131    data_->RefSliceInfo(0).Setup("ECAL", 0.1, kRed);
     
    4949
    5050// special case for element lists
    51 template<> DelphesBranchElement<TEveElementList>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color):DelphesBranchBase(name, branch, color) {
     51template<> DelphesBranchElement<TEveElementList>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color, Float_t maxPt):DelphesBranchBase(name, branch, color, maxPt) {
    5252    data_ = new TEveElementList(name);
    5353    data_->SetMainColor(color_);
     
    7878    TEveArrow *eveMet;
    7979    // Missing Et
    80     Double_t maxPt = 50.;
    81     // TODO to be changed as we don't have access to maxPt anymore. MET scale could be a general parameter set in GUI
    8280    while((MET = (MissingET*) itMet.Next())) {
    83       eveMet = new TEveArrow((tkRadius_ * MET->MET/maxPt)*cos(MET->Phi), (tkRadius_ * MET->MET/maxPt)*sin(MET->Phi), 0., 0., 0., 0.);
     81      eveMet = new TEveArrow((tkRadius_ * MET->MET/maxPt_)*cos(MET->Phi), (tkRadius_ * MET->MET/maxPt_)*sin(MET->Phi), 0., 0., 0., 0.);
    8482      eveMet->SetMainColor(GetColor());
    8583      eveMet->SetTubeR(0.04);
     
    9593
    9694// special case for track lists
    97 template<> DelphesBranchElement<TEveTrackList>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color):DelphesBranchBase(name, branch, color) {
     95template<> DelphesBranchElement<TEveTrackList>::DelphesBranchElement(const char* name, TClonesArray* branch, const enum EColor color, Float_t maxPt):DelphesBranchBase(name, branch, color, maxPt) {
    9896  data_ = new TEveTrackList(name);
    9997  data_->SetMainColor(color_);
     
    185183    GenParticle *particle;
    186184    while((particle = (GenParticle *) itTrack.Next())) {
     185      if(particle->Status != 1) continue;
    187186      TParticle pb(particle->PID, particle->Status, particle->M1, particle->M2, particle->D1, particle->D2,
    188187                   particle->P4().Px(), particle->P4().Py(),
Note: See TracChangeset for help on using the changeset viewer.