AnaTrim Class Reference

#include <AnaTrim.h>

Inheritance diagram for AnaTrim:
JobCModule

List of all members.

Public Member Functions

 AnaTrim ()
 ~AnaTrim ()
void BeginJob ()
void EndJob ()
JobCResult Reco (MomNavigator *mom)
const RegistryDefaultConfig () const
void Config (const Registry &r)
void Reset ()

Detailed Description

Id
AnaTrim.h,v 1.1 2009/06/19 14:32:36 scavan Exp

(Document me!)

scavan@fas.harvard.edu

Definition at line 15 of file AnaTrim.h.


Constructor & Destructor Documentation

AnaTrim::AnaTrim (  ) 

(Document me!)

Definition at line 33 of file AnaTrim.cxx.

00034 {
00035 
00036 
00037 
00038 
00039         
00043 }

AnaTrim::~AnaTrim (  ) 

(Document me!)

Definition at line 46 of file AnaTrim.cxx.

00047 {
00051 
00052 
00053 }


Member Function Documentation

void AnaTrim::BeginJob ( void   )  [virtual]

Implement for notification of begin of job

(Document me!)

Reimplemented from JobCModule.

Definition at line 57 of file AnaTrim.cxx.

00058 {
00062 }

void AnaTrim::Config ( const Registry r  )  [virtual]

Return the actual configuration. If your module directly pulls its configuration from the fConfig Registry, you don't need to override this. Override if you have local config variables.

Configure the module given the Registry r

Reimplemented from JobCModule.

Definition at line 148 of file AnaTrim.cxx.

00149 {
00153   
00154  
00155    // const char* tmps;
00156     //if(r.Get("POTTreeFileName",tmps)){kPOTTreeName=tmps;}
00157   
00158 }

const Registry & AnaTrim::DefaultConfig ( void   )  const [virtual]

Get the default configuration registry. This should normally be overridden. One useful idiom is to implement it like:

const Registry& MyModule::DefaultConfig() const { static Registry cfg; // never is destroyed if (cfg.Size()) return cfg; // already filled it // set defaults: cfg.Set("TheAnswer",42); cfg.Set("Units","unknown"); return cfg; }

Supply the default configuration for the module

Reimplemented from JobCModule.

Definition at line 126 of file AnaTrim.cxx.

References JobCModule::GetName(), Registry::LockValues(), and Registry::UnLockValues().

00127 {
00131   static Registry r; // Default configuration for module
00132 
00133   // Set name of config
00134   std::string name = this->GetName();
00135   name += ".config.default";
00136   r.SetName(name.c_str());
00137  // r.Set("POTTreeFileName","pottree.root");
00138   // Set values in configuration
00139   r.UnLockValues();
00140   r.LockValues();
00141 
00142 
00143   return r;
00144 }

void AnaTrim::EndJob (  )  [virtual]

Implement for notification of end of job

(Document me!)

Reimplemented from JobCModule.

Definition at line 66 of file AnaTrim.cxx.

00067 {
00071 
00072   
00073 }

JobCResult AnaTrim::Reco ( MomNavigator mom  )  [virtual]

Implement this for read-write access to the MomNavigator

(Document me!)

Reimplemented from JobCModule.

Definition at line 77 of file AnaTrim.cxx.

References MomNavigator::GetFragmentList(), JobCResult::kPassed, and n.

00078 {
00082 
00083   std::vector<TObject* > hft =( mom->GetFragmentList("PRecord"));
00084 
00085 
00086 
00087 
00088         for(unsigned int s =0;s<hft.size();s++)
00089         {
00090                 PRecord *n=0;
00091                 n=dynamic_cast<PRecord *>(hft[s]);      
00092 
00093 //              int infid=1;
00094 //      
00095 //              infid = infid && (n->event.vtx_z>0.47692 && n->event.vtx_z<14.6 || n->event.vtx_z>16.0 && n->event.vtx_z <29.8);
00096 //              infid = infid && (sqrt(n->event.vtx_u*n->event.vtx_u+n->event.vtx_v*n->event.vtx_v)<4);
00097 //              infid = infid && (sqrt(n->event.vtx_u*n->event.vtx_u+n->event.vtx_v*n->event.vtx_v)>0.5);
00098         
00099         
00100         
00101                 int passcuts=1;
00102                 
00103 //              passcuts=passcuts && infid;
00104 //              passcuts=passcuts && n->particles.ntot>1;
00105 //              passcuts=passcuts && n->particles.totvise > 25.;
00106 //              passcuts=passcuts && n->particles.totvise < 25.*8.;
00107                         
00108         
00109                 if(!passcuts)continue;
00110                         n->SetName("TrimmedPA");
00111                 
00112         //      n->mctrue.trainweight *=3.5/6.5/10;
00113         
00114         
00115 
00116         }
00117 
00118                 
00119 
00120 
00121   return JobCResult::kPassed; // kNoDecision, kFailed, etc.
00122 }

void AnaTrim::Reset (  )  [virtual]

Implement to reset oneself

(Document me!)

Reimplemented from JobCModule.

Definition at line 162 of file AnaTrim.cxx.

00163 {
00167 }


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1