Skip to content

Commit

Permalink
Tag CMSSW_5_2_7_onlpatch3
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 31, 2017
0 parents commit 9f3f934
Show file tree
Hide file tree
Showing 47,954 changed files with 12,895,146 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 31 additions & 0 deletions Alignment/CocoaAnalysis/.admin/developers
@@ -0,0 +1,31 @@
# Names of Developers with write access to this module
#
# There are two types of developers:
# 1) Administrators - entitled to edit all files in the module ,
# in particular the .admin directory. (Including this file)
# 2) Regular Developers - entitled to edit all files in the module
# except those in the .admin directory.
#
# You must use the full name of the developer as recorded on this system.
# see :
# http://cmsdoc.cern.ch/cmsoo/projects/swdevtools/developer_list.html
# for a full list of names. If the developer you require is not on this
# list then email the cvs administrator (cvsadmin@cmscvs.cern.ch)
#
# Important
# ---------
# --- Put names of regular developers after the >Developers Tag
# --- Put names of administrators after the >Administrators Tag
#
# Mailists
# --------
# The bug reporting system can automatically send mail to all the developers
# and administrators. Add the email address after the name (seperated by a :)
# of developers to include in the list.
#
>Developers
scodella : Luca Scodellano : Luca.Scodellano@cern.ch

>Administrators
arce : Pedro Arce : Pedro.Arce@cern.ch

8 changes: 8 additions & 0 deletions Alignment/CocoaAnalysis/BuildFile.xml
@@ -0,0 +1,8 @@
<use name="Alignment/CocoaUtilities"/>
<use name="Alignment/CocoaModel"/>
<use name="CLHEP"/>
<use name="rootcore"/>
<use name="meschach"/>
<export>
<lib name="1"/>
</export>
11 changes: 11 additions & 0 deletions Alignment/CocoaAnalysis/doc/html/index.html
@@ -0,0 +1,11 @@
<! Template File - Modify as required.>
<! Use as an index to other html documents>
<! References to local pages should be relative to this directory>
<! This makes it easy for both users of the web project space and>
<! any others who might simply look at html files directly in the source code.>
<! e.g. href=page1.html or href=mysubdir/page2.html >
<html>
<body>
This Text Inserted from File doc/html/index.html
</body>
</html>
12 changes: 12 additions & 0 deletions Alignment/CocoaAnalysis/doc/html/overview.html
@@ -0,0 +1,12 @@
<! Template File - Modify as required.>
<! Use as a brief project description that appears on your main page>
<! Links are not encouraged from this section - use index.html for this>
This Text Inserted from File doc/html/overview.html
<table border=0 width=100%>
<tr>
<td align=center><b>Status :</b></td>
<td align=center>
Unknown
</td>
</tr>
</table>
45 changes: 45 additions & 0 deletions Alignment/CocoaAnalysis/interface/FittedEntriesManager.h
@@ -0,0 +1,45 @@
// COCOA class header file
//Id: FittedEntriesManager.h
//CAT: Model
//
// Class to manage the sets of fitted entries (one set per each measurement data set)
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesManager_HH
#define _FittedEntriesManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaAnalysis/interface/FittedEntriesSet.h"


class FittedEntriesManager
{

public:
//---------- Constructors / Destructor
FittedEntriesManager(){ };
~FittedEntriesManager(){ };
static FittedEntriesManager* getInstance();
void AddFittedEntriesSet( FittedEntriesSet* fents);
void MakeHistos();

public:
std::vector< FittedEntriesSet* > getFittedEntriesSets() const {
return theFittedEntriesSets; }

private:
ALIstring createFileName( const ALIstring& optoName, const ALIstring& entryName);
void dumpEntriesSubstraction( std::ofstream& fout, FittedEntriesSet& fes, ALIint order1, ALIint order2 );

private:
static FittedEntriesManager* instance;
std::vector< FittedEntriesSet* > theFittedEntriesSets;

void GetDifferentBetweenLasers();

};

#endif

67 changes: 67 additions & 0 deletions Alignment/CocoaAnalysis/interface/FittedEntriesSet.h
@@ -0,0 +1,67 @@
// COCOA class header file
//Id: FittedEntriesSet.h
//CAT: Model
//
// Class to store set of fitted entries with date
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesSet_HH
#define _FittedEntriesSet_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "time.h"
#include <vector>
#include "Alignment/CocoaAnalysis/interface/FittedEntry.h"
//#ifdef MAT_MESCHACH
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
//typedef MatrixMeschach ALIMatrix;
//#endif

