CMS 3D CMS Logo

Public Member Functions | Public Attributes

hTMaxCell Class Reference

#include <vDriftHistos.h>

List of all members.

Public Member Functions

void Fill (float tmax123, float tmax124, float tmax134, float tmax234, dttmaxenums::SigmaFactor s124, dttmaxenums::SigmaFactor s134, unsigned t0_123, unsigned t0_124, unsigned t0_134, unsigned t0_234, unsigned hSubGroup)
int GetT0Factor (TH1F *hist)
 hTMaxCell (TString name_)
 hTMaxCell (TString name_, TFile *file)
void Write ()
 ~hTMaxCell ()

Public Attributes

TH1F * hTmax123
TH1F * hTmax124s72
TH1F * hTmax124s78
TH1F * hTmax134s72
TH1F * hTmax134s78
TH1F * hTmax234
TH1F * hTmax_0
TH1F * hTmax_2t0
TH1F * hTmax_2t0_0
TH1F * hTmax_2t0_1
TH1F * hTmax_2t0_2
TH1F * hTmax_2t0_3
TH1F * hTmax_2t0_4
TH1F * hTmax_2t0_5
TH1F * hTmax_3t0
TH1F * hTmax_3t0_0
TH1F * hTmax_3t0_1
TH1F * hTmax_3t0_2
TH1F * hTmax_3t0_3
TH1F * hTmax_3t0_4
TH1F * hTmax_3t0_5
TH1F * hTmax_t0
TH1F * hTmax_t0_0
TH1F * hTmax_t0_1
TH1F * hTmax_t0_2
TH1F * hTmax_t0_3
TH1F * hTmax_t0_4
TH1F * hTmax_t0_5
TString name

Detailed Description

Definition at line 118 of file vDriftHistos.h.


Constructor & Destructor Documentation

hTMaxCell::hTMaxCell ( TString  name_) [inline]

Definition at line 120 of file vDriftHistos.h.

