CDUnidentifiedHits Class Reference

#include <CDUnidentifiedHits.h>

List of all members.

Public Member Functions

 CDUnidentifiedHits (std::map< int, CandStripHandle >, std::map< int, CandStripHandle >, std::map< int, CandStripHandle >, std::map< int, CandStripHandle >, std::map< int, CandStripHandle >)
int SetMap (std::map< int, CandStripHandle >, int)
void GetUnidentifiedStripInfo (TClonesArray *)

Protected Attributes

std::map< int, CandStripHandlefAllStrips
std::map< int, CandStripHandlefEvenPlStrips
std::map< int, CandStripHandlefOddPlStrips
std::map< int, CandStripHandlefCCStrips
std::map< int, CandStripHandlefXTalkStrips

Detailed Description

Definition at line 21 of file CDUnidentifiedHits.h.


Constructor & Destructor Documentation

CDUnidentifiedHits::CDUnidentifiedHits ( std::map< int, CandStripHandle ,
std::map< int, CandStripHandle ,
std::map< int, CandStripHandle ,
std::map< int, CandStripHandle ,
std::map< int, CandStripHandle  
)

Member Function Documentation

void CDUnidentifiedHits::GetUnidentifiedStripInfo ( TClonesArray *  infoarray  ) 

Definition at line 113 of file CDUnidentifiedHits.cxx.

References CandStripHandle::GetCharge(), Calibrator::GetMIP(), CandStripHandle::GetNDigit(), CandStripHandle::GetPlane(), CandStripHandle::GetStrip(), CandStripHandle::GetTime(), Calibrator::Instance(), StripEnd::kNegative, CalDigitType::kNone, CalDigitType::kPE, StripEnd::kPositive, CalDigitType::kSigCorr, CalDigitType::kSigLin, and CalScheme::Reset().

00114 {
00115   map<int,CandStripHandle>::iterator stpIt = fAllStrips.begin();
00116   map<int,CandStripHandle>::iterator stpEnd = fAllStrips.end();
00117   
00118   //get a reference to the calibrator
00119   Calibrator& calibrator=Calibrator::Instance();
00120 
00121   if(stpIt!=stpEnd) {
00122     const VldContext *vc = stpIt->second.GetVldContext();
00123     calibrator.Reset(*vc);
00124   }
00125   
00126   int cnt = 0;
00127   
00128   TClonesArray &unident = *infoarray;
00129   while(stpIt!=stpEnd){
00130     
00131     if(fEvenPlStrips.find(stpIt->first)==fEvenPlStrips.end() &&
00132        fOddPlStrips.find(stpIt->first)==fOddPlStrips.end() &&
00133        fXTalkStrips.find(stpIt->first)==fXTalkStrips.end() &&
00134        fCCStrips.find(stpIt->first)==fCCStrips.end()){
00135       
00136       CandStripHandle csh = stpIt->second;
00137       
00138       if(csh.GetNDigit(StripEnd::kNegative)>0){
00139         new(unident[cnt]) 
00140           CDTrackedHitInfo
00141           (StripEnd::kNegative,csh.GetPlane(),csh.GetStrip(),
00142            csh.GetCharge(CalDigitType::kNone,StripEnd::kNegative),
00143            csh.GetCharge(CalDigitType::kSigLin,StripEnd::kNegative),
00144            csh.GetCharge(CalDigitType::kSigCorr,StripEnd::kNegative),
00145            csh.GetCharge(CalDigitType::kPE,StripEnd::kNegative),
00146            calibrator.GetMIP(csh.GetCharge(CalDigitType::kSigCorr,
00147                                            StripEnd::kNegative)),
00148            0.,0.,0.,0.,0.,0.,csh.GetTime(StripEnd::kNegative));
00149         cnt++;
00150       }
00151       
00152       if(csh.GetNDigit(StripEnd::kPositive)>0){
00153         new(unident[cnt]) 
00154           CDTrackedHitInfo
00155           (StripEnd::kPositive,csh.GetPlane(),csh.GetStrip(),
00156            csh.GetCharge(CalDigitType::kNone,StripEnd::kPositive),
00157            csh.GetCharge(CalDigitType::kSigLin,StripEnd::kPositive),
00158            csh.GetCharge(CalDigitType::kSigCorr,StripEnd::kPositive),
00159            csh.GetCharge(CalDigitType::kPE,StripEnd::kPositive),
00160            calibrator.GetMIP(csh.GetCharge(CalDigitType::kSigCorr,
00161                                            StripEnd::kPositive)),
00162            0.,0.,0.,0.,0.,0.,csh.GetTime(StripEnd::kPositive));
00163         cnt++;
00164       }
00165       
00166     }
00167     stpIt++;
00168   }
00169   unident.Compress();
00170 
00171 }

int CDUnidentifiedHits::SetMap ( std::map< int, CandStripHandle ,
int   
)

Member Data Documentation

Definition at line 35 of file CDUnidentifiedHits.h.

Definition at line 38 of file CDUnidentifiedHits.h.

Definition at line 36 of file CDUnidentifiedHits.h.

Definition at line 37 of file CDUnidentifiedHits.h.

Definition at line 39 of file CDUnidentifiedHits.h.


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1