CMS 3D CMS Logo

Public Member Functions | Public Attributes

UEAnalysisUE Class Reference

#include <UEAnalysisUE.h>

List of all members.

Public Member Functions

void Begin (TFile *)
void ueAnalysisMC (float, std::string, float, float, TClonesArray *, TClonesArray *)
void ueAnalysisRECO (float, std::string, float, float, TClonesArray *, TClonesArray *)
 UEAnalysisUE ()
void writeToFile (TFile *)
 ~UEAnalysisUE ()

Public Attributes

UEAnalysisCorrCalicc
TH1F * fHistEtaDistMC
TH1F * fHistEtaDistRECO
TH1F * fHistPhiDistMC
TH1F * fHistPhiDistRECO
TH1F * fHistPtDistMC
TH1F * fHistPtDistRECO
TH2D * h2d_dN_vs_ptJTransMC
TProfile * pdN_vs_dphiMC
TProfile * pdN_vs_dphiRECO
TProfile * pdN_vs_etaMC
TProfile * pdN_vs_etaRECO
TProfile * pdN_vs_ptCJAwayRECO
TProfile * pdN_vs_ptCJTowardRECO
TProfile * pdN_vs_ptCJTransMaxRECO
TProfile * pdN_vs_ptCJTransMinRECO
TProfile * pdN_vs_ptCJTransRECO
TProfile * pdN_vs_ptJAwayMC
TProfile * pdN_vs_ptJAwayRECO
TProfile * pdN_vs_ptJTowardMC
TProfile * pdN_vs_ptJTowardRECO
TProfile * pdN_vs_ptJTransMaxMC
TProfile * pdN_vs_ptJTransMaxRECO
TProfile * pdN_vs_ptJTransMC
TProfile * pdN_vs_ptJTransMinMC
TProfile * pdN_vs_ptJTransMinRECO
TProfile * pdN_vs_ptJTransRECO
TProfile * pdN_vs_ptMC
TProfile * pdN_vs_ptRECO
TProfile * pdPt_vs_dphiMC
TProfile * pdPt_vs_dphiRECO
TProfile * pdPt_vs_ptCJAwayRECO
TProfile * pdPt_vs_ptCJTowardRECO
TProfile * pdPt_vs_ptCJTransMaxRECO
TProfile * pdPt_vs_ptCJTransMinRECO
TProfile * pdPt_vs_ptCJTransRECO
TProfile * pdPt_vs_ptJAwayMC
TProfile * pdPt_vs_ptJAwayRECO
TProfile * pdPt_vs_ptJTowardMC
TProfile * pdPt_vs_ptJTowardRECO
TProfile * pdPt_vs_ptJTransMaxMC
TProfile * pdPt_vs_ptJTransMaxRECO
TProfile * pdPt_vs_ptJTransMC
TProfile * pdPt_vs_ptJTransMinMC
TProfile * pdPt_vs_ptJTransMinRECO
TProfile * pdPt_vs_ptJTransRECO
float piG
TH1F * temp1MC
TH1F * temp1RECO
TH1F * temp2MC
TH1F * temp2RECO
TH1F * temp3MC
TH1F * temp3RECO
TH1F * temp4MC
TH1F * temp4RECO

Detailed Description

Definition at line 19 of file UEAnalysisUE.h.


Constructor & Destructor Documentation

UEAnalysisUE::UEAnalysisUE ( )
UEAnalysisUE::~UEAnalysisUE ( ) [inline]

Definition at line 23 of file UEAnalysisUE.h.

{}

Member Function Documentation

void UEAnalysisUE::Begin ( TFile *  )
void UEAnalysisUE::ueAnalysisMC ( float  ,
std::string  ,
float  ,
float  ,
TClonesArray *  ,
TClonesArray *   
)
void UEAnalysisUE::ueAnalysisRECO ( float  ,
std::string  ,
float  ,
float  ,
TClonesArray *  ,
TClonesArray *   
)
void Vx3DHLTAnalyzer::writeToFile ( TFile *  )

Definition at line 655 of file Vx3DHLTAnalyzer.cc.

References convertXMLtoSQLite_cfg::fileName, edm::formatTime(), NULL, dbtoconf::out, download_sqlite_cfg::outputFile, inputsource_file_cfi::runNumber, and mathSSE::sqrt().