References hTmax123, hTmax124s72, hTmax124s78, hTmax134s72, hTmax134s78, hTmax234, hTmax_0, hTmax_2t0, hTmax_2t0_0, hTmax_2t0_1, hTmax_2t0_2, hTmax_2t0_3, hTmax_2t0_4, hTmax_2t0_5, hTmax_3t0, hTmax_3t0_0, hTmax_3t0_1, hTmax_3t0_2, hTmax_3t0_3, hTmax_3t0_4, hTmax_3t0_5, hTmax_t0, hTmax_t0_0, hTmax_t0_1, hTmax_t0_2, hTmax_t0_3, hTmax_t0_4, hTmax_t0_5, and name.

                          {
    name = name_;

    // book TMax histograms 
    hTmax123      = new TH1F (name+"_Tmax123", "Tmax123 value", 2000, -1000., 1000.);
    hTmax124s72   = new TH1F (name+"_Tmax124_s72", "Tmax124 sigma=sqrt(7/2) value", 2000, -1000., 1000.);
    hTmax124s78   = new TH1F (name+"_Tmax124_s78", "Tmax124 sigma=sqrt(7/8) value", 2000, -1000., 1000.);
    hTmax134s72   = new TH1F (name+"_Tmax134_s72", "Tmax134 sigma=sqrt(7/2) value", 2000, -1000., 1000.);
    hTmax134s78   = new TH1F (name+"_Tmax134_s78", "Tmax134 sigma=sqrt(7/8) value", 2000, -1000., 1000.);
    hTmax234      = new TH1F (name+"_Tmax234", "Tmax234 value", 2000, -1000., 1000.);
    hTmax_3t0  = new TH1F (name+"_3t0", "Tmax+3*Delta(t0)", 2000, -1000., 1000.); 
    hTmax_3t0_0  = new TH1F (name+"_3t0_0", "Tmax+3*Delta(t0); 3 hits", 2000, -1000., 1000.); 
    hTmax_3t0_1  = new TH1F (name+"_3t0_1", "Tmax+3*Delta(t0); one t<5ns", 2000, -1000., 1000.); 
    hTmax_3t0_2  = new TH1F (name+"_3t0_2", "Tmax+3*Delta(t0); one t<10ns", 2000, -1000., 1000.); 
    hTmax_3t0_3  = new TH1F (name+"_3t0_3", "Tmax+3*Delta(t0); one t<20ns", 2000, -1000., 1000.); 
    hTmax_3t0_4  = new TH1F (name+"_3t0_4", "Tmax+3*Delta(t0); one t<50ns", 2000, -1000., 1000.); 
    hTmax_3t0_5  = new TH1F (name+"_3t0_5", "Tmax+3*Delta(t0); all t>50ns", 2000, -1000., 1000.); 
    hTmax_2t0  = new TH1F (name+"_2t0", "Tmax+2*Delta(t0)", 2000, -1000., 1000.);
    hTmax_2t0_0  = new TH1F (name+"_2t0_0", "Tmax+2*Delta(t0); 3 hits", 2000, -1000., 1000.); 
    hTmax_2t0_1  = new TH1F (name+"_2t0_1", "Tmax+2*Delta(t0); one t<5ns", 2000, -1000., 1000.); 
    hTmax_2t0_2  = new TH1F (name+"_2t0_2", "Tmax+2*Delta(t0); one t<10ns", 2000, -1000., 1000.); 
    hTmax_2t0_3  = new TH1F (name+"_2t0_3", "Tmax+2*Delta(t0); one t<20ns", 2000, -1000., 1000.); 
    hTmax_2t0_4  = new TH1F (name+"_2t0_4", "Tmax+2*Delta(t0); one t<50ns", 2000, -1000., 1000.); 
    hTmax_2t0_5  = new TH1F (name+"_2t0_5", "Tmax+2*Delta(t0); all t>50ns", 2000, -1000., 1000.); 
    hTmax_t0   = new TH1F (name+"_t0", "Tmax+Delta(t0)", 2000, -1000., 1000.);
    hTmax_t0_0  = new TH1F (name+"_t0_0", "Tmax+Delta(t0); 3 hits", 2000, -1000., 1000.); 
    hTmax_t0_1  = new TH1F (name+"_t0_1", "Tmax+Delta(t0); one t<5ns", 2000, -1000., 1000.); 
    hTmax_t0_2  = new TH1F (name+"_t0_2", "Tmax+Delta(t0); one t<10ns", 2000, -1000., 1000.); 
    hTmax_t0_3  = new TH1F (name+"_t0_3", "Tmax+Delta(t0); one t<20ns", 2000, -1000., 1000.); 
    hTmax_t0_4  = new TH1F (name+"_t0_4", "Tmax+Delta(t0); one t<50ns", 2000, -1000., 1000.); 
    hTmax_t0_5  = new TH1F (name+"_t0_5", "Tmax+Delta(t0); all t>50ns", 2000, -1000., 1000.); 
    hTmax_0    = new TH1F (name+"_0", "Tmax", 2000, -1000., 1000.);
  }
hTMaxCell::hTMaxCell ( TString  name_,
TFile *  file 
) [inline]

Definition at line 155 of file vDriftHistos.h.

