ChopModule.cxx File Reference

#include "ChopModule.h"
#include "MessageService/MsgService.h"
#include "MinosObjectMap/MomNavigator.h"
#include "JobControl/JobCModuleRegistry.h"
#include "Algorithm/AlgFactory.h"
#include "CandData/CandRecord.h"
#include "Candidate/CandContext.h"
#include "CandDigit/CandDigitListHandle.h"
#include "RecoBase/CandSliceListHandle.h"
#include "RecoBase/CandSliceHandle.h"
#include "CandChopListHandle.h"
#include "CandChopList.h"
#include "DigitVector.h"
#include "DataUtil/Truthifier.h"
#include "DataUtil/GetRunSnarlEvent.h"
#include "UgliGeometry/UgliGeomHandle.h"
#include "Calibrator/Calibrator.h"
#include <TFile.h>
#include <TTree.h>
#include <TCanvas.h>
#include <TH1.h>
#include <TH2.h>
#include <TGraph.h>
#include <TStyle.h>

Go to the source code of this file.

Classes

class  Hi

Functions

 JOBMODULE (ChopModule,"ChopModule","Chops digits into Chops (digitslices)")
 CVSID ("$Id: ChopModule.cxx,v 1.7 2007/11/11 08:26:13 rhatcher Exp $")
void TimeRankHistos (UInt_t n, std::vector< TH1 * > inHists, std::vector< int > &outRank)

Variables

const RawChannelId kQieRcid (Detector::kNear, ElecType::kQIE, 0, 0, false, false)
 Some utiliity stuff for Ana().

Function Documentation

CVSID ( "$Id: ChopModule.  cxx,
v 1.7 2007/11/11 08:26:13 rhatcher Exp $"   
)
JOBMODULE ( ChopModule  ,
"ChopModule"  ,
"Chops digits into Chops (digitslices)"   
)
void TimeRankHistos ( UInt_t  n,
std::vector< TH1 * >  inHists,
std::vector< int > &  outRank 
)

Definition at line 139 of file ChopModule.cxx.

Referenced by ChopModule::Ana().

00140 {
00141   outRank.resize(n);
00142   
00143   std::vector<Hi> sorter;
00144   for(UInt_t i=0;i<n;i++) {
00145     sorter.push_back(Hi(i,inHists[i]->GetMean()));
00146   }
00147   std::sort(sorter.begin(),sorter.end());
00148 
00149   for(UInt_t i=0;i<n;i++) {
00150     outRank[sorter[i].index] = i;
00151   }
00152 }


Variable Documentation

const RawChannelId kQieRcid(Detector::kNear, ElecType::kQIE, 0, 0, false, false)

Some utiliity stuff for Ana().


Generated on 24 Jul 2018 for loon by  doxygen 1.6.1