{
  stringstream BufferString;
  BufferString.precision(5);

  outputFile.open(fileName.c_str(), ios::out);

  if ((outputFile.is_open() == true) && (vals != NULL) && (vals->size() == 8*2))
    {
      vector<double>::const_iterator it = vals->begin();

      outputFile << "Runnumber " << runNumber << endl;
      outputFile << "BeginTimeOfFit " << formatTime(beginTimeOfFit >> 32) << " " << (beginTimeOfFit >> 32) << endl;
      outputFile << "EndTimeOfFit " << formatTime(endTimeOfFit >> 32) << " " << (endTimeOfFit >> 32) << endl;
      outputFile << "LumiRange " << beginLumiOfFit << " - " << endLumiOfFit << endl;
      outputFile << "Type " << dataType << endl;
      // 3D Vertexing with Pixel Tracks:
      // Good data = Type  3
      // Bad data  = Type -1

      BufferString << *(it+0);
      outputFile << "X0 " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+1);
      outputFile << "Y0 " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+2);
      outputFile << "Z0 " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+3);
      outputFile << "sigmaZ0 " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+4);
      outputFile << "dxdz " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+5);
      outputFile << "dydz " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+6);
      outputFile << "BeamWidthX " << BufferString.str().c_str() << endl;
      BufferString.str("");

      BufferString << *(it+7);
      outputFile << "BeamWidthY " << BufferString.str().c_str() << endl;
      BufferString.str("");

      outputFile << "Cov(0,j) " << *(it+8) << " 0.0 0.0 0.0 0.0 0.0 0.0" << endl;
      outputFile << "Cov(1,j) 0.0 " << *(it+9) << " 0.0 0.0 0.0 0.0 0.0" << endl;
      outputFile << "Cov(2,j) 0.0 0.0 " << *(it+10) << " 0.0 0.0 0.0 0.0" << endl;
      outputFile << "Cov(3,j) 0.0 0.0 0.0 " << *(it+11) << " 0.0 0.0 0.0" << endl;
      outputFile << "Cov(4,j) 0.0 0.0 0.0 0.0 " << *(it+12) << " 0.0 0.0" << endl;
      outputFile << "Cov(5,j) 0.0 0.0 0.0 0.0 0.0 " << *(it+13) << " 0.0" << endl;
      outputFile << "Cov(6,j) 0.0 0.0 0.0 0.0 0.0 0.0 " << ((*(it+14)) + (*(it+15)) + 2.*std::sqrt((*(it+14))*(*(it+15)))) / 4. << endl;

      outputFile << "EmittanceX 0.0" << endl;
      outputFile << "EmittanceY 0.0" << endl;
      outputFile << "BetaStar 0.0" << endl;
    }
  outputFile.close();

  if ((debugMode == true) && (outputDebugFile.is_open() == true) && (vals != NULL) && (vals->size() == 8*2))
    {
      vector<double>::const_iterator it = vals->begin();

      outputDebugFile << "Runnumber " << runNumber << endl;
      outputDebugFile << "BeginTimeOfFit " << formatTime(beginTimeOfFit >> 32) << " " << (beginTimeOfFit >> 32) << endl;
      outputDebugFile << "EndTimeOfFit " << formatTime(endTimeOfFit >> 32) << " " << (endTimeOfFit >> 32) << endl;
      outputDebugFile << "LumiRange " << beginLumiOfFit << " - " << endLumiOfFit << endl;
      outputDebugFile << "Type " << dataType << endl;
      // 3D Vertexing with Pixel Tracks:
      // Good data = Type  3
      // Bad data  = Type -1
          
      BufferString << *(it+0);
      outputDebugFile << "X0 " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+1);
      outputDebugFile << "Y0 " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+2);
      outputDebugFile << "Z0 " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+3);
      outputDebugFile << "sigmaZ0 " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+4);
      outputDebugFile << "dxdz " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+5);
      outputDebugFile << "dydz " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+6);
      outputDebugFile << "BeamWidthX " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      BufferString << *(it+7);
      outputDebugFile << "BeamWidthY " << BufferString.str().c_str() << endl;
      BufferString.str("");
          
      outputDebugFile << "Cov(0,j) " << *(it+8) << " 0.0 0.0 0.0 0.0 0.0 0.0" << endl;
      outputDebugFile << "Cov(1,j) 0.0 " << *(it+9) << " 0.0 0.0 0.0 0.0 0.0" << endl;
      outputDebugFile << "Cov(2,j) 0.0 0.0 " << *(it+10) << " 0.0 0.0 0.0 0.0" << endl;
      outputDebugFile << "Cov(3,j) 0.0 0.0 0.0 " << *(it+11) << " 0.0 0.0 0.0" << endl;
      outputDebugFile << "Cov(4,j) 0.0 0.0 0.0 0.0 " << *(it+12) << " 0.0 0.0" << endl;
      outputDebugFile << "Cov(5,j) 0.0 0.0 0.0 0.0 0.0 " << *(it+13) << " 0.0" << endl;
      outputDebugFile << "Cov(6,j) 0.0 0.0 0.0 0.0 0.0 0.0 " << ((*(it+14)) + (*(it+15)) + 2.*std::sqrt((*(it+14))*(*(it+15)))) / 4. << endl;
          
      outputDebugFile << "EmittanceX 0.0" << endl;
      outputDebugFile << "EmittanceY 0.0" << endl;
      outputDebugFile << "BetaStar 0.0" << endl;
    }
}