References hTmax123, hTmax124s72, hTmax124s78, hTmax134s72, hTmax134s78, hTmax234, hTmax_0, hTmax_2t0, hTmax_2t0_0, hTmax_2t0_1, hTmax_2t0_2, hTmax_2t0_3, hTmax_2t0_4, hTmax_2t0_5, hTmax_3t0, hTmax_3t0_0, hTmax_3t0_1, hTmax_3t0_2, hTmax_3t0_3, hTmax_3t0_4, hTmax_3t0_5, hTmax_t0, hTmax_t0_1, hTmax_t0_2, hTmax_t0_3, hTmax_t0_4, hTmax_t0_5, and name.

                                        {
    name=name_;
    hTmax123      = (TH1F *) file->Get(name+"_Tmax123");
    hTmax124s72   = (TH1F *) file->Get(name+"_Tmax124_s72");
    hTmax124s78   = (TH1F *) file->Get(name+"_Tmax124_s78");
    hTmax134s72   = (TH1F *) file->Get(name+"_Tmax134_s72");
    hTmax134s78   = (TH1F *) file->Get(name+"_Tmax134_s78");
    hTmax234      = (TH1F *) file->Get(name+"_Tmax234");
    hTmax_3t0  = (TH1F *) file->Get(name+"_3t0");
    hTmax_3t0_0  = (TH1F *) file->Get(name+"_3t0_0");
    hTmax_3t0_1  = (TH1F *) file->Get(name+"_3t0_1");
    hTmax_3t0_2  = (TH1F *) file->Get(name+"_3t0_2");
    hTmax_3t0_3  = (TH1F *) file->Get(name+"_3t0_3");
    hTmax_3t0_4  = (TH1F *) file->Get(name+"_3t0_4");
    hTmax_3t0_5  = (TH1F *) file->Get(name+"_3t0_5");
    hTmax_2t0  = (TH1F *) file->Get(name+"_2t0");
    hTmax_2t0_0  = (TH1F *) file->Get(name+"_2t0_0");
    hTmax_2t0_1  = (TH1F *) file->Get(name+"_2t0_1");
    hTmax_2t0_2  = (TH1F *) file->Get(name+"_2t0_2");
    hTmax_2t0_3  = (TH1F *) file->Get(name+"_2t0_3");
    hTmax_2t0_4  = (TH1F *) file->Get(name+"_2t0_4");
    hTmax_2t0_5  = (TH1F *) file->Get(name+"_2t0_5");
    hTmax_t0  = (TH1F *) file->Get(name+"_t0");
    hTmax_t0_1  = (TH1F *) file->Get(name+"_t0_1");
    hTmax_t0_2  = (TH1F *) file->Get(name+"_t0_2");
    hTmax_t0_3  = (TH1F *) file->Get(name+"_t0_3");
    hTmax_t0_4  = (TH1F *) file->Get(name+"_t0_4");
    hTmax_t0_5  = (TH1F *) file->Get(name+"_t0_5");
    hTmax_0  = (TH1F *) file->Get(name+"_0");

  }
hTMaxCell::~hTMaxCell ( ) [inline]

Member Function Documentation

void hTMaxCell::Fill ( float  tmax123,
float  tmax124,
float  tmax134,
float  tmax234,
dttmaxenums::SigmaFactor  s124,
dttmaxenums::SigmaFactor  s134,
unsigned  t0_123,
unsigned  t0_124,
unsigned  t0_134,
unsigned  t0_234,
unsigned  hSubGroup 
) [inline]

Definition at line 220 of file vDriftHistos.h.

References hTmax123, hTmax124s72, hTmax124s78, hTmax134s72, hTmax134s78, hTmax234, hTmax_0, hTmax_2t0, hTmax_2t0_0, hTmax_2t0_1, hTmax_2t0_2, hTmax_2t0_3, hTmax_2t0_4, hTmax_2t0_5, hTmax_3t0, hTmax_3t0_0, hTmax_3t0_1, hTmax_3t0_2, hTmax_3t0_3, hTmax_3t0_4, hTmax_3t0_5, hTmax_t0, hTmax_t0_0, hTmax_t0_1, hTmax_t0_2, hTmax_t0_3, hTmax_t0_4, hTmax_t0_5, and dttmaxenums::r72.

