Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VHSevent.cxx

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #include "AnalysisNtuples/Module/VHSevent.h"
00009 
00010 #include <vector>
00011 
00012 #include "Riostream.h"
00013 #include "TClonesArray.h"
00014 
00015 ClassImp(VHSevent)
00016 
00017 //______________________________________________________________________
00018 
00019 VHSevent::VHSevent() :
00020   RecRecordImp<RecCandHeader>()
00021 {
00022   this->Init();
00023 }
00024 
00025 //______________________________________________________________________
00026 
00027 VHSevent::VHSevent(const RecCandHeader& hdr) :
00028   RecRecordImp<RecCandHeader>(hdr)
00029 {
00030   this->Init();
00031 }
00032 
00033 //______________________________________________________________________
00034 
00035 VHSevent::~VHSevent()
00036 {
00037 
00038 }
00039 
00040 //______________________________________________________________________
00041 
00042 void VHSevent::Init()
00043 {
00044   // Set variable in record base class to indicate that it is possible
00045   // to recover dynamic memory using Clear() method for this record type
00046   SetClearable(true);
00047 
00048   // Set some default values
00049   GeV        = -1.;
00050   NumPln     = -1;
00051   NumStp     = -1;
00052   Sigcor     = -1.;
00053 
00054   MinPlnU    = -1;
00055   MinPlnV    = -1;
00056 
00057   MOIThetaU  = -999.;
00058   MOIThetaV  = -999.;
00059 
00060   MC         = false;
00061   MCenu      = -1.;
00062   MCinu      = -1;
00063   MCiaction  = -1;
00064   MCrescode  = -1;
00065   MCQsq      = -1.;
00066   MCWsq      = -1.;
00067   MCx        = -1.;
00068   MCy        = -1.;
00069 
00070   dCCe       = -1.;
00071   dCCmu      = -1.;
00072   dCCtau     = -1.;
00073   dNC        = -1.;
00074 
00075   pCCe       = -1.;
00076   pCCmu      = -1.;
00077   pCCtau     = -1.;
00078   pNC        = -1.;
00079 
00080   stp.clear();
00081   ind.clear();
00082 
00083 }
00084 
00085 //______________________________________________________________________
00086 
00087 std::ostream& VHSevent::Print(std::ostream& os) const
00088 {
00089   //
00090   // Purpose: Print status of ntuple record on ostream
00091   //
00092 
00093   os << "VHSevent::Print" << endl;
00094   RecRecordImp<RecCandHeader>::Print(os);
00095 
00096   return os;
00097 
00098 }
00099 
00100 //______________________________________________________________________
00101 
00102 void VHSevent::Print(Option_t* /* option */) const
00103 {
00104   //
00105   // Purpose: Print record in form supported by TObject::Print
00106   //
00107 
00108   Print(std::cout);
00109   return;
00110 
00111 }
00112 
00113 //______________________________________________________________________

Generated on Mon Feb 15 11:07:50 2010 for loon by  doxygen 1.3.9.1