CamEvd.cxx File Reference

#include <iostream>
#include <cassert>
#include <cmath>
#include "TGFrame.h"
#include "TGClient.h"
#include "TGResourcePool.h"
#include "TGNumberEntry.h"
#include "TGDoubleSlider.h"
#include "TGButton.h"
#include "TRootEmbeddedCanvas.h"
#include "TGTab.h"
#include "TGLabel.h"
#include "TApplication.h"
#include "TCanvas.h"
#include "TArrow.h"
#include "TStyle.h"
#include "TLatex.h"
#include "TChain.h"
#include "TMath.h"
#include "AtNuEvent/AtmosEvent.h"
#include "AtNuEvent/AtmosStrip.h"
#include "AtNuEvent/AtmosTrack.h"
#include "AtNuEvent/AtmosShower.h"
#include "AtNuEvent/AtmosShieldPlank.h"
#include "AtNuEvent/AtmosDeadChip.h"
#include "AtNuEvent/AtmosScintHit.h"
#include "HistMan/HistMan.h"
#include "MessageService/MsgService.h"
#include "AtNuUtils/TruthHelp.h"
#include "AtNuUtils/VetoShower.h"
#include "AtNuUtils/VetoTrack.h"
#include "AtNuUtils/UtilMisc.h"
#include "AtNuUtils/UtilCanvas.h"
#include "AtNuUtils/UtilStrip.h"
#include "AtNuUtils/QuickGeom.h"
#include "AtNuUtils/FarLayout.h"
#include "AtNuUtils/CamEvd.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: CamEvd.cxx,v 1.10 2010/07/28 23:44:52 rhatcher Exp $")
static int ChargeToColor (double charge)
static const char * IDnuToText (int IDnu)
static const char * IDactToText (int IDact)
static const char * IDresToText (int IDres)
static Style_t ScintHitIdToStyle (int ScintHitId)
static Color_t ScintHitIdToColor (int ScintHitId)

Variables

static const double C45 = TMath::Sqrt(2.) / 2.
static const double SoL = TMath::C()

Function Documentation

static int ChargeToColor ( double  charge  )  [static]

Definition at line 49 of file CamEvd.cxx.

Referenced by CamEvd::FillEvent(), CamEvd::MakeTimingPlot(), CamEvd::MakeUVHits(), and CamEvd::MakeXYHits().

00049                                         {
00050   if(charge<2.0) return 7;
00051   if(charge<4.0) return 4;
00052   if(charge<6.0) return 5;
00053   if(charge<8.0) return 3;
00054   if(charge<10.0) return 6;
00055   return 2;
00056 }

CVSID ( "$Id: CamEvd.  cxx,
v 1.10 2010/07/28 23:44:52 rhatcher Exp $"   
)
static const char* IDactToText ( int  IDact  )  [static]

Definition at line 68 of file CamEvd.cxx.

Referenced by CamEvd::MakeMCPlot().

00068                                           {
00069   if(IDact == 0) return "NC";
00070   if(IDact == 1) return "CC";
00071   return "WTF";
00072 }

static const char* IDnuToText ( int  IDnu  )  [static]

Definition at line 58 of file CamEvd.cxx.

Referenced by CamEvd::MakeMCPlot().

00058                                         {
00059   if(IDnu ==  12) return "#nu_{e}";
00060   if(IDnu == -12) return "#bar{#nu_{e}}";
00061   if(IDnu ==  14) return "#nu_{#mu}";
00062   if(IDnu == -14) return "#bar{#nu_{#mu}}";
00063   if(IDnu ==  16) return "#nu_{#tau}";
00064   if(IDnu == -16) return "#bar{#nu_{#tau}}";
00065   return "CR";
00066 }

static const char* IDresToText ( int  IDres  )  [static]

Definition at line 74 of file CamEvd.cxx.

Referenced by CamEvd::MakeMCPlot().

00074                                           {
00075   if(IDres == 1001) return "QE";
00076   if(IDres == 1002) return "Res";
00077   if(IDres == 1003) return "DIS";
00078   if(IDres == 1004) return "CPP";
00079   return "CR";
00080 }

static Color_t ScintHitIdToColor ( int  ScintHitId  )  [static]

Definition at line 115 of file CamEvd.cxx.

References Msg::kInfo, and MSG.

Referenced by CamEvd::MakeMCPlot().

00115                                                  {
00116   switch (ScintHitId) {
00117   case 11://e-
00118   case -11://e+
00119     return(kGreen);
00120     break;
00121   case 13://mu-
00122   case -13://mu+
00123     return(kRed);
00124     break;
00125   case 15://tau-
00126   case -15://tau+
00127     return(kMagenta);
00128     break;
00129   case 2212://Proton
00130   case 211://pi+
00131   case -211://pi-
00132   case 321://K+
00133   case -321://K-
00134     return(kBlue);
00135     break;
00136   default:
00137     if (ScintHitId > 1000000000) {//Nucleon
00138       return(kBlack);
00139     }
00140     else {
00141       MSG("FarDetEvent",Msg::kInfo) << "Strange hit id: " << ScintHitId << endl;
00142       return(kBlack);
00143     }
00144     break;
00145   }
00146 }

static Style_t ScintHitIdToStyle ( int  ScintHitId  )  [static]

Definition at line 82 of file CamEvd.cxx.

References Msg::kInfo, and MSG.

Referenced by CamEvd::MakeMCPlot().

00082                                                  {
00083   switch(ScintHitId) {
00084   case 11://e-
00085   case -11://e+
00086     return(kOpenCircle);
00087     break;
00088   case 13://mu-
00089   case -13://mu+
00090     return(kOpenCircle);
00091     break;
00092   case 15://tau-
00093   case -15://tau+
00094     return(kOpenCircle);
00095     break;
00096   case 2212://Proton
00097   case 211://pi+
00098   case -211://pi-
00099   case 321://K+
00100   case -321://K-
00101     return(kOpenTriangleUp);
00102     break;
00103   default:
00104     if (ScintHitId > 1000000000) {//Nucleon
00105       return(kStar);
00106     }
00107     else {
00108       MSG("FarDetEvent",Msg::kInfo) << "Strange hit id: " << ScintHitId << endl;
00109       return(kDot);
00110     }
00111     break;
00112   }
00113 }


Variable Documentation

const double C45 = TMath::Sqrt(2.) / 2. [static]

Definition at line 44 of file CamEvd.cxx.

const double SoL = TMath::C() [static]

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1