Referenced by VertexUpdator< 5 >::add().

              {
 
    if(tmax123 > 0.) {
      hTmax123->Fill(tmax123);
      if(t0_123==1) {
        hTmax_t0->Fill(tmax123);
        switch(hSubGroup) {
        case 0: hTmax_t0_0->Fill(tmax123); break;
        case 1: hTmax_t0_1->Fill(tmax123); break;
        case 2: hTmax_t0_2->Fill(tmax123); break;
        case 3: hTmax_t0_3->Fill(tmax123); break;
        case 4: hTmax_t0_4->Fill(tmax123); break;
        case 99: hTmax_t0_5->Fill(tmax123); break;
        }
      }
      else {
        hTmax_2t0->Fill(tmax123);
        switch(hSubGroup) {
        case 0: hTmax_2t0_0->Fill(tmax123); break;
        case 1: hTmax_2t0_1->Fill(tmax123); break;
        case 2: hTmax_2t0_2->Fill(tmax123); break;
        case 3: hTmax_2t0_3->Fill(tmax123); break;
        case 4: hTmax_2t0_4->Fill(tmax123); break;
        case 99: hTmax_2t0_5->Fill(tmax123); break;
        }
      }
    }
    if(tmax124 > 0.) {
      (s124==dttmaxenums::r72)? hTmax124s72->Fill(tmax124):hTmax124s78->Fill(tmax124);
      if(t0_124==0)  
        hTmax_0->Fill(tmax124);
      else if(t0_124==1) {
        hTmax_t0->Fill(tmax124); 
        switch(hSubGroup) {
        case 0: hTmax_t0_0->Fill(tmax124); break;
        case 1: hTmax_t0_1->Fill(tmax124); break;
        case 2: hTmax_t0_2->Fill(tmax124); break;
        case 3: hTmax_t0_3->Fill(tmax124); break;
        case 4: hTmax_t0_4->Fill(tmax124); break;
        case 99: hTmax_t0_5->Fill(tmax124); break;
        }
      }
      else if(t0_124== 2) {
        hTmax_2t0->Fill(tmax124);
        switch(hSubGroup) {
        case 0: hTmax_2t0_0->Fill(tmax124); break;
        case 1: hTmax_2t0_1->Fill(tmax124); break;
        case 2: hTmax_2t0_2->Fill(tmax124); break;
        case 3: hTmax_2t0_3->Fill(tmax124); break;
        case 4: hTmax_2t0_4->Fill(tmax124); break;
        case 99: hTmax_2t0_5->Fill(tmax124); break;
        }
      }
      else if(t0_124==3) {
        hTmax_3t0->Fill(tmax124); 
        switch(hSubGroup) {
        case 0: hTmax_3t0_0->Fill(tmax124); break;
        case 1: hTmax_3t0_1->Fill(tmax124); break;
        case 2: hTmax_3t0_2->Fill(tmax124); break;
        case 3: hTmax_3t0_3->Fill(tmax124); break;
        case 4: hTmax_3t0_4->Fill(tmax124); break;
        case 99: hTmax_3t0_5->Fill(tmax124);break;
        }      
      }
    }
    if(tmax134 > 0.) {
      (s134==dttmaxenums::r72)? hTmax134s72->Fill(tmax134):hTmax134s78->Fill(tmax134);
      if(t0_134==0)  
        hTmax_0->Fill(tmax134);
      else if(t0_134==1) {
        hTmax_t0->Fill(tmax134); 
        switch(hSubGroup) {
        case 0: hTmax_t0_0->Fill(tmax134); break;
        case 1: hTmax_t0_1->Fill(tmax134); break;
        case 2: hTmax_t0_2->Fill(tmax134); break;
        case 3: hTmax_t0_3->Fill(tmax134); break;
        case 4: hTmax_t0_4->Fill(tmax134); break;
        case 99: hTmax_t0_5->Fill(tmax134); break;
        }
      }
      else if(t0_134== 2) {
        hTmax_2t0->Fill(tmax134);
        switch(hSubGroup) {
        case 0: hTmax_2t0_0->Fill(tmax134); break;
        case 1: hTmax_2t0_1->Fill(tmax134); break;
        case 2: hTmax_2t0_2->Fill(tmax134); break;
        case 3: hTmax_2t0_3->Fill(tmax134); break;
        case 4: hTmax_2t0_4->Fill(tmax134); break;
        case 99: hTmax_2t0_5->Fill(tmax134); break;
        }
      }
      else if(t0_134==3) {
        hTmax_3t0->Fill(tmax134); 
        switch(hSubGroup) {
        case 0: hTmax_3t0_0->Fill(tmax134); break;
        case 1: hTmax_3t0_1->Fill(tmax134); break;
        case 2: hTmax_3t0_2->Fill(tmax134); break;
        case 3: hTmax_3t0_3->Fill(tmax134); break;
        case 4: hTmax_3t0_4->Fill(tmax134); break;
        case 99: hTmax_3t0_5->Fill(tmax134); break;
        }      
      }
    }
    if(tmax234 > 0.) {
      hTmax234->Fill(tmax234);
      if(t0_234==1) {
        hTmax_t0->Fill(tmax234);
        switch(hSubGroup) {
        case 0: hTmax_t0_0->Fill(tmax234); break;
        case 1: hTmax_t0_1->Fill(tmax234); break;
        case 2: hTmax_t0_2->Fill(tmax234); break;
        case 3: hTmax_t0_3->Fill(tmax234); break;
        case 4: hTmax_t0_4->Fill(tmax234); break;
        case 99: hTmax_t0_5->Fill(tmax234);break;
        }
      }
      else {
        hTmax_2t0->Fill(tmax234);
        switch(hSubGroup) {
        case 0: hTmax_2t0_0->Fill(tmax234); break;
        case 1: hTmax_2t0_1->Fill(tmax234); break;
        case 2: hTmax_2t0_2->Fill(tmax234); break;
        case 3: hTmax_2t0_3->Fill(tmax234); break;
        case 4: hTmax_2t0_4->Fill(tmax234); break;
        case 99: hTmax_2t0_5->Fill(tmax234); break;
        }
      }
    }      
  }