class FittedEntriesSet
{

public:
//---------- Constructors / Destructor
FittedEntriesSet( MatrixMeschach* AtWAMatrix );
FittedEntriesSet( std::vector<ALIstring> wl );
//---- Average a list of FittedEntriesSet's
FittedEntriesSet( std::vector<FittedEntriesSet*> vSets );
~FittedEntriesSet(){ };
void Fill();
void FillEntries();
void FillCorrelations();
void CreateCorrelationMatrix( const ALIuint nent );
void FillEntriesFromFile( std::vector<ALIstring> wl);
void FillEntriesAveragingSets( std::vector<FittedEntriesSet*> vSets );

void SetOptOEntries();

public:
std::vector< FittedEntry* >& FittedEntries(){
return theFittedEntries;
}

//GET AND SET METHODS
ALIstring& getDate() {
return theDate;
}
ALIstring& getTime() {
return theTime;
}

public:

std::vector< FittedEntry* > theFittedEntries;
private:
//t struct tm theTime;
ALIstring theDate;
ALIstring theTime;
std::vector< std::vector<ALIdouble> > theCorrelationMatrix;
ALIint theMinEntryQuality;
MatrixMeschach* theEntriesErrorMatrix;
};

#endif

77 changes: 77 additions & 0 deletions Alignment/CocoaAnalysis/interface/FittedEntry.h
@@ -0,0 +1,77 @@
// COCOA class header file
//Id: FittedEntry.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef FittedEntry_HH
#define FittedEntry_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class FittedEntry
{

public:
//---------- Constructors / Destructor
FittedEntry(){ };
FittedEntry( Entry* entry, ALIint order, ALIdouble sigma);
FittedEntry( ALIstring name, float value, float sigma);
FittedEntry( std::vector<FittedEntry*> vFEntry );
~FittedEntry(){ };

void BuildName();

ALIstring getOptOName() const {
return theOptOName;
}
ALIstring getEntryName() const {
return theEntryName;
}
ALIstring getName() const {
return theName;
}
ALIdouble getValue() const {
return theValue;
}
ALIdouble getSigma() const {
return theSigma;
}
ALIdouble getOrigValue() const {
return theOrigValue;
}
ALIdouble getOrigSigma() const {
return theOrigSigma;
}
ALIint getOrder() const {
return theOrder;
}
ALIint getQuality() const {
return theQuality;
}
Entry* getEntry() const {
return theEntry;
}


private:
ALIdouble theValue;
Entry* theEntry;
ALIint theOrder;
ALIstring theName;
ALIstring theOptOName;
ALIstring theEntryName;
ALIdouble theSigma;
ALIdouble theOrigValue;
ALIdouble theOrigSigma;
ALIint theQuality;

};

#endif

51 changes: 51 additions & 0 deletions Alignment/CocoaAnalysis/interface/HistoDef.h
@@ -0,0 +1,51 @@
// COCOA class header file
//Id: HistoDef.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef HistoDef_HH
#define HistoDef_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class HistoDef
{

public:
//---------- Constructors / Destructor
HistoDef(){ };
void init( ALIstring name );
~HistoDef(){ };

ALIstring name() const {
return theName;
}
float minimum() const {
return theMin;
}
float maximum() const {
return theMax;
}

void setMinimum( float min ){
theMin = min;
}
void setMaximum( float max ){
theMax = max;
}

private:
ALIstring theName;
float theMin;
float theMax;

};

#endif

72 changes: 72 additions & 0 deletions Alignment/CocoaAnalysis/interface/NtupleManager.h
@@ -0,0 +1,72 @@
// COCOA class header file
//Id: NtupleManager.h
//CAT: Analysis
//
// History: v1.0
// Luca Scodellaro

#ifndef _NtupleManager_HH
#define _NtupleManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
#include "Alignment/CocoaAnalysis/interface/NtupleObjects.h"
#include "CLHEP/Vector/Rotation.h"

class TFile;
class TTree;
class TClonesArray;

class NtupleManager
{

public:
//---------- Constructors / Destructor
NtupleManager(){ };
~NtupleManager(){ };
static NtupleManager* getInstance();
void BookNtuple();
void InitNtuple();
void FillNtupleTree();
void WriteNtuple();
void FillChi2();
void FillFitParameters(MatrixMeschach* AtWAMatrix);
void FillOptObjects(MatrixMeschach* AtWAMatrix);
void FillMeasurements();


private:
static NtupleManager* instance;

void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double *theta);

TFile *theRootFile;

TTree *CocoaTree;
/* TTree *FitParametersTree; */
/* TTree *MeasurementsTree; */

TClonesArray* CloneFitParam; FitParam *FitParamA;
TClonesArray* CloneOptObject; OptObject *OptObjectA;
TClonesArray* CloneSensor2DMeas; Sensor2DMeas *Sensor2DMeasA;
TClonesArray* CloneDistancemeterMeas; DistancemeterMeas *DistancemeterMeasA;
TClonesArray* CloneDistancemeter1DimMeas; Distancemeter1DimMeas *Distancemeter1DimMeasA;
TClonesArray* CloneTiltmeterMeas; TiltmeterMeas *TiltmeterMeasA;
TClonesArray* CloneCopsMeas; CopsMeas *CopsMeasA;

/* bool BookFitParameters; */
/* bool BookMeasurements; */

double Chi2Measurements, Chi2CalibratedParameters;
int NDegreesOfFreedom;
int NFitParameters;
int NOptObjects;
int NSensor2D;
int NDistancemeter;
int NDistancemeter1Dim;
int NTiltmeter;
int NCops;
};

#endif

0 comments on commit 9f3f934

Please sign in to comment.