1#ifndef READCOSMICRAYDATAALG
2#define READCOSMICRAYDATAALG
4#include "CgemGeomSvc.h"
5#include "RealizationSvc/RealizationSvc.h"
6#include "RealizationSvc/IRealizationSvc.h"
12#include "Identifier/Identifier.h"
13#include "ReadCosmicRayData/StripMapper.h"
15class IDataProviderSvc;
17#define MAXNOFHITS 2400
31 void ReadCgemDigits();
32 void SaveCgemDigits();
34 void ReadCgemClusters();
35 void SaveCgemClusters();
37 int TranslateDigitLayerID(
int Input_LayerID);
38 int TranslateDigitSheetID(
int Input_SheetID);
39 int TranslateDigitStripType(
int Input_StripType);
40 int TranslateDigitStripID(
int Input_StripID,
int StripType);
41 int TranslateDigitXStripID(
int Input_StripID);
42 int TranslateDigitVStripID(
int Input_StripID);
44 int TranslateClusterLayerID(
int Input_LayerID);
45 int TranslateClusterSheetID(
int Input_SheetID);
46 int TranslateClusterFlag(
int Input_Flag);
47 double TranslateRecPhi(
double Input_RecPhi);
48 double TranslateRecV(
double Input_RecV);
49 double TranslateRecZ(
double Input_RecZ);
51 bool ConvertHitToDigi(
int ihit,
unsigned int &charge_channel,
unsigned int &time_channel);
64 bool finish_read_digi;
66 bool finish_read_cluster;
76 int Shift_DigitLayerID ;
77 int Shift_DigitSheetID ;
78 int Shift_DigitXStripID ;
79 int Shift_DigitVStripID ;
80 int Shift_ClusterLayerID ;
81 int Shift_ClusterSheetID ;
92 string CosmicRayDataSetID;
130 int m_ClusterHitIndex[70][30];
131 int m_ClusternHit[70];
132 int m_ClusterLayerID[70];
133 int m_ClusterSheetID[70];
135 int m_ClusterFlagB[70];
136 int m_ClusterFlagE[70];
137 double m_EnergyDeposit[70];
138 double m_Cluster_x[70];
139 double m_Cluster_z[70];
140 double m_Cluster_x_cc[70];
141 double m_Cluster_x_tpc[70];
142 double m_Cluster_z_cc[70];
143 double m_Cluster_z_tpc[70];
149 IDataProviderSvc* m_evtSvc;
ReadCosmicRayData(const std::string &name, ISvcLocator *pSvcLocator)