int hTMaxCell::GetT0Factor ( TH1F *  hist) [inline]

Definition at line 391 of file vDriftHistos.h.

References hTmax_0, hTmax_2t0, hTmax_3t0, and hTmax_t0.

Referenced by DTMeanTimerFitter::evaluateVDriftAndReso().

                              {
    unsigned t0 = 999;

    if (hist == hTmax_3t0)
      t0 = 3;
    else if(hist == hTmax_2t0)
      t0 = 2;
    else if(hist ==  hTmax_t0)
      t0 = 1;    
    else if (hist == hTmax_0)
      t0 = 0;
       
    return t0;
  }
void hTMaxCell::Write ( ) [inline]

Definition at line 358 of file vDriftHistos.h.

References hTmax123, hTmax124s72, hTmax124s78, hTmax134s72, hTmax134s78, hTmax234, hTmax_0, hTmax_2t0, hTmax_2t0_0, hTmax_2t0_1, hTmax_2t0_2, hTmax_2t0_3, hTmax_2t0_4, hTmax_2t0_5, hTmax_3t0, hTmax_3t0_0, hTmax_3t0_1, hTmax_3t0_2, hTmax_3t0_3, hTmax_3t0_4, hTmax_3t0_5, hTmax_t0, hTmax_t0_0, hTmax_t0_1, hTmax_t0_2, hTmax_t0_3, hTmax_t0_4, and hTmax_t0_5.

Referenced by DTVDriftCalibration::endJob().

               { 
    // write the Tmax histograms 
    hTmax123->Write();
    hTmax124s72->Write();
    hTmax124s78->Write();
    hTmax134s72->Write();
    hTmax134s78->Write();
    hTmax234->Write(); 
    hTmax_3t0->Write();
    hTmax_3t0_0->Write();
    hTmax_3t0_1->Write();
    hTmax_3t0_2->Write();
    hTmax_3t0_3->Write();
    hTmax_3t0_4->Write();
    hTmax_3t0_5->Write();
    hTmax_2t0->Write();
    hTmax_2t0_0->Write();
    hTmax_2t0_1->Write();
    hTmax_2t0_2->Write();
    hTmax_2t0_3->Write();
    hTmax_2t0_4->Write();
    hTmax_2t0_5->Write();
    hTmax_t0->Write();
    hTmax_t0_0->Write();
    hTmax_t0_1->Write();
    hTmax_t0_2->Write();
    hTmax_t0_3->Write();
    hTmax_t0_4->Write();
    hTmax_t0_5->Write();
    hTmax_0->Write();

  }

Member Data Documentation

Definition at line 420 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 421 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 422 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 423 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 424 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 425 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 413 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 414 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 415 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 416 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 417 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 418 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 427 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 428 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 429 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 430 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 431 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

Definition at line 432 of file vDriftHistos.h.

Referenced by Fill(), hTMaxCell(), Write(), and ~hTMaxCell().

TString hTMaxCell::name

Definition at line 435 of file vDriftHistos.h.

Referenced by hTMaxCell().