Member Data Documentation

Definition at line 102 of file UEAnalysisUE.h.

Definition at line 34 of file UEAnalysisUE.h.

Definition at line 64 of file UEAnalysisUE.h.

Definition at line 35 of file UEAnalysisUE.h.

Definition at line 65 of file UEAnalysisUE.h.

Definition at line 33 of file UEAnalysisUE.h.

Definition at line 63 of file UEAnalysisUE.h.

Definition at line 44 of file UEAnalysisUE.h.

Definition at line 40 of file UEAnalysisUE.h.

Definition at line 70 of file UEAnalysisUE.h.

Definition at line 37 of file UEAnalysisUE.h.

Definition at line 67 of file UEAnalysisUE.h.

Definition at line 91 of file UEAnalysisUE.h.

Definition at line 90 of file UEAnalysisUE.h.

Definition at line 85 of file UEAnalysisUE.h.

Definition at line 86 of file UEAnalysisUE.h.

Definition at line 84 of file UEAnalysisUE.h.

Definition at line 54 of file UEAnalysisUE.h.

Definition at line 80 of file UEAnalysisUE.h.

Definition at line 53 of file UEAnalysisUE.h.

Definition at line 79 of file UEAnalysisUE.h.

Definition at line 48 of file UEAnalysisUE.h.

Definition at line 74 of file UEAnalysisUE.h.

Definition at line 47 of file UEAnalysisUE.h.

Definition at line 49 of file UEAnalysisUE.h.

Definition at line 75 of file UEAnalysisUE.h.

Definition at line 73 of file UEAnalysisUE.h.

Definition at line 38 of file UEAnalysisUE.h.

Definition at line 68 of file UEAnalysisUE.h.

Definition at line 41 of file UEAnalysisUE.h.

Definition at line 71 of file UEAnalysisUE.h.

Definition at line 93 of file UEAnalysisUE.h.

Definition at line 92 of file UEAnalysisUE.h.

Definition at line 88 of file UEAnalysisUE.h.

Definition at line 89 of file UEAnalysisUE.h.

Definition at line 87 of file UEAnalysisUE.h.

Definition at line 56 of file UEAnalysisUE.h.

Definition at line 82 of file UEAnalysisUE.h.

Definition at line 55 of file UEAnalysisUE.h.

Definition at line 81 of file UEAnalysisUE.h.

Definition at line 51 of file UEAnalysisUE.h.

Definition at line 77 of file UEAnalysisUE.h.

Definition at line 50 of file UEAnalysisUE.h.

Definition at line 52 of file UEAnalysisUE.h.

Definition at line 78 of file UEAnalysisUE.h.

Definition at line 76 of file UEAnalysisUE.h.

Definition at line 100 of file UEAnalysisUE.h.

Definition at line 58 of file UEAnalysisUE.h.

Definition at line 95 of file UEAnalysisUE.h.

Definition at line 59 of file UEAnalysisUE.h.

Definition at line 96 of file UEAnalysisUE.h.

Definition at line 60 of file UEAnalysisUE.h.

Definition at line 97 of file UEAnalysisUE.h.

Definition at line 61 of file UEAnalysisUE.h.

Definition at line 98 of file UEAnalysisUE.h.